var lastname=0;
var lastnr=0;
var hh_open=0;if (document.images){
var linkbutton = new Array();
linkbutton[1]=new Image();
linkbutton[1].scr="http://static.verkehrsinfo.hamburg.de/virh/img/pfeil2.gif";
linkbutton[2]=new Image();
linkbutton[2].scr="http://static.verkehrsinfo.hamburg.de/virh/img/pfeil.gif";
}
function link_over(nr,name){
if (document.images){
document.images['Link'+name].src=linkbutton[nr].scr;
}
}
function link_out(nr,name){
if (document.images){
if (lastname != name){document.images['Link'+name].src=linkbutton[nr].scr;}
if (name == 0 && link_click==0){document.images['Link'+name].src=linkbutton[nr].scr;}
}
}function Legende() {
link="http://static.verkehrsinfo.hamburg.de/virh/fahrrad/legende.html";
hh_win=window.open(link,"Info","width=340,height=290,scrollbars=no,menubar=no,resizable=yes");
}function ShowImage(file) {
popup_link="../../cgi-bin/cms/polizei/popup.pl?"+file;
hh_close();
hh_win=window.open(popup_link,"Karte","width=750,height=550,scrollbars=yes,menubar=yes,resizable=yes");
hh_win.focus();
hh_open=1;
}function Standorte(boxid,lang) {
hh_close();
if (boxid > 0 && lang == 'uk') {
hh_win=window.open("http://map.megatel.de/verkehrsinfo/rh/index.jsp?thema=bikeandride&lang=e&infoid="+boxid,"Fahrradboxen","resizable=yes,scrollbars=yes,width=350,height=400");
hh_open=1;
}
if (boxid > 0 && lang == 'de') {
hh_win=window.open("http://map.megatel.de/verkehrsinfo/rh/index.jsp?thema=bikeandride&infoid="+boxid,"Fahrradboxen","resizable=yes,scrollbars=yes,width=350,height=400");
hh_open=1;
}
}function openWIN(bereich,file,karte_id,start_id) {
url_karten='http://fahrrad.virh.de/cgi-bin/karten.pl?';
url_static='http://static.verkehrsinfo.hamburg.de/virh/fahrrad/';
if (bereich == 'fahrrad') {if (file == 'karte_detail') {
w=430;
h=440;
config="width=430, height=440, scrollbars=no";
popup_link=url_karten+bereich+"&"+karte_id+"&"+w+"&"+h+"&"+start_id+"&START";
}if (file == 'karte_uebersicht') {
w=400;
h=400;
config="width=400, height=400, scrollbars=no";
popup_link=url_static+"karte_uebersicht.html";
}if (file == 'galerie') {
if (karte_id < 10)karte_id="0"+karte_id;
w=430;
h=500;
config="width=430, height=500, scrollbars=yes";
popup_link='http://fahrrad.virh.de/cgi-bin/galerie.pl?'+karte_id+'&01';
}if (file == 'tabelle') {
w=520;
h=500;
config="width=540, height=560, scrollbars=yes";
popup_link="http://fahrrad.virh.de/cgi-bin/tabelle.pl?"+karte_id;;
}if (file == 'hh-bremen') {
w=600;
h=400;
config="width=525, height=595, scrollbars=no";
popup_link=url_static+"karte_hh-bremen.html";
}if (file == 'gruener-ring') {
w=600;
h=550;
config="width=600, height=550, scrollbars=yes";
popup_link=url_static+"karte_gruener-ring.html";
}if (file == 'elberadweg') {
w=600;
h=400;
config="width=430, height=400, scrollbars=no";
popup_link=url_static+"elberadweg/index.html";
}if (file == 'elberadweg_uk') {
w=600;
h=400;
config="width=430, height=400, scrollbars=no";
popup_link=url_static+"elberadweg/index_english.html";
}}if (bereich == 1) {
w=400;
h=400;
config="width=400, height=400, scrollbars=no";
popup_link=url_static+"karte_uebersicht.html";
}hh_close();
hh_win=window.open(popup_link,"Info",config);
hh_win.focus();
hh_open=1;
}function ostseeWIN (id) {
hh_win=window.open("http://virh.watnet.de/cgi-bin/links/links.pl?"+id,"Verkehrsinfo","toolbar=yes,menubar=yes,resizable=yes,scrollbars=yes","width=800, height=500");
}function hh_close() {
if (hh_open == 1) {
if (hh_win.closed == false) {
hh_win.close();
hh_open=0;
}
}
}

