/*   Google Translate Functions   */

function add_onload_function(funct)
{
    if (typeof(window.addEventListener) != "undefined")
       window.addEventListener("load",funct,false);
    else if (typeof(document.addEventListener) != "undefined")
       document.addEventListener("load",funct,false);
    else if (typeof(window.attachEvent) != "undefined")
       window.attachEvent("onload",funct);
    else {
       var oldfunct = window.onload;
       if (typeof(window.onload) != "function") window.onload = funct;
       else window.onload = function() { oldfunct(); funct(); }
    }
}

function add_translated_styles()
{
    var head = document.getElementsByTagName("head")[0];         
    var css_node = document.createElement('link');
    css_node.type = 'text/css';
    css_node.rel = 'stylesheet';
    css_node.href = 'css/googletranslate.css';
    css_node.media = 'screen';
    head.appendChild(css_node);
}

if (window.location.hostname != 'www.madisonhc.com') {
   if (top != self) top.location.href = location.href;
//   add_onload_function(add_translated_styles);
   document.writeln('   <link href="css/googletranslate.css" rel="stylesheet" type="text/css">');
}

