function langas(puslapis,plotis,aukstis) { var sonas = (screen.width/2)-(plotis/2); var virsus = (screen.height/2)-(aukstis/2); eval("langelis=window.open('"+puslapis+"','langiukas','toolbar=0,scrollbars=1,location=0,status=0,menubars=0,resizable=0,width="+plotis+",height="+aukstis+",top="+virsus+",left="+sonas+"')") }
function coorx(objectId) { o = document.getElementById(objectId); oLeft = o.offsetLeft; while(o.offsetParent!=null) { oParent = o.offsetParent; oLeft += oParent.offsetLeft; o = oParent; } return oLeft; }
function coory(objectId) { o = document.getElementById(objectId); oTop = o.offsetTop; while(o.offsetParent!=null) { oParent = o.offsetParent; oTop += oParent.offsetTop; o = oParent; } return oTop; }
function showphoto(uid) { koo1 = coorx('zaidejas_' + uid) - 84; koo2 = coory('zaidejas_' + uid); var foto = '<div style="position:absolute;top:' + koo2 + 'px;left:' + koo1 + 'px;border-style:solid;border-color:#fbdfbe #f5c491 #f5c491 #fbdfbe;border-width:1px;"><img src="/web_img/zaidejas/' + uid + '.jpg" width="80" height="100" border="0" alt="" style="border-style:solid;border-color:#f5c491 fbdfbe #fbdfbe #f5c491;border-width:1px;"></div>'; document.getElementById('zuidp').innerHTML = foto; }
function hidephoto(uid) { document.getElementById('zuidp').innerHTML = ''; }
function ShowHideChoose(sk,pog) { if (sk == 1) { document.getElementById("blokas2_" + pog).style.display = "none"; document.getElementById("blokas1_" + pog).style.display = "block"; document.getElementById("ChooseMenu2_" + pog).style.background = "#ffffff"; document.getElementById("ChooseMenu1_" + pog).style.background = "#fbdfbe"; } else if (sk == 2) { document.getElementById("blokas1_" + pog).style.display = "none"; document.getElementById("blokas2_" + pog).style.display = "block"; document.getElementById("ChooseMenu1_" + pog).style.background = "#ffffff"; document.getElementById("ChooseMenu2_" + pog).style.background = "#fbdfbe"; } }
function PlayOffSH(uid) { var esamas = document.getElementById('PlayOff_' + uid).style.display; if (esamas == "block") { var naujas = "none"; } else { var naujas = "block"; } document.getElementById('PlayOff_' + uid).style.display = naujas; }
function plaukiojantis(desine,virsus,skaicius,komanda,linkas,spalva,galas) { indeksas = 1000 + skaicius; virsus -= 3; desine -= 4; galas -= 4; document.write('<div id="divid'+skaicius+'" style="position:absolute;padding:4px;top:'+virsus+'px;left:'+desine+'px;background:#ffffff;width:200px;overflow:hidden;z-index:' + indeksas + ';background:#'+spalva+';border-style:solid;border-color:#fbdfbe;border-width:0px 2px 0px 0px;font-family:Tahoma,Verdana;font-size:11px;color:#000000;"><strong><a href="' + linkas + '" target="_self">' + komanda + '</a></strong></div>'); document.write('<div id="divuid'+skaicius+'" style="position:absolute;padding:4px;top:'+virsus+'px;left:'+galas+'px;background:#ffffff;width:30px;overflow:hidden;z-index:' + indeksas + ';background:#'+spalva+';border-style:solid;border-color:#ffffff #fbdfbe #ffffff #ffffff;border-width:0px 1px 0px 1px;text-align:right;font-family:Tahoma,Verdana;font-size:11px;color:#000000;">'+skaicius+'</div>'); }
function showhideschedule(id) { var displaysch = document.getElementById(id).style.display; if (displaysch == "none") { newdisplay = "block"; } else { newdisplay = "none"; } document.getElementById(id).style.display = newdisplay; }
function ShowHideChoose2(sk) { if (sk == 1) { document.getElementById("ChooseTitle2").style.display = "none"; document.getElementById("ChooseTitle1").style.display = "block"; document.getElementById("StatistikaChoose2").style.display = "none"; document.getElementById("StatistikaChoose1").style.display = "block"; document.getElementById("ChooseMenu2").style.background = "#ffffff"; document.getElementById("ChooseMenu1").style.background = "#fbdfbe"; } else if (sk == 2) { document.getElementById("ChooseTitle1").style.display = "none"; document.getElementById("ChooseTitle2").style.display = "block"; document.getElementById("StatistikaChoose1").style.display = "none"; document.getElementById("StatistikaChoose2").style.display = "block"; document.getElementById("ChooseMenu1").style.background = "#ffffff"; document.getElementById("ChooseMenu2").style.background = "#fbdfbe"; } }
function hidedishide(id) { var tmp = document.getElementById(id).style.display; if (tmp == "none") { newstyle = "block"; } else { newstyle = "none"; } document.getElementById(id).style.display = newstyle; }
function archyvasgo(fulls) { var tmp = document.getElementById('archyvas').value; var fullscript = fulls + tmp; window.location = fullscript; }
function MyFavorites() { var diagnoze = document.getElementById('MyFavorites').style.display; if (diagnoze == "none") { document.getElementById('MyFavorites').style.display = "block"; document.getElementById('FavoritesHidden').style.height = "0px"; } else { document.getElementById('MyFavorites').style.display = "none"; document.getElementById('FavoritesHidden').style.height = "3px"; } }
