function upm(a,b,c,d)
{
document.getElementById("mainpic").src=a
if (document.all )
{
document.getElementById("topnaz1").innerText=b
document.getElementById("topnaz1").href=d
document.getElementById("topnaz2").innerText=c
}
else
{
document.getElementById("topnaz1").textContent=b
document.getElementById("topnaz1").href=d
document.getElementById("topnaz2").textContent=c
}
}



function menume(co)
{



if (co=='1') document.getElementById('topmp1').style.backgroundImage='url("/images/lineorangedown.png")';
if (co=='4') document.getElementById('topmp1').style.backgroundImage='url("/images/lineorangedown2.png")';
if (co=='7') document.getElementById('topmp1').style.backgroundImage='url("/images/lineorangedown3.png")';
if (co=='3') document.getElementById('topmp1').style.backgroundImage='url("/images/lineorangedown4.png")';
if (co=='5') document.getElementById('topmp1').style.backgroundImage='url("/images/lineorangedown5.png")';
if (co=='6') document.getElementById('topmp1').style.backgroundImage='url("/images/lineorangedown6.png")';
if (co=='9') document.getElementById('topmp1').style.backgroundImage='url("/images/lineorangedown7.png")';





if (co!='1') document.getElementById('menu1').style.display='none';
if (co!='9') document.getElementById('menu9').style.display='none';
if (co!='3') document.getElementById('menu3').style.display='none';
if (co!='4') document.getElementById('menu4').style.display='none';
if (co!='5') document.getElementById('menu5').style.display='none';
if (co!='6') document.getElementById('menu6').style.display='none';
if (co!='7') document.getElementById('menu7').style.display='none';

if (co=='1') document.getElementById('menu1').style.display='';
if (co=='9') document.getElementById('menu9').style.display='';
if (co=='3') document.getElementById('menu3').style.display='';
if (co=='4') document.getElementById('menu4').style.display='';
if (co=='5') document.getElementById('menu5').style.display='';
if (co=='6') document.getElementById('menu6').style.display='';
if (co=='7') document.getElementById('menu7').style.display='';

}
function addplat(plat)
{

if (plat=='1') location.href='/platforma/pc'
if (plat=='9') location.href='/platforma/xbox360'
if (plat=='8') location.href='/platforma/ps3'
if (plat=='6') location.href='/platforma/psp'
if (plat=='10') location.href='/platforma/wii'
if (plat=='7') location.href='/platforma/ds'
if (plat=='3') location.href='/platforma/mobil'

}


function clear()
{

var m4='';
var m5='';
var m6='';
var linka='';
var nOldAct='0';
var nOldVyber='-1';
var nAct='0';
var nTime='0';
var nInt='0';

		document.getElementById('cf1').style.opacity = 0;
		document.getElementById('cf1').style.filter = "alpha(opacity=0)";
		document.getElementById('cf1').style.visibility = "hidden";
		document.getElementById('cf1').style.display = "none";
		document.getElementById('cf2').style.opacity = 0;
		document.getElementById('cf2').style.filter = "alpha(opacity=0)";
		document.getElementById('cf2').style.visibility = "hidden";
		document.getElementById('cf2').style.display = "none";
		document.getElementById('cf3').style.opacity = 0;
		document.getElementById('cf3').style.filter = "alpha(opacity=0)";
		document.getElementById('cf3').style.visibility = "hidden";
		document.getElementById('cf3').style.display = "none";
		document.getElementById('cf4').style.opacity = 0;
		document.getElementById('cf4').style.filter = "alpha(opacity=0)";
		document.getElementById('cf4').style.visibility = "hidden";
		document.getElementById('cf4').style.display = "none";
		

	var cf = new Crossfader( new Array('cf1','cf2','cf3','cf4'), 500, 4000 );

document.getElementById('go').style.display='';

}

var m4='';
var m5='';
var m6='';
var linka='';
var nOldAct='0';
var nOldVyber='-1';
var nAct='0';
var nTime='0';
var nInt='0';

 
 var useBSNns;

if (useBSNns)
{
	if (typeof(bsn) == "undefined")
		bsn = {}
	var _bsn = bsn;
}
else
{
	var _bsn = this;
}


_bsn.Crossfader = function (divs, fadetime, delay )
{	
	 nAct= -1;
	this.aDivs = divs;
	
	for (var i=0;i<divs.length;i++)
	{
		document.getElementById(divs[i]).style.opacity = 0;
		document.getElementById(divs[i]).style.position = "absolute";
		document.getElementById(divs[i]).style.filter = "alpha(opacity=0)";
		document.getElementById(divs[i]).style.visibility = "hidden";
		document.getElementById(divs[i]).style.display = "none";
	}
	
	
	
	this.nDur = fadetime;
	this.nDelay = delay;
		
	this._newfade();
}


