// JavaScript Document
function NumberOfChildNode(Obj)
{
       var j=-1;
       for (i=0 ;i<Obj.childNodes.length ;i++ )
       {
         if (Obj.childNodes[i].nodeName.toLowerCase()=='a')
         {
            j=i;
            break;
         }
       }
       return j;
}

function ButtonsOver(Obj)
{
        Obj.style.backgroundColor="#FFFFFF";
        Obj.style.borderColor="#000000";
        var i=NumberOfChildNode(Obj);
        if (i>=0)
        {
            Obj.childNodes[i].style.color="#000000";
        }
        
}

function ButtonsOut(Obj)
{
        Obj.style.backgroundColor="#FFFFFF";
        Obj.style.borderColor="#000000";
//        Obj.style.borderStyle="inset";
        var i=NumberOfChildNode(Obj);
        if (i>=0)
        {
            Obj.childNodes[i].style.color="#0000000";
        }
}

function ButtonsDown(Obj)
{
//        Obj.style.borderStyle="inset";
}

function ButtonsUp(Obj)
{
//        Obj.style.borderStyle="inset";
}

function ButtonsClick(Href)
{
        window.location=Href;
}

function SelectCode(iD)
{
    var j7=document.getElementById(iD);
    if(window.sidebar)j7=document.getElementById(iD);
    if(document.selection)
        {
        var c4=document.body.createTextRange();
        c4.moveToElementText(j7);
        c4.select();
//        c4.execCommand("Copy");
        }
    else if(window.getSelection)
        {
        var c4=document.createRange();
        c4.selectNodeContents(j7);
        var n3=window.getSelection();
        n3.removeAllRanges();
        n3.addRange(c4);
        }
    else 
    {
    alert("It's not possible with your browser!\r\n Try to select and copy manually\r\n or save this page and learn the source code.");
    }
//    document.execCommand("Copy");
}

function doNothing()
{
//
}
