var myimages=new Array()
function preloadimages(){
for (i=0;i<preloadimages.arguments.length;i++){
myimages[i]=new Image()
myimages[i].src=preloadimages.arguments[i]
}
}


//Enter path of images to be preloaded inside parenthesis. Extend list as desired.
preloadimages("images/Menus.jpg","images/Catering.jpg","images/Desserts.jpg","images/Hours.jpg","images/contact.jpg","images/open.png","images/coupon.jpg")
 
        

    function pagewidth(){
                 if(window.innerWidth){
                 return window.innerWidth;
               }
                 if(document.body.clientWidth){
                 return document.body.clientWidth;
               }
                 return(null);  
       }
       
       
     
        function holderwidth(){
                       var object = document.getElementById('holder');
                       if(object.offsetWidth){
                                               return object.offsetWidth;
                                              }
                       if(object.clientWidth){
	                                          return object.clientWidth;
                                          } 
                   
                   return(null);
      }
       
     
 
       function placectr(){
             var pw = pagewidth();
             var hw = holderwidth();
             
             var wdiff = (pw - hw)/2 + 'px';
             object = document.getElementById('holder');
             
	             
             object.style.left = wdiff;
         
              
   }              
               
