﻿if (typeof HTMLElement != "undefined" && !HTMLElement.prototype.insertAdjacentElement) {
    HTMLElement.prototype.insertAdjacentElement = function(where, parsedNode) {
        switch (where) {
            case 'beforeBegin':
                this.parentNode.insertBefore(parsedNode, this)
                break;
            case 'afterBegin':
                this.insertBefore(parsedNode, this.firstChild);
                break;
            case 'beforeEnd':
                this.appendChild(parsedNode);
                break;
            case 'afterEnd':
                if (this.nextSibling) this.parentNode.insertBefore(parsedNode, this.nextSibling);
                else this.parentNode.appendChild(parsedNode);
                break;
        }
    }

    HTMLElement.prototype.insertAdjacentHTML = function(where, htmlStr) {
        var r = this.ownerDocument.createRange();
        r.setStartBefore(this);
        var parsedHTML = r.createContextualFragment(htmlStr);
        this.insertAdjacentElement(where, parsedHTML)
    }

    HTMLElement.prototype.insertAdjacentText = function(where, txtStr) {
        var parsedText = document.createTextNode(txtStr)
        this.insertAdjacentElement(where, parsedText)
    }
}
if (window == top) {
    //css
    styleNodeValue = "<style>body {margin:0;padding:0;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px;line-height:1.3em;}";
    styleNodeValue = styleNodeValue + "ul{margin:0;padding:0;list-style:none;}";
    styleNodeValue = styleNodeValue + "p{padding:0;margin:0;line-height:200%;}";
    styleNodeValue = styleNodeValue + "a{color:#3f3fff;}";
    styleNodeValue = styleNodeValue + ".header{float:left;padding:0;margin:0;border-bottom:0px solid #1a417a;width:100%;height:70px;}";
    styleNodeValue = styleNodeValue + ".logo{float:left;padding:20px 0 0 20px;}";
    styleNodeValue = styleNodeValue + ".topNav{width:460px;position:absolute;top:0;right:30%;}";
    styleNodeValue = styleNodeValue + ".clear{clear:both}";
    styleNodeValue = styleNodeValue + "#nav{float:right;padding:9px 8px 18px 0;text-align:left;display:block;color:#000}";
    styleNodeValue = styleNodeValue + "#nav a{color:#000;text-decoration:none;padding:0 4px;}";
    styleNodeValue = styleNodeValue + "#nav a:hover{text-decoration:underline;color:#000;}";
    styleNodeValue = styleNodeValue + ".topTabMenu{float:right;clear:right;margin-bottom:4px;}";
    styleNodeValue = styleNodeValue + ".topTabMenu li{float:left;font-size:13px;padding:4px 8px 10px 27px;}";
    styleNodeValue = styleNodeValue + ".topTabMenu li a:hover{text-decoration:underline;}";
    styleNodeValue = styleNodeValue + ".topTabMenu li a.active{color:#0065b3;font-weight:bold;padding-bottom:9px;text-decoration:none;}";
    styleNodeValue = styleNodeValue + ".topTabMenu a{font-weight:bold;color:#505050;text-decoration:none;} ";
    styleNodeValue = styleNodeValue + "#container{width:68%;line-height:1.7em;float:left;padding:0;margin:30px 20px;}";
    styleNodeValue = styleNodeValue + "#footer {padding:10px 0 0 0;color:#00468c;text-align:center;border-top:0px solid #d2e0ed;}";
    styleNodeValue = styleNodeValue + "#footer a{color:#00468c;}";
    styleNodeValue = styleNodeValue + ".legal{color:#000;}";
    styleNodeValue = styleNodeValue + ".marginLeft{margin-left:10px;}";
    styleNodeValue = styleNodeValue + ".marginLeft1{margin-left:-10px;border-bottom:8px solid #1a417a;width:101%;height:1px;}"
    styleNodeValue = styleNodeValue + ".marginLeft2{margin-left:-10px;border-top:1px solid #d2e0ed;width:101%;height:1px;}"
    styleNodeValue = styleNodeValue + "</style>";
    document.write(styleNodeValue);
    //head 
    var headhtml = '<div class="header" >';
    headhtml = headhtml + '<div class="logo"><a href="/"><img style="border:0px;"  alt="DriveHQ.com - the high-end online file storage & sharing, online file / email backup, FTP / Email Server Hosting service" src="/help/doc/img/logo.gif"/></a></div>';
    headhtml = headhtml + '<div class="topNav">';
    headhtml = headhtml + '<div id="nav"><a href="/">Home</a>&nbsp;|&nbsp;<a href="/Premium/enterprise.aspx">Enterprise Service</a>&nbsp;|&nbsp;<a href="/Premium/partnership.aspx">Partnership</a>&nbsp;|&nbsp;<a href="/help/helpframe.aspx">Help</a>&nbsp;|&nbsp;<a href="/secure/logonOption.aspx">Log on</a>&nbsp;|&nbsp;<a href="/Secure/FreeSignup.aspx">Sign up Free</a></div>';
    headhtml = headhtml + '<div class="clear"></div>';
    headhtml = headhtml + '<div class="topTabMenu">';
    headhtml = headhtml + '<ul>';
    headhtml = headhtml + '	<li><a href="/storage.aspx">Storage</a></li>';
    headhtml = headhtml + '<li><a href="/Backup/default.aspx">Backup</a></li>';
    headhtml = headhtml + '<li><a href="/Ftp/">FTP</a></li>';
    headhtml = headhtml + '<li><a href="/email/">Email</a></li>';
    headhtml = headhtml + '<li><a href="/secure/account.aspx">My Account</a></li>';
    headhtml = headhtml + '</ul>';
    headhtml = headhtml + '</div>';
    headhtml = headhtml + '</div>';
    headhtml = headhtml + '</div><div class="clear" ></div><div class="marginLeft1" ></div>';
    //foot 
    var footHtml = '<div class="clear"></div><div class="marginLeft2" ></div>';
    footHtml = footHtml + '<div id="footer">';
    footHtml = footHtml + '<p><a href="/legal/agreement.aspx">Terms</a> |  <a href="/legal/privacy.aspx">Privacy</a>  |  <a href="/help/Affiliate.aspx">Affiliate</a>  |  <a href="/about/">About</a>  |  <a href="/help/Support.aspx">Support</a>  |  <a href="/backup/">Online Backup</a>  |  <a href="/ftp/">FTP Hosting</a>  |  <a href="/email/">Email Hosting</a> </p>';
    footHtml = footHtml + '<p class="legal">©2003-2009 Drive Headquarters. All rights reserved.</p><br />';
    footHtml = footHtml + '</div>';
    var obj = document.getElementsByTagName("body")[0];
    obj.insertAdjacentHTML("afterBegin", headhtml);
    obj.insertAdjacentHTML("beforeEnd", footHtml);
    obj.className="marginLeft";
}

