function DrawImage(ImgD,FitWidth,FitHeight){
       var image=new Image();     
	   image.src=ImgD.src;     
	   if(image.width>0 && image.height>0){         
	   if(image.width/image.height>= FitWidth/FitHeight){             
	   if(image.width>FitWidth){                 
	   ImgD.width=FitWidth;                 
	   ImgD.height=(image.height*FitWidth)/image.width;             
	   }else{                 
	   ImgD.width=image.width;
	   ImgD.height=image.height;             
	   }         } else{             if(image.height>FitHeight){                 ImgD.height=FitHeight;                 ImgD.width=(image.width*FitHeight)/image.height;             }else{                 ImgD.width=image.width;                 ImgD.height=image.height;             }         }     } }


if (top.location !== self.location) {
top.location=self.location;
}


// JavaScript Document
function playswf(sFile,sWidth,sHeight){
 document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+ sWidth +'" height="'+ sHeight +'">  ');
 document.write(' <param name="movie" value="'+ sFile +'" />  ');
 document.write(' <param name="quality" value="high" />  ');
 document.write(' <param name="wmode" value="transparent" />  ');
 document.write(' <param name="wmode" value="opaque" />  ');
 document.write(' <embed src="'+ sFile +'" width="'+ sWidth +'" height="'+ sHeight +'" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="opaque"></embed>  ');
 document.write('</object> ');
}

function SameH(leftDiv,rightDiv)
{
var a=document.getElementById(leftDiv);
var b=document.getElementById(rightDiv); 
if (a.scrollHeight < b.scrollHeight)
{
a.style.height= b.scrollHeight-40+"px";
}
else
{
b.style.height= a.scrollHeight+"px";
}
}


/******************×Ô¶¯¹öÆÁ***************/
/*´úÂëÊ¾Àý*/
//document.onmousedown=sc
//document.ondblclick=initialize
/********/
var timer;
function initialize()
{
	timer=setInterval ("scrollwindow ()",30);
}

function sc()
{
	clearInterval(timer);
}

function scrollwindow()
{
	var currentpos;
	currentpos=document.body.scrollTop;
	window.scroll(0,++currentpos);
	if (currentpos !=document.body.scrollTop) {sc();}
}
/****************************************/

