// JavaScript Document
<!-- 
// Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)
var hasProductInstall = DetectFlashVer(6, 0, 65);

// Version check based upon the values entered above in "Globals"
var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

// Location visited after installation is complete if installation is required
var MMredirectURL = window.location;
var OriginalTitle = document.title;

// Stored value of document title used by the installation process to close the window that started the installation process
// This is necessary to remove browser windows that will still be utilizing the older version of the player after installation is complete
// DO NOT MODIFY THE FOLLOWING TWO LINES
document.title = document.title.slice(0, 47) + " - Flash Player Installation";
var MMdoctitle = document.title;


if ( hasProductInstall && !hasReqestedVersion ) {
  var productInstallOETags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
    + 'width="800" height="600"'
    + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
    + '<param name="movie" value="playerProductInstall.swf?MMredirectURL='+MMredirectURL+'&MMplayerType=ActiveX&MMdoctitle='+MMdoctitle+'" />'
    + '<param name="quality" value="high" /><param name="bgcolor" value="#3A6EA5" />'
    + '<embed src="playerProductInstall.swf?MMredirectURL='+MMredirectURL+'&MMplayerType=PlugIn" quality="high" bgcolor="#3A6EA5" '
    + 'width="800" height="600" name="detectiontest" aligh="middle"'
    + 'play="true"'
    + 'loop="false"'
    + 'quality="high"'
    + 'allowScriptAccess="sameDomain"'
    + 'type="application/x-shockwave-flash"'
    + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
    + '<\/embed>'
    + '<\/object>';
    document.write(productInstallOETags);   // embed the Flash Product Installation SWF
}
else if (hasReqestedVersion) {  // if we've detected an acceptable version
  document.title = OriginalTitle;
  
  var browserName=navigator.appName;
  if(browserName == "Netscape") {
    document.write('<table width="100%" height="100%"> '
	+'<object width="100%" height="100%" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '
    + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"> '
    + '<param name="movie" value="ShogherPreloader.swf" /> '
	+ '<param name="play" value="false" /> '
	+ '<param name="loop" value="false" /> '
	+ '<param name="menu" value="false" /> '
	+ '<param name="quality" value="best" />'
	+ '<param name="scale" value="exactfit" />'
	+ '<param name="devicefont" value="false" />'
	+ '<param name="bgcolor" value="#0000ff" />'
	+ '<embed src="ShogherPreloader.swf" ' 
    + ' menu="false" quality="best" scale="exactfit" bgcolor="#0000ff" '
    + ' width="100%" height="100%" name="SSPreloader" '
    + 'play="true" '
    + 'loop="false" '
    + 'allowScriptAccess="sameDomain" '
    + 'type="application/x-shockwave-flash" '
    + 'pluginspage="http://www.macromedia.com/go/getflashplayer"> '
    + '<\/embed>'
    + '<\/object>'
	+ '<\/table>');
	}
	else {
	document.write('<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">\n'
	+'<tr> <td width="100%" height="100%" valign="top">\n'
	+'<object width="100%" height="100%" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
    +' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">\n'
    +'<param name="allowScriptAccess" value="sameDomain" />\n'
    +'<param name="movie" value="ShogherPreloader.swf" />\n'+
    +'<param name="play" value="false" />'
    +'<param name="menu" value="false" />\n'
    +' <param name="quality" value="best" />\n'
	+' <param name="loop" value="false" />'
	+ '<param name="scale" value="exactfit" />'
	+ '<param name="devicefont" value="false" />'
    +' <param name="devicefont" value="false" />\n'
	+ '<param name="bgcolor" value="#0000ff" />'
    + '<embed src="ShogherPreloader.swf" ' 
    + ' menu="false" quality="best" scale="exactfit" bgcolor="#0000ff" '
    + ' width="100%" height="100%" name="SSPreloader" '
    + 'play="true" '
    + 'loop="false" '
    + 'allowScriptAccess="sameDomain" '
    + 'type="application/x-shockwave-flash" '
    + 'pluginspage="http://www.macromedia.com/go/getflashplayer"> '
    + '<\/embed> '
   +'</object>\n'
   +'</td></tr></table>');
	}
  } else {  // flash is too old or we can't detect the plugin
    var alternateContent =
	  '<blockquote> '
	+ ' <a href="http://www.shogher.com" target="_self"><img src="SSLogo.png" alt="shogher.com" width="266" height="84" border="0"/></a>'
	+ '<h3><font color="#0000ff" face="Arial, Helvetica, sans-serif">Ooops! You do not have the latest version of Adobe Flash Player.</font>'
	+ '</h3> <font face="Arial, Helvetica, sans-serif">'
    + '<table width="60%"> <tr>'
    +'<td colspan="2"><p />'
	+'<font face="Arial, Helvetica, sans-serif"><a href="http://www.shogher.com" target="_self">shogher.com</a> makes use of <a href="http://www.macromedia.com/software/flash/" target="_blank">'
	+'Adobe<sup><font size="-1">&reg;</font></sup>Flash<sup><font size="-2">TM</font></sup>'
	+'</a> software. You either do not have Adobe Flash Player installed, or have an old version that cannot play the content we\'ve created.'
	+'</font></td></tr> <tr> <td>'
	+'<a href="http://www.macromedia.com/go/getflashplayer" target="_self"><img src="alternate.gif" border="0" width="88" height="31" /></a> </td>'
	+'<td><p />'
	+'<font face="Arial, Helvetica, sans-serif">Why not <a href="http://www.macromedia.com/go/getflashplayer" target="_self">install</a>  the latest version now? It will only take a moment!!!'
	+'</font> </td></tr></table></font> <p />'
	+'<font face="Arial, Helvetica, sans-serif" SIZE="-2">Adobe and Flash are trademarks of Adobe, Inc.</font>'
	+'</blockquote>';
    document.write(alternateContent);  // insert non-flash content
  }
// -->
