function scr(hnd,wdh,chk){
  if(chk!=1&&typeof(timer)!='undefined')clearTimeout(timer);
  divek=document.getElementById('divContent');
	vek=document.getElementById('divContainer');
	left=parseInt(divek.style.left);
	wnd=parseInt(document.body.clientWidth);
  if(hnd==10||typeof(mou)=='undefined')mou=75;
  else{mou=200;}
  spd=(15/100)*(mou/470*100);
  switch(hnd){
    case 0:
      if(left>wnd-wdh)divek.style.left=left-spd+'px';
    break;
    case 1:
      if(left<0)divek.style.left=left+spd+'px';
    break;
    case 10:
      if(left>wnd-wdh)divek.style.left=left-spd+'px';
    break;
  }
	scrbr(left,wdh,wnd);
  timer=setTimeout('scr('+hnd+','+wdh+')',1);
}

function scrstop(wdh){
  clearTimeout(timer);
  setTimeout('scr(10,'+wdh+',1)',4000)
}

function scrbr(pre,wdh,wnd) {
  pro=document.getElementById('proc'); 
	prc=Math.abs(pre)/(wdh-wnd)*100;
	pro.style.width=(wnd/100)*prc;
}
	
function  ro(obj,act,poz){
	obj.src=obj.src.replace(/0|1/,act);
}

function rb(obj,pct){
  obj=document.getElementById(obj);
  obj.style.background='url(\'gfx/'+pct+'.jpg\') repeat-x 50% 0% #f3f3f3';
}

function mousepos(e){
  mou=e.clientY;
}

function formclk(elm){
  elm.value='';
}
  
function splash_res() {
  img=document.getElementById('splash')
  img_w=img.width; 
  img_h=img.height;
  
  img_wn=document.body.offsetWidth;
  img_hn=img_h/(img_w/img_wn);
  
  if(img_hn<document.body.offsetHeight){
    img_hn=document.body.offsetHeight;
    img_wn=img_w/(img_h/img_hn);  
  }
  
  img.width=img_wn;
  img.height=img_hn;
  doc_w=document.body.offsetWidth;
  
  if(doc_w<img_wn){img.style.left=Math.round((doc_w-img_wn)/2);}
  else{img.style.left=0;}
  
  if(img.style.visibility!="visible"){
    mint.fx.Fade("splash", 0, 0, 0);
    img.style.visibility="visible";
    mint.fx.Fade("splash", 95,  10, 500);
  }
  mint.fx.Fade("splash_logo_bg", 50,  10, 1000);
  window.onload=splash_res;
  window.onresize=splash_res;
}