

function simpleTrack (sID) {

	//alert('track called:'+sID)
	
	// disney tracking code
	_hbflash(sID,'n','n','n');

	// google tracking code
	setTimeout("urchinTracker('" + sID + "')", 2000);

}

function popUpAndTrack (sID, sUrl, nWidth, nHeight, sType) {
 
	// and the opening of the link
	if(sType == "_self"){
		
		document.location = sUrl;
		
	}else{
		//window.open(sUrl,sID,'width=' + nWidth + ',height=' + nHeight + ',scrollbars=1,resizable=1');
		window.open(sUrl,'POTC3','width=' + nWidth + ',height=' + nHeight + ',scrollbars=1,resizable=1');
	}
	
	setTimeout('simpleTrack(\''+sID+'\')',2000);
}

function launchPopUp(sUrl, nWidth, nHeight,arg_scrollbars, arg_resizeable) {
	// and the opening of the link
		if(arg_scrollbars == null){
			var bScrollbars = 1;
		}else{
			var bScrollbars = arg_scrollbars;
		}
		if(arg_resizeable == null){
			var nResize = 1;
		}else{
			var bResize = arg_resizeable;
		}
		//window.open(sUrl,sID,'width=' + nWidth + ',height=' + nHeight + ',scrollbars=1,resizable=1');
		window.open(sUrl,'window','width=' + nWidth + ',height=' + nHeight + ',scrollbars='+bScrollbars+',resizable='+bResize);
}
	
function mailtoAndTrack (sID, sBody, sSubject) {
	
	// and the opening of the mail window
	document.location = "mailto:?body=" + sBody + "&subject=" + sSubject;
	
	simpleTrack(sID);
	
}

function conversionTrack(){
	document.getElementById('convtrackingiframe').src = "conv_tracking/trailer_30.html";
}
