function fix(a) { a.href=a.href.replace(/KPMT./g, ""); return true; }
function stat(a, b) {
	if (b) { window.status=a.href.replace(/KPMT./g, ""); }
	else { window.status=""; }
}
function shdv(d) {
	document.getElementById(d).style.display='';
	return true;
}
function hddv(d) {
	document.getElementById(d).style.display='none';
	return true;
}
function flpdv(d) {
	if (document.getElementById(d).style.display == '')
		document.getElementById(d).style.display='none';
	else
		document.getElementById(d).style.display='';
	return true;
}
function Sbw()
    {
        agent = navigator.userAgent.toLowerCase();
        this.agent = navigator.userAgent.toLowerCase();
        this.major = parseInt(navigator.appVersion);
        this.minor = parseFloat(navigator.appVersion);
        this.ns = ( ( agent.indexOf( 'mozilla' ) != -1 ) && ( ( agent.indexOf( 'spoofer' ) == -1 ) && ( agent.indexOf( 'compatible' ) == -1 ) ) );
        this.ns4 = ( this.ns && ( this.major <= 4 ) && ( this.minor < 5 ) );
        this.ns6 = ( this.ns && ( this.major >= 5 ) );
        this.opera = ( agent.indexOf( 'opera' ) != -1 );
        this.opera6 = ( this.major >= 6 );
        this.ie = ( agent.indexOf( "msie" ) != -1 );
        this.ie4 = ( this.ie && ( this.major == 4 ) && ( agent.indexOf( "msie 5.0" ) == -1 ) );
        this.ie5 = ( this.ie && ( this.major == 4 ) && ( agent.indexOf( "msie 5" ) != -1 ) );
        this.ie6 = ( this.ie && ( this.major == 4 ) && ( agent.indexOf( "msie 6" ) != -1 ) );
        this.ie7 = ( this.ie && ( this.major == 4 ) && ( agent.indexOf( "msie 7" ) != -1 ) );
        this.iframe = ( this.ie || this.ns6 || this.opera6 );
        this.popup = ( this.ie || this.ns6 || this.opera6 );
        this.layer = ( this.ie || this.ns6 );
    }

var sbw = new Sbw();
function bnr(i,w,h) {
	if ( sbw.iframe ) {
            document.write( '<iframe src="http://mediaserver.jspc.hu/c.phtml?i=' + i + '&m='+Math.floor(Math.random()*1000000000)+'&s=k" vspace="0" hspace="0" marginheight="0" marginwidth="0" width="'+w+'" height="' + h + '" frameborder="0" scrolling="no"></iframe>' );
        } else {
            document.write( '<a target="_blank" href="http://mediaserver.jspc.hu/l?i=1456"><img src="http://mediaserver.jspc.hu/2006/'+i+'.gif" border="0" height="' + h + '" width="' + w + '"></a>' );
        }
}
function dsblFrm(theform) {
	if (document.all || document.getElementById) {
		for (i = 0; i < theform.length; i++) {
			var tempobj = theform.elements[i];
			if (tempobj.type.toLowerCase() == "submit") {
				tempobj.value = "kérem várjon...";
				tempobj.disabled = true;
			}
		}
		return true;
	} else {
	return false;
   }
}
function number(elem)
	{
		var x=elem.value; t='';
		r=x.split("."); x=r.join("");
		l=x.length; 
		xx=x.substring(l-1,l);
		if(xx=='m' && l>1) {x=x.substring(0,l-1)+"000000"; l=x.length;}
		if(xx=='e' && l>1) {x=x.substring(0,l-1)+"000"; l=x.length;}
		xx=parseInt(x.substring(l-1,l));
		if(xx>=0 && xx<=9)
		{ x=x; } else { x=x.substring(0,l-1); }
		l=x.length;
		if(l>=4) 
		{
			if(l>=10) {x=x.substring(0,l-9)+"."+x.substring(l-9,l); l=x.length;}
			if(l>=7) {x=x.substring(0,l-6)+"."+x.substring(l-6,l); l=x.length;}
			t=x.substring(0,l-3)+"."+x.substring(l-3,l);
			elem.value=t;
			} else {
			elem.value=x;
		}
		//if(parseInt(elem.value)<1) {elem.value="";} 
	}

function srchfrm() {
	var qs;
	qs = $('searchform').serialize();
	
	//alert(qs);
	document.location.href = '/' + $('searchformu').value + '/&' + qs;
}

/* spm */
var acvd = 1;
function sldlft() {
	if (acvd < 8) {
		new Effect.MoveBy( 'vd_tpv', 0, -115 , {duration: 0.3} );
		acvd++;
	}
}
function sldrght() {
	if (acvd > 1) {
		new Effect.MoveBy( 'vd_tpv', 0, 115 , {duration: 0.3} );
		acvd--;
	}
}
var acft = 1;
function sldflft() {
	if (acft < 8) {
		new Effect.MoveBy( 'vd_tpf', 0, -115 , {duration: 0.3} );
		acft++;
	}
}
function sldfrght() {
	if (acft > 1) {
		new Effect.MoveBy( 'vd_tpf', 0, 115 , {duration: 0.3} );
		acft--;
	}
}
function swpimg(i) {
	$('mainimage').src = i;
}
