﻿//-----------------------------------------------------------------------------------------------------------------------------------
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 jsfSHM(id) // Show Hide Menu
{
	if( null != ( o = document.getElementById(id)))
		o.style.display = ( o.style.display == 'none' ) ? '':'none' ;
}
//-----------------------------------------------------------------------------------------------------------------------------------
function jsfSH(id)
{
	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' ;
}
//-----------------------------------------------------------------------------------------------------------------------------------
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 ;
}
//-----------------------------------------------------------------------------------------------------------------------------------
function jsfSMSS( o, c, bgc, id, i ) // Set Menu Side Stairs
{
    jsfSMSSS( o, c, bgc );
//    o.style.color = c ;
//    o.style.backgroundColor = bgc ;

	if( null != ( o = document.getElementById(id)))
	    o.src = aMSS[i].src;
}
function jsfSMSSS( o, c, bgc ) // Set Menu Side Stairs Simple
{
    o.style.color = c ;
    o.style.backgroundColor = bgc ;
}
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
}
//-----------------------------------------------------------------------------------------------------------------------------------
function jsfSMSA( o, c, bgc ) // Set Menu Side Stairs
{
    o.style.color = c ;
    o.style.backgroundColor = bgc ;
}
function jsfSMSAI(id,oImg) // Set Side Menu Accordion Image
{
	if( null != ( oTr = document.getElementById(id)))
        oImg.src = oTr.style.display == 'none' ? aMSA[0].src:aMSA[1].src
}
function jsfACC(idTr)
{
    document.getElementById(trDP).style.display='block'
}
//-----------------------------------------------------------------------------------------------------------------------------------
 function csere(melyik,kepnev, img , a) {   
    if (melyik==1) {   
    document.getElementById(img).style.background="url('~/../HE/Gr/Menu/but_b.gif')"; 
    //document.getElementById(a).style.color = "#8F1603";
      
    }   
    else if (melyik==2) {   
    document.getElementById(img).style.background="url('~/../HE/Gr/Menu/but_a.gif')"; 
    //document.getElementById(a).style.color="#0D0D0D"; 
  
    }   
  }   
  //---  Articles POPup - //
function jsfPopupArticleResponse(aid,rid,wndWidth,wndHeight) // Popup Article Response
{
    var wndLeft = ( screen.width - wndWidth ) / 2;
    var wndTop = ( screen.height - wndHeight ) / 2;
    win = window.open("PopupArticleResponse.aspx?aid=" + aid + "&rid=" + rid,"","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 jsfSIS( array, o, i ) // Set Image Source
    {
	    o.src = array[i].src ;
    }
 
 function jsfPopupProduct(id,wndWidth,wndHeight) // Popup Image Window Centered
{
    var wndLeft = ( screen.width - wndWidth ) / 2;
    var wndTop = ( screen.height - wndHeight ) / 2;
    win = window.open("PopupProduct.aspx?pid="+id,"","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes," +
	    "resizable=no,copyhistory=no,width=" + wndWidth +",height=" + wndHeight + ",top=" + wndTop + ",left=" + wndLeft, true  );
    win.focus();
} 

function jsfGo(id,url)
{
    window.location.href=url;
}

function jsfPopupTellFriend(id,wndWidth,wndHeight) // Popup Window Centered
{
    var wndLeft = ( screen.width - wndWidth ) / 2;
    var wndTop = ( screen.height - wndHeight ) / 2;
    win = window.open("PopupTellFriend.aspx","","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();
}      
