
	function dg(_id)
	{
		return document.getElementById(_id);
	}

/*
 * to plug memory leaks
 */
function purge(d) {
    var a = d.attributes, i, l, n;
    if (a) {
        l = a.length;
        for (i = 0; i < l; i += 1) {
            n = a[i].name;
            if (typeof d[n] === 'function') {
                d[n] = null;
            }
        }
    }
    a = d.childNodes;
    if (a) {
        l = a.length;
        for (i = 0; i < l; i += 1) {
            purge(d.childNodes[i]);
        }
    }
}
		
Object.later = function (object, msec, method) {	
	var that = object,
		args = Array.prototype.slice.apply(arguments, [3]);
	if (typeof method === 'string') {
		method = that[method];
	}
    time = setTimeout(function () {
        method.apply(that, args);
    }, msec);
    return time;	
};
Object.extend(Event, {
	_domReady : function() {
		if (arguments.callee.done) return;
		arguments.callee.done = true;
		if (Event._timer) clearInterval(Event._timer);
		Event._readyCallbacks.each(function(f) { f() });
		Event._readyCallbacks = null;
	},
	onReady : function(f) {
		if (!this._readyCallbacks) {
			var domReady = this._domReady;
			if (domReady.done) return f();
			if (document.addEventListener)
				document.addEventListener("DOMContentLoaded", domReady, false);
			/*@cc_on @*/
			/*@if (@_win32)
			var dummy = location.protocol == "https:" ? "https://javascript:void(0)" : "javascript:void(0)";
			document.write("<script id=__ie_onload defer src='" + dummy + "'><\/script>");
			document.getElementById("__ie_onload").onreadystatechange = function() {
			if (this.readyState == "complete") { domReady(); }
			};
			/*@end @*/
			if (/WebKit/i.test(navigator.userAgent)) {
				this._timer = setInterval(function() {
					if (/loaded|complete/.test(document.readyState)) domReady();
				}, 10);
			}
			Event.observe(window, 'load', domReady);
			Event._readyCallbacks = [];
		}
		Event._readyCallbacks.push(f);
	}
});	

	function ablakmeret() {
		var szelesseg = 0, magassag = 0;
		if (typeof(window.innerWidth) == 'number') {
			//Nem-IE
			szelesseg = window.innerWidth;
			magassag = window.innerHeight;
		} else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
			//IE 6+ 'szabvanyos' mod
			szelesseg = document.documentElement.clientWidth;
			magassag = document.documentElement.clientHeight;
		} else if (document.body && (document.body.clientWidth || document.body.clientHeight)) {
			//IE 4 kompatibilis
			szelesseg = document.body.clientWidth;
			magassag = document.body.clientHeight;
		}
		return [szelesseg, magassag];
	}

	function printJSblock() {

		obj = $('page');
		field = "width";
		var result = "";
		if (window.getComputedStyle)
		{
			result = document.defaultView.getComputedStyle(obj,null).getPropertyValue(field);
		} else if (obj.currentStyle){
			result = obj.currentStyle[field];
		}
		return parseInt(result);
	}

	function stringFlashCorrect(str)
	{
		var str1 = str.replace( /\%/i, "%25");	
		var str2 = str1.replace( /\&amp;/i, "%26" );		
		var str3 = str2.replace( /\"/i,	"%22" );
		var str5 = str3.replace( /\+/i, "%2B" );

		return str5;
	}

	eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[(function(e){return d[e]})];e=(function(){return'\\w+'});c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('w Q=1i(){w c=l.1d.P();w 4={z:(c.v("10")>-1)?{b:q}:k,K:(l.U)?{b:l.U.v("1e")}:k,F:l.J!=y&&l.J.P().v("F")>-1,5:(c.v("5")>-1)?{b:q}:k,L:D.X!=y&&D.X.v("L")>-1,f:q,g:q,A:k};4.E=4.z||4.F;4.n=(!4.z&&l.J!=y&&l.J.P()=="n")?{b:q}:k;m(4.n){4.n.1g=B H(c.t(/.*n\\/(\\d{8}).*/)[1]);4.n.r=B H(c.t(/.*n\\/(\\d{8}).*/)[1]);4.G=(c.v("G")>-1)?{b:q}:k;m(4.G){4.G.r=c.t(/.* G\\/([*0-9]\\.[*0-9]\\.[*0-9]\\.[*0-9])*/)[1]}}m(4.5){4.5.r=B H(c.t(/.*5(\\s|\\/)(\\d+\\.\\d+)/)[2])}m(!4.5&&O.5){4.5=q;4.u=k;4.n=k;4.5.r=O.5.r()}4.u=(c.v("Y")>-1&&!4.5&&!4.E&&!4.n)?{b:q}:k;4.o=4.u&&c.t(/.*E.*/)!=y;m(4.u||(4.5&&4.5.r<7.6)){4.g=k}m(4.u){4.u.r=c.t(/.* Y ([*0-9]\\.[*0-9])*/)[1]}m(4.z){4.z.r=B H(c.t(/.*10\\/(\\d+).*/)[1])}m(l.N&&l.N["11/x-12-A"]&&l.N["11/x-12-A"].1k&&(!4.u||4.o)){w M=(l.R["14 W 2.0"]||l.R["14 W"]).16;4.A={b:q};4.A.r=17(M.18(M.v(".")-1))}1a{w C=k;T{w x=B S("I.I");1b(w i=3;x!=y;i++){x=B S("I.I."+i);C=i}}13(e){}m(C)4.A={b:q};4.A.r=(C)?C:k}m(c.t(/.*(1f|E).*/)==y||4.o||4.F||(4.5&&(c.t(/.*E.*/)!=y||4.i<7.6))||(4.K&&4.h<7)||(!4.K&&4.z&&4.Z<15)||(4.n&&4.j<19)){4.f=k}m(!4.o&&!4.n&&D.V){T{D.V(a,"i").1h=""}13(e){4.L=q}}4.p=4.F||(4.z&&4.Z<1j)||4.u;1c 4};D.Q=O.Q();',62,83,'||||browser|opera|||||||uagent||||||||false|navigator|if|gecko|||true|version||match|ie|indexOf|var||null|apple|flash|new|swfversion|document|mac|konqueror|firefox|Number|ShockwaveFlash|product|safari|xml|aj|mimeTypes|window|toLowerCase|agent|plugins|ActiveXObject|try|vendor|createElementNS|Flash|contentType|msie|appleversion|applewebkit|application|shockwave|catch|Shockwave|124|description|parseInt|charAt|20020523|else|for|return|userAgent|Apple|windows|date|innerHTML|function|312|enabledPlugin'.split('|'),0,{}));

	function XBrowserAddEventHandler(target,eventName,handlerName) {
		if(!target) return;
		if (target.addEventListener) {
			target.addEventListener(eventName, function(e){eval(handlerName)(e);}, false);
		} else if (target.attachEvent) {
			target.attachEvent("on" + eventName, function(e){eval(handlerName)(e);});
			} else {
			var originalHandler = target["on" + eventName];
			if (originalHandler) {
				target["on" + eventName] = function(e){originalHandler(e);eval(handlerName)(e);};
			} else {
				target["on" + eventName] = eval(handlerName);
			}
		}
	}

	function antiAlias()
	{
		if(document.agent.flash) {
			$$('h1, h3').each(function(s){
					var _orig = s.innerHTML;
					var _width = s.getAttribute('width');
					if(_width == null) {
						_width = s.parentNode.offsetWidth - 25; 
					}
					_row = Math.round(eval(s.offsetHeight / 20))
					_hrefs = s.getElementsByTagName('a');
					if(_hrefs.length > 0){
						var text	= _hrefs[0].innerHTML;
						var url		= _hrefs[0].href;
					} else {
						var text	= s.innerHTML;
						var url		= false;
					}		
					s.innerHTML = [
					'<embed src="/swf/title.swf" quality="high"',
					' scale="noscale" salign="lt" wmode="transparent"',
					' bgcolor="#ffffff" width="',
					_width,
					'" height="',
					eval( ( _row * 18 ) + 15 ) ,
					'" name="title" align="middle" allowScriptAccess="sameDomain"',
					' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"',
					' flashvars="txt=',
					stringFlashCorrect(text),
					'&amp;fs=16&amp;fc=0x3e3e3e',
					(!url)?'':'&amp;furl=',
					(!url)?'':url,
					'" title="',
					text,
					'" /><span>',
					_orig,
					'</span>'].join("");
			});
			
			if ( document.all && (navigator.userAgent.toLowerCase().indexOf("msie 6.") != -1) ) {
				document.getElementById("mainTitle").style.zoom = "1";
			}
		}		
	}
	
	function phonePrice_Left()
	{
	if(document.agent.flash) {	
		var _bs = getElementsByClassName(dg('Phones'), 'b', 'price');
		for( var i = 0; i<_bs.length; i++ )
		{
			var _orig = _bs[i].innerHTML;
			diff = 12; height = 20; fs = 14;
				//if (_bs[i].innerHTML.length < 5 )
				//	{
				//		diff = 10;
				//		fs = 16;
				//		height = 18;
				//	} else {
				//		diff = 18;
				//		fs = 16;
				//		height = 18;
				//	}

				_bs[i].innerHTML = ['<embed src="/swf/phoneprice_left.swf" quality="high" scale="noscale" salign="lt" wmode="transparent" bgcolor="#ffffff" width="',eval( (_bs[i].innerHTML.length * 7 ) + diff ),'" height="',height,'" name="title" align="left" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="txt=',stringFlashCorrect(_bs[i].innerHTML),'&amp;fs=',fs,'&amp;fc=0xffffff" title="',_bs[i].innerHTML,'" /><span>',_orig,'</span>'].join("");
			}
		}
	}	
	
	function phonePrice_1()
	{
	if(document.agent.flash) {	
		var _bs = getElementsByClassName(dg('Phones'), 'b', 'price');
		for( var i = 0; i<_bs.length; i++ )
		{
			var _orig = _bs[i].innerHTML;
			diff = 12; height = 20; fs = 14;
				//if (_bs[i].innerHTML.length < 5 )
				//	{
				//		diff = 10;
				//		fs = 16;
				//		height = 18;
				//	} else {
				//		diff = 18;
				//		fs = 16;
				//		height = 18;
				//	}

				_bs[i].innerHTML = ['<embed src="/swf/phoneprice.swf" quality="high" scale="noscale" salign="lt" wmode="transparent" bgcolor="#ffffff" width="',eval( (_bs[i].innerHTML.length * 7 ) + diff ),'" height="',height,'" name="title" align="center" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="txt=',stringFlashCorrect(_bs[i].innerHTML),'&amp;fs=',fs,'&amp;fc=0xffffff" title="',_bs[i].innerHTML,'" /><span>',_orig,'</span>'].join("");
			}
		}
	}

	function phonePrice_2( ) // color:	'ffffff'
	{
		if(document.agent.flash) {	
			var _bs = getElementsByClassName(dg('phoneList'), 'span', 'pr1');
			for( var i = 0; i<_bs.length; i++ )
			{
				var _orig = _bs[i].innerHTML;
				diff = 5; height = 17; fs = 12;
			//if (_bs[i].innerHTML.length < 5 )
			//	{
			//		diff = 10;
			//		fs = 18;
			//		height = 20;
			//	} else {
			//		diff = 22;
			//		fs = 18;
			//		height = 20;
			//	}

				_bs[i].innerHTML = ['<embed src="/swf/phoneprice.swf" quality="high" scale="noscale" salign="lt" wmode="transparent" bgcolor="#ffffff" width="',eval( (_bs[i].innerHTML.length * 7 ) + diff ),'" height="',height,'" name="title" align="center" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="txt=',stringFlashCorrect(_bs[i].innerHTML),'&amp;fs=',fs,'&amp;fc=0x0099ff" title="',_bs[i].innerHTML,'" /><span>',_orig,'</span>'].join("");
			}

			var _bs = getElementsByClassName(dg('phoneList'), 'span', 'pr2');
			for( var i = 0; i<_bs.length; i++ )
			{
					var _orig = _bs[i].innerHTML;
					diff = 5; height = 17; fs = 12;
				//if (_bs[i].innerHTML.length < 5 )
				//	{
				//		diff = 10;
				//		fs = 18;
				//		height = 20;
				//	} else {
				//		diff = 22;
				//		fs = 18;
				//		height = 20;
				//	}

				_bs[i].innerHTML = ['<embed src="/swf/phoneprice.swf" quality="high" scale="noscale" salign="lt" wmode="transparent" bgcolor="#ffffff" width="',eval( (_bs[i].innerHTML.length * 7 ) + diff ),'" height="',height,'" name="title" align="center" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="txt=',stringFlashCorrect(_bs[i].innerHTML),'&amp;fs=',fs,'&amp;fc=0x000000" title="',_bs[i].innerHTML,'" /><span>',_orig,'</span>'].join("");
			}
			
			var _bs = getElementsByClassName(dg('phoneList'), 'span', 'pr3');
			for( var i = 0; i<_bs.length; i++ )
			{
				var _orig = _bs[i].innerHTML;
				diff = 4; height = 17; fs = 11;
				_bs[i].innerHTML = ['<embed src="/swf/phoneprice.swf" quality="high" scale="noscale" salign="lt" wmode="transparent" bgcolor="#ffffff" width="',eval( (_bs[i].innerHTML.length * 7 ) + diff ),'" height="',height,'" name="title" align="center" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="txt=',stringFlashCorrect(_bs[i].innerHTML),'&amp;fs=',fs,'&amp;fc=0x0099ff" title="',_bs[i].innerHTML,'" /><span>',_orig,'</span>'].join("");
			}
			
			var _bs = getElementsByClassName(dg('phoneList'), 'span', 'pr4');
			for( var i = 0; i<_bs.length; i++ )
			{
				var _orig = _bs[i].innerHTML;
				diff = 5; height = 17; fs = 13;
				_bs[i].innerHTML = ['<embed src="/swf/phoneprice.swf" quality="high" scale="noscale" salign="lt" wmode="transparent" bgcolor="#ffffff" width="',eval( (_bs[i].innerHTML.length * 7 ) + diff ),'" height="',height,'" name="title" align="center" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="txt=',stringFlashCorrect(_bs[i].innerHTML),'&amp;fs=',fs,'&amp;fc=0xffffff" title="',_bs[i].innerHTML,'" /><span>',_orig,'</span>'].join("");
			}
		}
	}

	function phonePrice_3( fs, height, diff )
	{
	if(_document.agent.flash) {	
		var _bs = getElementsByClassName(dg('Phones'), 'b', 'price');
		for( var i = 0; i<_bs.length; i++ )
		{
			var _orig = _bs[i].innerHTML;
			//diff = 20; height = 20;
				//if (_bs[i].innerHTML.length < 5 )
				//	{
				//		diff = 10;
				//		fs = 16;
				//		height = 18;
				//	} else {
				//		diff = 18;
				//		fs = 16;
				//		height = 18;
				//	}

				_bs[i].innerHTML = ['<embed src="/swf/phoneprice.swf" quality="high" scale="noscale" salign="lt" wmode="transparent" bgcolor="#ffffff" width="',eval( (_bs[i].innerHTML.length * 7 ) + diff ),'" height="',height,'" name="title" align="center" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="txt=',stringFlashCorrect(_bs[i].innerHTML),'&amp;fs=',fs,'&amp;fc=0xffffff" title="',_bs[i].innerHTML,'" /><span>',_orig,'</span>'].join("");
			}
		}
	}	

	function phoneComparePrice( fs, height, diff )
	{
		if(document.agent.flash) {	
			$$('#DeviceCompare span.price').each(function(s){
				var _orig = s.innerHTML;
				s.innerHTML = ['<embed src="/swf/phoneprice.swf" quality="high" scale="noscale" salign="lt" wmode="transparent" bgcolor="#ffffff" width="',eval( (s.innerHTML.length * 7 ) + diff ),'" height="',height,'" name="title" align="center" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="txt=',stringFlashCorrect(_bs[i].innerHTML),'&amp;fs=',fs,'&amp;fc=0xffffff" title="',s.innerHTML,'" /><span>',_orig,'</span>'].join("");
			});
		}
	}
	function antiAliasSM() // for sitemap titles
	{
		if(document.agent.flash) {
			$$('a.siteMap').each(function(s){
				 _row = Math.ceil(s.innerHTML.length / 25);
				 var _orig = s.innerHTML;
				 s.innerHTML = ['<embed src="swf/sitemaptitle.swf" quality="high" scale="noscale" salign="lt" wmode="transparent" bgcolor="#ffffff" width="',eval(s.parentNode.offsetWidth - 10),'" height="',eval( ( _row * 15 ) + 15 ) ,'" name="title" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="txt=',stringFlashCorrect(s.innerHTML),'&amp;fs=16&amp;fc=0x3e3e3e&amp;furl=',s.href,'" title="',s.innerHTML,'" /><span>',_orig,'</span>'].join("");
			});
		}
	}



	function getUL(obj)
	{
		if( nodes = obj.getElementsByTagName('ul') )
			{
				return nodes[0];
			}
			return false;
	}

	function getElementsByClassName(oElm, strTagName, strClassName){
			var arrElements = new Array()
			var arrReturnElements = new Array();
			if(oElm != null)
			{
				if((strTagName == "*") && document.all)
				{
					arrElements = document.all
				}
				else
				{
					arrElements = oElm.getElementsByTagName(strTagName)
				}
				//var arrElements = (strTagName == "*" && document.all)? document.all : oElm.getElementsByTagName(strTagName);
				strClassName = strClassName.replace(/\-/g, "\\-");
				var oRegExp = new RegExp("(^|\\s)" + strClassName + "(\\s|$)");
				var oElement;
				for(var i=0; i<arrElements.length; i++){
						oElement = arrElements[i];
						if(oRegExp.test(oElement.className)){
								arrReturnElements.push(oElement);
						}
				}
			}
			return (arrReturnElements)
	}
	
	function selectRedirect(_url){
		window.location.href = _url;
	}

