<!--


//FUNCTIONS

function swap(name,state) {
    if(thePics[name+state] && thePics[name+state].complete) {
        document.images[name].src = thePics[name+state].src;
    }
}

function preloadPics(thePics) {
	for (i=0;i<thePics.length;i++){
		thePics[thePics[i]] = new Image();
		thePics[thePics[i]].src = 'images/'+thePics[i]+'.gif';
		thePics[thePics[i]+'_over'] = new Image();
		thePics[thePics[i]+'_over'].src = 'images/'+thePics[i]+'_over.gif';
	}
}

function outFlash(flashMovie, flashWidth, flashHeight, flashBgcolor, flashStyle, flashClass) {
	try {
		if(flashStyle==null || flashStyle==undefined) flashStyle = '';
	} catch (e) {
		var flashStyle = '';
	}
	try {
		if(flashClass==null || flashClass==undefined) flashClass = '';
	} catch (e) {
		var flashClass = '';
	}

	document.write('<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" WIDTH='+flashWidth+' HEIGHT='+flashHeight+' style=\"'+flashStyle+'\" class=\"'+flashClass+'\">');
	document.write('<PARAM NAME=movie VALUE=\"'+flashMovie+'\"><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE='+flashBgcolor+'>');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="salign" value="lt" />');
	document.write('<EMBED src=\"'+flashMovie+'\" quality=high salign="lt" bgcolor='+flashBgcolor+' WIDTH='+flashWidth+' HEIGHT='+flashHeight+' TYPE="application/x-shockwave-flash" PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\">');
	document.write('</EMBED></OBJECT>');
}


function popup(location) {
	var dx=540;
	var dy=440;

	var w = window.open(location, 'popup', 'width=' + dx + ',height=' + dy + ',status=yes,resizable=yes,menubar=yes,location=yes,scrollbars=yes,toolbar=yes');
	w.focus();
}

function popDown(location) {
	window.opener.location = location;
	window.opener.focus();
}	

function recipe(which) {
	var dx=540;
	var dy=400;

	var w = window.open('recipe_'+which+'.htm', 'recipe', 'width=' + dx + ',height=' + dy + ',status=no,resizable=yes,menubar=yes,location=no,scrollbars=yes,toolbar=yes');
	w.focus();
}

function popOffsite(location) {
	var x=10;
	var y=10;
	var dx=650;
	var dy=450;

	var w = window.open();
	
	w.document.writeln("<html><head></head>");
	w.document.writeln("<frameset border=0 rows=40,* frameborder=no framespacing=0>");
	w.document.writeln("<frame frameborder=no framespacing=0 marginheight=0 marginwidth=0 name=nav noresize scrolling=no src=\"popOffsiteNav.htm\">");
	w.document.writeln("<frame frameborder=no framespacing=0 name=body noresize src=\"" + location + "\">");
	w.document.writeln("</frameset>");
	w.document.writeln("</html>");

	w.focus();
}

function popArea(which) {
	var dx=660;
	var dy=440;

	var w = window.open('area_'+which+'.htm', 'popArea', 'width=' + dx + ',height=' + dy + ',status=yes,resizable=yes,menubar=yes,location=yes,scrollbars=yes,toolbar=yes');
	w.focus();
}

function popEmail() {
	var dx=400;
	var dy=340;

	var w = window.open('http://ccprod.roving.com/roving/d.jsp?m=1100387766211&p=oi&go=Go', 'popEmail', 'width=' + dx + ',height=' + dy + ',status=no,resizable=yes,menubar=yes,location=no,scrollbars=yes,toolbar=no');
	w.focus();
}

function popVirtual(which) {
	var dx=660;
	var dy=400;

	var w = window.open('virt/'+which+'.htm', 'popVirt', 'width=' + dx + ',height=' + dy + ',status=no,resizable=yes,menubar=yes,location=no,scrollbars=yes,toolbar=no');
	w.focus();
}

//MAILSTEALTH
function writemailfulllink(doc, user, domain, ext) {
	doc.writeln('<a href="javascript:launchmail(document,\''+user+'\',\''+domain+'\',\''+ext+'\')"><span>'+user+'</span>@<span>'+domain+'</span>.<span>'+ext+'</span></a>');
}

function launchmail(doc, user, domain, ext) {
	doc.location = 'mailto:'+user+'@'+domain+'.'+ext;
}

//-->
