
// this is what gets run when the page loads
$(document).ready(function(){

	if(PC.isEditMode){ return; }	// we want it to be fast

    // handle barker list types without overlays
    PC.makeBlockAnchors(".barkerList dl:not(.disabled)", "mouseover");	// pass in jquery selector and hover css class
    
    // handle barker list types with overlays
    PC.makeBlockAnchorsWithOverlays(".barkerBlockPromo dl:not(.disabled)", "mouseover");	// pass in jquery selector and hover css class
    PC.makeBlockAnchorsWithOverlays(".barkerBlockLP dl:not(.disabled)", "mouseover");	// pass in jquery selector and hover css class

    
	// inject the logo with flash that shows the air date.  the PC.currentDateKey will be passed to the flash
	// only do it if there is a currentDateKey
	if(PC.currentDateKey){
		
		var headerIdentityDiv2 = document.getElementById("headerIdentityDiv2");
		var file = "http://www.bet.com/Assets/BET/Published/application/x-shockwave-flash/cf0d0838-4c9b-dd58-3ecc-0be0a59b8a0a-BH08ToptDate.swf";
		var html = "<div style=\"width:379px;height:56px;position:relative;left:546px;top:3px;z-index:1;\">";
		html += PC.getFlashHtml(400, 72, file, 8, "", FlashWMode.Transparent, "", true, true);
		html += "</div>";	
		headerIdentityDiv2.innerHTML = html;
		
	}
	
	// on the comments hr element, we need to add a div to get the faded line
	$("div.commentsDiv hr").replaceWith("<div class=\"hrDiv\"></div>");
	
	
	
	
	
});


// set the currentDateKey based on a DateMap
// setup a DateMap to map the current date to a mappedValue.  this will be passed into the flash items.
var dateMap = new DateMap();
dateMap.addMapBegin("0");	// no start date means it is already started
dateMap.addMapBegin("1", 2008, 2, 22, 22, 0, 0);
dateMap.addMapBegin("2", 2008, 2, 23, 23, 0, 0);
dateMap.addMapBegin("3", 2008, 2, 24, 12, 0, 0);
// below is how to add an item with an endDate
var item = dateMap.addMapBegin("4", 2008, 2, 24, 23, 0, 0);
item.setEndDate(2008, 2, 28, 22, 0, 0);   // add the endDate

// set the currentDateKey of the PageController.  this will be passed in to the flash.
PC.currentDateKey = dateMap.getValue(PC.originServeDate);









