﻿// JScript File



function CloseAllDivs()
{

    if(document.getElementById('dvProduct1').style.display=='block')
    {   
    
        document.getElementById('dvProduct1').style.display='none';
          document.getElementById ('myArpic').src="images/arrow_3.gif";  
        }
else if(document.getElementById('dvEventar').style.display=='block')
    { 
        document.getElementById('dvEventar').style.display='none';
        document.getElementById ('Img1').src="images/arrow_3.gif";  
    } 
else if(document.getElementById('dvCompany1').style.display=='block')
    {  
        document.getElementById('dvCompany1').style.display='none'; 
        document.getElementById ('copmimg').src="images/arrow_3.gif"; 
    } 


}



function ShowSub(subDiv,pic)
{
// Close All Open Divs
CloseAllDivs();

if(document.getElementById(subDiv).style.display=='none')
{

document.getElementById(subDiv).style.display='block';
document.getElementById (pic).src="images/arrow_2.gif";
}
else
{

document.getElementById(subDiv).style.display='none';

}
}







function invertmenu(elmnt) {
document.getElementById (elmnt).style.backgroundColor="#FF8000"; 
document.getElementById (elmnt).style.color="White";

} 
 
function revertmenu(elmnt) {
document.getElementById (elmnt).style.backgroundColor ="White"; 
document.getElementById (elmnt).style.color="#FF8000"; 
}
function Mover(itm)
{
//document.getElementById (itm).style.color="#FF8000";
document.getElementById (itm).style.backgroundColor="#FF8000"; 
document.getElementById (itm).style.color="White";
}
function Mout(itm)
{
document.getElementById (itm).style.color="#a9a9a9";
document.getElementById (itm).style.background="#eceaeb"; 
}

//var flag=false; 

//function ChangeMenuPicAr(pic)
//{
//if(flag==false)
//{
//document.getElementById (pic).src="images/arrow_2.gif";
//flag=true;
//}
//else
//{
//document.getElementById (pic).src="images/arrow_3.gif";
//flag=false;
//}
//}
<!--
var popupWindow=null;
function popup(mypage,myname,w,h,pos,infocus){
 
if (pos == 'random')
{LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
else
{LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';popupWindow=window.open('',myname,settings);
if(infocus=='front'){popupWindow.focus();popupWindow.location=mypage;}
if(infocus=='back'){popupWindow.blur();popupWindow.location=mypage;popupWindow.blur();}
 
}
// -->