function Slide(Element)
{
	var MovingLayer = document.getElementById("MovingLayer");
	var fromPostion = MovingLayer.offsetTop;
	var toPosition = Element.offsetTop;
	
	document.getElementById("MovingLayerText").innerHTML = "";
	
	if (parseInt(fromPostion) > parseInt(toPosition))
	{
	    SlideUp(parseInt(fromPostion),parseInt(toPosition),Element.id);
	}
	else
	{
	    SlideDown(parseInt(fromPostion),parseInt(toPosition),Element.id);
	}
}

function SlideDown(CPosition,EPosition,Element)
{
    if (CPosition < EPosition || CPosition == EPosition)
    {
        document.getElementById("MovingLayer").style.top = CPosition + "px";
        if (CPosition != EPosition)
        {
            CPosition = CPosition + 12;
            if (CPosition > EPosition)
            {
                CPosition = EPosition;
            }
            setTimeout("SlideDown("+CPosition+","+EPosition+",'"+Element+"')");
        }
        else
        {
			var ElementValue = document.getElementById(document.getElementById(Element).getElementsByTagName('div').item(0).id);
			document.getElementById("MovingLayerText").innerHTML = ElementValue.innerHTML;
			ChangeTab(Element);
        }
    }
}

function SlideUp(CPosition,EPosition,Element)
{
    if (CPosition > EPosition || CPosition == EPosition)
    {
        document.getElementById("MovingLayer").style.top = CPosition + "px";
        if (CPosition != EPosition)
        {
            CPosition = CPosition - 12;
            if (CPosition < EPosition)
            {
                CPosition = EPosition;
            }
            setTimeout("SlideUp("+CPosition+","+EPosition+",'"+Element+"')");
        }
        else
        {
			var ElementValue = document.getElementById(document.getElementById(Element).getElementsByTagName('div').item(0).id);
			document.getElementById("MovingLayerText").innerHTML = ElementValue.innerHTML;
			ChangeTab(Element);
        }
    }
}

function ChangeTab(Tab)
{
    for (i = 1; i <= 5; i++)
    {
        var SlideContent = "textLayer" + i;
        if (Tab == "tabimage" + i)
        {
            document.getElementById(SlideContent).style.display = "";
        }
        else
        {
            document.getElementById(SlideContent).style.display = "none";
        }
    }
}

function CheckBrowser()
{
	var browser=navigator.appName;
	return browser;
}

function TabControl(TheTab)
{
    if (TheTab == 1)
    {
        document.getElementById("TabCtr_OneContentBlock_index_0").style.display = "";
        document.getElementById("TabCtr_OneContentBlock_index_1").style.display = "none";
        document.getElementById("TabCtr_OneContentBlock_index_2").style.display = "none";
        document.getElementById("TabButton1").className = "TabControlTabOptionActive";
        document.getElementById("TabButton2").className = "TabControlTabOption";
        document.getElementById("TabButton3").className = "TabControlTabOption";
    }
    else if (TheTab == 2)
    {
        document.getElementById("TabCtr_OneContentBlock_index_0").style.display = "none";
        document.getElementById("TabCtr_OneContentBlock_index_1").style.display = "";
        document.getElementById("TabCtr_OneContentBlock_index_2").style.display = "none";
        document.getElementById("TabButton1").className = "TabControlTabOption";
        document.getElementById("TabButton2").className = "TabControlTabOptionActive";
        document.getElementById("TabButton3").className = "TabControlTabOption";
    }
    else if (TheTab == 3)
    {
        document.getElementById("TabCtr_OneContentBlock_index_0").style.display = "none";
        document.getElementById("TabCtr_OneContentBlock_index_1").style.display = "none";
        document.getElementById("TabCtr_OneContentBlock_index_2").style.display = "";
        document.getElementById("TabButton1").className = "TabControlTabOption";
        document.getElementById("TabButton2").className = "TabControlTabOption";
        document.getElementById("TabButton3").className = "TabControlTabOptionActive";
    }
}

// Ashish's JavaScript -------------------------------------------------------------------
function uday(goyal)
{
	if (goyal == "1")
	{
		
		document.getElementById("uptab1").className="uptab11";
		document.getElementById("uptab2").className="uptab2";
		document.getElementById("uptab3").className="uptab3";
	}
	
	if (goyal == "2")
	{
		
		document.getElementById("uptab1").className="uptab1";
		document.getElementById("uptab2").className="uptab22";
		document.getElementById("uptab3").className="uptab3";
	}
	
	if (goyal == "3")
	{
		
		document.getElementById("uptab1").className="uptab1";
		document.getElementById("uptab2").className="uptab2";
		document.getElementById("uptab3").className="uptab33";
	}
}
var initialtabt=[1, "tc1"]

var turntosinglet=0 //0 for no (default), 1 for yes

var disabletablinkst=0 //0 for no (default), 1 for yes

var previoustabt=""

if (turntosinglet==1)
document.write('<style type="text/css">\n#tabcontentcontainert{display: none;}\n</style>')

function expandcontentt(cidt, aobjectt)
{
    if (disabletablinkst==1)
        aobjectt.onclick=new Function("return false")
    if (document.getElementById && turntosinglet==0)
    {
        highlighttabt(aobjectt)
        if (previoustabt!="")
        document.getElementById(previoustabt).style.display="none"
        if (cidt!="")
        {
            document.getElementById(cidt).style.display="block"
            previoustabt=cidt
        }
    }
}

function highlighttabt(aobjectt){
if (typeof tabobjlinkst=="undefined")
collectddimagetabst()
for (i=0; i<tabobjlinkst.length; i++)
tabobjlinkst[i].className=""
aobjectt.className="current"
}