/*
	megkeresi a 'bigTable' objektumot es javitja IE alatt a megjeleneset
*/
function greatTable()
{
	if(document.agent.ie){
		$$('#Content div.bigTable table').each(function(s){
				s.parentNode.style.height = Math.round(eval(s.offsetHeight * 1.1))+'px';
				s.style.position = 'absolute';
		});
	}
}

function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or higher.
{
	for(var i=0; i<document.images.length; i++)	{
		var img = document.images[i]
		var imgName = img.src.toUpperCase()
		if (imgName.substring(imgName.length-3, imgName.length) == "PNG") {
			var imgID = (img.id) ? "id='" + img.id + "' " : ""
			var imgClass = (img.className) ? "class='" + img.className + "' " : ""
			var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
			var imgStyle = "display:inline-block;" + img.style.cssText
			if (img.align == "left") imgStyle = "float:left;" + imgStyle
			if (img.align == "right") imgStyle = "float:right;" + imgStyle
			if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
			var strNewHTML = "<span " + imgID + imgClass + imgTitle
			+ " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
			+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
			+ "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
			img.outerHTML = strNewHTML
			i = i-1
	
		}
	}

}


/*
*
*	pannon galeria
*
*/
function galery( pager ) {
	this.pagerObj = pager;
	this.items = pager.getElementsByTagName('div');
	this.itemNum = this.items.length;
	this.active = 1;

	this.show = showImage;
	this.prev = galPrev;
	this.next = galNext;
	this.over = galOver;

	var that = this;

	for( var i=0; i<this.items.length; i++)
	{
		_ca = this.items[i].getElementsByTagName('a');
		_gid = i+1;
		_ca[0].galeryId = _gid;
		_ca[0].onclick = function() { that.show(this.galeryId); return false; };

//			_prev = getElementsByClassName(dg('gal'+_gid), 'a', 'prev')
		$$('#gal'+_gid+' a.prev')[0].onclick = function() { that.prev(); return false; };

//			_next = getElementsByClassName(dg('gal'+_gid), 'a', 'next')
		$$('#gal'+_gid+' a.next')[0].onclick = function() { that.next(); return false; };
	}

}

