﻿function header() {
    //document.write('<img id="imgLogo" alt="Ledgea Logo" src="Images/smalloffshorelogo-new2.gif" />');
    document.write('<div id="imgLogo"><img id="imgLogoX" alt="Ledgea Logo" src="Images/ledgea_logo.png" /><Br/>P A R T N E R S</div>');
}
function menuContent() {
    //document.write('<div id="divMenu" ><div class="divMenuTabs" id="divHomeTab">Home</div><div class="divMenuTabs" id="divProductsTab">Products</div><div class="divMenuTabs" id="divServicesTab">Services</div></div>');
    //document.write('<div class="divMenuTabsX" id="divMenuEdgeLeft"></div>');
    document.write('<div id="divMenu" >');
    
    
    document.write('<div class="divMenuTabs" id="index" onclick="oNewLocation(this)">Partners</div>');


    document.write('<div class="divMenuTabs" id="LERPOnline" onclick="oNewLocation(this)">LERP Online</div>');
    //document.write('<div class="divMenuTabs" id="quality" onclick="oNewLocation(this)">Quality Assurance</div>');
    //document.write('<div class="divMenuTabs" id="faq" onclick="oNewLocation(this)">FAQ</div>');
    
    //document.write('<div class="divMenuTabs" onmousedown="oPressedBtn(this)" id="partners" onclick="oNewLocation(this)">PARTNERS</div>');
    document.write('<div class="divMenuTabs" id="ContactUs" onclick="oNewLocation(this)">Contact Us</div>');
    document.write('<div class="divMenuTabsX" id="divMenuEdgeLeft"></div>');
    document.write('</div>');
                
            
}
function oBorderGlowCorner() {
    document.write('<div id="divBorderGlowCorner" ></div>');
    
    }
    

function oBorderGlowTop() {
    document.write('<div id="divBorderGlowTop" ></div>');
    //document.write('<div id="divGlowContainer" >');
}
function oBorderGlowBottom() {
       document.write('</div>');
       document.write('<div id="divBorderGlowBottom" ></div>');
}
function oGoogleSearch() {
        document.write('<form method="get" action="http://www.google.com/search" style="padding:0px; margin:0px;">');
        document.write('<div style="border:0px solid black;padding:0px;margin:40px 15px 0px 0px; float:right;">');
        document.write('<table border="0" cellpadding="0"><tr>');
        document.write('<td><a href="http://www.google.com/"><img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" /></a></td>');
        document.write('<td><input type="text"   name="q" size="20" maxlength="255" value="" /><input type="submit" value="Search" /></td></tr>');
        document.write('<tr><td></td><td align="left" style="font-size:75%">');
        document.write('<input type="checkbox"  name="sitesearch" value="partners.ledgea.com"  /> only search Ledgea Partners<br />');
        document.write('</td></tr></table></div></form>');
        }

function oNewLocation(newLoc) {
    //newLoc2 = newLoc.id;
    newLoc = newLoc.id ;
    if (newLoc != "selected") {
       // alert(newLoc2);    
        newLoc = newLoc + ".htm";
        window.location = newLoc;
        
        //newLocX.id = "selected";
    }
    
}
function oNewLocGeneric(newLoc) {
    window.location = newLoc;
}

function oChangeBack(TabID) {
    document.getElementById(TabID).style.backgroundColor = "#fff";
    document.getElementById(TabID).style.backgroundImage = "none";
    document.getElementById(TabID).style.color = "#003366";
    document.getElementById(TabID).style.textDecoration = "underline";
    if (TabID != "index" ) {
        //document.getElementById('divMainContainer').style.backgroundImage = "url('Images/Keyboard6SmallFaded.gif')";
    }

}

function oFooterSection()
{
    document.write('<div id="divFooterBar">');
    document.write('<div id="divFooterLine"></div>');
    document.write('<p id="pFooter">© 2007 Ledgea Systems, Inc. All rights reserved. (632) 757-2381 | <a  href="mailto:info@ledgea.com">info@ledgea.com</a></p>');
    document.write('</div>');
}
function oPressedBtn(TabID) {
    document.getElementById(TabID.id).style.height = "18px"
    //document.getElementById(TabID.id).style.padding = "2px 7px 0px 11px";
    document.getElementById(TabID.id).style.paddingRight = "8px";
    document.getElementById(TabID.id).style.borderLeft = "inset 2px #f5f5f5";
    document.getElementById(TabID.id).style.borderTop = "inset 2px #f5f5f5";
    document.getElementById(TabID.id).style.backgroundImage = "url('images/Background-1x30-blue.gif')";
    document.getElementById(TabID.id).style.backgroundPosition = "center";
}

function oShowPopupBox(popupImage) {
    document.getElementById('imgPopup').src = popupImage;
    y = 0;
    imgY = document.getElementById('imgPopup').height;
    while (y <= imgY) {
        newHeight = y + 'px';
        document.getElementById('divPopupBox').style.height = newHeight;
        document.getElementById('divPopupBox').style.overflow = "hidden";
        document.getElementById('divPopupBox').style.border = 'double 3px #484848';
        document.getElementById('divPopupBox').style.width = 'auto';


        y = y + 1;

    }

}
    
    
    //alert(document.getElementById('imgPopup').height);

    function oPopupScroll2() {
    //while ( y <= imgY) {
        newHeight = y + 'px';
        document.getElementById('divPopupBox').style.height = newHeight;
        document.getElementById('divPopupBox').style.overflow = "hidden";
        document.getElementById('divPopupBox').style.border = 'double 3px #484848';
        document.getElementById('divPopupBox').style.width = 'auto';
        

        y = y + 1;
        if (y <= imgY) {
            t = setTimeout("oPopupScroll2()", 10);
        } else {
            clearTimeout(t);
        }
    }
function oPopupScroll() {
    document.getElementById('divPopupBox').style.height = newHeight;
    document.getElementById('divPopupBox').style.overflow = "hidden";
    document.getElementById('divPopupBox').style.border = 'double 3px #484848';
    document.getElementById('divPopupBox').style.width = 'auto';
    t = setTimeout("oPopupScroll()", 1000);
}

function oHidePopupBox() {
    document.getElementById('divPopupBox').style.height = "0px";
    document.getElementById('divPopupBox').style.width = "0px";
    document.getElementById('divPopupBox').style.overflow = "hidden";
    document.getElementById('divPopupBox').style.border = "solid 0px #000" ;
}
