// Newsletter popup
function newsPopup ()
{
	resultWindow = "http://www.hbo.com/newsletter/processing.html";
	window.open(resultWindow,'popup','width=360,height=400,toolbar=no,location=no,resizable=no,scrollbars=no,status=yes,left=10,top=10,screenX=10,screenY=10');
}


function WinOpen(height,width,url)
{
	window.open(
	url,
	"RegHelp",
	"toolbar=no,location=no,resizable=yes,scrollbars=yes,status=no,height="+height+",width="+width);
}


// omniture exit link
function send_to_omniture(myText) {
	var sendThis = "HBO: True Blood: AVL: Exit Link: " + myText; 
	//alert(sendThis);
	var s=s_gi(s_account);
	s.linkTrackVars='prop1,prop9,server';
	s.linkTrackEvents='None';
	s.server='hbo.com';
	s.prop1="HBO"
	s.prop9=sendThis;
	s.tl(this,'o',myText);
}


function trackLink(myText) {
	var s=s_gi(s_account);
	s.linkTrackVars='events,prop10,evar10';
	s.linkTrackEvents=myText;
	s.events=myText;
	s.eVar10="True Blood";
	s.prop10="True Blood";
	s.tl(this,'o',myText);
	//alert(myText);
}


function trackCustomLink(linkName) {
var s=s_gi(s_account);
s.linkTrackVars='server';
s.linkTrackEvents='None';
s.server='hbo.com';
s.tl(this,'o',linkName);
//alert(linkName);
}


// menu for today and last week clickable image and div layers
$(document).ready(function(){

$("#today").click(function () {
$("#lista").show();
$("#listb").hide();

this.src = "/img/season2/intolerance_include/today_on.gif"

$("#lastweek").attr("src","/img/season2/intolerance_include/last_week_off.gif");


});


$("#lastweek").click(function () {
$("#lista").hide();
$("#listb").show();

this.src = "/img/season2/intolerance_include/last_week_on.gif"
$("#today").attr("src","/img/season2/intolerance_include/today_off.gif");

});


});