     marked=0;

     i1=new Image(); i1.src="welt1.gif";
     i2=new Image(); i2.src="welt2.gif";
     i3=new Image(); i3.src="welt3.gif";
     i4=new Image(); i4.src="welt4.gif";
     i5=new Image(); i5.src="welt5.gif";
     i6=new Image(); i6.src="welt6.gif";
     i7=new Image(); i7.src="welt7.gif";
     i8=new Image(); i8.src="welt8.gif";
     i11=new Image(); i11.src="welt1_.gif";
     i12=new Image(); i12.src="welt2_.gif";
     i13=new Image(); i13.src="welt3_.gif";
     i14=new Image(); i14.src="welt4_.gif";
     i15=new Image(); i15.src="welt5_.gif";
     i16=new Image(); i16.src="welt6_.gif";
     i17=new Image(); i17.src="welt7_.gif";
     i18=new Image(); i18.src="welt8_.gif";


	adressen = new Array();
	kontakte = new Array();
	bereiche = new Array();
	laender  = new Array();



    function outmap(id) {
        document.images["drunter"].src="fileadmin/bilder/karte/welt0.gif";
    }
    
    function overmap(id) {
        document.images["drunter"].src="fileadmin/bilder/karte/welt" + id + "_.gif";
    }
    
    function markmap(id,focus) {
        document.images["drunter"].src="fileadmin/bilder/karte/welt" + id + "_.gif";

        document.images["bild"].src="fileadmin/bilder/karte/welt" + id + ".gif";

        if (marked!=id) {
            marked=id;
            document.f.bereich.selectedIndex=id;
            fill_land();
        }
        if (focus) document.f.bereich.focus();
    }

    function fill_land() {
        // Länderliste leeren
         var id=0,n=0,laender,tmp,tmpn;
         
        //document.f.land.options.length=0;

        for (n=document.f.land.options.length-1;n>=0;n--){
            document.f.land.options[n]=null;
        }


        id=document.f.bereich.selectedIndex;
        if (id>0){
            laender=bereiche[id];
            for (n=0;n<laender.length;n++){
                tmp=laender[n];
                tmpn=parseInt(tmp.substr(0,3),10);
                tmp=tmp.substr(3,99);
                o=new Option(tmp,tmpn);	
                //o=new Option(tmp,tmp);
                document.f.land.options[n]=o;
            	//document.f.land.options[o]=o;
            }

        }
        document.f.land.selectedIndex=-1;
        check_click();
        flash_land(6);
    }

    function flash_land(nr){
        if (nr<4){
            if (nr%2!=0){
                document.getElementById("land").style.backgroundColor="rgb(194,230,230)";
            } else{
                document.getElementById("land").style.backgroundColor="white";
            }
        }
        if (nr>0) {
            nr--;
            setTimeout("flash_land(" + (nr) + ")",100);
        }
    }

    function check_click(){
        if (document.f.land.selectedIndex>=0){
            document.getElementById("go").style.display="";
        } else{
            document.getElementById("go").style.display="none";
        }

    	//http://www.reiss-lighting.de/cms/website/unternehmen/unsere-maerkte/westerneurope
		//http://www.reiss-lighting.de/cms/en/website/company/our-markets/westerneurope
		// maerkte-language
		var myLang = document.getElementById("maerkteLanguage").value;
		// var myLang = jQuery('.maerkte-language').html();
		//alert(myLang);
		var myForm = document.getElementById("destination");
		
		if (myLang == 0) 
		{
			mySource = "/unternehmen/unsere-maerkte/";
		}
    	else if (myLang == 1) 
    	{
    		mySource = "/en/company/our-markets/";
    	}
    	
    	mySource = mySource + adressen[kontakte[document.f.land.options[document.f.land.selectedIndex].value]];
    	myForm.action = mySource;    

		myLandString = document.getElementById("landString");
		myLandString.value = document.f.land.options[document.f.land.selectedIndex].innerHTML;

    }
    
    function sendform(){
	
    }
    
    
    function show(){
		
        link="/index.php?id=" + adressen[kontakte[document.f.land.options[document.f.land.selectedIndex].value]];
        link +="&bb=" + document.f.bereich.selectedIndex;
        link +="&ll=" + document.f.land.options[document.f.land.selectedIndex].value;
        link +="&bereich=" + escape(document.f.bereich.options[document.f.bereich.selectedIndex].text);
        link +="&land=" + escape(document.f.land.options[document.f.land.selectedIndex].text);
        document.location.href=link;
    }

    function showSubpage(){	
        link="/index.php?id=" + adressen[kontakte[document.f.land.options[document.f.land.selectedIndex].value]];
    }


	



