	var agt=navigator.userAgent.toLowerCase();
	var is_mac = (agt.indexOf("mac")!=-1);
	var is_ie5 = (agt.indexOf("msie 5")!=-1);
	if (is_mac && is_ie5) {
		document.write('<link rel="stylesheet" type="text/css" href="http://extranet.silveroven.com/beta/washpostco/styles/machack.css">');
	}
	
	/* This function should be used for all image rollover effects */

	function changeImage(imageName,newImageSource) {
		if (document.images) {
			document.images[imageName].src = newImageSource;
		}
	}

	/* This function is used when you want to have browsers that do not 
	have flash player installed write an image file instead */
	
	function writeFlashOrImage(FlashName,ImageName,Width,Height,Alt,FlashVersion) {
		// first, write the opening object tag  
	
		strObjectTag = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
		strObjectTag = strObjectTag + ' width="' + Width + '" height="' + Height + '" ';
		strObjectTag = strObjectTag + 'codebase="http://active.macromedia.com/flash5/cabs/swflash.cab#version=';
		strObjectTag = strObjectTag + FlashVersion + '">';
		strMovieParam = '<param name="movie" value="' + FlashName + '">';
		document.write(strObjectTag);
		document.write(strMovieParam);
		document.write('<param name=\"menu\" value=\"false\">');
		document.write('<param name=\"quality\" value=\"high\">');
		document.write('<param name=\"bgcolor\" value=\"#000000\">');
	
		// if the Flash Plug-in is installed and a browser than user plug-ins is the browser, write an embed tag
		plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
			strImageTag = '<image src="' + ImageName + '" width="' + Width + '" height="' + Height + '" ';
			strImageTag = strImageTag + ' border="0" alt="' + Alt + '">';
		if ( plugin && parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 4 )
			{
			strEmbedTag = '<embed src="' + FlashName + '" width="' + Width + '" height="' + Height + '" ';
			strEmbedTag = strEmbedTag + 'play="true" loop="true" quality="high" ';
			strEmbedTag = strEmbedTag + 'pluginspace="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">';
			document.write(strEmbedTag);
			document.write('</embed>');
			}
		// otherwise, then write an image tag.
		else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)){
			document.write(strImageTag);
			}
		
		//finally, write the closing object tag
		document.write('</object>');
	}
	
	
	/* Use this function to open new windows in a browser */
	
	function openNewWindow(URL,windowName,optionList) {
		/* Opens a new window based on following parameters
			URL: A full URL to the site or file you wish to open
			windowName: The name of the Window that JS assigns when creating
			optionList: (Optional)--list of options for the pop-up window
		*/
		optionListValue = optionList;
		// Assign a Default Set of Parameters if the optionList does not exist
		if ((optionListValue == '') || (optionList == null)) {
			optionListValue = 'scrollbars=yes,location=yes,menubar=yes,toolbar=yes,resizable=yes,status=yes,locationbar=yes';
		}
		winOpener = window.open(URL,windowName,optionListValue);
		winOpener.focus();
	}
	
	function loadTopFrame(URL) {
		top.document.location = URL
	}

	function popupWindow(URL,windowName,optionList) {
		/* Opens a new window based on following parameters
			URL: A full URL to the site or file you wish to open
			windowName: The name of the Window that JS assigns when creating
			optionList: (Optional)--list of options for the pop-up window
		*/
		optionListValue = optionList;
		// Assign a Default Set of Parameters if the optionList does not exist
		if ((optionListValue == '') || (optionList == null)) {
			optionListValue = 'height=300,width=270,scrollbars,location=no,menubar,toolbar=no,resizable=no,status=no,locationbar=no';
		}
		winOpener = window.open(URL,windowName,optionListValue);
		winOpener.focus();
	}
	
	function loadTopFrame(URL) {
		top.document.location = URL
	}

function randomPromo()
	{

	var randomValue = Math.floor(Math.random() * 5);
	
	switch (randomValue) {
		case 0:
			//document.write('<div><img src=\"http://media.corporate-ir.net/media_files/irol/62/62487/redesign09/images/home-logo_kaplan.gif\" width=\"112\" height=\"24\" alt=\"\" /></div>'); 
			document.write('<p><a href=\"http://www.kaplan.com\" target=\"_blank\" class=\"bold\">Kaplan, Inc.</a> is one of the nation\'s premier providers of educational and career services for individuals, schools and businesses.<br />')
			document.write('<a href=\"phoenix.zhtml?c=62487&p=irol-businesseducation\" class=\"bold\">Learn more</a></p>');
			break;
		case 1:
			//document.write('<div><a href="http://216.53.204.10/ap/naa/washington_post.asx">Mid-Year Media Review Webcast 6/22/04.</a> </div>'); 
			//document.write('<div><img src=\"http://media.corporate-ir.net/media_files/irol/62/62487/redesign09/images/home-logo_cableone.gif\" width=\"112\" height=\"24\" alt=\"\" /></div>'); 
			document.write('<p><a href=\"http://www.cableone.net\" target=\"_blank\" class=\"bold\">Cable One</a> provides digital, internet and cable modem services to subscribers in western, midwestern and southern states. <br />')
			document.write('<a href=\"phoenix.zhtml?c=62487&p=irol-businesscable\" class=\"bold\">Learn more</a></p>');
			break;
		case 2:
			//document.write('<div><a href="http://216.53.204.10/ap/naa/washington_post.asx">Mid-Year Media Review Webcast 6/22/04.</a> </div>'); 
            //document.write('<div><img src=\"http://media.corporate-ir.net/media_files/irol/62/62487/redesign09/images/home-logo_newsweek.gif\" width=\"112\" height=\"24\" alt=\"\" /></div>'); 
			document.write('<p><a href=\"http://newsweek.msnbc.com\" target=\"_blank\" class=\"bold\">Newsweek</a>, Award-winning weekly news magazine, published around the world and headquartered in New York City. <br />')
			document.write('<a href=\"phoenix.zhtml?c=62487&p=irol-businessmagazines\" class=\"bold\">Learn more</a></p>');
			break;
		case 3:
			//document.write('<div><a href="http://216.53.204.10/ap/naa/washington_post.asx">Mid-Year Media Review Webcast 6/22/04.</a> </div>'); 
			//document.write('<div><img src=\"http://media.corporate-ir.net/media_files/irol/62/62487/redesign09/images/home-logo_wpni.gif\" width=\"142\" height=\"24\" alt=\"\" /></div>'); 
			//document.write('<p><a href=\"http://www.wpni.com\" target=\"_blank\" class=\"bold\">WPNI</a> The company\'s online publishing subsidiary, headquartered in Arlington, VA. WPNI\'s mission is to develop the company\'s editorial products and businesses on the web. <br />')
			//document.write('<a href=\"phoenix.zhtml?c=62487&p=irol-businessinteractive\" class=\"bold\">Learn more</a></p>');
			//break;
		case 4:
			//document.write('<div><a href="http://216.53.204.10/ap/naa/washington_post.asx">Mid-Year Media Review Webcast 6/22/04.</a> </div>'); 
			//document.write('<div><img src=\"http://media.corporate-ir.net/media_files/irol/62/62487/redesign09/images/home-logo_pnw.gif\" width=\"122\" height=\"24\" alt=\"\" /></div>'); 
			document.write('<p>Post-Newsweek Stations, Owner and operator of six VHF television stations.<br />')
			document.write('<a href=\"phoenix.zhtml?c=62487&p=irol-businessbroadcasting\" class=\"bold\">Learn more</a></p>');
			break;
			}
	}
