
/*******************************************************************************************************************/
/*	TABMEGJELENÍTO KEZD	*/
/*******************************************************************************************************************/

function tabfulclick(t, id) {
	
    var myTimer={};
    if($('#'+t.id).attr('class')=='tab_ful'){
        $('#'+t.id).attr('class', 'tab_ful_aktiv');
		 
       /*
	   $('#tab_tartalom_'+id).animate({
            height:'toggle'
        }, 100 );
       */
	   myTimer=$.timer(1, function(){
                $('#tab_tartalom_'+id).html($("#tab_tartalom_"+t.id).html());  init_dw_Scroll();
            }, function(){                
                $.clearTimer(myTimer);
            }
        );
	   
	   /*
        $('#tab_tartalom_'+id).animate({
            height:'toggle'
        }, 100 );
		*/
		//$("#tab_tartalom_"+id).html($("#tab_tartalom_"+t.id).html());
    }
}
/*******************************************************************************************************************/
/*	TABMEGJELENÍTO VÉGE	*/
/*******************************************************************************************************************/






/*******************************************************************************************************************/
/*	MENÜ VÉGE	*/
/*******************************************************************************************************************/

var timeout         = 000;
var closetimer		= 0;
var ddmenuitem      = 0;


function mopen(id)
{	
	// cancel close timer
	mcancelclosetime();
	// close old layer
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
	// get new layer and show it
	ddmenuitem = document.getElementById(id);
	ddmenuitem.style.visibility = 'visible';
}
// close showed layer
function mclose()
{
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
}
// go close timer
function mclosetime()
{
	closetimer = window.setTimeout(mclose, timeout);
}
// cancel close timer
function mcancelclosetime()
{
	if(closetimer)
	{
		window.clearTimeout(closetimer);
		closetimer = null;
	}
}
/*******************************************************************************************************************/
/*	MENÜ VÉGE	*/
/*******************************************************************************************************************/






/*******************************************************************************************************************/
/*	BETUMÉRET NÖVELO KEZD	*/
/*******************************************************************************************************************/
var fontpx = 12; // alapértelmezés szerint ekkora betukkel írunk
var minpx = 10; // a legkisebb fontméret
var maxpx = 18; // a legnagyobb fontméret

function changeFont(dif) {
var obj;
var newpx = fontpx + dif;

if (newpx >= minpx && newpx <= maxpx) {
obj = document.getElementById("cikk_nezet");
//obj2 = document.getElementsByTagName ("a");
if (obj){
	obj.style.fontSize = newpx + "px";
	//obj2.style.fontSize = newpx + "px";
	//obj.style = "font-size: "+newpx+"px";
	//news_content.a.style.fontSize = newpx + "px";
}
fontpx = newpx
}
}
/*******************************************************************************************************************/
/*	BETUMÉRET NÖVELO VÉGE	*/
/*******************************************************************************************************************/




    
/*******************************************************************************************************************/
/*	SZAMÁRFÜL BANNER KEZD	*/
/*******************************************************************************************************************/


function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
	args=MM_showHideLayers.arguments;
	var testval = args[0].split(",")
	if(testval[0] == 'small'){
		changeDiv(args);
	}
	else{
		window.setTimeout("changeDiv(args)",720);
	}
}

function changeDiv(args){
 	var p,v,obj;
 	//alert(args[0]+" ## "+args[2]);
  args1 = args[0].split(",");
  args2 = args[1].split(",");
  
  for (var i=0; i<args1.length; i++){
  		obj=MM_findObj(args1[i]);
  		
  		if (obj!=null){
  			v=args2[i];
    		
    		if (obj.style){
    			obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v;
    		}
    	}
    	
    	if(obj){
    		obj.visibility=v;
    	}
  	}
}

