if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;

var OP = (navigator.userAgent.indexOf('Opera') != -1);
var IE = (navigator.userAgent.indexOf('MSIE') != -1 && !OP);
var GK = (navigator.userAgent.indexOf('Gecko') != -1);
var SA = (navigator.userAgent.indexOf('Safari') != -1);
var DOM = document.getElementById;

var tooltip = null;

function TOOLTIP() {
//----------------------------------------------------------------------------------------------------
// Configuration
//----------------------------------------------------------------------------------------------------
  this.width = 200;                     // width (pixels)
  this.bgColor = "#000";             // background color
  this.textFont = "Comic Sans MS";      // text font family
  this.textSize = 13;                   // text font size (pixels)
  this.textColor = "#ccc";           // text color
  this.border = "1px solid #FFF";   // border (CSS spec: size style color, e.g. "1px solid #D00000")
  this.opacity = 90;                    // opacity (0 - 100); not supported by all browsers
  this.cursorDistance = 10;              // distance from mouse cursor (pixels)
  this.zindex = 9999;
  // don't change
  this.text = '';
  this.height = 0;
  this.obj = null;
  this.active = false;

//----------------------------------------------------------------------------------------------------
// Methods
//----------------------------------------------------------------------------------------------------
  this.create = function() {
    if(!this.obj) this.init();

    var s = (this.textFont ? 'font-family:' + this.textFont + '; ' : '') +
            (this.textSize ? 'font-size:' + this.textSize + 'px; ' : '') +
            (this.border ? 'border:' + this.border + '; ' : '') +
	    (this.zindex ? 'z-index:' + this.zindex + '; ' : '') +
            (this.textColor ? 'color:' + this.textColor + '; ' : '');

    var t = '<table border=0 cellspacing=0 cellpadding=4 width=' + this.width + '><tr>' +
            '<td align=center' + (s ? ' style="' + s + '"' : '') + '>' + this.text +
            '</td></tr></table>';

    if(DOM || IE) this.obj.innerHTML = t;
    if(DOM) this.height = this.obj.offsetHeight;
    else if(IE) this.height = this.obj.style.pixelHeight;
    if(this.bgColor) this.obj.style.backgroundColor = this.bgColor;

    this.setOpacity();
    this.move();
    this.show();
  }

  this.init = function() {
    if(DOM) this.obj = document.getElementById('ToolTip');
    else if(IE) this.obj = document.all.ToolTip;
  }

  this.move = function() {
    var winX = getWinX() - (((GK && !SA) || OP) ? 17 : 0);
    var winY = getWinY() - (((GK && !SA) || OP) ? 17 : 0);
    var x = mouseX;
    var y = mouseY;

    if(x + this.width + this.cursorDistance > winX + getScrX())
      x -= this.width + this.cursorDistance;
    else x += this.cursorDistance;

    if(y + this.height + this.cursorDistance > winY + getScrY())
      y -= this.height;
    else y += this.cursorDistance;

    this.obj.style.left = x + 'px';
    this.obj.style.top = y + 'px';
  }

  this.show = function() {
    this.obj.style.zIndex = 69;
    this.active = true;
    this.obj.style.visibility = 'visible';
  }

  this.hide = function() {
    this.obj.style.zIndex = -1;
    this.active = false;
    this.obj.style.visibility = 'hidden';
  }

  this.setOpacity = function() {
    this.obj.style.opacity = this.opacity / 100;
    this.obj.style.MozOpacity = this.opacity / 100;
    this.obj.style.KhtmlOpacity = this.opacity / 100;
    this.obj.style.filter = 'alpha(opacity=' + this.opacity + ')';
  }
}

//----------------------------------------------------------------------------------------------------
// Global functions
//----------------------------------------------------------------------------------------------------
function getScrX() {
  var offset = 0;
  if(window.pageXOffset)
    offset = window.pageXOffset;
  else if(document.documentElement && document.documentElement.scrollLeft)
    offset = document.documentElement.scrollLeft;
  else if(document.body && document.body.scrollLeft)
    offset = document.body.scrollLeft;
  return offset;
}

function getScrY() {
  var offset = 0;
  if(window.pageYOffset)
    offset = window.pageYOffset;
  else if(document.documentElement && document.documentElement.scrollTop)
    offset = document.documentElement.scrollTop;
  else if(document.body && document.body.scrollTop)
    offset = document.body.scrollTop;
  return offset;
}

function getWinX() {
  var size = 0;
  if(window.innerWidth)
    size = window.innerWidth;
  else if(document.documentElement && document.documentElement.clientWidth)
    size = document.documentElement.clientWidth;
  else if(document.body && document.body.clientWidth)
    size = document.body.clientWidth;
  else size = screen.width;
  return size;
}

