function display_menu_tabs(id)
										{
										 for(var i=1;i<=5;i++)
										  {
										   document.getElementById("sclefttab_menu"+i).style.display="none";
										   }
										   
										   document.getElementById("sclefttab_menu"+id).style.display="";
										  return false;
										}



function MM_swapImgRestore() { //v3.0
													  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
													}

													function MM_preloadImages() { //v3.0
													  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
														var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
														if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
													}

													function MM_findObj(n, d) { //v4.01
													  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
														d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
													  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
													  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
													  if(!x && d.getElementById) x=d.getElementById(n); return x;
													}

									

													function vid_refresh(desc, ing, prep){
														document.getElementById('recipe_desc').innerHTML= desc;
														document.getElementById('div2').innerHTML= ing;
														document.getElementById('div3').innerHTML= prep;
													}
												                  
















function imageOpen(image_loc)
{
  HTML = "<html><title>Gourmandia</title> <style> body{margin:0px 0px 0px 0px}</style><body><img src='" + image_loc + "' border=0 name=load_image onLoad='window.resizeTo(document.load_image.width+10, document.load_image.height+30)'></body></html>";
  popupImage = window.open("", "_blank", "toolbar=no,scrollbars=no,height=20,width=20, top=20, left=20");
  popupImage.document.open();
  popupImage.document.write(HTML);
  popupImage.document.close();
}

function napkinFolding(image_loc,title)
{
  HTML = "<html><title>" + title + "</title> <style> body{margin:0px 0px 0px 0px}</style><body><img src='" + image_loc + "' border=0 name=load_image onLoad='window.resizeTo(document.load_image.width+10, document.load_image.height+30)'></body></html>";
  popupImage = window.open("", "_blank", "toolbar=no,scrollbars=no,height=20,width=20, top=20, left=20");
  popupImage.document.open();
  popupImage.document.write(HTML);
  popupImage.document.close();
}

function toggleshow(layerID, mode)
{
var currentRef = document.getElementById(layerID).style
modes = new Array
modes[0] = 'none'
modes[1] = 'block'

if(isNaN(mode))
currentRef.display = (currentRef.display == 'none') ? 'block' : 'none'
else
currentRef.display = modes[mode]
}

function showAdBox(layerID)
{
var currentRef = document.getElementById(layerID).style
currentRef.display = 'block'
}
function dismissAdBox(layerID)
{
var currentRef = document.getElementById(layerID).style
currentRef.display = 'none'
}

function selectAddress(val)
{
	if( val == "Address" ) {
	document.getElementById("AddressBlock").style.display='block';
	document.getElementById("RestaurantBlock").style.display='none';
	} else {
	document.getElementById("RestaurantBlock").style.display='block';
	document.getElementById("AddressBlock").style.display='none';
	}
}

function toggle_showhide(field_name)
{
	if (field_name.style.visibility == "hidden"){
	field_name.style.visibility='visible';
	field_name.style.position='relative';
	field_name.focus();
	} else {
	field_name.style.visibility='hidden';
	field_name.style.position='absolute';
	}
}

function changeMultipleGuests(selected_no)
{
	for(k=2; k<=selected_no; k++)
	{
		document.getElementById("row"+k).style.display="block";
	}

	for(i=k;i<=100;i++)
	{
		document.getElementById("row"+i).style.display="none";
	}
	//alert (selected_no);
}
/*-----------------WORLDMAP FUNCTIONS ------------------------*/
function showWorldMapToolTip(inputObj)
{
	document.getElementById(inputObj).style.display = 'block';
	document.getElementById(inputObj).style.left=window.event.x;
	document.getElementById(inputObj).style.top=window.event.y;
}
function hideWorldMapToolTip(inputObj)
{
	document.getElementById(inputObj).style.display='none';
}
