﻿//-----------------------------------------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------------------------------------------
function jsfPIWC(path,wndWidth,wndHeight) // Popup Image Window Centered
{
    var wndLeft = ( screen.width - wndWidth ) / 2;
    var wndTop = ( screen.height - wndHeight ) / 2;
    win = window.open("PopupImage.aspx?path="+path,"","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no," +
	    "resizable=no,copyhistory=no,width=" + wndWidth +",height=" + wndHeight + ",top=" + wndTop + ",left=" + wndLeft, true  );
    win.focus();
}
//-----------------------------------------------------------------------------------------------------------------------------------
function jsfSH(id) // Show Hide
{
	if( null != ( o = document.getElementById(id)))
		o.style.display = ( o.style.display == 'none' ) ? '':'none' ;
}
//-----------------------------------------------------------------------------------------------------------------------------------
function jsfS(id) // Show
{
	if( null != ( o = document.getElementById(id)))
		o.style.display = '' ;
}
//-----------------------------------------------------------------------------------------------------------------------------------
function jsfH(id) // Hide
{
	if( null != ( o = document.getElementById(id)))
		o.style.display = 'none' ;
}
//-----------------------------------------------------------------------------------------------------------------------------------
var aMHS = new Array();
(aMHS[0] = new Image()).src = "~/../Prj/GrNew/Sm/2.gif" ;
(aMHS[1] = new Image()).src = "~/../Prj/GrNew/Sm/1.gif" ;
//-----------------------------------------------------------------------------------------------------------------------------------
function jsfSMHSM( o, c, id, i ) // Set Menu Horizontal Stairs Main
{
    o.style.color = c ;
	if( null != ( o = document.getElementById(id)))
	    o.src = aMHS[i].src;
}
function jsfSMHS( o, c, bgc, id, i ) // Set Menu Horizontal Stairs
{
    jsfSMHSS( o, c, bgc );

	if( null != ( o = document.getElementById(id)))
	    o.src = aMHS[i].src;
}
function jsfSMHSS( o, c, bgc ) // Set Menu Horizontal Stairs Simple
{
    o.style.color = c ;
    o.style.backgroundColor = bgc ;
}
//-----------------------------------------------------------------------------------------------------------------------------------
var aMSS = new Array();
(aMSS[0] = new Image()).src = "~/../Prj/Gr/SM/1.gif" ;
(aMSS[1] = new Image()).src = "~/../Prj/Gr/SM/2.gif" ;
function jsfSMSS( idDiv, c, idImg, i ) // Set Menu Side Stairs
{
	if( null != ( o = document.getElementById(idDiv)))
        o.style.color = c ;
	if( null != ( o = document.getElementById(idImg)))
	    o.src = aMSS[i].src;
}
//-----------------------------------------------------------------------------------------------------------------------------------
var aSiteMapImgs = new Array();
(aSiteMapImgs[0] = new Image()).src = "~/../Prj/Gr/Bllts/tp.gif" ;
(aSiteMapImgs[1] = new Image()).src = "~/../Prj/Gr/Bllts/tm.gif" ;
function jsfSTI(idTable,oImg) // Set Tree Image Plus/Minus
{
	if( null != ( oTable = document.getElementById( idTable )))
			oImg.src = oTable.style.display == 'none' ? aSiteMapImgs[0].src:aSiteMapImgs[1].src
}
//-----------------------------------------------------------------------------------------------------------------------------------
var aMA = new Array();
(aMA[0] = new Image()).src = "~/../Prj/Gr/SM/1.gif" ;
(aMA[1] = new Image()).src = "~/../Prj/Gr/SM/2.gif" ;
function jsfSMA(idDiv, c) // Set Menu Accordion Image
{
    if(null!=(e=document.getElementById(idDiv)))
        e.style.color = c
}
//-----------------------------------------------------------------------------------------------------------------------------------
