/*JavaScript File
 *Browser Compatibility / Flash
 *Date: 03/19/08
 *Last Update: 03/19/08
*/

   function detectBrowser(){
	    var browserType;
		
		if(navigator.userAgent.indexOf("MSIE") != -1){
		     browserType = "IE";  
		}
		else if(navigator.userAgent.indexOf("Firefox") != -1){
		    browserType = "Firefox";
		}
		else{
		    browserType = "Other";
		}	
		//alert(navigator.userAgent);
		return browserType;
	}
	
	// Pass the name of a plug-in for this function to see
    // if the plug-in is registered with this browser and
    // that it is enabled for at least one MIME type of any kind.
   function pluginIsReady(plug_in) {
          plug_in = plug_in.toLowerCase();
          for (var i = 0; i < navigator.plugins.length; i++) {
            if (navigator.plugins[i].name.toLowerCase().indexOf(plug_in) != -1) {
              for (var j = 0; j < navigator.plugins[i].length; j++) {
                  if (navigator.plugins[i][j].enabledPlugin) {
					  return true;
                 }
              }
			  return false;
            }
          }
          return false;
    }

  
  function flashAds(fileName){
        document.write ("<table align='center' width='100%' border='0' cellpadding='0' cellspacing='0'>");
        document.write ("<tr valign='top'>");
		document.write ("<td>");
     	document.write ("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='300' height='300'>");
  		document.write ("<param name='movie' value='../filerep/bdo/flash/hk_flash.swf'>");
  		document.write ("<param name='quality' value='high'>");		
		document.write ("<param NAME='wmode' VALUE='transparent'>");
  		document.write ("<embed src='../filerep/bdo/flash/hk_flash.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='300' height='300' wmode='transparent'></embed>");
  		document.write ("</object>");
		document.write ("</td>");
		document.write ("</tr>");
		document.write ("</table>");
  }
  
  function classicAds(){
        document.write ("<table align='center' width='100%' border='0' cellpadding='0' cellspacing='0'>");
        document.write ("<tr valign='top'>");
		document.write ("<td><img src='images/562.png' border='0'></td>");
        document.write ("</tr>");
		document.write ("<tr align='center'>");
		document.write ("<td><font face='Verdana' size='1' color:'#CCCCCC'>Flash is not installed or enabled</font></td>");
		document.write ("</tr>");
		document.write ("</table>");
  }