function getWinY() {
  var size = 0;
  if(window.innerHeight)
    size = window.innerHeight;
  else if(document.documentElement && document.documentElement.clientHeight)
    size = document.documentElement.clientHeight;
  else if(document.body && document.body.clientHeight)
    size = document.body.clientHeight;
  else size = screen.height;
  return size;
}

function getMouseXY(e) {
  if(e && e.pageX != null) {
    mouseX = e.pageX;
    mouseY = e.pageY;
  }
  else if(event && event.clientX != null) {
    mouseX = event.clientX + getScrX();
    mouseY = event.clientY + getScrY();
  }
  if(mouseX < 0) mouseX = 0;
  if(mouseY < 0) mouseY = 0;
  if(tooltip && tooltip.active) tooltip.move();
}

function toolTip(text, width, opacity) {
  if(text) {
    tooltip = new TOOLTIP();
    tooltip.text = text;
    if(width) tooltip.width = width;
    if(opacity) tooltip.opacity = opacity;
    tooltip.create();
  }
  else if(tooltip) tooltip.hide();
}
//----------------------------------------------------------------------------------------------------
// Build tooltip box
//----------------------------------------------------------------------------------------------------
document.write('<div id="ToolTip" style="position:absolute; visibility:hidden;"></div>');

//----------------------------------------------------------------------------------------------------
// Event handlers
//----------------------------------------------------------------------------------------------------
var mouseX = mouseY = 0;
document.onmousemove = getMouseXY;

//	Fõoldali váltakozó képes menû megjelenítési modul

//	Azonnali megállítás jelzõ
var mv_stopthis = 0;
//	aktuális elem
var mv_b = 1;
//	mentet elemszám
var mv_c = 1;
//	ikonképek
var mv_thumb = [];
//	url linkek
var mv_url = [];
//	szöveges leírások
var mv_text = [];

function nextmv(mv_a) {
	//	 ha érvénytelen az elemszám kisebb mint 1 vagy nagyobb mint a max, akkor 1-re állítjuk
	if ( (mv_a < 1) || (mv_a > mv_max) ) {
		mv_b = 1;
	}
	//	ha a vvégére és akkor 1-re állítjuk az aktuális elemszámot
	if (mv_a > mv_max) {
		mv_a = 1;
	}
	//	elmentjük az aktuális elemszámot
	mv_c = mv_a;
	
	var t = String(mv_a);
	$('#mdimg').attr('src', webpath + 'upload/menuslide/' + mv_thumb[mv_a-1]);
	$('#mdimg').attr('title', mv_text[mv_a-1]);
	$('#mdurl').attr('href', mv_url[mv_a-1]);
	$('#mdtext').html( '<a href="'+mv_url[mv_a-1]+'">'+mv_text[mv_a-1]+'</a>' );
	$('#mdslide img').attr('style', 'border: 2px solid #000;');
	$('#mvc'+mv_a+' img').attr('style', 'border:2px solid #fff;');
}

//	Váltakozás
function changemv() {
	if (!mv_stopthis) {
		nextmv(mv_b);
		mv_b++;
	}
	setTimeout("changemv()", 3000);
}

//	Elem törlésének engedélyezése
function torles()
{
	var r=confirm("Biztos hogy törölni akarod az elemet?");
	return r;
}

//	 segítség popupba url betöltése 
function helpbox (url,nev)
{
	window.open(url,nev,'toolbar=no,location=no,directories=no,status=no,menubar=no,resizeble=no,scrollbar=no,caption=no,width=320,height=150,dialog=yes,minimizable=no,close=no,dependent=yes');
}


// 	 segítség doboz megjelenítése
function showHelp() {
	var el = document.getElementById('help')
	if (el.style.display == 'none') {
		document.getElementById('help').style.display='block';
	} else {
		document.getElementById('help').style.display='none';
	}
}

function showsfb() {
	$("#sfb").show();
//	document.getElementById('sfb').style.display='block';
}

function hidesfb() {
	$("#sfb").hide();
//	document.getElementById('sfb').style.display='none';
}

function notlogin()
{
	alert('Csak bejelentkezett felhasználóknak!');
	return false;
}

function nomodule()
{
	alert('A szolgáltatás hamarosan elérhető lesz!');
	return false;
}

