newcurr=1200;cateringcurr=-150;gallerycurr=-300;contactuscurr=-150;aboutuscurr=-150;okayToRun=true;lastToLoad='';awardscurr=-300;function setAttributes(){scrollWidth=getScrollerWidth();document.getElementById('cateringholder').style.width=500+scrollWidth+'px';document.getElementById('aboutusholder').style.width=500+scrollWidth+'px';document.getElementById('contactusholder').style.width=500+scrollWidth+'px'}function getScrollerWidth(){var scr=null;var inn=null;var wNoScroll=0;var wScroll=0;scr=document.createElement('div');scr.style.position='absolute';scr.style.top='-1000px';scr.style.left='-1000px';scr.style.width='100px';scr.style.height='50px';scr.style.overflow='hidden';inn=document.createElement('div');inn.style.width='100%';inn.style.height='200px';scr.appendChild(inn);document.body.appendChild(scr);wNoScroll=inn.offsetWidth;scr.style.overflow='auto';wScroll=inn.offsetWidth;document.body.removeChild(document.body.lastChild);return(wNoScroll-wScroll)}function activateMenu(newMenutoLoad){if((okayToRun==true)||(lastToLoad=='')){if(newMenutoLoad=='menus'){if(lastToLoad=='menus'){okayToRun=false;hideMenu(newcurr)}else{okayToRun=false;hideCatering(cateringcurr);hideGallery(gallerycurr);hideAboutUs(aboutuscurr);hideContactUs(contactuscurr);hideAwards(awardscurr);setTimeout('showMenu(newcurr)',1000);lastToLoad='menus'}}else if(newMenutoLoad=='awards'){if(lastToLoad=='awards'){okayToRun=false;hideAwards(awardscurr)}else{okayToRun=false;hideMenu(newcurr);hideCatering(cateringcurr);hideGallery(gallerycurr);hideAboutUs(aboutuscurr);showAwards(awardscurr);hideContactUs(contactuscurr);lastToLoad='awards'}}else if(newMenutoLoad=='catering'){if(lastToLoad=='catering'){okayToRun=false;hideCatering(cateringcurr)}else{okayToRun=false;hideMenu(newcurr);showCatering(cateringcurr);hideGallery(gallerycurr);hideAboutUs(aboutuscurr);hideContactUs(contactuscurr);hideAwards(awardscurr);lastToLoad='catering'}}else if(newMenutoLoad=='gallery'){if(lastToLoad=='gallery'){okayToRun=false;hideGallery(gallerycurr)}else{okayToRun=false;showGallery(gallerycurr);hideMenu(newcurr);hideCatering(cateringcurr);hideAboutUs(aboutuscurr);hideContactUs(contactuscurr);hideAwards(awardscurr);lastToLoad='gallery'}}else if(newMenutoLoad=='aboutus'){if(lastToLoad=='aboutus'){okayToRun=false;hideAboutUs(aboutuscurr)}else{okayToRun=false;showAboutUs(aboutuscurr);hideMenu(newcurr);hideCatering(cateringcurr);hideGallery(gallerycurr);hideContactUs(contactuscurr);hideAwards(awardscurr);lastToLoad='aboutus'}}else if(newMenutoLoad=='contactus'){if(lastToLoad=='contactus'){okayToRun=false;hideContactUs(contactuscurr)}else{okayToRun=false;showContactUs(contactuscurr);hideMenu(newcurr);hideCatering(cateringcurr);hideAboutUs(aboutuscurr);hideGallery(gallerycurr);hideAwards(awardscurr);lastToLoad='contactus'}}}}function showCatering(i){document.getElementById("cateringholder").style.overflow='hidden';j=parseInt(i);if(j<450){curr=(document.getElementById("cateringholder").style.left);curr=parseInt(curr);cateringcurr=curr+8;document.getElementById("cateringholder").style.left=cateringcurr+'px';setTimeout(function(){showCatering(cateringcurr)},16)}else{document.getElementById("cateringholder").style.overflow='auto';okayToRun=true}}function hideGallery(i){j=parseInt(i);if(j>-300){curr=(document.getElementById("galleryholder").style.left);curr=parseInt(curr);gallerycurr=curr-8;document.getElementById("galleryholder").style.left=gallerycurr+'px';setTimeout(function(){hideGallery(gallerycurr)},16)}else{lastToLoad=''}}function showGallery(i){j=parseInt(i);if(j<450){curr=(document.getElementById("galleryholder").style.left);curr=parseInt(curr);gallerycurr=curr+8;document.getElementById("galleryholder").style.left=gallerycurr+'px';setTimeout(function(){showGallery(gallerycurr)},16)}else{okayToRun=true}}function hideAwards(i){j=parseInt(i);if(j>-300){curr=(document.getElementById("awardsholder").style.left);curr=parseInt(curr);awardscurr=curr-8;document.getElementById("awardsholder").style.left=awardscurr+'px';setTimeout(function(){hideAwards(awardscurr)},16)}else{lastToLoad=''}}function showAwards(i){j=parseInt(i);if(j<400){curr=(document.getElementById("awardsholder").style.left);curr=parseInt(curr);awardscurr=curr+8;document.getElementById("awardsholder").style.left=awardscurr+'px';setTimeout(function(){showAwards(awardscurr)},16)}else{okayToRun=true}}function hideAboutUs(i){document.getElementById("aboutusholder").style.overflow='hidden';j=parseInt(i);if(j>-150){curr=(document.getElementById("aboutusholder").style.left);curr=parseInt(curr);aboutuscurr=curr-8;document.getElementById("aboutusholder").style.left=aboutuscurr+'px';setTimeout(function(){hideAboutUs(aboutuscurr)},16)}else{document.getElementById("aboutusholder").style.overflow='auto';lastToLoad=''}}function showAboutUs(i){document.getElementById("aboutusholder").style.overflow='hidden';j=parseInt(i);if(j<450){curr=(document.getElementById("aboutusholder").style.left);curr=parseInt(curr);aboutuscurr=curr+8;document.getElementById("aboutusholder").style.left=aboutuscurr+'px';setTimeout(function(){showAboutUs(aboutuscurr)},16)}else{document.getElementById("aboutusholder").style.overflow='auto';okayToRun=true}}function hideContactUs(i){document.getElementById("contactusholder").style.overflow='hidden';j=parseInt(i);if(j>-150){curr=(document.getElementById("contactusholder").style.left);curr=parseInt(curr);contactuscurr=curr-8;document.getElementById("contactusholder").style.left=contactuscurr+'px';setTimeout(function(){hideContactUs(contactuscurr)},16)}else{document.getElementById("contactusholder").style.overflow='auto';lastToLoad=''}}function showContactUs(i){document.getElementById("contactusholder").style.overflow='hidden';j=parseInt(i);if(j<450){curr=(document.getElementById("contactusholder").style.left);curr=parseInt(curr);contactuscurr=curr+8;document.getElementById("contactusholder").style.left=contactuscurr+'px';setTimeout(function(){showContactUs(contactuscurr)},16)}else{document.getElementById("contactusholder").style.overflow='auto';okayToRun=true}}function hideCatering(i){document.getElementById("cateringholder").style.overflow='hidden';j=parseInt(i);if(j>-150){curr=(document.getElementById("cateringholder").style.left);curr=parseInt(curr);cateringcurr=curr-8;document.getElementById("cateringholder").style.left=cateringcurr+'px';setTimeout(function(){hideCatering(cateringcurr)},16)}else{document.getElementById("cateringholder").style.overflow='auto';lastToLoad=''}}function hideMenu(i){j=parseInt(i);if(j<1200){curr=(document.getElementById("menuholder").style.left);curr=parseInt(curr);newcurr=curr+8;document.getElementById("menuholder").style.left=newcurr+'px';setTimeout(function(){hideMenu(newcurr)},16)}else{lastToLoad=''}}function showMenu(i){j=parseInt(i);if(j>980){curr=(document.getElementById("menuholder").style.left);curr=parseInt(curr);newcurr=curr-8;document.getElementById("menuholder").style.left=newcurr+'px';setTimeout(function(){showMenu(newcurr)},16)}else{okayToRun=true}}
function showPage(){
	opacity('loading', 100, 0, 500);
	setTimeout("opacity('main', 0, 100, 500)", 500);
}