$(document).ready(function () { //HTML DOM document is ready
	
	//open links in a new window - rel=external
	$("a[rel=external]").attr("target","_blank").each(function(n) {
		$(this).attr("title") !='' ? this.title=$(this).attr("title")+'. Opens in a new browser window.' : this.title='Opens in a new browser window.';
	});

	//image rollover
	$("a.roll").live('mouseover focus', function(event) {
		$(this).find('img').attr("src", $(this).find('img').attr("src").split('_f1').join('_f2'))
	}).livequery('mouseout blur', function(event) {/*mouseout*/
		$(this).find('img').attr("src", $(this).find('img').attr("src").split('_f2').join('_f1'))
	});	
	
	$(".relatedcontent .vidcol").live('mouseover focus', function(event) {	
		$(this).find('.navimage img').attr("src", $(this).find('.navimage img').attr("src").split('_f1').join('_f2'))
	}).livequery('mouseout blur', function(event) {/*mouseout*/
		$(this).find('.navimage img').attr("src", $(this).find('.navimage img').attr("src").split('_f2').join('_f1'))
	});

	var locationHash = window.location.hash;
	if(locationHash.length>0){
		if(locationHash.indexOf('#ref_')>-1){
			var referrerHash = locationHash.replace('#ref_','');
			s.tl(true,'o','Referrer : ' + referrerHash);
			//alert("omniture referrer: " + referrerHash);
		}
	}
	
	
});