function showImage( num )
{
	if(this.active != num)
	{
		this.over(num-1);
		_hide = $('gal'+this.active);
		_hide.style.display = 'none';
		_show = document.getElementById($('gal'+num).id);
		_show.style.display = 'block';
		this.active = num;
	}
	return false;
}

function galPrev()
{
	if(eval(this.active - 1) >= 1)
		this.show(eval(this.active - 1));

	return false;
}

function galNext()
{
	if(this.active+1 <= this.itemNum)
		this.show(this.active+1);

	return false;
}

function galOver( id )
{
	_old = $('over');
	_oldref = this.items[this.active-1];
	_oldref.removeChild(_old);

	_ref = this.items[id].getElementsByTagName('a');
	_span = document.createElement("span");
	_span.id = "over";

	newc = this.items[id].insertBefore(_span, _ref[0]);

//		element.insertBefore(newElement, referenceElement)
//		oldChild = element.removeChild(child)

}

var PhoneTabSwitcher = function(){
	
	return {
		init: function(){
			if($('PhonePage')){
				$$('a.phoneTab').each(function(s){
					s.onclick = function(){
						$$('div#PhonePage div.active')[0].removeClassName('active');
						$(this.id.replace('Switch','')).addClassName('active');
						$$('a.phoneTab.active')[0].removeClassName('active');
						this.addClassName('active');
						this.blur();						
						return false;
					}
				});
				
				
			}			
		}
	};
}();

	

	var pageForwardRefTop;
	var pageForwardRefLeft;

	function getPageForwardRef(){
		_ref = $('pageForwardRef');
		try
		{
			pageForwardRefTop	=	eval( _ref.offsetTop	+ _ref.parentNode.offsetTop );
			pageForwardRefLeft =	eval( _ref.offsetLeft - 28 );
		}
		catch(ex)
		{
			//alert("Az alább hiba van jól: " + ex)
		}
	}

	function IEpageForwardWorkaround()
	{
		_div = $('pageForward');

		if(_div){
//			getPageForwardRef();
			
			_body = document.getElementsByTagName('body');
			_oldChild = _div.parentNode.removeChild(_div);
			_body[0].appendChild(_oldChild);
			
			/*
			_p = $('page');
			_absLeft = _p.offsetLeft+264;
			_div.style.marginTop = '15px';
			_div.style.left = eval(pageForwardRefLeft + _absLeft) +'px';
			*/
		}
	}

	function correctPageForwardPos()
	{
		getPageForwardRef();
		_div = $('pageForward');
		if(_div){
			_p = $('page');
			_absLeft = _p.offsetLeft+264;
			
//			_div.style.marginTop = '0px';

			_div.style.top	= eval(pageForwardRefTop-378)+'px';

			_div.style.left = eval(pageForwardRefLeft + _absLeft) +'px';
		}
	}

	function pageForwardHandler()
	{

		XBrowserAddEventHandler($('pageForwardRef'),'click',function() { $('pageForward').style.display = 'block'; } );
		XBrowserAddEventHandler($('pageForwardClose1'),'click',function() { $('pageForward').hide(); } );
		XBrowserAddEventHandler($('pageForwardClose2'),'click',function() { $('pageForward').hide(); } );
	}

	function printPage()
	{
		if(document.getElementById('printPage'))
			{
				_print = document.getElementById('printPage');
				_print.onclick = function (){ printPreview(true); return false; }
			}
			
	}
	
	function flvPlayerHandler()
	{
		XBrowserAddEventHandler($('flvlink_1'),'click',function() { switchFlv('1'); } );
		XBrowserAddEventHandler($('flvlink_2'),'click',function() { switchFlv('2'); } );
		XBrowserAddEventHandler($('flvlink_3'),'click',function() { switchFlv('3'); } );
		XBrowserAddEventHandler($('flvlink_4'),'click',function() { switchFlv('4'); } );
		XBrowserAddEventHandler($('flvlink_5'),'click',function() { switchFlv('5'); } );								
		
		XBrowserAddEventHandler($('closelink_1'),'click',function() { closeFlv('1'); } );		
		XBrowserAddEventHandler($('closelink_2'),'click',function() { closeFlv('2'); } );
		XBrowserAddEventHandler($('closelink_3'),'click',function() { closeFlv('3'); } );
		XBrowserAddEventHandler($('closelink_4'),'click',function() { closeFlv('4'); } );
		XBrowserAddEventHandler($('closelink_5'),'click',function() { closeFlv('5'); } );								
	}
	
	function switchFlv(id) {
		for( var i = 1; i < 6; i++ ) {
			if (i == id) {
				$('flvPlayer' + i).style.display = 'block';
			} else {
				$('flvPlayer' + i).style.display = 'none';
			}
		}
	}
	
	function closeFlv(id) {
		$('flvPlayer' + id).style.display = 'none';
	}
	
	
