var ns6=document.getElementById&&!document.all
var ie=document.all

function changeto(e,highlightcolor){
source=ie? event.srcElement : e.target
if (source.tagName=="TR"||source.tagName=="TABLE")
return
while(source.tagName!="TD"&&source.tagName!="HTML")
source=ns6? source.parentNode : source.parentElement
if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
source.style.backgroundColor=highlightcolor
}

function contains_ns6(master, slave) { //check if slave is contained by master
while (slave.parentNode)
if ((slave = slave.parentNode) == master)
return true;
return false;
}

function changeback(e,originalcolor){
if
(ie&&(event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")||source.tagName=="TR"||source.tagName=="TABLE")
return
else if (ns6&&(contains_ns6(source, e.relatedTarget)||source.id=="ignore"))
return
if (ie&&event.toElement!=source||ns6&&e.relatedTarget!=source)
source.style.backgroundColor=originalcolor
}

// Canadian Content AdSense Code

  function google_ad_request_done(google_ads) {

    // Proceed only if we have ads to display!
    if (google_ads.length < 1 )
      return;

    // Display ads in a table
    document.write("<table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"5\" bgcolor=\"#FFFFFF\">");

    // Print "Ads By Google" -- include link to Google feedback page if available
    document.write("<tr><td align=\"left\" height=\"25\"><span class=\"blacksmall\"");
    if (google_info.feedback_url) {
      document.write("<span class=\"blacksmall\"><a href=\"" + google_info.feedback_url +
        "\" class=\"blacksmall\">Ads by Google</a></span>");
	} else {
      document.write("<span style=\"color: #000000; font-family: 'Trebuchet MS', Tahoma, Arial, Verdana; font-size: 12px;\">Ads By Google</span>");
    }
    document.write("</td></tr>");

    // For text ads, display each ad in turn.
    if (google_ads[0].type == 'text') {
      for(i = 0; i < google_ads.length; ++i) {
        document.write("<tr onMouseover=\"changeto(event, '#f2f2f2')\" onMouseout=\"changeback(event, '#FFFFFF')\" bgcolor=\"#FFFFFF\"><td align=\"left\" height=\"50\" nowrap onmouseover=\"window.status=\'go to " + google_ads[i].visible_url + "\';return true;\" onmouseout=\"window.status=\'\';return true;\">" +
          "<a href=\"" +  google_ads[i].url + "\" title=\"go to " + google_ads[i].visible_url + "\" class=\"babybluelarge\"><b><i>" +
          google_ads[i].line1 + "</i></b></a><br />" +
          "<span style=\"color: #000000; font-family: 'Trebuchet MS', Tahoma, Arial, Verdana; font-size: 11px;\">" + 
          google_ads[i].line2 + "" + " " +
          google_ads[i].line3 + "</span>" +
          " - <a href=\"" + google_ads[i].url + "\" style=\"color: #B3B3B3; font-family: 'Trebuchet MS', Tahoma, Arial, Verdana; font-size: 11px; text-decoration: none;\">" +
          google_ads[i].visible_url +
          "</a><br /></td></tr>");
      }
    }

    // For an image ad, display the image; there will be only one .
    if (google_ads[0].type == 'image') {
      document.write("<tr><td align=\"center\">" +
        "<a href=\"" + google_ads[0].url + "\">" +
        "<img src=\"" + google_ads[0].image_url +
        "\" height=\"" + google_ads[0].height +
        "\" width=\"" + google_ads[0].width +
        "\" border=\"0\"></a></td></tr>");
    }

    // Finish up anything that needs finishing up (closing tables, etc.)
    document.write ("</tr></table>");
  }

