

	//--------------------------------------------------------------------------
	//
	// Tracking
	//
	//--------------------------------------------------------------------------
	
	var lastPage;
	
	function track(pageURL)
	{
		//alert(pageURL);
		if(pageURL != lastPage)
		{
			lastPage = pageURL;
			
			pageURL = "Little People " + pageURL;
			document.frmDebug.output.value += "\n track: " + pageURL;
			document.frmDebug.output.scrollTop = document.frmDebug.output.scrollHeight;
		
			var myTrackObject = new Object();
			myTrackObject.campaign = MATTEL.tracker.CHANNEL.NONE; 			//channel parameter should be set to NONE always
			myTrackObject.channel = MATTEL.tracker.CAMPAIGN.LITTLEPEOPLE; 	//Campaign should be Little People
			myTrackObject.action= MATTEL.tracker.ACTION.VIEW; 				//Action should be VIEW for page views
			myTrackObject.name= pageURL;
			
			//call track method now  
			MATTEL.tracker.Tracker.track(myTrackObject );		
		}
	}

	//--------------------------------------------------------------------------
	//
	// Utility methods
	//
	//--------------------------------------------------------------------------

	function openLPDoc(url, isPDF)
	{
		//alert(url + " isPDF=" + isPDF);
		//might need to handle PDF's differently
		if(isPDF == true)
		{
  			pdfWindow = window.open(url,'pdfWindow','left=20,top=20,width=1024,height=768,toolbar=0,resizable=1,status=1,menubar=0,location=0,scrollbars=1');
			pdfWindow.focus()
		}
		else
		{
 			htmlWindow = window.open(url,'htmlWindow','left=20,top=20,width=680,height=500,toolbar=0,resizable=1,status=1,menubar=0,location=0,scrollbars=1');
			htmlWindow.focus()
		}
	}
	

