var thiswidth=screen.width; 
var thisheight=screen.height; 
/*
screen resolutions list:
1280*800
1280*768
1280*720
1280*600
1024*768   */
// file to load if resolution is 1024x768: 
var if1024_768="bg1024_768.jpg"; 

// file to load if resolution is 1280x600: 
var if1280_600="bg1280_600.jpg"; 

// file to load if resolution is 1280x720: 
var if1280_720="bg1280_720.jpg"; 

// file to load if resolution is 1280x768: 
var if1280_768="bg1280_768.jpg"; 

// file to load if resolution is 1280x800: 
var if1280_800="bg1280_800.jpg"; 


// Do not change anything below this line 
// -------------------------------------- 
var width1 = 1024; var height1 = 768; 
var width2 = 1280; var height2 = 600; 
var width3 = 1280; var height3 =720; 
var width4 = 1280; var height4 = 768; 
var width5 = 1280; var height5 = 800; 
function loadbg () { 
var k=document.getElementById('outerbg').style;
if (screen.width == width1 || screen.height == height1){ 
k.backgroundImage="url('/images/default/"+if1024_768+"')";
} 
else if(screen.width == width2 || screen.height == height2){ 
k.backgroundImage="url('/images/default/"+if1280_600+"')";
 }
else if(screen.width == width3 || screen.height == height3){ 
k.backgroundImage="url('/images/default/"+if1280_720+"')";} 
else if(screen.width == width4 || screen.height == height4){ 
k.backgroundImage="url('/images/default/"+if1280_768+"')";} 
else if(screen.width == width5 || screen.height == height5){ 
k.backgroundImage="url('/images/default/"+if1280_800+"')"; }
 else if(screen.width >= width5 || screen.height >= height5){ 
k.backgroundImage="url('/images/default/"+if1280_800+"')"; }
 } 
