function AutoDivHeight(left, right) {
    if (left != null && right != null) {
        if (left.clientHeight < right.clientHeight) {
            left.style.minHeight = right.clientHeight + "px";
            if(window.ActiveXObject) 
            {
                var browser=navigator.appName 
                var b_version=navigator.appVersion 
                var version=b_version.split(";"); 
                var trim_Version=version[1].replace(/[ ]/g,""); 
                if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE6.0") 
                {
                  left.style.height = right.clientHeight + "px";
                }
            }
            else{
                             left.style.minHeight = right.clientHeight + "px";
            }
        }
        else {
            right.style.height = left.clientHeight + "px";
        }
    }
}

function openCont(URL) {
    window.open(URL, '', 'menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=yes,scrollbars=yes,width=640,height=410,top=100,left=40');
}

function getQuery(name) {
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
    var r = window.location.search.substr(1).match(reg);
    if (r != null) {
        return unescape(r[2]);
    }
    return null;
}



function AddFavorite(sURL, sTitle)
{
    try
    {
        window.external.addFavorite(sURL, sTitle);
    }
    catch (e)
    {
        try
        {
            window.sidebar.addPanel(sTitle, sURL, "");
        }
         catch(e)
        {
        }
    }
}
    /*if (window.screen.width > 1024) {
    	document.body.style.background = "#fff url(/images/bg.gif) no-repeat center top";
    	document.getElementById("top_bar").style.width = "950px";
    }
    else {
        document.body.style.background = "#fff";
        document.getElementById("top_bar").style.width = "100%";
    }*/
    
  


