var i=0;
var scroll_break=1;

function flashstopper(n){
window.parent.document.flash0.SetVariable ("_root.stopper",n);
window.parent.document.flash1.SetVariable ("_root.stopper",n);
window.parent.document.flash2.SetVariable ("_root.stopper",n);
}



function scroll_up(getid,getids, height){
	if (scroll_break)
	{	
		flashstopper(1);

	   	if (i>=20) i=i-20;
	    else if (i<20 && i>=0) i=0;
				
		document.getElementById(getid).scrollTop=i;

		document.getElementById(getids).style.top = ((height - 59)/100) * ((document.getElementById(getid).scrollTop/(document.getElementById(getid).scrollHeight - height)) *100);

		setTimeout('scroll_up(\'' + getid + '\', \'' + getids + '\', \'' + height + '\');', 50);
    }
	else
        scroll_break=1;
}

function scroll_down(getid,getids, height){
	if (scroll_break)
	{
		flashstopper(1);

		var scroll=document.getElementById(getid).scrollTop;
	
		if ((i-20)<=scroll)
			i=i+20;
		else if ((i-20)>scroll)
			i=scroll;

		document.getElementById(getid).scrollTop=i;
		
		document.getElementById(getids).style.top = ((height - 59)/100) * ((document.getElementById(getid).scrollTop/(document.getElementById(getid).scrollHeight - height)) *100);

		setTimeout('scroll_down(\'' + getid + '\', \'' + getids + '\', \'' + height + '\');', 50);
	}
    else
        scroll_break=1;
}

function scroll_breaker(){
    scroll_break=0;
	flashstopper(0);
}


function rf(){
  if (typeof(window.innerWidth) == "number") {
    intWidth = window.innerWidth;
    intHeight = window.innerHeight;

  } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
    intWidth = document.documentElement.clientWidth;
    intHeight = document.documentElement.clientHeight;
  } else if (document.body && (document.body.clientWidth || document.body.clientHeight)) {
    intWidth = document.body.clientWidth;
    intHeight = document.body.clientHeight;
  }
document.execCommand("Refresh");
}
window.onresize=rf;