function printPreview( _do ) {
	if(_do){
	
		_printbar = document.createElement('div');
		_printbar.id = 'PrintBar';
		
		_p = document.createElement('p');
		_p.innerHTML = document.getElementsByTagName('title')[0].innerHTML+' nyomtatható változat';
		
		_bprint = document.createElement('a');
		_bprint.className = 'btn print';
		_bprint.style.cursor = 'pointer';
		_bprint.style.marginRight = '8px';
		_bprint.onclick = function(){
			window.print();
			printPreview(false);
		};
		
		_bcancel = document.createElement('a');
		_bcancel.className = 'btn cancel';
		_bcancel.style.cursor = 'pointer';
		_bcancel.onclick = function(){
			printPreview(false);
		};			
		
		_printbar.appendChild(_p);
		_printbar.appendChild(_bprint);
		_printbar.appendChild(_bcancel);			
		
		document.getElementsByTagName('body')[0].insertBefore(_printbar, $('page'));
		
		window.scrollTo(0,0);
		setActiveStyleSheet("Print Preview");
	} else {
		if($('PrintBar')){
			document.getElementsByTagName('body')[0].removeChild($('PrintBar'));
		}
		setActiveStyleSheet("Pannon");			
	}
}

	function targetHrefNew() /* uj ablakba nyitja meg azon linkeket melyeknel class == 'new' */
	{
		_hrefs = document.getElementsByTagName('a');
		for( var i = 0; i < _hrefs.length; i++ )
		{
			if( ( _hrefs[i].className.indexOf('new') > -1 )	)
			{
				_hrefs[i].onclick = function()
				{
					window.open(this.getAttribute('href'), "_blank", "");
					return false;
				}
			}
		}
	}

	function clearButtons() {
		_inputs = document.getElementsByTagName('input');
		for( var i = 0; i < _inputs.length; i++ )
		{
			if( _inputs[i].type == 'submit' )
			{
				_inputs[i].value = '';
			}
		}
	}

	function historyBack()
	{
		_hrefs = document.getElementsByTagName('a');
		for( var i = 0; i < _hrefs.length; i++ )
		{
			if( ( _hrefs[i].className.indexOf('historyBack') > -1 )	)
			{
				_hrefs[i].onclick = function()
				{
					history.back();
					return false;
				}
			}
		}
	}


	function setDevices(_did, _variant) {

		switch(_variant)
		{
			case 2:
			{
				_devices = $('choose_settings_device');
				break;
			}
			case 1:
			default:
			{
				_devices = $('choose_device');
				break;
			}
		}
		

		while (_devices.firstChild) {
			_devices.removeChild(_devices.firstChild);
		}

		_opFirst =	document.createElement("option");
		_opFirst.value = "#";
		_opFirst.innerHTML = "-- válassz típust --";
		_opFirst.selected = "selected";
		_devices.appendChild(_opFirst);

		switch(_variant)
		{
			case 2:
			{
				_arr= options2[_did];
				break;
			}
			case 1:
			default:
			{
				_arr= options[_did];
				break;
			}
		}
		
		for(var i in _arr)
		{
			_devices.appendChild(_arr[i]);
		}

	}


