document.write("<!-- Cascading Footer Include Start -->");
document.write("<div id=\"footerOuter\">");
document.write("<!-- Footer LeaderBoard Include Start -->");
document.write("<div class=\"bannerContainer\">");
document.write("<div id=\"footerAd\">");
document.write("<!-- legoctl: ctl01 --><!-- NO CACHE: footerAd -->");

function getCookies() { return ""; }

Array.prototype.uniqueAry = function ()
{
var r = new Array();
o:for(var i = 0, n = this.length; i < n; i++)
{
for(var x = 0, y = r.length; x < y; x++)
{
if(r[x]==this[i])
{
continue o;
}
}
r[r.length] = this[i];
}
return r;
}
function getCookie(cookieName)
{
var dc = document.cookie;
//load external cookies from .canada.com if not currently on .canada.com
if (location.hostname.match(/\.canada\.com$/gi) == null)
dc += ";" + getCookies(); //append to existing document cookie
var cookie_str = ""; //this string will contain the value of the cookie name
var needle = "[A-Za-z0-9_-]*" + cookieName + "[A-Za-z0-9_-]*=[^;]+";
var regex = new RegExp(needle, "gi");
var matches = dc.match(regex);
if (matches != null)
{
for (var x = 0; x < matches.length; x++)
matches[x] = matches[x].substring(matches[x].indexOf("=")+1).replace(new RegExp("[\\s]+$", "g"), ""); //remove keyname prefix and trim
cookie_str = matches.join(",");
matches = cookie_str.split(",");
matches = matches.uniqueAry(); //remove duplicates
cookie_str = matches.join(";") + ";";
}
return unescape(cookie_str);
}
function getAdCookie()
{
return getCookie("adcookie");
}
function setSurroundCookie(value)
{
document.cookie = "surroundId=" + escape(value) + "; path=/";
}
function getSurroundCookie()
{
var dc = document.cookie;
var prefix = "surroundId=";
var begin = dc.indexOf("; " + prefix);
if (begin == -1)
{
begin = dc.indexOf(prefix);
if (begin != 0) return null;
}
else
{
begin += 2;
}
var end = document.cookie.indexOf(";", begin);
if (end == -1) end = dc.length;
return unescape(dc.substring(begin + prefix.length, end));
}
// Setup for surround session.
var adid = ""; // used in the ad to start a surround session
var surroundTag = getSurroundCookie(); // Get surround session id from the cookie
if(surroundTag == null) // check if there was a surround session id in the cookie
{
surroundTag = "";
}
else
{
surroundTag = "srnd="+surroundTag+";"; // finish setting up the key-value for the ad tags
}
//Setup for adcookie.
var adcookieTag = getAdCookie(); // Get the ad cookie string

adcookieTag = typeof(adcookieTag) != 'undefined' ? adcookieTag : '';
dartad_tile = typeof(dartad_tile) != 'undefined' ? dartad_tile + 1 : 1;
var dartad_url = "http://ad.ca.doubleclick.net/N3081/adj/global_bc.com/scripts/include;loc=bot;sz=468x60,728x90;kw=ron;kw=scripts;nk=cbrdcst;pr=chan;ck=scripts;page=include;cnt=news;tile="+dartad_tile+";"+adcookieTag+surroundTag+"ord=73591698?"; // script ad code with adcookie, used for debug
document.write('<script language=\"JavaScript1.1\" src=\"http://ad.ca.doubleclick.net/N3081/adj/global_bc.com/scripts/include;loc=bot;sz=468x60,728x90;kw=ron;kw=scripts;nk=cbrdcst;pr=chan;ck=scripts;page=include;cnt=news;tile='+dartad_tile+';'+adcookieTag+surroundTag+'ord=73591698?\"></script>');