function writePeel(zanoxLink){
	
	document.writeln('<style type="text/css">');
	document.writeln('#small{position:absolute;right:0px;top:0px;width:75px;height:75px;z-index:32;visibility: visible; display: ;}');
	document.writeln('#big{position:absolute;right:0px;top:0px;width:350px;height:350px;z-index:33;visibility: hidden; display: block;}');
	document.writeln('</style>');
	
	document.writeln('<div id="small">');
	document.writeln('<object id="swfSmall" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="75" height="75">');
	document.writeln('<param name="movie" value="' + urlPagePeel + 'uj_small.swf?imageSmall='+urlImageSmall+'&incomingURL='+zanoxLink+'" />');
	document.writeln('<param name="quality" value="high" />');
	document.writeln('<param name="wmode" value="transparent" />');
	document.writeln('<embed src="' + urlPagePeel + 'uj_small.swf?imageSmall='+urlImageSmall+'&incomingURL='+zanoxLink+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="75" height="75" wmode="transparent"></embed>');
	document.writeln('</object>');
	document.writeln('</div>');
	
	
	/*
	document.writeln('<div id="small">');
	document.writeln('<object id="swfSmall" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100" height="100">');
	document.writeln('<param name="movie" value="' + urlPagePeel + 'small.swf?imageSmall='+urlImageSmall+'&incomingURL='+zanoxLink+'" />');
	document.writeln('<param name="quality" value="high" />');
	document.writeln('<param name="wmode" value="transparent" />');
	document.writeln('<embed src="' + urlPagePeel + 'small.swf?imageSmall='+urlImageSmall+'&incomingURL='+zanoxLink+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100" height="100" wmode="transparent"></embed>');
	document.writeln('</object>');
	document.writeln('</div>');
	*/
	/*
	document.writeln('<div id="big">');
	document.writeln('<object id="swfBig" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="500" height="500">');
	document.writeln('<param name="movie" value="' + urlPagePeel + 'big.swf?imageBig='+urlImageBig+'&incomingURL='+zanoxLink+'" />');
	document.writeln('<param name="quality" value="high" />');
	document.writeln('<param name="wmode" value="transparent"  />'); 
	document.writeln('<embed src="' + urlPagePeel + 'big.swf?imageBig='+urlImageBig+'&incomingURL='+zanoxLink+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="500" wmode="transparent"></embed>');
	document.writeln('</object>');
	document.writeln('</div>');
	*/
	
	document.writeln('<div id="big">');
	document.writeln('<object id="swfBig" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="350" height="350">');
	document.writeln('<param name="movie" value="' + urlPagePeel + '350_350.swf?imageBig='+urlImageBig+'&incomingURL='+zanoxLink+'" />');
	document.writeln('<param name="quality" value="high" />');
	document.writeln('<param name="wmode" value="transparent"  />'); 
	document.writeln('<embed src="' + urlPagePeel + '350_350.swf?imageBig='+urlImageBig+'&incomingURL='+zanoxLink+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="350" height="350" wmode="transparent"></embed>');
	document.writeln('</object>');
	document.writeln('</div>');
	
	
	document.writeln('<scr'+'ipt type="text/javascript">');
	document.writeln('document.getElementById("swfSmall").onmouseover = function(){MM_showHideLayers("small,big","hide,show")};');
	document.writeln('document.getElementById("swfBig").onmouseout = function(){MM_showHideLayers("big,small","hide,show")};');
	document.writeln('</scr'+'ipt>');


}          
/*******************************************************************************************************************/
/*	SZAMÁRFÜL BANNER VÉGE	*/
/*******************************************************************************************************************/




/*******************************************************************************************************************/
/*	POPUP LOGIN KEZD	*/
/*******************************************************************************************************************/

function popup_login_view() {
	scroll(0,0);
	$('#popup_login').css('display','block');
	$('#popup_login_overlay').css('display','block');
	$('html,body').css('overflow','hidden');
	var bady_width = $('body').width();
	var left_space = ( bady_width - 962)/2;
	$('#popup_login_overlay').css({'width':bady_width, 'left':-left_space, 'top':'-500px', 'height':'3000px'});
}
function popup_login_hide() {
	$('#popup_login').css('display','none');
	$('#popup_login_overlay').css('display','none');
	$('html,body').css('overflow','auto');
}
/*******************************************************************************************************************/
/*	POPUP LOGIN VÉGE	*/
/*******************************************************************************************************************/