_bsn.Crossfader.prototype._newfade = function()
{

	
if (m4=='1')
{
		
} 
else
{

	if (nOldVyber!='')
	{
	}
		
	if (this.nID1)
		clearInterval(this.nID1);
	
	nOldAct = nAct
	nAct=nAct+1;
	if (!this.aDivs[nAct])	nAct = 0;

	if (m6!='') 
{
}

	
	if (nAct == nOldAct)
		return false;
	
	document.getElementById( this.aDivs[nAct] ).style.visibility = "visible";
	document.getElementById( this.aDivs[nAct] ).style.display = "";
	m5=this.aDivs[nAct] 
	
	nInt = 50;
	nTime = 0;
	
	var p=this;
	this.nID2 = setInterval(function() { p._fade() }, nInt);
  }	
}


_bsn.Crossfader.prototype._fade = function()
{
	nTime = parseInt(nTime)+parseInt(nInt);
	
	var ieop = Math.round( this._easeInOut(nTime, 0, 1, this.nDur) * 100 );
	var op = ieop / 100;
	document.getElementById( this.aDivs[nAct] ).style.opacity = op;
	document.getElementById( this.aDivs[nAct] ).style.filter = "alpha(opacity="+ieop+")";
	
	if (nOldAct > -1)
	{
		document.getElementById( this.aDivs[nOldAct] ).style.opacity = 1 - op;
		document.getElementById( this.aDivs[nOldAct] ).style.filter = "alpha(opacity="+(100 - ieop)+")";
	}
	
	if (nTime == this.nDur)
	{
		clearInterval( this.nID2 );
		
		if (nOldAct > -1)
		{
			document.getElementById( this.aDivs[nOldAct] ).style.visibility = "hidden";	
			document.getElementById( this.aDivs[nOldAct] ).style.display = "none";	
			}


document.getElementById('span1').innerText=document.getElementById('top'+nAct).value
document.getElementById('span1').textContent=document.getElementById('top'+nAct).value
document.getElementById('span2').innerText=document.getElementById('top'+nAct+'a').value
document.getElementById('span2').textContent=document.getElementById('top'+nAct+'a').value

if (nOldAct > -1)
	{
document.getElementById('fgm'+nOldAct).style.backgroundColor='';
document.getElementById('fg'+nOldAct).style.backgroundColor='#292D30';
document.getElementById('fm'+nOldAct).style.color='#f0f0f0';
}

document.getElementById('fgm'+nAct).style.backgroundColor=farb;
document.getElementById('fg'+nAct).style.backgroundColor=farb;
document.getElementById('fm'+nAct).style.color='#000000';


		var p=this;
		this.nID1 = setInterval(function() { p._newfade() }, this.nDelay);
	}
}


_bsn.Crossfader.prototype._easeInOut = function(t,b,c,d)
{
	return c/2 * (1 - Math.cos(Math.PI*t/d)) + b;
}

function clenm()
{
document.getElementById('fgm1').style.backgroundColor='';
document.getElementById('fg1').style.backgroundColor='#292D30';
document.getElementById('fm1').style.color='#f0f0f0';
document.getElementById('fgm2').style.backgroundColor='';
document.getElementById('fg2').style.backgroundColor='#292D30';
document.getElementById('fm2').style.color='#f0f0f0';
document.getElementById('fgm3').style.backgroundColor='';
document.getElementById('fg3').style.backgroundColor='#292D30';
document.getElementById('fm3').style.color='#f0f0f0';
document.getElementById('fgm0').style.backgroundColor='';
document.getElementById('fg0').style.backgroundColor='#292D30';
document.getElementById('fm0').style.color='#f0f0f0';
}

function skryactual(ktory)
{
		document.getElementById('cf1').style.opacity = 0;
		document.getElementById('cf1').style.filter = "alpha(opacity=0)";
		document.getElementById('cf1').style.visibility = "hidden";
		document.getElementById('cf1').style.display = "none";
		document.getElementById('cf2').style.opacity = 0;
		document.getElementById('cf2').style.filter = "alpha(opacity=0)";
		document.getElementById('cf2').style.visibility = "hidden";
		document.getElementById('cf2').style.display = "none";
		document.getElementById('cf3').style.opacity = 0;
		document.getElementById('cf3').style.filter = "alpha(opacity=0)";
		document.getElementById('cf3').style.visibility = "hidden";
		document.getElementById('cf3').style.display = "none";
		document.getElementById('cf4').style.opacity = 0;
		document.getElementById('cf4').style.filter = "alpha(opacity=0)";
		document.getElementById('cf4').style.visibility = "hidden";
		document.getElementById('cf4').style.display = "none";

		nInt = "0";
		nTime = "0";
		document.getElementById('cf'+ktory).style.visibility = "visible";
		document.getElementById('cf'+ktory).style.display = "";
		document.getElementById('cf'+ktory).style.opacity = 1;
		document.getElementById('cf'+ktory).style.filter = "alpha(opacity=100)";
		nOldAct=(ktory-1);
		nOldVyber=(ktory);
		nAct=(ktory-1);

document.getElementById('span1').innerText=document.getElementById('top'+(ktory-1)).value
document.getElementById('span1').textContent=document.getElementById('top'+(ktory-1)).value
document.getElementById('span2').innerText=document.getElementById('top'+(ktory-1)+'a').value
document.getElementById('span2').textContent=document.getElementById('top'+(ktory-1)+'a').value


clenm()


document.getElementById('fgm'+(ktory-1)).style.backgroundColor=farb;
document.getElementById('fg'+(ktory-1)).style.backgroundColor=farb;
document.getElementById('fm'+(ktory-1)).style.color='#000000';


				}
