
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}


// Printer Friendly Function ------------------------------------------------------------------------
function PrintThisPage() 
{ 
   var sOption="toolbar=yes,resizable=yes,location=no,directories=yes,menubar=yes,"; 
       sOption+="scrollbars=yes,width=750,height=600,left=100,top=25"; 

   var sWinHTML = document.getElementById('main_content').innerHTML; 
   var sWinHTMLSH = document.getElementById('lblSubHeading').innerHTML; 
 
   var winprint=window.open("","",sOption); 
       winprint.document.open(); 
       winprint.document.write('<html><title>This page was printed from www.foodsafetynetwork.com</title><link href=../../style/site.css rel=Stylesheet><body bgcolor="#FFFFFF"><table width=100% border=0 cellpadding=45 cellspacing=0 bgcolor=#FFFFFF><tr><td><img src=../../images/fsn_logo.jpg><br>'); 
       winprint.document.write('<br/><b>')
	   winprint.document.write(sWinHTMLSH); 
	   winprint.document.write('</b>')
	   winprint.document.write(sWinHTML); 
	   var today=new Date()
	   winprint.document.write('<hr><font size=1><b>date printed:</b> '+today.toString()+'<br><b>from:</b> '+window.location+'</font>')
	   winprint.document.write('</td></tr></body></html>'); 
       winprint.document.close(); 
       winprint.focus(); 
}

/*
var currentSize=3;

function textSize(type) {
   var sizes = new Array("xxsmall", "xsmall", "small", "medium", "large", "xlarge", "xxlarge");
      
   if(type=="increase") {
      if(currentSize<6){
	     currentSize++;
      }
   }

   if(type=="decrease") {
      if(currentSize>0){
	     currentSize--;
      }
   }
   
   document.getElementById('story-body').className=sizes[currentSize];
   //document.getElementById('story-body2').className=sizes[currentSize];
   
   if (typeof resetInlineAds != "undefined") {
		resetInlineAds();   
   }
}


Text size: <a href="javascript:void(0);" onclick="textSize('increase');" rel="nofollow"><img src="../../images/atools-uparrow.gif" alt="increase text size" border="0" /></a><a href="javascript:void(0);" onclick="textSize('decrease');" rel="nofollow"><img src="../../images/atools-downarrow.gif" alt="decrease text size" border="0" /></a>
MM_preloadImages('../../images/public/nav_home_over.jpg','../../images/public/nav_about_over.jpg','../../images/public/nav_food_over.jpg','../../images/public/nav_hazards_over.jpg','../../images/public/nav_foodhealth_over.jpg','../../images/public/nav_foodsafety_over.jpg')
*/

function init()

{

	strTextSize = "Text Size: <a href=\"#\" title=\"Small font\" onclick=\"changeTextSize('70%');return false;\"> S</a> <a href=\"#\" title=\"Medium Font\" onclick=\"changeTextSize('80%');return false;\">M</a> <a href=\"#\" title=\"Large font\" onclick=\"changeTextSize('90%');return false;\">L</a> <a href=\"#\" title=\"Extra large font\" onclick=\"changeTextSize('100%');return false;\">XL</a>";	

	

	//Detect if browser supports these functions

	if (document.getElementById && document.createElement)

	{	

		document.getElementById("textsize").innerHTML = strTextSize;		

	}

}

function changeTextSize(size)

{

	document.body.style.fontSize = size;

}
