﻿function openclose(input){
var divinput = 'div' + input;
    if (document.getElementById(divinput).style.display=='none')
    {
        document.getElementById(input).className='';
        document.getElementById(divinput).style.display='block';
    }
    else
    {
        document.getElementById(input).className='minus';
        document.getElementById(divinput).style.display='none';    
    }
}

function xopenclose(input){
var divinput = 'div' + input;
    if (document.getElementById(divinput).style.display=='none')
    {
        document.getElementById(input).className='minus';
        document.getElementById(divinput).style.display='block';
    }
    else
    {
        document.getElementById(input).className='';
        document.getElementById(divinput).style.display='none';    
    }
}

function OpenCloseDropMenu(input){
var ulinput = 'DropMenuTab' + input;
var imginput = 'DropMenuImage' + input;
    if (document.getElementById(ulinput).style.display=='none')
    {
        document.getElementById(imginput).src='../img/ico_blue2.gif';
        document.getElementById(ulinput).style.display='block';
    }
    else
    {
        document.getElementById(imginput).src='../img/ico_blue.gif';
        document.getElementById(ulinput).style.display='none';    
    }
}

function ChangePhotoDropMenu(input){
var ulinput = 'DropMenuTab' + input;
var imginput = 'DropMenuImage' + input;
    if (document.getElementById(ulinput).style.display=='none')
    {
        document.getElementById(imginput).src='../img/ico_blue.gif';
    }
    else
    {
        document.getElementById(imginput).src='../img/ico_blue2.gif';   
    }
}

function ChangePhoto2DropMenu(input){
var ulinput = 'DropMenuTab' + input;
var imginput = 'DropMenuImage' + input;
    if (document.getElementById(ulinput).style.display=='none')
    {
        document.getElementById(imginput).src='../img/ico.gif';
    }
    else
    {
        document.getElementById(imginput).src='../img/ico2.gif';   
    }
}

function OpenCloseStocksDetails(input){
var ulinput = 'StocksDetails' + input;
var imginput = 'StocksDetailsImg' + input;
    if (document.getElementById(ulinput).style.display=='none')
    {
        document.getElementById(imginput).src='../img/ico_blue2.gif';
        document.getElementById(ulinput).style.display='block';
    }
    else
    {
        document.getElementById(imginput).src='../img/ico_blue.gif';
        document.getElementById(ulinput).style.display='none';    
    }
}

function ChangePhotoStocksDetails(input){
var ulinput = 'StocksDetails' + input;
var imginput = 'StocksDetailsImg' + input;
    if (document.getElementById(ulinput).style.display=='none')
    {
        document.getElementById(imginput).src='../img/ico_blue.gif';
    }
    else
    {
        document.getElementById(imginput).src='../img/ico_blue2.gif';   
    }
}

function ChangePhoto2StocksDetails(input){
var ulinput = 'StocksDetails' + input;
var imginput = 'StocksDetailsImg' + input;
    if (document.getElementById(ulinput).style.display=='none')
    {
        document.getElementById(imginput).src='../img/ico.gif';
    }
    else
    {
        document.getElementById(imginput).src='../img/ico2.gif';   
    }
}

function getnews(){return}
function getxml(f) {
 var xxc, ajax
 try{
	var xmlhttp = new window.XMLHttpRequest();
	xmlhttp.open("GET",f,false);
	xmlhttp.send(null);
	xxc = xmlhttp.responseXML;
 }catch(e){
	if(typeof window.ActiveXObject!='undefined')xxc=new ActiveXObject('Microsoft.XMLDOM')
	else xxc=document.implementation.createDocument('','',null)
	xxc.async=false;xxc.load(f);
}
 return xxc;
}

function zodio(i){
var s = '/zodiaPanel.aspx?ord=' + i;
document.getElementById('dzodio').innerHTML=getxml(s).documentElement.childNodes[0].nodeValue;
}