/*
*
*	text noveles/csokkentes
*
*/
	var textSize = Object();

	function textSizer( init_size ) {
		this.size = init_size;

		this.container = new Array();
	
		if($('Content')){
			this.container.push('Content');
		} else if ($('phoneTabHolder') && $('phoneTable')){
			this.container.push('phoneTabHolder');
			this.container.push('phoneTable');
		}
			this.increase = textSizerIncrease;
			this.decrease = textSizerDecrease;
	}
	
	function textSizerIncrease() 
	{  
		this.size = eval(this.size + 1); 
		for(var i=0; i<this.container.length;i++)
			$(this.container[i]).style.fontSize = this.size+'px'; 	
		if(document.agent.ie) { greatTable(); }  
	}
	
	function textSizerDecrease() 
	{  
		this.size = eval(this.size - 1); 
		for(var i=0; i<this.container.length;i++)
			$(this.container[i]).style.fontSize = this.size+'px'; 
		if(document.agent.ie) { greatTable(); }  
	}

	function init_textSizer()
	{
		try {
		textSize = new textSizer ( 11 );
		$('textDec').onclick = function() {  textSize.decrease(); return false; };
		$('textInc').onclick = function() {  textSize.increase(); return false; };
		} catch(e) {
			return false;
		}
	}

/*
*
*	800x600 para rc.1.5
*
*/
function oldSchool() {
	meret = ablakmeret();
	if(meret[0] < 960) {
		$('page').style.position = 'relative';
		$('page').style.left = '0px';
		$('page').style.marginLeft = '0px';
	} else if(meret[0] > 960){
		if( printJSblock() < 650 ){
			$('page').style.position = 'absolute';
			$('page').style.left = '50%';
			$('page').style.marginLeft = '-480px';
		}
	}
}

function newWindow(nev, w, h, scroll, _imagepopup ) {

	if (newWindow.arguments[3] == undefined)
	{
		sc = 1;
	} else {
		sc = newWindow.arguments[3];
	}

	var str='scrollbars='+sc+',width='+w+',height='+h+',left='+((screen.width/2)-(w/2))+',top='+((screen.height/2)-(h/2));
	
	if(_imagepopup)
	{
		var nyit = window.open('', 'tartalom', str);
	} else {
		var nyit = window.open(nev, 'tartalom', str);
	}
	
	
	
	if(_imagepopup)
	{
	
		_base = document.getElementsByTagName('base');
		_baseHref = _base[0].getAttribute('href');

		
		_newBody = nyit.document.getElementsByTagName('body');

		_newBody[0].style.margin = '0px';
		_newBody[0].style.padding = '0px';	

		if(!document.agent.ie)
		{
			nev = _baseHref.substr(0, _baseHref.length-1)+nev;
		}

		_newBody[0].innerHTML = '<img src="'+nev+'" width="'+w+'" height="'+h+'" alt="" />';
			
	}

	nyit.focus();
}

