﻿function menu(whichImage)
{
document.getElementById('homem').style.backgroundImage= "url(images/menu_line.jpg)";

}

function menu1(whichImage)
{
document.getElementById('homem').style.backgroundImage= "url(images/menu.jpg)";
}

function abo(whichImage)
{

document.getElementById('about').style.backgroundImage= "url(images/menu_line.jpg)";

menu1();
}


function abo1(whichImage)
{
document.getElementById('about').style.backgroundImage= "url(images/menu.jpg)";;
menu();
}

function ser(whichImage)
{
document.getElementById('service').style.backgroundImage= "url(images/menu_line.jpg)";
menu1();
}


function ser1(whichImage)
{
document.getElementById('service').style.backgroundImage= "url(images/menu.jpg)";;
menu();
}

function cli(whichImage)
{
document.getElementById('client').style.backgroundImage= "url(images/menu_line.jpg)";
menu();
}
function cli1(whichImage)
{
document.getElementById('client').style.backgroundImage= "url(images/menu.jpg)";;
menu();
}

function pro(whichImage)
{
document.getElementById('product').style.backgroundImage= "url(images/menu_line.jpg)";
menu1();
}
function pro1(whichImage)
{
document.getElementById('product').style.backgroundImage= "url(images/menu.jpg)";;
menu();
}

function por(whichImage)
{
document.getElementById('portfolio').style.backgroundImage= "url(images/menu_line.jpg)";
menu1();
}
function por1(whichImage)
{
document.getElementById('portfolio').style.backgroundImage= "url(images/menu.jpg)";;
menu();
}



function mainLinkSet(mainLinkId)
{
//document.getElementById('navigate').style.backgroundImage= "url(images/menu_line.jpg)";
try{
document.getElementById(mainLinkId).style.backgroundImage= "url(images/menu_line.jpg)";
}
catch(err)
{
}
}
function mainLinkSet1(mainLinkId)
{
//document.getElementById('navigate').style.backgroundImage= "url(images/menu.jpg)";
try{
document.getElementById(mainLinkId).style.backgroundImage= "url(images/menu.jpg)";
}
catch(err)
{
}
}

function currLinkSet(currLink,mainLink)
{
document.getElementById(currLink).style.backgroundImage= "url(images/menu_line.jpg)";
mainLinkSet1(mainLink);
}

function currLinkSet1(currLink,mainLink)
{
document.getElementById(currLink).style.backgroundImage= "url(images/menu.jpg)";
mainLinkSet(mainLink);
}


function con(whichImage)
{
document.getElementById('contact').style.backgroundImage= "url(images/menu_line.jpg)";
menu1();
}
function con1(whichImage)
{
document.getElementById('contact').style.backgroundImage= "url(images/menu.jpg)";;
menu();
}




function changeBGImage(whichImage)
{

//document.body.background = "11.jpg";
document.getElementById('starTable').style.backgroundImage= "url(images/down.gif)";;

}

//-->

if (document.images)
 {
     img1on= new Image(100,100);
     img1on.src="images/down.jpg";  

     img1off= new Image(100,100);
     img1off.src="images/header.jpg";
 }

function change(imgName)
 {
   if (document.images)
      {
         imgOn=eval(imgName + "on.src");
         document[imgName].src= imgOn;
      }
 }

function DisplayText()
{   alert('Here');
    alert(document.getElementById("txtDisplay").value);
    document.getElementById("txtDisplay").value = document.getElementById("ddSelect").value;
    document.getElementById("txtDisplay").focus();
}


function changeback(imgName)
 {
   if (document.images)
      {
        imgOff=eval(imgName + "off.src");
        document[imgName].src= imgOff;
      }
 }
function HideContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "block";
}
function ReverseContentDisplay(d) {
if(d.length < 1) { return; }
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
else { document.getElementById(d).style.display = "none"; }
}
//--></script>