function collectddimagetabst(){
var tabobjt=document.getElementById("ddimagetabst")
tabobjlinkst=tabobjt.getElementsByTagName("A")
}

function do_onloadt(){
collectddimagetabst()
expandcontentt(initialtabt[1], tabobjlinkst[initialtabt[0]-1])
}

if (window.addEventListener)
window.addEventListener("load", do_onloadt, false)
else if (window.attachEvent)
window.attachEvent("onload", do_onloadt)
else if (document.getElementById)
window.onload=do_onloadt

function ashish(goyel)
{
	if (goyel == "1")
	{
		document.getElementById("moon1").style.backgroundColor= "white";
		document.getElementById("moon2").style.backgroundColor = "#ffdfb3";
		document.getElementById("moon3").style.backgroundColor = "#ffdfb3";
	}
	
	if (goyel == "2")
	{
		document.getElementById("moon1").style.backgroundColor = "#ffdfb3";
		document.getElementById("moon2").style.backgroundColor = "white";
		document.getElementById("moon3").style.backgroundColor = "#ffdfb3";
	}
	
	if (goyel == "3")
	{
		document.getElementById("moon1").style.backgroundColor = "#ffdfb3";
		document.getElementById("moon2").style.backgroundColor = "#ffdfb3";
		document.getElementById("moon3").style.backgroundColor = "white";
	}
}



var initialtab=[1, "sc1"]

var turntosingle=0 //0 for no (default), 1 for yes

var disabletablinks=0 //0 for no (default), 1 for yes

var previoustab=""

if (turntosingle==1)
document.write('<style type="text/css">\n#tabcontentcontainer{display: none;}\n</style>')

function expandcontent(cid, aobject){
if (disabletablinks==1)
aobject.onclick=new Function("return false")
if (document.getElementById && turntosingle==0){
highlighttab(aobject)
if (previoustab!="")
document.getElementById(previoustab).style.display="none"
if (cid!=""){
document.getElementById(cid).style.display="block"
previoustab=cid
}
}
}

function highlighttab(aobject){
if (typeof tabobjlinks=="undefined")
collectddimagetabs()
for (i=0; i<tabobjlinks.length; i++)
tabobjlinks[i].className=""
aobject.className="current"
}

function collectddimagetabs(){
var tabobj=document.getElementById("ddimagetabs")
tabobjlinks=tabobj.getElementsByTagName("A")
}

function do_onload(){
collectddimagetabs()
expandcontent(initialtab[1], tabobjlinks[initialtab[0]-1])
}

if (window.addEventListener)
window.addEventListener("load", do_onload, false)
else if (window.attachEvent)
window.attachEvent("onload", do_onload)
else if (document.getElementById)
window.onload=do_onload

 function st2bottom(tbottom) {

        for (bottomi = 1; bottomi<=8; bottomi++) {
            tsbottom = document.getElementById('ttbottom' + bottomi);
            trbottom = document.getElementById('ddbottom' + bottomi);
            tabottom = document.getElementById('aabottom' + bottomi);
            if (tbottom == bottomi) {
                tsbottom.className = "tbmain2bottom1";
                tabottom.className = "srchlinksel2bottomb";
                tsbottom.style.borderBottom = "1px solid #A0C9E7";
                trbottom.style["display"] = "block";
                trbottom.style["visibility"] = "visible";
                
            }
            else {
                tsbottom.className = "tb2bottom1";
                tabottom.className = "srchlink2bottomb";
                tsbottom.style.borderBottom = "1px solid #73AEDB";
                trbottom.style["display"] = "none";
                trbottom.style["visibility"] = "hidden";
            }

        }
    }

	function validform(theForm)
    {
        if (theForm.user.value == "")
        {
            alert("Please Enter Username!");
            theForm.user.focus();
            return (false);
        }
        
        if (theForm.pwd.value == "")
        {
            alert("Please Enter Password!");
            theForm.pwd.focus();
            return (false);
        }
        return (true);
    }
//---Google adds---------------------------------------------------------------------------------//


                                        function positioneredu()
                                        {
                                            document.getElementById('elemente2').style.left = document.getElementById('elemente1').offsetLeft -137 + "px";
                                            document.getElementById('elemente2').style.top = document.getElementById('elemente1').offsetTop + "px";
                                            document.getElementById('elemente2').style.display = '';
                                        }
                                        
                                        function positioner()
                                        {
                                            document.getElementById('element2').style.left = document.getElementById('element1').offsetLeft -137 + "px";
                                            document.getElementById('element2').style.top = document.getElementById('element1').offsetTop + "px";
                                            document.getElementById('element2').style.display = '';
                                        }

                                        function positionerspeech()
                                        {
                                            document.getElementById('elements2').style.left = document.getElementById('elements1').offsetLeft -137 + "px";
                                            document.getElementById('elements2').style.top = document.getElementById('elements1').offsetTop + "px";
                                            document.getElementById('elements2').style.display = '';
                                        }



                                        function positioner4()
                                        {
                                            document.getElementById('element12').style.left = document.getElementById('element11').offsetLeft -137 + "px";
                                            document.getElementById('element12').style.top = document.getElementById('element11').offsetTop + "px";
                                            document.getElementById('element12').style.display = '';
                                        }

                                        function positioner2()
                                        {
                                            document.getElementById('element20').style.left = document.getElementById('element10').offsetLeft -137 + "px";
                                            document.getElementById('element20').style.top = document.getElementById('element10').offsetTop + "px";
                                            document.getElementById('element20').style.display = '';
                                        }
                                        
                                        function positioner3()
                                        {
                                            document.getElementById('element200').style.left = document.getElementById('element100').offsetLeft -137 + "px";
                                            document.getElementById('element200').style.top = document.getElementById('element100').offsetTop + "px";
                                            document.getElementById('element200').style.display = '';
                                        }
                

