$(document).ready(function() {

$("#nav .button img").hover(
 function()
 {
  this.src = this.src.replace("_off","_on");
 },
 function()
 {
  this.src = this.src.replace("_on","_off");
 }
);



switch (true){  
case $.browser.mozilla : 
$("#nav").css('margin-left','-24px');
$("#nav").css('margin-top','-5px');
break; 
case $.browser.msie : 
$("#nav").css('margin-left','15px');
$("#nav").css('margin-top','-5px');
break;
case $.browser.safari : 
$("#nav").css('margin-left','-25px');
$("#nav").css('margin-top','5px');
$("#nav").css('margin-bottom','5px');
break; 
}






});



// 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 send_to_omniture(myText) {
	var sendThis = "HBO: True Blood: FOS: 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.t(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);
}


function WinOpen(height,width,url)
{
	window.open(
	url,
	"RegHelp",
	"toolbar=no,location=no,resizable=yes,scrollbars=yes,status=no,height="+height+",width="+width);
}

