function popup(url, name)
{
settings=
"toolbar=no,location=no,directories=no,"+
"status=no,menubar=no,scrollbars=yes,"+
"resizable=yes,width=450,height=600";

MyNewWindow=window.open(url,name,settings);
}
function popupsize(url, name, width, height)
{
settings=
"toolbar=no,location=no,directories=no,"+
"status=no,menubar=no,scrollbars=no,"+
"resizable=yes,width="+width +",height="+ height;

MyNewWindow=window.open(url,name,settings);
}

//-- JavaScript code written by Alan Simpson - www.coolnerds.com 
//This first function pads the message with blanks, and inserts the HTML
//required to display the form in your page. Not executed until called.
//Do not change any of this code. 
function banner(msg,ctrlwidth) {
   // Pad message and bring to width of textbox.
   for (i=0;i<=ctrlwidth;i++){msg=" "+msg}
   // Set up the form and form field.
   document.write ('<form name="banner">')
   document.write ('<input name="scrollBox" value="'+msg+'" size='+ctrlwidth+'>')
   document.write ('</form>')
   rollmsg() //Get the banner rolling
}

//This function makes the message scroll through the text box.
function rollmsg() {
   nowMsg=document.banner.scrollBox.value
   nowMsg=nowMsg.substring(1,nowMsg.length)+nowMsg.substring(0,1)
   document.banner.scrollBox.value=nowMsg
   myTimer=setTimeout("rollmsg()",75) 
}

function addToFavourites()
{
	if (document.all)
	{
		window.external.AddFavorite('http://<!--#echo var="HTTP_HOST" -->/index.htm','EasyPeasyMeals.com - easy recipes, funny stories')
	}
	else
	{
		alert("With your current browser we can not add this page to your favourites automatically. Please set manually.")
	}
}

		
stdBrowser = (document.getElementById) ? true : false

function toggleMenu(currElem,nextPos) 
{
	menuObj = (stdBrowser) ? document.getElementById(currElem).style : eval("document." + currElem)
	if (toggleMenu.arguments.length == 1) 
	{
		nextPos = (parseInt(menuObj.top) == -5) ? -90 : -5
	}
	menuObj.top = (stdBrowser) ? nextPos + "px" : nextPos	
}