function URLDecode(encoded)
{
	var HEXCHARS = "0123456789ABCDEFabcdef";
	var plaintext = "";
	var i = 0;
	while (i < encoded.length) 
	{
		var ch = encoded.charAt(i);
		if (ch == "+") 
		{
			plaintext += " ";
			i++;
		}
		else if (ch == "%") 
		{
			if (i < (encoded.length-2)
			&& HEXCHARS.indexOf(encoded.charAt(i+1)) != -1
			&& HEXCHARS.indexOf(encoded.charAt(i+2)) != -1 ) 
			{
				plaintext += unescape( encoded.substr(i,3) );
				i += 3;
			} 
			else 
			{
			alert( 'Bad escape combination near ...' + encoded.substr(i) );
			plaintext += "%[ERROR]";
			i++;
			}
		}
		else
		{
			plaintext += ch;
			i++;
		}
	}
	return plaintext;
};

function urlencode(string) {
	string=string.replace(/ő/g,'%F5');
	string=string.replace(/ű/g,'%FB');
	string=string.replace(/Ű/g,'%DB');
	string=string.replace(/Ő/g,'%D5');  
	return escape(string);   
} 

function serverwait() {
	return "<center><font size=2><b>A kérés folyamatban...</b></font></center>";
}

function getImg(i)
{
    return "<img src='"+i+"' border='0' />";
}

function share_click(pageid)
{
	var u=location.href;
	var t=document.title;
	var pagelink = '';
	var sharename = '';
	if (pageid == "1") 
	{
		pagelink = 'http://iwiw.hu/pages/share/share.jsp?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t)
		sharename = 'iwiwshare';
	}
	if (pageid == "2") 
	{
		pagelink = 'http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t)
		sharename = 'facebookshare';
	}
	if (pageid == "3") 
	{
		pagelink = 'http://www.twitter.com/home/?status='+encodeURIComponent(u)+'+'+encodeURIComponent(t)
		sharename = 'twittershare';
	}
	window.open(pagelink,sharename,'toolbar=0,status=0,location=1, width=800,height=500,scrollbars=1');
	return false;
}