function getPopup()
{
	_hrefs = document.getElementsByTagName('a');
	for( var i = 0; i < _hrefs.length; i++ )
	{
		if( ( _hrefs[i].className.indexOf('popUp_') > -1 )  )
		{
			if( !(_w = new Number(_hrefs[i].className.match(/.*_w(\d{3})_.*/)[1])) )
				return false;

			if( !(_h = new Number(_hrefs[i].className.match(/.*_h(\d{3}).*/)[1])) )
				return false;
			
			if( _hrefs[i].className.indexOf('imagepopUp_') > -1 )
			{
				_imagepopup = true;
			} else {
				_imagepopup = false;
			}
			
			_hrefs[i].popupWidth = _w;
			_hrefs[i].popupHeight = _h;
			_hrefs[i].imagePopup = _imagepopup;
			_hrefs[i].onclick = function()
			{
				newWindow(this.getAttribute('href'), this.popupWidth, this.popupHeight, 0, this.imagePopup )
				return false;
			}
		}
	}
}


var selectorHandler = function(){
	
	function clear( _obj ){
		while (_obj.firstChild) {
		  _obj.removeChild(_obj.firstChild);
		}
	}	
	
	function fill( _ID , _data )
	{
		clear($(_ID));
		$A(_data).each(function(s){
			opt = document.createElement('option');
			opt.setAttribute('value',s.url);
			opt.innerHTML = s.name;
			$(_ID).appendChild(opt);			
		});
	}
	
	return {
		clear: function( _id ){
			clear($(_id));
		},		
		fill: function( _id, _array){
			fill(_id, _array );
		},
		load: function( _type, _id, _phone){
				
			var param = {};

			param.type = _type;
			param.phone = _phone;
			
			param.model = (arguments[3])?arguments[3]:'';	
			param.func = (arguments[4])?arguments[4]:false;
			param.hint = (arguments[5])?arguments[5]:false;
			param.index = (arguments[6])?arguments[6]:false;			
			param.filter = (arguments[7])?arguments[7]:false;
 	
			fill( _id, new Array({name:"adatok töltése...",url:'#'} ));			
			
			new Ajax.Request('/xmlhttprequest.php', {
				method: 'post',
				parameters: param,
				onLoading: function(){
					selectorHandler.fill( _id, new Array({name:"adatok töltése...",url:'#'} ));
					if(func) eval(func+'();');
				},
				onSuccess: function(transport){
					dataArray = transport.responseText.evalJSON()
					selectorHandler.fill(_id, dataArray );
					if(func) eval(func+'();');
				}			
			});
			return false;
		}		
	}
}();


/*
 *	ajax utilities
 *
 */

function clearSelect(obj){
	while (obj.firstChild) {
	  obj.removeChild(obj.firstChild);
	}
}

/*
 * function function fillSelect
 *
 *		selectID	- select id to fill
 *		data		- 2 dimensional array of data
 */
function fillSelect(selectID , data)
{
	select = $(selectID);	
	clearSelect(select);
	
	for ( var i=0; i<data.length; i++ )
	{
		opt = document.createElement('option');
		opt.setAttribute('value',data[i][0]);
		opt.innerHTML = data[i][1];
		select.appendChild(opt);
	}
}



/*
 * function ajaxPhoneHandler
 *
 *		type	- query type [ 'switchPhone', 'switchModel' ]
 *		id		- select field id to fill with data
 *		phone	- selected value to post
 *		[model]	- selected value to post
 *		[func]	- function to run after success
 */

function ajaxPhoneHandler( type, id, phone ) 
{
		var dataArray = new Array();
		
		if(arguments[3]) 
		{
			var model = arguments[3]
		} else {
 		var model = '';
		}
		
		if(arguments[4])
		{
			var func = arguments[4]
		} else { 
			var func = false; 
		}
		
		if(arguments[5])
		{
			var hint = arguments[5]
		} else { 
			var hint = false; 
		}

		if(arguments[6])
		{
			var index = arguments[6]
		} else { 
			var index = false; 
		} 	
		if(arguments[7])
		{
			var filter = arguments[7]
		} else { 
			var filter = false; 
		}  		

		loadMsg = new Array();
		loadMsg[loadMsg.length] = new Array('#', 'adatok töltése...');
 		fillSelect(id, loadMsg );
		
		new Ajax.Request('/xmlhttprequest.php', {
			method: 'post',
			parameters: { 'type':type, 'phone':phone, 'model':model, 'hint':hint, 'index':index, 'filter':filter },
			onLoading: function(){
				loadMsg = new Array();
				loadMsg[loadMsg.length] = new Array("#", "adatok töltése...");
				fillSelect(id, loadMsg );
				if(func) eval(func+'();');
			},
			onSuccess: function(transport){
				eval(transport.responseText);
				fillSelect(id, dataArray );
				if(func) eval(func+'();');
			}
		
		});		
		return false;
	}




/*
 *	IE 6 hack to allow copy/paste
 *
 */
 
	function init_fixIE6AbsPos()
	{
		if (window.createPopup && document.compatMode && document.compatMode=="CSS1Compat")
		{
		  document.onreadystatechange = onresize = function fixIE6AbsPos()
		  {
		    if (!document.body) return;
		    if (document.body.style.margin != "0px") document.body.style.margin = 0;
		    onresize = null;
		    document.body.style.height = 0;
		    setTimeout(function(){ document.body.style.height = document.documentElement.scrollHeight+"px"; }, 1);
		    setTimeout(function(){ onresize = fixIE6AbsPos; }, 100);
		  }
		}
	}
	
	function setActiveStyleSheet(title){  // select the stylesheet
	   var i, a, main;
	   for(i=0; (a = document.getElementsByTagName("link") [i]); i++) {
	     if(a.getAttribute("rel").indexOf("style") != -1
	        && a.getAttribute("title")) {
	       a.disabled = true;
	       if(a.getAttribute("title") == title) a.disabled = false;
	     }
	   }
	}	

/**
 *	document handling Cookies
 */


function fixDate(date) {
	var base = new Date(0);
	var skew = base.getTime();
	if (skew > 0)
		date.setTime(date.getTime() - skew);
}