function oznac(co)
{
m4=co;
}				
function oznaclinku(lin)	
{
document.getElementById('span1').href=lin;
}
				
function ukaznovy()
{


}
var bolo='';
var jel='';
function searchb(co)
{
if ((co.length)>0 )
{
if (jel=='1')
{
document.getElementById("ajaxsearch").style.display="";
document.getElementById("banmain").style.display="none";
document.getElementById("slink").href="/search-page.aspx?sekcia="+document.getElementById('searchsekcia').value+"&search="+co;
expandtab("searchtab", 0)
}
}
else
{
document.getElementById("ajaxsearch").style.display="none";
document.getElementById("banmain").style.display="";
}
}

function activ()
{
if (jel!='1') 
{
jel='1';
setTimeout("searchc()",1000);
}
}
function nulb()
{
bolo='';
}
function searchc()
{
if (document.getElementById('searchbox').value !='') 
{
if (bolo!=document.getElementById('searchbox').value)
{
bolo=document.getElementById('searchbox').value
searchb(document.getElementById('searchbox').value)
}
}
else
{
document.getElementById("ajaxsearch").style.display="none";
document.getElementById("banmain").style.display="";
}
if (jel=='1')
{setTimeout("searchc()",1000);
}
}
function deactiv()
{
jel='';
}

function hlasovanieb(co,id)
{
document.getElementById("olink").href="hlasovanie-zapis.aspx?bod="+co+"&id="+id;
expandtab("hlasovanietab", 0)
}

function odpoved(ido,txt,men)
{
document.getElementById("podprispevkom").value=ido;
document.getElementById("podmenom").value=men;
document.getElementById("subjekt").value='Re: '+txt;
document.getElementById("text").focus();
}

function checkEnter(e){ 
var characterCode 

if(e && e.which){ 
e = e
characterCode = e.which 
}
else{
e = event
characterCode = e.keyCode 
}

if(characterCode == 13){ 
form1.submit();
return false 
}
else{
return true 
}

}





function smilema2()
{
if (document.getElementById('hid').value=='') 
{
top.ikony.location='/diskusia-smile.aspx?smile=ok';
document.getElementById('hid').value='1';
document.getElementById('ikony').style.display='';
}
else
{
document.getElementById('hid').value='';
document.getElementById('ikony').style.display='none';
}
}

function getlink1(strana,pg,id,pr)
{
ap='/diskusia-page.aspx?pg='+pg+'&id='+id+'&game='+id+'&order='+pr+'&page='+strana+'&'+new Date().getTime();
return ap
}

function getlink2(strana,idk,id,idt,zobraz)
{
ap='/hra-diskusia.aspx?game='+id+'&id='+idk+'&idt='+idt+'&page='+strana+'&zobraz='+zobraz+'&'+new Date().getTime()
return ap
}
function getlink3(strana,idk,id,itd,zobraz,section)
{
ap='/title-top10.aspx?section='+section+'&id='+idk+'&idt='+idt+'&page='+strana+'&zobraz='+zobraz;
return ap
}

function getlink5(id)
{
ap='/diskusia-background.aspx?pridaj=ok&game='+id;
return ap
}

function getlink6(pg,id,strana)
{
ap='/diskusia-page.aspx?pg='+pg+'&id='+id+'&vymaz='+strana;
return ap
}
function getlink7(id,page,pg,id2,idt,zobraz,rndp)
{
ap='/diskusia-background.aspx?page='+page+'&pg='+pg+'&game='+id2+'&id=0&idt='+idt+'&zobraz='+zobraz+'&rnd='+rndp+'&plusme='+id;
return ap
}
function getlink8(id,page,pg,id2,idt,zobraz,rndp)
{
ap='/diskusia-background.aspx?page='+page+'&pg='+pg+'&game='+id2+'&id=0&idt='+idt+'&zobraz='+zobraz+'&rnd='+rndp+'&minusme='+id;
return ap
}
function getlink9(id,page,pg,id2,idt,zobraz,rndp)
{
ap='/diskusia-background.aspx?page='+page+'&pg='+pg+'&game='+id2+'&id=0&idt='+idt+'&zobraz='+zobraz+'&rnd='+rndp+'&nevhodny='+id;
return ap
}
