// ===========================================
// = Initialize MillerCoors Shared Framework =
// ===========================================

var mcf = new mcFramework('wrapper','av_container');
mcf.mcSetContentDisplay('block');
mcf.mcSetSiteCode('mlfbph');
//mcf.mcSetAVContent('Please enter your date of birth to continue.');
//mcf.mcSetCallbackFunction(initPage);
mcf.mcSetAVTag(avtag);
mcf.mcSetAVFailTag(avfailtag);
//mcf.mcSetAVFailForward(false); //Uncomment this line to temporarily disable forwarding to thecoolspot.com

// ================================
// = AV and AV Fail Tag Functions =
// ================================

function avtag() {
	//trackPage('pagename=2009 MGD64 AV: Home,channel=2009 MGD64 AV,floodlight=mgd64263');
}

function avfailtag() {
	//trackPage('pagename=2009 MGD64 AV: Fail,channel=2009 MGD64 AV');
}

// ===========================
// = Home Page Nav Rollovers =
// ===========================
$(document).ready(function(){
	$('#home_nav_phlite_deck img').hover(function() {
		$(this).attr("src","images/home/home_nav_phlite_deck_over.jpg");
			}, function() {
				$(this).attr("src","images/home/home_nav_phlite_deck.jpg");
	});
	$('#home_nav_tickets img').hover(function() {
		$(this).attr("src","images/home/home_nav_tickets_over.jpg");
			}, function() {
				$(this).attr("src","images/home/home_nav_tickets.jpg");
	});
	$('#home_nav_events img').hover(function() {
		$(this).attr("src","images/home/home_nav_events_over.jpg");
			}, function() {
				$(this).attr("src","images/home/home_nav_events.jpg");
	});
	$('#home_nav_ambass img').hover(function() {
		$(this).attr("src","images/home/home_nav_ambass_over.jpg");
			}, function() {
				$(this).attr("src","images/home/home_nav_ambass.jpg");
	});
	$('#home_nav_photos img').hover(function() {
		$(this).attr("src","images/home/home_nav_photos_over.jpg");
			}, function() {
				$(this).attr("src","images/home/home_nav_photos.jpg");
	});
});

jQuery.preloadImages = function()
{
  for(var i = 0; i<arguments.length; i++)
  {
    jQuery("<img>").attr("src", arguments[i]);
  }
}

function launchGame() {
	var win = window.open( "game/game.html","Game" + name,"toolbar=0,menubar=0,width=728,height=300,status=0,resizable=0,scrollbars=0" );
}

function launchRules() {
	var win = window.open( "popup/sweeps_rules.html","Game" + name,"toolbar=0,menubar=0,width=728,height=550,status=0,resizable=0,scrollbars=1" );
}
