
	var printStyle, screenStyle, osVer, isIE, isNN, isMac, isN6, PLATFORM, isIE4, isIE4plus;
	var agent = navigator.userAgent.toLowerCase();
	var cssLink = "";
	
	//check if it's mac or pc
	if (agent.lastIndexOf('mac') < 0) {isMac = false;PLATFORM = "win";} else {isMac = true;PLATFORM = "mac";}
	//check version of ie
	if (document.all){isIE = true;if (document.getElementById) {isIE5plus = true;osVer = PLATFORM + "ie5";cssLink = "<LINK REL='stylesheet' TYPE='text/css' HREF='http://www.timeinc.net/web/recipefinder/css/style" + PLATFORM + "IE.css'>";} else {isIE4 = true;osVer = PLATFORM + "ie4";cssLink = "<LINK REL='stylesheet' TYPE='text/css' HREF='http://www.timeinc.net/web/recipefinder/css/style" + PLATFORM + "IE4.css'>";}
	//check version of netscape
	} else if (document.layers){isNN = true;osVer = PLATFORM + "n4";cssLink = "<LINK REL='stylesheet' TYPE='text/css' HREF='http://www.timeinc.net/web/recipefinder/css/style" + PLATFORM + "NN.css'>";function MM_reloadPage(init) {if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();}MM_reloadPage(true);} else if ((navigator.appName == "Netscape") && (document.getElementById)){isN6 = true;osVer = PLATFORM + "n6";cssLink = "<LINK REL='stylesheet' TYPE='text/css' HREF='http://www.timeinc.net/web/recipefinder/css/style" + PLATFORM + "N6.css'>";}
	document.write(cssLink);
	
	switch(osVer){
		case 'macie4':printStyle = "72dpi_9em";
		screenStyle = "72dpi_10em";
		break;
		
		case 'macie5':printStyle = "72dpi_7xem";
		screenStyle = "96dpi";
		break;
				
		case 'winn6':printStyle = "72dpi_9em";
		screenStyle = "96dpi";		
		break;
		
		default:printStyle = "96dpi_10em";
		screenStyle = "96dpi";		
		break;
	}
	
	if(!isNN){
		document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://www.timeinc.net/web/recipefinder/css/print' + printStyle + '.css" media="print">');
		document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://www.timeinc.net/web/recipefinder/css/screen' + screenStyle + '.css" media="screen">');
	}
		
	function doPrintNow(){
		window.print();
	}

function goPop(section,name,option,question) {
        var help = 'scrollbars=1,dependent=1,resizable=1,width=325,height=375,left=325,top=225';
        var spcHelp = 'scrollbars=1,dependent=1,resizable=1,width=325,height=375,left=325,top=225';
        if(option=="help"){
                        eval(option + "Win = window.open('/food/channel/help/" + section + "_indx.html#" + question + "','" + name + "'," + option + ")");
        }
        else{
                        alert("No option selected");
        }
        eval(option + "Win.focus()");
}
