function ChangeCSSBgImg(){if(!document.getElementById)return false;var MyElement="header_wrapper"
var ImgPath="../img/"
if(!document.getElementById(MyElement))return false;var random_images=new Array();random_images[0]="header_bg.png";random_images[1]="header_bg_2.png";var $header=document.getElementById(MyElement);var $backgroundurl=$header.style.backgroundImage;var ImgURL="url("+ImgPath+random_images[rand(random_images.length)]+")";if($backgroundurl!=ImgURL){$header.style.backgroundImage=ImgURL;}
movement=setTimeout("ChangeCSSBgImg()",14000);}
function rand(n){return(Math.floor(Math.random()*n));}
function addLoadEvent(func){var oldonload=window.onload;if(typeof window.onload!='function'){window.onload=func;}else{window.onload=function(){oldonload();func();}}}
addLoadEvent(ChangeCSSBgImg);
