// Duncan hack, get the entire path, turn /s to -s 
// strip extension and add that as an id to the body
// so we can target specific pages in the styles if we need to
// www.blah.com/this/that/whatever.html -> body id="this-that-whatever"
// or body id="home-page" if at root / 

var pathname = window.location.pathname.toLowerCase();
var pathSlashesReplaced = pathname.replace(/\//g, "-");
var pathSlashesReplacedNoFirstDash = pathSlashesReplaced.replace("-","");
var newID = pathSlashesReplacedNoFirstDash.replace(/(\.[\s\S]+)/ig, "");

$("body").attr("id",newID);
if ( $("body").attr("id") == "")
{
    $("body").attr("id","home");
}

/*setTimeout("countdownPopup()",3000);

function countdownPopup()
{
	showPanel('#panel-more-5');
}

function doCountdown(){
	document.write('<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="400" height="300"><param name="movie" value="/upload/27868/yhl3.swf" /><param name="quality" value="high" /><param name="wmode" value="opaque" /><param name="swfversion" value="6.0.65.0" /><!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. --><param name="expressinstall" value="/upload/1224/expressInstall.swf" /><!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. --><!--[if !IE]>--><object type="application/x-shockwave-flash" data="/upload/27868/yhl3.swf" width="400" height="300"><!--<![endif]--><param name="quality" value="high" /><param name="wmode" value="opaque" /><param name="swfversion" value="6.0.65.0" /><param name="expressinstall" value="/upload/1224/expressInstall.swf" /><!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. --><div><h4>Content on this page requires a newer version of Adobe Flash Player.</h4><p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p></div><!--[if !IE]>--></object><!--<![endif]--></object>');
}*/