Object.extend(document,{
	setCookie: function(name, value, expires, path, domain, secure) {
		var now = new Date();
		fixDate(now);
		now.setTime(now.getTime() + expires); 
	
		var curCookie = name + "=" + escape(value) +
			((expires) ? "; expires=" + now.toGMTString() : "") +
			((path) ? "; path=" + path : "") +
			((domain) ? "; domain=" + domain : "") +
			((secure) ? "; secure" : "");
		document.cookie = curCookie;
	},
	getCookie: function(name) {
		var dc = document.cookie;
		var prefix = name + "=";
		var begin = dc.indexOf("; " + prefix);
		if (begin == -1) {
			begin = dc.indexOf(prefix);
		if (begin != 0) return null;
		} else
			begin += 2;
		var end = document.cookie.indexOf(";", begin);
		if (end == -1)
			end = dc.length;
		return unescape(dc.substring(begin + prefix.length, end));
	},
	deleteCookie: function(name, path, domain) {
		if (document.getCookie(name)) {
			document.cookie = name + "=" + 
			((path) ? "; path=" + path : "") +
			((domain) ? "; domain=" + domain : "") +
			"; expires=Thu, 01-Jan-70 00:00:01 GMT";
		}
	}
});


function fixIEselectBug() {
	try{ 
		noIEscrollFIX;
	}catch(e){ 
		noIEscrollFIX = false; 
	}
	if(!noIEscrollFIX)
		document.body.style.height = document.documentElement.scrollHeight + 'px';
}



function PGSMTabs(){	
	$$('div.tab[title!=""]').each(function(s,i){
		if(i==0){
			_d=document.createElement('div')
			_d.className = "PGSMTabs";
			s.parentNode.insertBefore(_d,s)
		}
		
		_a = document.createElement('a');
		_a.title = s.title;
		_a.href="";
		_a.innerHTML = "<span>"+s.title+"</span>";
		_a.className = (i==0 && $$('div.tab.active').length == 0)||(s.hasClassName('active'))?"active":"";
		$$('div.PGSMTabs')[0].appendChild(_a);
		
		_a.onclick = function(e){
			
			_e = ( e == undefined )?event:e;
			Event.stop(_e)
			_obj = Event.element(_e);
			_obj = (Event.element(_e).tagName.toLowerCase() == 'a')?Event.element(_e):Event.element(_e).parentNode;
			
			$$('div.tab').each(function(s){s.hide();});
			$$('div.tab[title="'+_obj.title+'"]')[0].show();
			$$('div.PGSMTabs a.active')[0].removeClassName('active');
			$(_obj).addClassName('active');
			
			if(document.agent.ie){
				$$('body')[0].style.height = 'auto';
			}
			
			return false;
		}		
		if(!((i==0 && $$('div.tab.active').length == 0)||(s.hasClassName('active')))){
			s.hide();
		}
	})	
}

function correctInputOver(){
	$$('input[type=submit]').each(function(s){
		s.onmouseover = function(){
			this.style.backgroundPosition = '0 -16px';
		};
		s.onmouseout = function(){
			this.style.backgroundPosition = '0 0';
		};
	});
}


function getURLParam(strParamName) {
	var strReturn = "";
	var strHref = window.location.href;
	if ( strHref.indexOf("?") > -1 ){
	    var strQueryString = strHref.substr(strHref.indexOf("?"));
	    var aQueryString = strQueryString.split("&");
	    for ( var iParam = 0; iParam < aQueryString.length; iParam++ ) {
	    	if (aQueryString[iParam].indexOf(strParamName + "=") > -1 ) {
				var aParam = aQueryString[iParam].split("=");
		        strReturn = aParam[1];
		        break;
			}
		}
	}
	return unescape(strReturn);
};

function getAdvFromURL() {
	if (getURLParam('video') != "") {
		loadFile({file:'/download/flv/' + getURLParam('video') + '.flv'}, getURLParam('title'));
	}
}

function loadFile(obj, title) {
	thisMovie("adv").loadFile(obj);
	document.getElementById('flv_title').innerHTML = title;
	window.scrollTo(0,0);
	thisMovie("adv").sendEvent('playpause');
};

function thisMovie(movieName) {
    if(navigator.appName.indexOf("Microsoft") != -1) {
		return window[movieName];
	} else {
		return document[movieName];
	}
};

function validate_mbiSignup() {
	if ( document.getElementById('misignup_name').value.length < 4 ) {
		alert('A név megadása kötelező!');
		return false;
	}
	
	if ( document.getElementById('misignup_phone').value.length < 7 ) {
		alert('A telefonszám megadása kötelező!');
		return false;		
	} else if (!ert_ell(document.getElementById('misignup_phone').value, 'szam', 0, 0)) {
		alert('A telefonszám csak szám lehet!');
		return false;
	}	
	
	if ( document.getElementById('misignup_postcode').value.length < 3 ) {
		alert('Az irányítószám megadása kötelező!');
		return false;		
	} else if (!ert_ell(document.getElementById('misignup_postcode').value, 'szam', 0, 0)) {
		alert('Az irányítószám csak szám lehet!');
		return false;
	}
			
	return true;
}

function gup( name ) {
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
}

function mbiSignupSent() {
	if ( gup('signupsent') ) {
		alert('Megrendelését a rendszerünk rögzítette. Köszönjük!');
	}
}

