﻿function GoTo(pageName)
{
   window.location.href = pageName;
}

function ChangeDivClass(divMenuItem, sClassName)
{
   if (divMenuItem != null) divMenuItem.className = sClassName;
}

function showFlash(path, name, width, height)
{
   var MM_contentVersion = 6;
   var MM_FlashCanPlay = false;
   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 MM_PluginVersion = words[i]; 
	      }
	   MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
   }
   else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) {
	   var flash;
	   try
	   {
	      flash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + MM_contentVersion);
	      MM_FlashCanPlay = (flash != null); 
	   }
	   catch(exception)
	   {
	      MM_FlashCanPlay = false;
	   }
   }
   if ( MM_FlashCanPlay ) {
	   document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	   document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
	   document.write(' ID="' + name + '" width="' + width + '" height="' + height + '" align="">');
	   document.write(' <param name="movie" value="' + path + name + '.swf" /> <param name="menu" value="false" /> <param name="quality" value="high" /> <param name="bgcolor" value="#FFFFFF" />  '); 
	   document.write(' <embed src="' + path + name + '.swf" menu="false" quality="high" bgcolor="#FFFFFF"  ');
	   document.write(' swLiveConnect="FALSE" width="' + width + '" height="' + height + '" name="' + name + '" align=""');
	   document.write(' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">');
	   document.write(' </embed>');
	   document.write(' </object>');
   }
   else {
	   document.write('<img src="/' + path + name + '.jpg" width="'+ width + '" height="' + height + '" usemap="#' + name + '" border="0" />');
   }
}

