
// 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(".whatsHotList dl:not(.disabled)", "mouseover");	// pass in jquery selector and hover css class
    //PC.makeBlockAnchors(".barkerBlockList dl:not(.disabled)", "mouseover");	// pass in jquery selector and hover css class
    //PC.makeBlockAnchors(".barkerBlockExtended dl:not(.disabled)", "mouseover");	// pass in jquery selector and hover css class
    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.  do it all the time.  the flash piece will handle the null value.
	//if(PC.currentDateKey){
		var headerIdentityDiv2 = document.getElementById("headerIdentityDiv2");
		var file = "http://www.bet.com/Assets/BET/Published/application/x-shockwave-flash/d32767c5-fb6d-b3ce-c704-ac2cc859263e-COGTopLeftDate.swf";
		var html = "<div style=\"width:162px;height:32px;position:relative;left:20px;top:115px;z-index:1;\">";
		html += PC.getFlashHtml(162, 32, 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, 1, 27, 22, 0, 0);
dateMap.addMapBegin("2", 2008, 2, 3, 11, 0, 0);
// below is how to add an item with an endDate
var item = dateMap.addMapBegin("3", 2008, 2, 9, 11, 0, 0);
item.setEndDate(2008, 2, 17, 12, 0, 0);   // add the endDate

// set the currentDateKey of the PageController
PC.currentDateKey = dateMap.getValue(PC.originServeDate);



// handle the survey for international users
//if(Util.getIsPossiblyInternational()){
	//PC.writeJavaScriptInclude("http://www.questionpro.com/akira/JavaScript?id=866491");
//}







