var contentVersion = 9;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;

if ( plugin ) {
	var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	for (var i = 0; i < words.length; ++i) {
		if (isNaN(parseInt(words[i])))
		continue;
		var PluginVersion = words[i]; 
	}
	var FlashCanPlay = PluginVersion >= contentVersion;
	
}else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write( '<SCR' + 'IPT LANGUAGE="VBScript"\>'+"\n");
	document.write( 'on error resume next '+"\n");
	document.write( 'FlashCanPlay = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & contentVersion)))' + "\n");
	document.write('<'+'/SCR' + 'IPT\>'+"\n");
}

function loadMovie(fname, bgcolor, imgname) {
	if (FlashCanPlay) {
		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="320" height="265" id="main" align="middle">');
		document.write('<param name="allowScriptAccess" value="always" />');
		document.write('<param name="allowFullScreen" value="false" />');
		document.write('<param name="menu" value="false" />');
		document.write('<param name="movie" value="' + fname +'" />');
		document.write('<param name="quality" value="high" />');
		document.write('<param name="bgcolor" value="' + bgcolor + '" />');
		document.write('<embed src="' + fname +'" quality="high" bgcolor="' + bgcolor + '" menu="false" width="320" height="265" name="main" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
		document.write('</object>');
	} else{
		
	}

}

var scrj = 1;
function PageTop() {
   if(navigator.appName == "Microsoft Internet Explorer" && document.compatMode == "CSS1Compat") {
      var scdist = document.body.parentNode.scrollTop;
   } else {
      var scdist = document.body.scrollTop;
   }
   if(scrj<50 && scdist) {
      scdist = (scdist>2) ? Math.ceil(scdist*.2) : 1;
      scrj++;
      scrollBy(0,-scdist);
      setTimeout("PageTop()",20);
   } else {
      scrollTo(0,0);
      scrj = 1;
   }
			
}

