function fix(a) { a.href=a.href.replace(/SPMT./g, ""); return true; }
function stat(a, b) {
	if (b) { window.status=a.href.replace(/SPMT./g, ""); }
	else { window.status=""; }
}
function shdv(d) {
	$(d).style.display='';
	return true;
}
function hddv(d) {
	$(d).style.display='none';
	return true;
}
function flpdv(d) {
	if ($(d).style.display == '')
		$(d).style.display='none';
	else
		$(d).style.display='';
	return true;
}
function forumImgPopUp(w,h,im) {
	var iw = 700;
	var ih = 500;
	if (screen.width > w-45) {
		iw = w+40;
	} else {
		iw = screen.width-40;
	}
	if (screen.height > h-45) {
		ih = h+50;
	} else {
		ih = screen.height-100;
	} 
	var attr = 'width='+iw+',height='+ih+',scrollbars=1,resizable=1,toolbar=0,status=0,menubar=0';
	window.open(im,'',attr);
}
function changeImages() {
	if (document.images) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}
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)+'" 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/c.phtml?i=' + i + '">Hirdetés</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;
   }
}
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--;
	}
}
var acfrn = 1;
function sldnwrght() {
	if (acfrn > 1) {
	new Effect.MoveBy( 'frmnws', 0, 115 , {duration: 0.3} );
	acfrn--;
	}
}
function sldnwrlft() {
	if (acfrn < 15) {
	new Effect.MoveBy( 'frmnws', 0, -115 , {duration: 0.3} );
	acfrn++;
	}
}


function vt(t,m,i) {
	if (novt) {
	new Ajax.Updater('vdp_vtr',vturl, {
  	method: 'post',
  	parameters: {t: t, i: i, m: m}
	});
	novt = false;
	}
}
function vtcl() {
		if (novt) vtreset();
}
function vtst(i) {
	if (novt) {
	for (j=1;j<6;j++) {
		if (j>i) $('vdp_vts'+j).className= 'str_0';
		else $('vdp_vts'+j).className= 'str_1';
	}
	}
	
}
function vtreset() {
	for (j=1;j<6;j++) {
		if (j<vts) $('vdp_vts'+j).className= 'str_1';
		else $('vdp_vts'+j).className= 'str_0';
		if (j==vts) $('vdp_vts'+j).className= 'str_'+vtc;
	}

}
var vturl = "/ajax/vote_r.php"; var novt = true;