
function imageOn(i) {
	if (document.images) {
		document.images["btn" + i].src = onImgArray[i].src
	}
}
function imageOff(i) {
	if (document.images) {
		document.images["btn" + i].src = offImgArray[i].src
	}
}


function $leftPromo(lp){
	if (lp.href==null){ lp.href=lp.url; }
	addId=(lp.lid!=null)?' name="lid='+lp.lid+'"':'';
	lp.target=(lp.target!=null)?lp.target:"_self";
	document.writeln('<div class=promo_wrap>');
	document.writeln('	<img src="images/promo_top.gif" alt="" width="218" height="11" ><BR>');
	document.writeln('	<a href="'+lp.href+'"'+addId+' target="'+lp.target+'"><img src="'+lp.image+'" alt="'+lp.title+'" width="198" height="205" BORDER="0" /></A>');
	document.writeln('	<div class=promo_bot>');
	document.writeln('		<a href="'+lp.href+'"'+addId+' target="'+lp.target+'"><img src="images/dot.gif" alt="" width="30" height="20" BORDER="0" STYLE="float:right;margin:30px 0 0 0;" /></A>');
	document.writeln('		<div class=promo_bot_text><a href="'+lp.href+'"'+addId+' target="'+lp.target+'">'+lp.title+'</A><BR>'+lp.text+'</div>');
	document.writeln('	</div>');
	document.writeln('</div>');
}

function GOurl(url){
	url=url.replace(/ *$/mg,'').replace(/^ */mg,'');
	if (url.indexOf('http')==-1){ url="http://"+url; }
	window.open("http://home.disney.go.com/guestservices/disclaimers/redirect?destination="+escape(url));
}

function $pdfLink(inp) {
	document.writeln('<A HREF="'+inp.href+'" class="resources" TARGET="_blank" name="lid=download_pdf_'+inp.lid+'">'+inp.title+'</A><BR>');
}


function $extLink(inp) {
	cto2=new CTO();
	cto2.account="disneyeducationproducts"; 
	cto2.category="dcore"; 
	cto2.site="dep"; 
	cto2.property=""; 
	cto2.genre="";
	cto2.siteSection=inp.SiteSection; 
	cto2.pageName=inp.PageName;
	cto2.contentType=inp.ContentType;
	cto2.track();//Required. Do not remove.
}