if(adid != "") // check if the ad should start a surround session only if a surround session has not yet started
{
surroundTag = "srnd="+adid+";"; // setup the key-value for a surround session
setSurroundCookie(adid); // store the surround session id in a cookie.
}
document.write("<noscript>");
document.write("<a target=\"_blank\" href=\"http://ad.ca.doubleclick.net/N3081/jump/global_bc.com/scripts/include;loc=bot;sz=468x60,728x90;kw=ron;kw=scripts;nk=cbrdcst;pr=chan;ck=scripts;page=include;cnt=news;ord=73591698?\"><img align=\"TOP\" border=\"0\" vspace=\"0\" hspace=\"0\" src=\"http://ad.ca.doubleclick.net/N3081/ad/global_bc.com/scripts/include;loc=bot;sz=468x60,728x90;kw=ron;kw=scripts;nk=cbrdcst;pr=chan;ck=scripts;page=include;cnt=news;ord=73591698?\" /></a>");
document.write("</noscript>");
document.write("</div>");
document.write("</div>");
document.write("<!-- Footer LeaderBoard Include End -->");
document.write("<div id=\"footerWrapper\">");
document.write("<div id=\"chevron\">");
document.write("<img src=\"http://www.globaltvbc.com/images/global/chevron.jpg\"/>");
document.write("</div>");
document.write("<div id=\"footerNetworkWrapper\">");
document.write("<ul>");
document.write("<li class=\"aboutusLink\"><a href=\"http://www.globaltvbc.com/aboutus/ABOUT+GLOBAL+NEWS+ONLINE/3391412/story.html\">About Us</a></li>");
document.write("<li>|</li>");
document.write("<li class=\"privacypolicyLink\"><a href=\"http://www.canwestglobal.com/privacy.asp\">Privacy Policy</a></li>");
document.write("<li>|</li>");
document.write("<li class=\"termsandconditionsLink\"><a href=\"http://www.globaltv.com/About/termsofservice.html\" target=\"_blank\">Terms & Conditions</a></li>");
document.write("<li>|</li>");
document.write("<li class=\"copyrightLink\"><a href=\"http://www.canada.com/aboutus/copyright.html\">Copyright</a></li>");
document.write("<li>|</li>");
document.write("<li class=\"mediaLink\"><a href=\"http://www.canwest.com/media/\">Media</a></li>");
document.write("<li>|</li>");
document.write("<li class=\"advertiseLink\"><a href=\"http://www.globaltv.com/About/Advertise.html\">Advertise</a></li>");
document.write("<li>|</li>");
document.write("<li class=\"contactusLink\"><a href=\"http://www.globaltvbc.com/contactus/\">Contact Us</a></li>");
document.write("<li>|</li>");
document.write("<li class=\"sitemapLink\"><a href=\"http://www.globaltvbc.com/sitemap/\">Sitemap</a></li>");
document.write("</ul>");
document.write("<ul>");
document.write("<li class=\"globaltvLink\"><a href=\"http://www.globaltv.com\">Global TV</a></li>");
document.write("<li>|</li>");
document.write("<li class=\"hgtvLink\"><a href=\"http://www.hgtv.ca\">HGTV</a></li>");
document.write("<li>|</li>");
document.write("<li class=\"showcaseLink\"><a href=\"http://www.showcase.ca\">Showcase</a></li>");
document.write("<li>|</li>");
document.write("<li class=\"sliceLink\"><a href=\"http://www.slice.ca\">Slice</a></li>");
document.write("<li>|</li>");
document.write("<li class=\"networkLink\"><a href=\"http://www.foodtv.ca/\">Food Network</a></li>");
document.write("</ul>");
document.write("<div id=\"footerCopy\">");
document.write("&copy; 2009, CW Media Inc., All Rights Reserved. Part of the <a href=\"http://www.canada.com/\" id=\"canadaDotComFooterLink\"><img src=\"http://www.globaltv.com/media/images/global/cancomlogohorizontal_666666_matte.gif\" align=\"absmiddle\" alt=\"Canada.com\" /></a> network.");
document.write("</div>");
document.write("</div>");
document.write("</div><!-- footerWrapper-->");
document.write("</div>");

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

try {
var pageTracker = _gat._getTracker("UA-840802-13");
pageTracker._trackPageview();
} catch(err) {}document.write("<!--/FooterOuter -->");
document.write("<!-- Cascading Footer Include End -->");
