//20110527yip


//document.write('<p class="tagline">Anything you send to us or do here could end up on TV &mdash; on Disney Channel!</p>');


// pulled from chrome/config.js
var theQuery = getQueryString(document); //getQueryString() function is in dc_methods.js
if(theQuery.culdesac == "true" || getCookie("dc_culdesac") == "true"){
	var noLinksChrome = true;
	var lgMinLinks = true;

	if(window.location.protocol == "https:"){
		setCookie("dc_culdesac", "true", null, null, null, true);
	}else{
		setCookie("dc_culdesac", "true", null);
	}
}else{
//	var legalFtrOpts = ["Register/Sign-In","http://transfer.go.com/cgi/transfer.dll?srvc=dis&goto=https://register.go.com/disneychannel/chooseAge?appRedirect="+document.location+"&name=dc_footer_register"];
//	var legalFtrLine1 = "For more information about parental controls, TV ratings or the V-chip, visit <a href=\"javascript:deliverPopDisclaimer('http://www.controlyourtv.org');void(0);\" class=\"footerStyle\" style=\"color:white\">www.ControlYourTV.org</a>"

	var cds="";
	if(document.getElementById('chrome')){
		if(document.getElementById('chrome').innerHTML.match(/cds=true/i)){ // if a site is using a cds chrome, make the reg link cds
			cds+='http://tv.disney.go.com/disneychannel/cdsredirect/?originalURL=';
			cds+=location.href;
			cds+='&destinationURL=';
		}
	}

	//document.write('<div style="margin:10px 0;">For more information about parental controls, TV ratings or the V-chip, visit <a href="javascript:deliverPopDisclaimer(\'http://www.controlyourtv.org\');void(0);" class="footerStyle" style="color:#');
	//if (typeof tagline_text_color == 'undefined') { document.write("000"); } else { document.write(tagline_text_color); }
	//document.write('">www.ControlYourTV.org</a></div>');
	//document.write('<div style="margin-bottom:10px;"><a href="'+cds+'https://register.go.com/disneychannel/chooseAge?appRedirect='+location.href+'" style="color:#000">Register/Sign-In</a></div>');

	var oScript=document.createElement("script");
	oScript.src = window.location.protocol+"//tv.disney.go.com/global/chrome/disclaimerCode.js";
	oScript.type = 'text/javascript';
	oScript.defer = true;
	document.getElementsByTagName('head').item(0).appendChild(oScript);
}
