var Agent	= navigator.userAgent.toLowerCase();

var sobj  = null;
var step  = 6;
var scroll_timerId = null;
function scroll(d,h)
{
	switch(d)
	{
		case 1:
			if (sobj.style.top=='') sobj.style.top = 0;
			if (parseInt(sobj.style.top)<=h-sobj.clientHeight){
				scrollbox_stop();	
				return;
			}
			sobj.style.top = parseInt(sobj.style.top) - 2;
			break;
		case 2:
			if (parseInt(sobj.style.top)>=0){
				scrollbox_stop();	
				return;
			}
			sobj.style.top = parseInt(sobj.style.top) + 2;
			break;
	}
}
			
function scrollbox_start(d,o,h){
	if (sobj==null){
		sobj = document.getElementById(o);
		if ( Agent.indexOf('msie') != -1) sobj.style.height='0';
	}
	if (scroll_timerId==null) scroll_timerId = setInterval("scroll("+d+','+h+")",10);
}

function scrollbox_stop(){
	clearInterval(scroll_timerId)
	scroll_timerId=null
}

function openPictureWindow_Fever(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop) {  // v4.01
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	if (imageType == "swf"){
	newWindow.document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('<param name=movie value=\"'+imageName+'\"><param name=quality value=high>');
	newWindow.document.write('<embed src=\"'+imageName+'\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('</embed></object>');	}else{
	newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\">'); 	}
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

