function simpleTrack(_tag,_folder){
	
	if(_tag == "Home+Trailer1+25%"){
		changeIframe("trailer_nt_keywords_25");
	}
	
	if(_folder == null){
		//_hbflash(_tag,'n','n','n');
		var googletrack = _tag;
	}else{
		//_hbPageView(_tag, "/" +_folder);
		var googletrack = "/" +_folder + "/" + _tag;	
	}
		
	//setTimeout("urchinTracker('" + googletrack + "')", 1000);	
}

function doPopup (sUrl, nWidth, nHeight, sWindowName) {
	window.open(sUrl,sWindowName,'width=' + nWidth + ',height=' + nHeight + ',scrollbars=0,resizable=1');
}
/*function simpleTrack (sID) {
	
	// disney tracking code
	_hbflash(sID,'n','n','n');
	
	// google tracking code
	setTimeout("urchinTracker('" + sID + "')", 1000);

	// example of warners tracking code
	setTimeout("_hbPageView('" + sID + "','/uk/Lady+in+the+Water/Look+in+the+Water')", 2000);

}

function popUpAndTrack (sID, sUrl, nWidth, nHeight, sType) {

	// and the opening of the link
	if(sType == "_self"){
		
		document.location = sUrl;
		
	}else{
		window.open(sUrl,"project_window",'width=' + nWidth + ',height=' + nHeight + ',scrollbars=1,resizable=1');
	}
	
	setTimeout('simpleTrack(\''+sID+'\')',2000);

}

*/	

function mailtoAndTrack (sID, sBody, sSubject) {
	
	// and the opening of the mail window
	document.location = "mailto:?body=" + sBody + "&subject=" + sSubject;
	
	simpleTrack(sID);
	
}

function changeIframe(ns){
	document.getElementById('convtrackingiframe').src = "conv_tracking/" + ns + ".html";
}