function GetXmlHttpObject()
{
	if (window.XMLHttpRequest)
	{
	// code for IE7+, Firefox, Chrome, Opera, Safari
		return new XMLHttpRequest();
	}
	if (window.ActiveXObject)
	{
	// code for IE6, IE5
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
	alert ("A böngészõd nem kompatibilis XMLHTTP, frissítsd!");
	return null;
}

//	Show PopUp Window
function spw(popsrc,title,w,h)
{
	//	Háttér
	$("#wino").show();

	//	Popup box
	$("#winl").show();
	
	//	sw = screen.width;
	var sw = $("#wino").width();
	var sh = screen.height;

	if (w=='100%') {
		$("#winl").width('90%');
		w = sw-100;
	} else {
		$("#winl").width(w);
	}
	if (h=='100%') {
		$("#winl").height('90%');
		h = sh-100;
	} else {
		$("#winl").height(h);
	}

	var fh = h;
	if (title=='') {
		fh = h-20;
	} else {
		fh = h-50;
	}
	
	var pl = (sw-w)/2;
	var pt = '0';
	
	$("#winl").css("left",pl+"px");
	$("#winl").css("top",pt+"px");

	var deletebutton = '<div style="position:absolute;top:0px;left:0px;width:auto;height:auto;"><img src="themes/images/button/delete.gif" onClick="javascript:hpw();" border="0"></div>';
	var popuptitle = '<h1>'+title+'</h1>';
	var iframebox = '<iframe id="frameid" src="'+popsrc+'" align="middle" marginwidth="0" frameborder="0" border="1" width="'+(w-20)+'" height="'+fh+'" scrolling="auto"></iframe>';

	$("#winl").html(deletebutton+popuptitle+iframebox);
}

function hpw(popsrc)
{
	$("#wino").hide();
	$("#winl").hide();
}

var TimeSec = '0';

function Timer(t)
{
	TimeSec = t;
	var timeoutID = window.setTimeout(showTime, 1);
}

function showTime()
{
	if (TimeSec>0)
	{
		$("#awft").html(TimeSec+' mp');
		TimeSec = TimeSec-1;
		var timeoutID = window.setTimeout(showTime, 1000);
	}
	else {
		$("#awft").html('');
		window.clearTimeout(timeoutID);
		awclose();
	}
}

//	search video ajax box
function sv(search,db)
{
	$.ajax({
		type: "GET",
		url: "ajaxuser.php",
		data: "mod=searchvideos&search="+search+"&page="+db,
		success: function(msg){
			$('#svb').html(msg);
		}
	});
}

//	aw(cimke,mod+url,szélesség,magasság,idõzítõ);
function aw(title,mod,w,h,t)
{
	$('#wino').show();
	$('#aw').css("left",(($(window).width()-w)/2)+'px').show();
	$('#awc').width(w+'px').height('auto').html('<center><h1>Betöltés...</h1><center>');
	if (title!='') {
		$("#awt").html('<h1>'+title+'</h1>');
	}

	if (mod!='') {
		$.ajax({
			type: "GET",
			url: "ajaxuser.php",
			data: "mod="+mod,
			success: function(msg){
				$('#awc').height(h+'px').html(msg);
				$('#awfbb').click(function() {awclose();});
				$("#awf").show();
				if (t>0) Timer(t);
			}
		});
	}
}

//	ajaxhívás ah ( div - cél doboz, mod - modulnév, url - paraméterek, load - true );
function ah(div,mod,url,load)
{
	if (load) { $(div).html('<center><h1>Betöltés...</h1><center>');}
	if (mod!='') {
		$.ajax({
			type: "GET",
			url: "ajaxuser.php",
			data: "mod="+mod+url,
			success: function(msg){
				if (div>'') { $(div).html(msg);}
			}
		});
	}
}

//	ajaxhívás ah ( div - cél doboz, mod - modulnév, url - paraméterek, load - true );
function aah(div,mod,url,load)
{
	if (load) { $(div).html('<center><h1>Betöltés...</h1><center>');}
	if (mod!='') {
		$.ajax({
			type: "GET",
			url: "ajaxadmin.php",
			data: "mod="+mod+url,
			success: function(msg){
				if (div>'') { $(div).html(msg);}
			}
		});
	}
}

//	awc(cimke,mod+url,szélesség,magasság,idõzítõ);
function awc(title,srcmod,w,h,t)
{
	$('#wino').show();
	$('#aw').css("left",(($(window).width()-w)/2)+'px').show();
	$('#awc').width('100%').height('auto').html('<center><h1>Betöltés...</h1><center>');
	$('#awfbb').click(function() {awclose();});
	$("#awf").show();
				
	var iframebox = '<iframe id="frameid" src="'+srcmod+'" align="middle" marginwidth="0" frameborder="0" border="1" width="'+(w-20)+'" height="'+(h-20)+'" scrolling="auto"></iframe>';

	if (title!='') {
		$("#awt").html('<h1>'+title+'</h1>');
	}
	$("#awc").html(iframebox);
}
function awclose(){
	$("#aw").hide();
	$("#awf").hide();
	$('#wino').hide();
}

//	box-ba html tartalombetöltése;
function loadbox(box,url)
{
	$(box).load(url);
}

function fbc_login() {
	if ( window.FB ) {
		FB.login( 
			function( response ) {
				if ( response.session ) {location.reload();}
			}, { perms: 'email,user_birthday,publish_stream' }
		);
	}
};
function fbc_logout() {
	if ( window.FB ) {
		FB.logout(
			function( response ) {
				//window.location = '';
				location.reload();
			}
		);
	}
};
function fbc_unjoin() {
	if ( window.FB ) {
		if ( confirm( 'Tényleg szét akarod kapcsolni a http://www.ilovemusic.hu-t?' ) ) {
			FB.api({ method: 'Auth.revokeAuthorization' }, function( response ) {location.reload();});
		}
	}
};

function ShowAuth (url,h,t) {
	if ( t ) {
		if  ( $("#authbox").css('display')=='none' ) { $("#authbox").show().fadeIn(1000); } else { $("#authbox").hide().fadeOut(1000); }
	}
	var lb = '<iframe id="authframe" src="'+url+'" align="middle" marginwidth="0" frameborder="0" border="1" width="100%" height="'+h+'" scrolling="none"></iframe>';
	//auth.php?mod=login
	$("#authbox").html(lb);
}

document.write('<div id="aw" style="display:none;"><div id="awfb"></div><div id="awt"></div><div id="awc"></div><div id="awf"><center><h3 id="awfbb">Bezárás <span id="awft"></span></h3></center></div></div>');
//document.write('<div id="wino"></div><div id="winl"></div>');
document.write('<div style="position: absolute; top: -10000px; left: -10000px;  width: 0px; height: 0px;" id="FB_HiddenContainer"></div>');

$(document).ready(function(){
	$("#awfb").click(function() {awclose();});

	// Segítség dobozok megjelenítése
	$("img[class='helpicon']").tooltip();
	
	//	Keresés doboz
	$("#searchid").click(function () {
		var text = $('#textid').val();
		var typeid = $("#typeid option:selected").val();
		var url = 'search.php?subpage='+typeid+'&search='+text;
		window.location.href = url;
	})
	$('#textid').bind('keypress', function(e) {
		if(e.keyCode==13){
			var text = $('#textid').val();
			var typeid = $("#typeid option:selected").val();
			var url = 'search.php?subpage='+typeid+'&search='+text;
			window.location.href = url;
		}
	});
});