/*
*
*	eventHandlers
*
*/
	Event.observe(window,'load',function() { antiAlias(); } );
	Event.observe(window,'load',function() { pageForwardHandler(); } );
	Event.observe(window,'load',function() { flvPlayerHandler(); } );	
	Event.observe(window,'load',function() { printPage(); } );
	Event.observe(window,'load',function() { targetHrefNew(); } );
	Event.observe(window,'load',function() { init_textSizer(); } );
	Event.observe(window,'load',function() { oldSchool(); } );
	Event.observe(window,'load',function() { baseTooltip(); } );
	Event.observe(window,'resize',function() { oldSchool();  } );
	
	Event.observe(window,'load',function() {PGSMTabs(); } );
	Event.observe(window,'load',function() {getAdvFromURL(); } );
	Event.observe(window,'load',function() {mbiSignupSent(); } );

	if(document.agent.ie)
	{
		Event.observe(window,'load',function() { correctInputOver(); } );
		Event.observe(window,'load',function() { correctPNG(); } );
		Event.observe(window,'load',function() { greatTable(); } );
		Event.observe(window,'load',function() { getPageForwardRef(); } );
		Event.observe(window,'load',function() { IEpageForwardWorkaround(); } );
		Event.observe(window,'resize',function() { correctPageForwardPos(); } );
		Event.observe(window,'load',function() { fixIEselectBug(); } );
	}
	if(document.agent.opera)
	{
		Event.observe(window,'load',function() { clearButtons(); } );
	}

	if ( typeof jQuery != 'undefined' ) {
		jQuery(function() {
			
			var pageTitle = jQuery("h1:eq(0)").text();
		
			if (jQuery("#sectionPrivate").hasClass("active")) {
				var pageType = "Egyéni";
			} else if (jQuery("#sectionBusiness").hasClass("active")) {
				var pageType = "Üzleti";
			}
			
			// Letoltesek merese
			jQuery("#strech a[href*=/letoltes], #strech a[href*=/download]").click(function() {
				var aHref = jQuery(this).attr("href");
				aHref = aHref.replace(/http:\/\/[^\/]+/i, "");
				pageTracker._trackEvent('Letöltések', pageTitle, aHref);
			});
			
			// MBI egyeni oldalso form
			jQuery("#rightColumn div.mobileint_signupbox a")
				.eq(0)
					.click(function() {
						pageTracker._trackEvent('MBI lead box', "Egyéni – " + pageTitle, "További infó - kiszállítás");
					})
				.end()
				.eq(1)
					.click(function() {
						pageTracker._trackEvent('MBI lead box', "Egyéni – " + pageTitle, "További infó - ügyfélszolgálat");
					})
				.end()
				.eq(2)
					.click(function() {
						pageTracker._trackEvent('MBI lead box', "Egyéni – " + pageTitle, "További infó - próbáld ki személyesen");
					});
					
			jQuery("#rightColumn div.mobileint_signupbox form").submit(function() {
				pageTracker._trackEvent('MBI lead box', "Egyéni – " + pageTitle, "Mehet");
			});

			// MBI uzleti oldalso form			
			jQuery("#rightColumn div.mobileint_signupbox_business a")
				.eq(0)
					.click(function() {
						pageTracker._trackEvent('MBI lead box', "Üzleti – " + pageTitle, "További infó - kiszállítás");
					})
				.end()
				.eq(1)
					.click(function() {
						pageTracker._trackEvent('MBI lead box', "Üzleti – " + pageTitle, "További infó - ügyfélszolgálat");
					})
				.end()
				.eq(2)
					.click(function() {
						pageTracker._trackEvent('MBI lead box', "Üzleti – " + pageTitle, "További infó - próbáld ki személyesen");
					});
					
			jQuery("#rightColumn div.mobileint_signupbox_business form").submit(function() {
				pageTracker._trackEvent('MBI lead box', "Egyéni – " + pageTitle, "Mehet");
			});
			
			
			//Netshop keszulek oldalon a keszulek alatti linkek
			jQuery("#PhonePageNew div.netshopBox a").click(function() {
				pageTracker._trackEvent('Készülékvégoldal', 'Netshop link - ' + pageType,  jQuery(this).text());
			});
			
			//Bonus program link
			jQuery("#PhonePageNew div.bonuspart a").click(function() {
				pageTracker._trackEvent('Készülékvégoldal', 'Bónuszprogram - ' + pageType);
			});
			
			// Netshop nyito eventek
			// Keszulek dobozok
			jQuery("#Content div.netshopDevice a").click(function() {
				pageTracker._trackEvent('Netshop oldal', jQuery(this).parent().parent().find("a.title").text() + ' végoldalra');
			});
			
			// Keszulek promok
			jQuery("#Content img.netshop_flekk").parent().click(function() {
				pageTracker._trackEvent('Netshop oldal', jQuery(this).prev().text() + ' - promo');
			});
			
			// Teljes netshop kinalat linkek
			jQuery("#netshopFull a, #netshopFooter a").click(function() {
				pageTracker._trackEvent('Netshop oldal', jQuery(this).text() + ' - link');
			});
			
			//Keszulek kereso
			jQuery("#LeftDeviceSearch").submit(function() {
				if ( jQuery("#sectionPrivate").hasClass("active") && jQuery("h1").eq(0).text() == "Aktuális" ) {
					pageTracker._trackEvent('Készülékkereső', 'Egyéni nyitó');
				} else if ( jQuery("#sectionBusiness").hasClass("active") && jQuery("h1").eq(0).text() == "Aktuális" ) {
					pageTracker._trackEvent('Készülékkereső', 'Üzleti nyitó');
				} else {
					if ( jQuery( "#leftMenu li.onOne" ).length ) {
						pageTracker._trackEvent('Készülékkereső', pageType + " - " + jQuery( "#leftMenu li.onOne a" ).text() + " listaoldal");
					} else {
						pageTracker._trackEvent('Készülékkereső', pageType + " - " + jQuery("h1").eq(0).text());
					}
				}
			});
			
			jQuery("#search_btn").click(function() {
				pageTracker._trackEvent('Készülékkereső', pageType + ' – Összetett kereső');
			});
			
			if ( jQuery("#EPKereso").length ) {
				jQuery("#Content form").submit(function() {
					pageTracker._trackEvent('Ügyfélszolgálat', 'Értékesítési pont kereső');
				});
			}
			
			jQuery("#printPage, #textDec, #textInc").click(function() {
				pageTracker._trackEvent('Lábléc', jQuery(this).text());
			});
			
			jQuery("#form_pelda input.mehet").click(function() {
				pageTracker._trackEvent('Lábléc', "Oldal továbbküldése");
			});
			
		});
	}

	function baseTooltip() {

		jQuery(".tooltip_div").hover(function(e){
			var hidden_part = jQuery(this).attr('hidden');
			jQuery("#" + hidden_part).show();
		},
		function(){
			var hidden_part = jQuery(this).attr('hidden');
			jQuery("#" + hidden_part).hide();
		});

		xOffset = 10;
		yOffset = 20;		

		jQuery(".tooltip").hover(function(e){											  
			this.t = this.title;
			this.title = "";									  
			jQuery("body").append("<p id='tooltip'>"+ this.t +"</p>");
			jQuery("#tooltip")
				.css("top",(e.pageY - xOffset) + "px")
				.css("left",(e.pageX + yOffset) + "px")
				.fadeIn("fast");		
		},
		function(){
			this.title = this.t;
			jQuery("#tooltip").remove();
		});
		jQuery(".tooltip").click(function(e){
			this.title = this.t;
			jQuery("#tooltip").remove();
		});	
		jQuery(".tooltip").mousemove(function(e){
			jQuery("#tooltip")
				.css("top",(e.pageY - xOffset) + "px")
				.css("left",(e.pageX + yOffset) + "px");
		});			
	};


