//<!--

// Determine site nesting relative to root
URLroot='';
if (document.location.href.indexOf('client')!=-1) {
	URLroot='../';
}

// Preload Rollover Images
rolloverImages=['home','producers','finding','browser','newsletter','about','retailer'];
dummy=new Array();
if (document.images) {
	for(i=0;i<rolloverImages.length;i++) {
		dummy[i]=new Image();	
		dummy[i].src=URLroot+'images/nav_'+rolloverImages[i]+'_on.gif';
	}
}

// Fixes for Netscape 4.x
if (document.layers) {
	document.write('<LINK REL="StyleSheet" HREF="'+URLroot+'dalluva_red_ns.css" type="text/css">');
	top.onResize=function() { top.location.reload(); }
}

// Fix Google Bar Autofill
function fixForms() {
	for(f=0;f<document.forms.length;f++) {
		for (i=0;i<document.forms[f].elements.length;i++) {
			element=document.forms[f].elements[i];
			if (element.nodeName=='INPUT') {
				element.style.backgroundColor='transparent';
			}
		}
	}
}

function popSubscribe() {
	window.open(URLroot+'newsletter_popup.html','subscribe','innerWidth=390,innerHeight=300,width=390,height=300,location=0,directories=0,status=0,toolbar=0,resizable=0');
}


// Rollover functions
function rollOn(imgname) {
	if (! document.images) return;
	document.images[imgname].src=URLroot+'images/nav_'+imgname+'_on.gif';
}
function rollOff(imgname) {
	if (! document.images) return;
	document.images[imgname].src=URLroot+'images/nav_'+imgname+'_off.gif';
}

// Flash detection & embedding
function flashEmbed(swf,width,height,bgcolor,quality) {
	if (!bgcolor) bgcolor="#000000";
	if (!quality) quality='high';
	var code = '<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
	+ 'WIDTH="'+width+'" HEIGHT="'+height+'"'
	+ 'CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
	+ '<PARAM NAME="MOVIE" VALUE="'+swf+'">'
	+ '<PARAM NAME="PLAY" VALUE="true">'
	+ '<PARAM NAME="LOOP" VALUE="false">'
	+ '<PARAM NAME="QUALITY" VALUE="'+quality+'">'
	+ '<PARAM NAME="MENU" VALUE="false">'
	+ '<PARAM NAME=salign VALUE=LT>'
	+ '<PARAM NAME=bgcolor VALUE="'+bgcolor+'"> '
	+ '<EMBED SRC="'+swf+'" '
	+ 'WIDTH="'+width+'" HEIGHT="'+height+'" '
	+ 'salign=LT '
	+ 'PLAY="true" '
	+ 'LOOP="false" '
	+ 'QUALITY="'+quality+'" '
	+ 'MENU="false" '
	+ 'BGCOLOR="'+bgcolor+'" '
	+ 'TYPE="application/x-shockwave-flash" '
	+ 'PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'
	+ '</EMBED>'
	+ '</OBJECT>';
	return(code);
}
//-->