
function load_css(page){


 img1 = new Image();
    
//document.body.style.backgroundColor="#000000";
//document.body.style.backgroundImage="url('site_images/homepage/background_home.jpg')";
var screen_w, screen_h, css_file;

    screen_w =  screen.width;
   // screen_h =   screen.height;
  
  
  if(screen_w<=1280){

         page =page;    
  	 img1.src = "site_images/"+page+"/background_"+page+"_1280.jpg";
     css_file ="screen_"+page+"_1280.css";

 /* }else if(screen_w<=1440)
  {
         page = page ;    
  	 img1.src = "site_images/"+page+"/background_"+page+"_1440.jpg";
  	 css_file = "screen_"+page+"_1440.css";

  }else if(screen_w<=1600)
  {
         page = page; 
     img1.src = "site_images/"+page+"/background_"+page+"_1600.jpg";
     css_file = "screen_"+page+"_1600.css";
*/
  } else if(screen_w<=1680)
  {
     
     img1.src = "site_images/"+page+"/background_"+page+"_1680.jpg";
     css_file = "screen_"+page+"_1680.css";

  }//else if(screen_w<=1920)
  //{
        
   //  img1.src = "site_images/"+page+"/background_"+page+"_1920.jpg";
   //  css_file = "screen_"+page+"_1920.css";
  //}
  else if(screen_w>1680)
  {
    
     img1.src = "site_images/"+page+"/background_"+page+"_big.jpg";
     css_file ="screen_"+page+"_big.css";
  }


   css_file= 'css/'+css_file
   
var $ = document; // shortcut
var cssId = 'myCss';  // you could encode the css path itself to generate id..
if (!$.getElementById(cssId))
{
    var head  = $.getElementsByTagName('head')[0];
    var link  = $.createElement('link');
    link.id   = cssId;
    link.rel  = 'stylesheet';
    link.type = 'text/css';
    link.href = 'http://weblunatix.com/'+css_file;
    link.media = 'all';
    head.appendChild(link);
}
}
