﻿//-----------------------------------------------------------------------------------------------------------------------------------
function jsfPIWCProduct(pid,wndWidth,wndHeight) // Popup Image Window Centered
{
    var wndLeft = ( screen.width - wndWidth ) / 2;
    var wndTop = ( screen.height - wndHeight ) / 2;
    win = window.open("PopupImage.aspx?id="+pid,"","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 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 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 change(melyik,kepnev, img , a)
{   
    if (melyik==1) {   
    document.getElementById(img).style.background="url('~/../HE/Gr/Menu/m_but_over.gif')"; 
    //document.getElementById(a).style.color = "#ffffff";
      
    }   
    else if (melyik==2) {   
    document.getElementById(img).style.background="url('~/../HE/Gr/Menu/m_but.gif')"; 
    //document.getElementById(a).style.color="#05782B"; 

    }   
}     

function jsfGetBorder(id)
{
    //document.getElementById(id).style.border="solid 2px #907E10";
}  
function jsfNoBorder(id)
{
    //document.getElementById(id).style.border="solid 2px #C6C6C6";
} 

function jsfOWC( wndUrl, wndWidth, wndHeight, wndScrollbar, wndMenubar ) // Open Window Centered
{
	var wndLeft = ( screen.width - wndWidth ) / 2;
	var wndTop = ( screen.height - wndHeight ) / 2;
	win = window.open( wndUrl,"","toolbar=no,location=yes,directories=no,status=no,menubar=" + wndMenubar + ",scrollbars=" + wndScrollbar +
		",resizable=yes,copyhistory=no,width=" + wndWidth +",height=" + wndHeight + ",top=" + wndTop + ",left=" + wndLeft  );

	win.focus();
}   
function jsfPWC(url, width, height) // Popup Window Centered
{
    var left = ( screen.width - width ) / 2;
    var top = ( screen.height - height ) / 2;
    win = window.open(url, "", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=" + width +",height=" + height + ",top=" + top + ",left=" + left, true);
    win.focus();
}
