// JavaScript Document

function changeimg(){
	var imgname;
	var width;
	var height;
	if((document.body.clientWidth<=1920)&& (document.body.clientWidth>1680)){
	document.getElementById('bod').className = "bg1920";
	imgname = "replay_bg_1920.jpg";
	width = 1920;
	height = 1400;	
	}
	else if((document.body.clientWidth<=1680)&& (document.body.clientWidth>1440)){
	document.getElementById('bod').className = "bg1680";
	imgname = "replay_bg_1680.jpg";
	width = 1680;
	height = 1400;
	}
	else if((document.body.clientWidth<=1440)&& (document.body.clientWidth>1280)){
	document.getElementById('bod').className = "bg1440";
	imgname = "replay_bg_1440.jpg";
	width = 1440;
	height = 1400;
	}
	else if((document.body.clientWidth<=1280)&& (document.body.clientWidth>1024)){
	document.getElementById('bod').className = "bg1280";
	imgname = "replay_bg_1280.jpg";
	width = 1280;
	height = 1422;
	}
	else if(document.body.clientWidth<=1024){
	document.getElementById('bod').className = "bg1024";
	imgname = "replay_bg_1024.jpg";
	width = 1024;
	height = 1400;
	}
	
	//preload the image
	img1 = new Image(width, height);
    img1.src = "../images/"+imgname;
	
	var scroller  = null;
    var scrollbar = null;
	scroller  = new jsScroller(document.getElementById("Scroller-1"), 163, 106);
	scrollbar = new jsScrollbar (document.getElementById("Scrollbar-Container"), scroller, false);
}

window.onload = changeimg;

function showHideLayers() { //v9.0
  var i,p,v,obj,args=showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}