document.write('	<div id="Layer_left_scroll_out">');
document.write('	<div id="Layer_left_scroll">');
document.write('	<div id="left_scroll">');
document.write('	<a href="download.asp"><img src="images/download.png" width="101" height="87" border="0"></a>');
document.write('	</div>');
document.write('	</div>');
document.write('	</div>');
document.write('<style>');
document.write('	#Layer_left_scroll_out {');
document.write('		width:100%;');
document.write('		height:50px;');
document.write('		position: absolute;');
document.write('		text-align: center;');
document.write('	}');
document.write('	#Layer_left_scroll {');
document.write('		width:800px;');
document.write('		text-align: left;');
document.write('	}');
document.write('	#left_scroll {');
document.write('		width:50px;');
document.write('		position: relative;');
document.write('		left: -98px;');
document.write('		text-align: left;');
document.write('	}');
document.write('</style>');

var s_bottom = 170;
var lastScrollY=0;
var diffY=0,percent=0,oH_Now=0;
var clientHeight = document.body.clientHeight;
	document.all.left_scroll.style.pixelTop = clientHeight-s_bottom;
	s_bottom = clientHeight / 2 + 45;
var old_clientHeight,new_clientHeight,new_clientWidth;
	old_clientHeight = 0;
	new_clientHeight = 0;
	
function heartBeat(){
		new_clientHeight = document.body.clientHeight;
		new_clientWidth = document.body.clientWidth;
		if(new_clientWidth<1000){
			document.all.left_scroll.style.pixelLeft=0;
		}else{
			document.all.left_scroll.style.pixelLeft=-98;
		}
		
		diffY=document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop;
		percent=.1*(diffY-lastScrollY);
		if(percent>0)percent=Math.ceil(percent);
		else percent=Math.floor(percent);
		
		document.all.left_scroll.style.pixelTop += percent;
		lastScrollY=lastScrollY+percent;
		
		if(new_clientHeight!=old_clientHeight){
			lastScrollY=0;
			document.all.left_scroll.style.pixelTop=new_clientHeight-s_bottom;
			old_clientHeight = new_clientHeight;
		}
}
window.setInterval("heartBeat()",5);



function correctPNG() 
    {
    for(var i=0; i<document.images.length; i++)
       {
    var img = document.images[i]
    var imgName = img.src.toUpperCase()
    if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
       {
    var imgID = (img.id) ? "id='" + img.id + "' " : ""
    var imgClass = (img.className) ? "class='" + img.className + "' " : ""
    var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
    var imgStyle = "display:inline-block;" + img.style.cssText 
    if (img.align == "left") imgStyle = "float:left;" + imgStyle
    if (img.align == "right") imgStyle = "float:right;" + imgStyle
    if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle  
    var strNewHTML = "<span " + imgID + imgClass + imgTitle
    + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
       + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
    + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
    img.outerHTML = strNewHTML
    i = i-1
       }
       }
}

correctPNG();