
//video detective
function mv(id)
{
  //window.open(id,'Player','width=750,height=394');
	window.open(id, 'trailer', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,resizable=0,width=750,height=394');
}

function fixDate(date) {
  var base = new Date(0);
  var skew = base.getTime();
  if (skew > 0)
    date.setTime(date.getTime() - skew);
}

// BEGIN MENU BAR SCRIPT
function initMenu() {
	var oMenuItems = document.getElementById("header_menu").getElementsByTagName("a");
	for (var i=0;i<oMenuItems.length;i++) {
		var oItem = oMenuItems[i];
		oItem.style.backgroundImage='url(/img/menu_bar/'+oItem.id+'.gif)';
		oItem.onmouseover = function () {this.style.backgroundPosition='top center';}
		oItem.onmouseout = function () {this.style.backgroundPosition='0px -100px';}

		if (navigator.userAgent.indexOf("Opera")>=0) {
			if (oItem.id.indexOf("sub_menu")>=0) {
				oItem.onmouseover = function () {this.style.backgroundPosition='center -5px';}
			} else {
				oItem.onmouseover = function () {this.style.backgroundPosition='top center';}
			}
		}

		if (navigator.userAgent.indexOf("Safari")>=0) {
			oItem.style.backgroundImage=''
			oItem.style.backgroundPosition='0px 0px'
			oItem.onmouseover = function () {this.style.backgroundImage='url(/img/menu_bar/'+this.id+'.gif)'}
			oItem.onmouseout = function () {this.style.backgroundImage=''}
		}
	}
}

function toggleSub() {
	var oSub = document.getElementById('header_sub_menu');
	if (oSub.style.display=='block') {
		oSub.style.display = 'none';
	} else {
		oSub.style.display = 'block';
	}
}
// END MENU BAR SCRIPT