<!-- Disney Footer -->
if (!window.footer_div) footer_div = "disney-footer";
if (!window.footer_geotrackingURL) footer_geotrackingURL = "http://tredir.go.com/capmon/GetDE/?set=j&param=country";
if (!window.footer_host) footer_host = "home.disney.com.au";
if (!window.footer_hosts) footer_hosts = {};
if (!window.footer_country) footer_country = "";
if (!window.footer_text_color) footer_text_color = "0xFFFFFF";
if (!window.footer_disable_text_only) footer_disable_text_only = "true";

// check if footer_hosts has properties
var footer_hosts_hasProperties = false;
for (var i in footer_hosts) { footer_hosts_hasProperties = true; break; }

if (footer_hosts_hasProperties) {
	if (footer_country.length > 0) { if (footer_hosts[footer_country]) footer_host = footer_hosts[footer_country]; footer_load(document.getElementById(footer_div)); }
	else {
		$.getScript(footer_geotrackingURL, function() { if (footer_hosts[country]) footer_host = footer_hosts[country]; footer_load(document.getElementById(footer_div)); });
	}
} else { footer_load(document.getElementById(footer_div)); }

function footer_load(div) {
	var sHTML = "";
	sHTML += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="990" height="200" id="footer">';
	sHTML += '	<param name="movie" value="http://' + footer_host + '/global/swf/footer.swf" />';
	sHTML += '	<param name="scale" value="noscale" />';
	sHTML += '	<param name="salign" value="tl" />';
	sHTML += '	<param name="wmode" value="transparent" />';
	sHTML += '	<param name="allowscriptaccess" value="always" />';
	sHTML += '	<param name="base" value="http://' + footer_host + '" />';
	sHTML += '	<param name="flashvars" value="contentPath=http://' + footer_host + '/tv/global/footer/xml/content.xml&fontPath=http://' + footer_host + '/cms_res/fonts/en/_WDIGLLYFonts.swf&textColor=' + footer_text_color + '&disableTextOnly=' + footer_disable_text_only + '" />';
	sHTML += '	<!--[if !IE]>-->';
	sHTML += '	<object type="application/x-shockwave-flash" data="http://' + footer_host + '/global/swf/footer.swf" width="990" height="200">';
	sHTML += '		<param name="scale" value="noscale" />';
	sHTML += '		<param name="salign" value="tl" />';
	sHTML += '		<param name="wmode" value="transparent" />';
	sHTML += '		<param name="allowscriptaccess" value="always" />';
	sHTML += '		<param name="base" value="http://' + footer_host + '" />';
	sHTML += '		<param name="flashvars" value="contentPath=http://' + footer_host + '/tv/global/footer/xml/content.xml&fontPath=http://' + footer_host + '/cms_res/fonts/en/_WDIGLLYFonts.swf&textColor=' + footer_text_color + '&disableTextOnly=' + footer_disable_text_only + '" />';
	sHTML += '	</object>';
	sHTML += '	<!--<![endif]-->';
	sHTML += '</object>';
	div.innerHTML = sHTML;
}