

function tab_hoverover(thisone){
    if(thisone != null)
    {
	    thisone.className="tab_item_hover"	
	}
}

function tab_hoverout(thisone){
    if(thisone != null)
    {
	    thisone.className="tab_item"	
	}
}

function freetext_change()
{		
	ob=document.getElementById("CtlSearch1$btnSearch")
	ob.style.backgroundColor="#FF6600"		
}

function freetext_change2()
{		
	ob=document.getElementById("btnSearch")
	ob.style.backgroundColor="#FF6600"		
}


 function getCtl(name)
{   
    // does browser suport document.getElementById
    if (document.getElementById) 
    {
        this.obj = document.getElementById(name);
        if(this.obj != null)
        {
            this.style = document.getElementById(name).style;
        }
    }
    // does browser suport document.all
    else if (document.all) 
    {
        this.obj = document.all[name];
        if(this.obj != null)
        {
            this.style = document.all[name].style;
        }
    }
    // does browser suport document.layers
    else if (document.layers) 
    {
        this.obj = document.layers[name];
        if(this.obj != null)
        {
            this.style = document.layers[name].style;
        }
    }
}


function setPanelPop(panelType)
{
    //panel properties.
    var pnl = new getCtl('CtlFooter1_pnlPop').obj;
    var xCo = new getCtl('lblX').obj;
    var yCo = new getCtl('lblY').obj;
    
    //label properties.
    var lblHeader = new getCtl('CtlFooter1_lblPop').obj;
    var lblPara1 = new getCtl('CtlFooter1_lblPopContentPara1').obj;
    var lblPara2 = new getCtl('CtlFooter1_lblPopContentPara2').obj;
    var lblPara3 = new getCtl('CtlFooter1_lblPopContentPara3').obj;
    
    if(pnl != null)
    {
        pnl.style.position = "absolute";
        pnl.style.zIndex = "102";
        pnl.style.top = yCo.value-205;
        pnl.style.left = xCo.value-170;
        pnl.style.visibility = "visible";
        
        lblHeader.innerText = panelType;
        
        if(panelType == "Copyright")
        {
            lblPara1.innerText = "Copyright 2007, The Information Centre, Prescribing Support Unit. All rights reserved.";            
            lblPara2.innerText = "This work remains the sole and exclusive property of The Information Centre and may only be reproduced where there is explicit reference to the ownership of The Information Centre.";
            lblPara3.innerText = "";   
        }
        else
        {
            lblPara1.innerText = "This site may contain inaccuracies and typographical errors.";
            lblPara2.innerText = "The Information Centre does not warrant the accuracy or completeness of the information or the reliability of the information displayed or distributed throughout this site.";
            lblPara3.innerText = "The Information Centre accepts no responsibility or liability for, and makes no guarantees, that functions contained within this site will not be interrupted or error-free, or that defects will be corrected.";
        }                        
    }                    
}


function closePanelPop()
{
    var pnl = new getCtl('CtlFooter1_pnlPop').obj;
    if(pnl != null)
    {        
        pnl.style.visibility = "hidden";
    }
}

