//use this file for js 
function simpleTrack (sID) {
	
	cto.initFlashPV();
	cto.pageName=sID;
	cto.siteSection=ctoMap + sID;	
	cto.trackFlashPV(); 

}


//generic pop up
function launchUpload(loc,w,h){
	var id = Math.round(Math.random()*1000);
	var numW = Number(w);
	var numH = Number(h);
	window.open(loc, id,"width="+numW+", height="+numH+", left=100, top=100, scrollbars=auto, toolbar=no, location=no, status=no, menubar=no, resizable=yes");
}

function DoCommand(pid){

IURCommand(
/* target_url          */  	 "http://registration.disney.co.uk",  
/* task               */      "login",
/* promotion_id    		*/	 pid,
/* bu                   */   "", 
/* next_url        */       	 "none", 
/* country           */     	 "",  
/* member_name			*/	 "",  
/* password          	*/	 ""
);
}


/* Smooth scrolling
   Changes links that link to other parts of this page to scroll
   smoothly to those links rather than jump to them directly, which
   can be a little disorienting.

   sil, http://www.kryogenix.org/

   v1.0 2003-11-11
   v1.1 2005-06-16 wrap it up in an object
*/
function pageJump(){
	window.scrollTo(0, 0);
}



function doPopup (sUrl, nWidth, nHeight, sWindowName) {
	window.open(sUrl,sWindowName,'width=' + nWidth + ',height=' + nHeight + ',scrollbars=1,resizable=1');
}
	

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";
}
	

