var pointer; var scroll; var scrollLayer; function img_popup(imgsrc){ window.open('http://www.virtual-earth.eu/ver2/enlarge.php?pid='+imgsrc+'','Image','width=500,height=300,scrollbars=no,toolbar=no,location=no,status=no,resizable=yes,screenX=120,screenY=100'); return false; } function scroll_left(s,lay) { scrollLayer=lay; if(s) scroll = true; document.getElementById(lay).scrollLeft-=5; if(scroll) setTimeout("scroll_left(scroll,scrollLayer)",10) } function scroll_right(s,lay) { scrollLayer=lay; if(s) scroll = true; document.getElementById(lay).scrollLeft+=5; if(scroll) setTimeout("scroll_right(scroll,scrollLayer)",10) } function resetStars(count){ var star; if (document.images) { starblue = new Image(); starblue.src = "http://www.virtual-earth.eu/gfx/starblue.gif"; stargrey = new Image(); stargrey.src = "http://www.virtual-earth.eu/gfx/stargrey.gif"; for (i=1;i<=count;i++){ star="star"+i; document[star].src=starblue.src; } for (i=count+1;i<=5;i++){ star="star"+i; document[star].src=stargrey.src; } } } function showStars(count){ var star; if (document.images) { image = new Image(); image.src = "http://www.virtual-earth.eu/gfx/starred.gif"; for (i=1;i<=count;i++){ star="star"+i; document[star].src=image.src; } } } function showNormalPhoto(fid,geoid){ var photo_file="http://www.virtual-earth.eu/photos/normal/photo"+geoid+"_"+fid+".jpg"; var photo_big_file="http://www.virtual-earth.eu/photos/big/big"+geoid+"_"+fid+".jpg"; var photocode=""; document.getElementById('aphoto').innerHTML=photocode; document.getElementById('photodescription').innerHTML=desc; } function closeThis(id){ document.getElementById(id).innerHTML=""; document.getElementById(id).style.display="none"; } function check() { var ext = document.photodownload.foto.value; ext = ext.substring(ext.length-3,ext.length); ext = ext.toLowerCase(); if(ext != 'jpg') { alert('Proszę wybrać plik .jpg'); document.photodownload.reset(); return false; }else{ photo_box.document.getElementById("loading").innerHTML="LOADING"; return true; } } function addPhotoForm(geoid){ var loged=readCookie('loged'); if(!loged){ alert("Najpierw zaloguj się lub zapisz"); loginForm(); }else{ document.getElementById('panel').style.display="block"; document.getElementById('panel').style.top="40px"; document.getElementById('panel').style.width="275px"; document.getElementById('btn_photo').blur(); var text="

"; text+="

Podziel się swoimi zdjęciami z Mount Everest

"; text+=""; text+="
"; text+="Tytuł"; text+="
"; text+="
Opis zdjęcia"; text+="
"; text+="
"; text+="
"; text+="
"; text+="
"; document.getElementById("panel").innerHTML=text; } } function showEmail(){ var showemail; var checked=document.getElementById('showemail').checked; if(checked) showemail="y"; else showemail="y"; var ref="/ver2/showemail.php?showemail="+showemail+"&lang=pl"; jsonGrabe(ref); } function logout(){ var text="Logowanie"; eraseCookie('loged'); showWarnings('login',text,''); document.getElementById('panel').style.display="none"; } function myAccountForm(){ var ref="/ver2/myaccount.php?lang=pl"; jsonGrabe(ref); } function changePasswordForm(){ var nick=readCookie('nick'); if(!nick) nick=""; var text="

"; text+="

Zmień swoje hasło

"; text+="
"; text+="Twoje imię (Nick):"; text+="
"; text+="
Nowe hasło (pomiędzy 5 a 20 znaków) :"; text+="
"; text+="
Powtórz hasło:"; text+="
"; text+="

"; text+="
"; document.getElementById("panel").innerHTML=text; } function loginForm(){ var check=""; document.getElementById('panel').style.display="block"; document.getElementById('panel').style.top="40px"; document.getElementById('panel').style.width="275px"; var nick=readCookie('nick'); var password=readCookie('password'); if(!nick) nick=""; if(!password){ password=""; }else{ check="checked"; } var text="

"; text+="

Zaloguj mnie do klubu Virtual Earth

"; text+="
"; text+="Twoje imię (Nick):"; text+="
"; text+="
Hasło (pomiędzy 5 a 20 znaków) :"; text+="
"; text+="
"; text+=" Zapamiętaj moje hasło."; text+="

"; text+="

Zmień hasło"; text+="
"; document.getElementById("panel").innerHTML=text; } function signinForm(){ document.getElementById('panel').style.display="block"; document.getElementById('panel').style.top="40px"; document.getElementById('panel').style.width="275px"; var text="

"; text+="

Zapisz mie do Virtual Earth Club

"; text+="
"; text+="Twoje imię (Nick):"; text+="
"; text+="
Adres email:"; text+="
"; text+="
Hasło (pomiędzy 5 a 20 znaków) :"; text+="
"; text+="
Powtórz hasło:"; text+="
"; text+="
"; text+="Ukryj mój adres email"; text+="
"; text+=" Zgadzam się z polityką prywatności"; text+=":"; text+="
Szanujemy Twoją prywatność .Nie udostępniamy nikomu Twojego adresu.W każdej chwili możesz się wypisać."; text+="

"; text+="
"; document.getElementById("panel").innerHTML=text; } function quickHelp(margin){ if(document.getElementById('helpform').style.display =="block") document.getElementById('helpform').style.display ='none'; else document.getElementById('helpform').style.display ='block'; document.getElementById('helpform').style.marginLeft =margin; var text= "


"; text+="
Szybka Pomoc

Używanie tablicy wyników wyszukiwania:

Wkrótce dostępne:

"; text+="
"; document.getElementById("helpform").innerHTML=text; } function changePassword(){ showWarnings('w_passw','',''); showWarnings('w_nick','',''); var error; var nick = document.getElementById('nick').value; var passw = document.getElementById('passw').value; var rpassw = document.getElementById('rpassw').value; var ref="/ver2/changepassw.php?nick="+nick+"&passw="+passw+"&lang=pl"; if(nick.length==0){ showWarnings('w_nick','Wpisz swoje imię (nick).','
'); error="error"; } if(passw!=rpassw){ showWarnings('w_passw','Hasło i powierdzenie hasła nie są identyczne.','
'); error="error"; }else if(passw.length<=4){ showWarnings('w_passw','Twoje hasło musi mieć conajmniej 5 znaków','
'); error="error"; } if(error!="error"){ jsonGrabe(ref); } } function login(){ var error; var rempassw; var nick = document.getElementById('nick').value; var passw = document.getElementById('passw').value; var remember = document.getElementById('remember').checked; if(remember) rempassw="y"; else rempassw="n"; var ref="/ver2/login.php?nick="+nick+"&passw="+passw+"&remember="+rempassw+'&lang=pl'; showWarnings('w_passw','',''); showWarnings('w_nick','',''); if(passw.length==0){ showWarnings('w_passw','Podaj hasło.','
'); error="error"; } if(nick.length==0){ showWarnings('w_nick','Wpisz swoje imię (nick).','
'); error="error"; } if(error!="error"){ jsonGrabe(ref); } } function signIn(){ var error; var nick = document.getElementById('nick').value; var email = document.getElementById('email').value; var passw = document.getElementById('passw').value; var rpassw = document.getElementById('rpassw').value; var showemail = document.getElementById('showemail').checked; var privacy = document.getElementById('privacy').checked; if(showemail) showemail="y"; else showemail="n"; var ref="/ver2/signin.php?nick="+nick+"&email="+email+"&passw="+passw+"&showemail="+showemail+'&lang=pl'; showWarnings('w_passw','',''); showWarnings('w_email','',''); showWarnings('w_nick','',''); showWarnings('w_privacy','',''); if(passw!=rpassw){ showWarnings('w_passw','Hasło i powierdzenie hasła nie są identyczne.','
'); error="error"; }else if(passw.length<=4){ showWarnings('w_passw','Twoje hasło musi mieć conajmniej 5 znaków','
'); error="error"; } if(nick.length==0){ showWarnings('w_nick','Wpisz swoje imię (nick).','
'); error="error"; } if(!privacy){ showWarnings('w_privacy','Musisz się zgodzić z Polityką Prywatności.','
'); error="error"; } if(email.indexOf('@')==-1){ showWarnings('w_email','Twój adres email jest nie prawidłowy.','
'); error="error"; }else if(email.length==0){ showWarnings('w_email','Wpisz swój adres email.','
'); error="error"; } if(error!="error"){ jsonGrabe(ref); } } function showWarnings(id,text,separator){ // alert(text); document.getElementById(id).innerHTML=separator+text; } function showJSWarnings(jData){ //alert(jData.id); document.getElementById(jData.id).innerHTML=jData.separator+jData.text; } function jsonGrabe(req) { request = req; // Create a new script object // (implementation of this class is in /js/jsr_class.js) aObj = new JSONscriptRequest(request); // Build the script tag aObj.buildScriptTag(); // Execute (add) the script tag aObj.addScriptTag(); } function showCountries(){ frames['country_box'].location.href='http://www.pl.virtual-earth.eu/ver2/country_box.php?lang=pl'; _id=document.getElementById('cbox'); if(_id.style.display==''){ _id.style.display ='block'; }else if(_id.style.display=='none'){ _id.style.display ='block'; }else if(_id.style.display=='block'){ _id.style.display ='none'; } } function choosCountry(name,code){ _id=document.getElementById('cbox'); _id.style.display ='none'; document.searchForm.country.value=name; document.searchForm.country_code.value=code; str = new String(code) str = str.toLowerCase() document.getElementById('flag').src='http://www.virtual-earth.eu/gfx/flag/'+str+'.png'; } function hightlightText(number,count){ for (i=0;i<=count;i++){ res=document.getElementById('res'+i); res.style.fontWeight='normal'; } res=document.getElementById('res'+number); res.style.color='#ff0000'; res.style.fontWeight='bold'; } function showNearest(){ _id=document.getElementById('shortwiki'); if(_id.style.display=='' || _id.style.display=='block'){ document.getElementById('btnnearest').src='gfx/nearestof.gif'; _id.style.display='none'; document.getElementById('btnnearest').blur(); }else{ document.getElementById('btnnearest').src='gfx/nearest.gif'; document.getElementById('btnnearest').blur(); _id.style.display='block'; } } function hideNearest(){ timer=setTimeout(function() { _id=document.getElementById('shortwiki'); document.getElementById('btnnearest').src='gfx/nearestof.gif'; document.getElementById('btnnearest').blur(); _id.style.display='none'; }, 500); } function onMouseOver(tr) { if(tr.className!="trmarked"){ oldRowClassName = tr.className; oldRow = tr; tr.className = "trmouseOver"; } } function onMouseOut(tr) { if(oldRow != null) { oldRow.className = oldRowClassName; oldRow = null; } } function onClick(tr,link) { var x = document.getElementsByTagName('tr'); if(tr.className=="trmarked") location.href=link; for (var i=0;i" document.getElementById("messages").innerHTML = close + messages; document.getElementById("messages").style.width = '260px'; document.getElementById("messages").style.display = 'block'; } function searchimg() { request = '/ver2/ajax.searchimgjson.php?img=' + encodeURIComponent(document.getElementById('img').value)+'&lang=pl'; //alert(request); // Create a new script object // (implementation of this class is in /js/jsr_class.js) aObj = new JSONscriptRequest(request); // Build the script tag aObj.buildScriptTag(); // Execute (add) the script tag aObj.addScriptTag(); } function searchimgGet(img) { formActive('i'); request = '/ver2/ajax.searchimgjson.php?img=' + encodeURIComponent(img)+'&lang=pl'; // Create a new script object // (implementation of this class is in /js/jsr_class.js) aObj = new JSONscriptRequest(request); // Build the script tag aObj.buildScriptTag(); // Execute (add) the script tag aObj.addScriptTag(); } function search() { if(document.getElementById('q').value) request = '/ver2/searchjson.php?q=' + encodeURIComponent(document.getElementById('q').value) + "&cnt_code=" + encodeURIComponent(document.getElementById('country_code').value)+'&lang=pl'; else if(document.getElementById('q2').value) request = '/ver2/searchjson.php?q=' + encodeURIComponent(document.getElementById('q2').value) + "&cnt_code=" + encodeURIComponent(document.getElementById('country_code').value)+'&lang=pl'; // Create a new script object // (implementation of this class is in /js/jsr_class.js) aObj = new JSONscriptRequest(request); // Build the script tag aObj.buildScriptTag(); // Execute (add) the script tag aObj.addScriptTag(); } function searchGet(q,cnt_code,fCode) { request = '/ver2/searchjson.php?q=' + q + "&cnt_code=" + cnt_code + "&fcode=" + fCode+'&lang=pl'; // Create a new script object // (implementation of this class is in /js/jsr_class.js) aObj = new JSONscriptRequest(request); // Build the script tag aObj.buildScriptTag(); // Execute (add) the script tag aObj.addScriptTag(); } function getLocation(jData) { if (jData == null) { // There was a problem parsing search results return; } minimap.clearOverlays(); var html = ''; var items= []; var countrycount=0; var countrycodes=[]; var countrynames=[]; var geonames = jData.geonames; var count=geonames.length; for (i=0;i< geonames.length;i++) { var name = geonames[i]; if(!name.countryName){ name.countryName="undefined"; } var reflink=encodeURIComponent(name.countryName.replace(/ /gi,"_"))+"/"+encodeURIComponent(name.name.replace(/ |\//gi,"_"))+"-"+name.geonameId+"/"; var reflink2=encodeURIComponent(name.countryName.replace(/ /gi,'_'))+'/'+encodeURIComponent(name.name.replace(/ |\//gi,'_'))+'-'+name.geonameId+'/'; reflink=reflink.replace(/'/gi,'%27'); reflink2=reflink2.replace(/'/gi,'%27'); if(geonames.length==1){ window.location=reflink; } // we create a simple html list with the geonames objects // the link will call the center() javascript method with lat/lng as parameter var country=name.countryCode; if(!items[country]){ items[country]=''; countrycount++; countrycodes[countrycount]=country; countrynames[countrycount]=name.countryName; } if(name.adminName1!="") var region="
  Region: "+ name.adminName1 +""; else var region=""; points[i]="

" + name.name + "

" + name.countryName + ""+region+"
  Typ: " + name.fcodeName + "

Zobacz więcej... (zobacz szczegóły na Mapie Satelitarnej)"; items[country] +='
See preview
' + name.name + '
'+name.fcodeName+'
Zobacz więcej... (zobacz szczegóły na Mapie Satelitarnej) »'; if(i==0){ showDualMapResult(name.lat,name.lng,i,name.zoom); } } html=''; for (j=1;j  '+countrynames[j]+''; country=countrycodes[j]; html+=items[country]; } html+='
'; if(geonames.length==0) html='
Nie znaleziono wyników wyszukiwania.
Spróbuj poprawić swoje zapytanie.
'; document.getElementById('resultList').innerHTML = html; document.getElementById('resultList').style.display ='block'; }