
// JavaScript Document

function refit(){
xTop("header_images",350 - xPageY("header_images"));

xTop("footer",-400);

//alert("xClientHeight = " + xClientHeight() + " window.innerHeight = " + window.innerHeight);
xTop("adImage", xClientHeight()- xHeight("adImage"));
xTop("adBanner", xClientHeight()- xHeight("adBanner"));


xHeight("seafood_images", xClientHeight());
xHeight("seafood_images02", xClientHeight());

var headerTotalHeight = xHeight("header") + xHeight("header_details") + xHeight("menu") + xHeight("adBanner");
xHeight("page", xClientHeight() - headerTotalHeight);

xLeft("sidepanel_right", xClientWidth()-xWidth("sidepanel_right")-10);
xLeft("amazon_link",xClientWidth()-xWidth("amazon_link")-10);
xTop("sidepanel_right",xPageY("sidepanel"));

xLeft("map",xLeft("sidePanel_right")-20);

//alert("xLeft header =" + xLeft("header")+ "xPageY = " + xPageY("header"));

xLeft("seafood_images", xClientWidth()/2 - 422);
xLeft("seafood_images02", xClientWidth()/2 + 302);

xWidth("food_menu",600);
/*
xLeft("food_menu",-20);
*/
//alert(xWidth("food_menu"));
/*
xLeft("header_details",xClientWidth()/2 -640);
xTop("phone_number",-15);
*/

xTop("phone_number", -20);



if(xClientWidth() < 800){
xDisplay("sidepanel","none");
xDisplay("sidepanel_right","none");
xDisplay("adImage","none");
xDisplay("amazon_link","none");
//xDisplay("map","none");


}
if(xClientWidth() > 800){
xDisplay("sidepanel","block");
xDisplay("sidepanel_right","block");
xDisplay("adImage","block");
xDisplay("campaign_slogon","block");
xDisplay("amazon_link","block");
//xDisplay("map","block");
}
if(xClientWidth() < 1150){
xDisplay("seafood_images","none");
xDisplay("seafood_images02","none");
xDisplay("campaign_slogon","none");


}
if(xClientWidth() > 1150){
xDisplay("seafood_images","block");
xDisplay("seafood_images02","block");
xDisplay("campaign_slogon","block");
}
xHeight("sidepanel", 405);
xHeight("sidepanel_right",405);
//alert("xheight = " + xHeight("sidepanel") + " xHeight = " + xHeight("sidepanel_right"));
}
function changePage(passedEle){
//parent.frames.getElementById("mainFrame").src = passedEle.id +".php";
var reqPage = new String(passedEle.id +".php?name="+ passedEle.name+"&");
parent.document.getElementById("mainFrame").src = reqPage;
}



