// JavaScript Document

function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}



function snon(wer){
	document.getElementById(wer).className = "divsnbutact";
}
function snoff(wer){
	document.getElementById(wer).className = "divsnbut";
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function flvFSTI4(){//v1.01
this.style.filter="";}

function flvFSTI3(v1,v2){//v1.01
var v3;if (v1.filters[0]&&v1.filters[0].status==2){v1.filters[0].Stop();}if (v2==0){v3="blendTrans(Duration="+v1.STI8+")";}else {v3="revealTrans(Duration="+v1.STI8+",Transition="+(v2-1)+")";}v1.style.filter=v3;}

function flvFSTI2(){//v1.01
var v1,v2=document,v3=v2.STI4,v4;for (v4=0;v3&&v4<v3.length&&(v1=v3[v4])&&v1.STI5;v4++){if (v1.filters&&!v2.STI7){flvFSTI3(v1,v1.STI3);v1.filters[0].Apply();}v1.src=v1.STI5;if (v1.filters&&!v2.STI7){v1.filters[0].Play();}}}

function flvFSTI1(){//v1.01
// Copyright 2003, Marja Ribbers-de Vroed, FlevOOware (www.STI1.nl/dreamweaver/)
var v1=arguments,v2=document,v3;v2.STI4=new Array();v2.STI7=(navigator.userAgent.toLowerCase().indexOf("mac")!=-1);for (var v4=0;v4<v1.length-2;v4+=5){v3=MM_findObj(v1[v4]);if (v3){v3.STI5=v3.src;v3.STI6=v1[v4+1];v3.STI2=v1[v4+2];v3.STI3=v1[v4+3];v3.STI8=v1[v4+4];v2.STI4[v2.STI4.length]=v3;if (v3.filters&&!v2.STI7){flvFSTI3(v3,v3.STI2);v3.onfilterchange=flvFSTI4;v3.filters[0].Apply();}v3.src=v3.STI6;if (v3.filters&&!v2.STI7){v3.filters[0].Play();}}}}

function smclick(wer){
	actstyle = document.getElementById("sm3_"+wer).style.display;
	if (actstyle == 'none'){
	  document.getElementById("sm3_"+wer).style.display = "block";
	}else{
	  document.getElementById("sm3_"+wer).style.display = "none";	
	}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function sitemap(icon,block){
	switcher = document.getElementById(block);
	if(switcher && icon){
		if (switcher.style.display == "block"){
		  switcher.style.display = "none";
		  icon.className = "sitemap_onoff_plus";
		}else{
		  switcher.style.display = "block";
		  icon.className = "sitemap_onoff_minus";
		}
	}
}

function moremedia(target){
	if(document.getElementById("img_moremedia_"+target) && document.getElementById("img_moremedia_action_"+target)){
		if(document.getElementById("img_moremedia_"+target).style.display == "none"){
			document.getElementById("img_moremedia_"+target).style.display = "block";
			document.getElementById("img_moremedia_action_"+target).className = "imgblock_miniaction_zu";
		}else{
			document.getElementById("img_moremedia_"+target).style.display = "none";
			document.getElementById("img_moremedia_action_"+target).className = "imgblock_miniaction_auf";
		}
	}
}

function makeacoolsound(container,content,xmlurl,backcolor){

		var flashvars = {};
        	flashvars.xmlurl = xmlurl;
			flashvars.backcolor = backcolor;
                   
        var params = {};
            params.movie = content;
            params.quality = "high";
            params.wmode = "transparent";
       
        var attributes = {};
            attributes.align = "center";
			attributes.id = "galerie";
       
    	swfobject.embedSWF(content, container, "150", "44", "8.0", "../seite_daten/scripts/swfobject_2_1/swfobject/expressInstall.swf", flashvars, params, attributes);

}

function makeacoolvideo(container,content,xmlurl,medwidth,medheight){
var flashvars = {
				  htmlPage: document.location,
				  currVideo: swfobject.getQueryParamValue("currVideo"),
				  settingsFile: xmlurl
				};
				var params = {
				  allowFullScreen: "true",
				  allowScriptAccess: "always"
				};
				var attributes = {
				  id:container,
				  name:container
				};
				swfobject.embedSWF(content, container, medwidth, medheight, "9.0.115", "../seite_daten/scripts/swfobject_2_1/swfobject/expressInstall.swf", flashvars, params, attributes);
				swfmacmousewheel.registerObject(attributes.id);
}

// Images Variablen
var varfadego = 0;
var containerid = "";
var fadetime = 0;
var fadetime2 = 0;
var imageurl = "";
var allimg = 0;
var activeimg = 0;
var nextimg = 0;
var activelayer = 0;
var nextlayer = 0;
var finall = 0;
var shiny1vis = 0;
var shiny2vis = 0;
var aktivinterval = "";
var intervaltime = 20000;
var slideactive = 0;
var varimagetype = "";

// Init
var topimages = new Array();
topimages[0] = new Object();
topimages[0]["name"] = "Elbufer";
topimages[0]["image"] = "main_image_1.jpg";
topimages[0]["imageshort"] = "main_image_short_3.jpg";
topimages[0]["shiny"] = "pink";
topimages[0]["butposx"] = 600;
topimages[0]["butposy"] = 300;
topimages[0]["gotourl"] = 'http://www.test.de';
topimages[1] = new Object();
topimages[1]["name"] = "Braten";
topimages[1]["image"] = "main_image_2.jpg";
topimages[1]["imageshort"] = "main_image_short_3.jpg";
topimages[1]["shiny"] = "red";
topimages[1]["butposx"] = 800;
topimages[1]["butposy"] = 300;
topimages[1]["gotourl"] = 'http://www.test.de';
topimages[2] = new Object();
topimages[2]["name"] = "Apfel";
topimages[2]["image"] = "main_image_3.jpg";
topimages[2]["imageshort"] = "main_image_short_3.jpg";
topimages[2]["shiny"] = "green";
topimages[2]["butposx"] = 800;
topimages[2]["butposy"] = 300;
topimages[2]["gotourl"] = 'http://www.test.de';
topimages[3] = new Object();
topimages[3]["name"] = "City";
topimages[3]["image"] = "main_image_4.jpg";
topimages[3]["imageshort"] = "main_image_short_3.jpg";
topimages[3]["shiny"] = "red_b";
topimages[3]["butposx"] = 800;
topimages[3]["butposy"] = 300;
topimages[3]["gotourl"] = 'http://www.test.de';

function headimage_loadrandom(varid,time,imagetype,randomimg){
	
	containerid = varid;
	fadetime = time;
	fadetime2 = fadetime-1000;
	activelayer = 1;
	varimagetype = imagetype;
	allimg = topimages.length;
	
	// IE6 Fading
	isIE6 = /msie|MSIE 6/.test(navigator.userAgent);
	//alert(isIE6);
	//if(isIE6 == true){
		//fadetime = 0;
		//fadetime2 = 0;
	//}
	
	if(document.getElementById(containerid)){
		
		if(randomimg != 0 && topimages[randomimg]){ //Kein Random wenn 0 oder Numme rnicht existiert
			activeimg = randomimg-1;
		}else{ // Random Image
			var zvon = 0;
			var zbis = topimages.length;
			var temp = (Math.random() * zbis) + zvon;
			var temp = Math.round(temp);
			if (temp == 0) temp++;
			temp--;
			activeimg = temp;
		}
		
		if(varimagetype == 'home'){
			//alert('home');
			// Klassen
			mainimageclass = "lay_mainimage"+activelayer+" mi_"+(activeimg+1);
			shinyclassn1 = "lay_shiny1 sh_"+topimages[activeimg]["shiny"]+"1";
			shinyclassn2 = "lay_shiny2 sh_"+topimages[activeimg]["shiny"]+"2";
			document.getElementById('mainimage'+activelayer).className = mainimageclass;
			document.getElementById('shiny1'+activelayer).className = shinyclassn1;
			document.getElementById('shiny2'+activelayer).className = shinyclassn2;
			
			//Image laden
			var imgurl = imageurl+"mainimages/"+topimages[activeimg]["image"];
			var shine1url = imageurl+"backs/"+"headback_shine_"+topimages[activeimg]["shiny"]+"1.jpg";
			var shine2url = imageurl+"backs/"+"headback_shine_"+topimages[activeimg]["shiny"]+"2.jpg";
		}
		if(varimagetype == 'inside'){
			//alert('inside');
			// Klassen
			mainimageclass = "lay_mainimage_short"+activelayer+" mi_short_"+(activeimg+1);
			shinyclassn1 = "lay_shiny1 sh_"+topimages[activeimg]["shiny"]+"1";
			shinyclassn2 = "lay_shiny2_short sh_"+topimages[activeimg]["shiny"]+"_short2";
			document.getElementById('mainimage'+activelayer).className = mainimageclass;
			document.getElementById('shiny1'+activelayer).className = shinyclassn1;
			document.getElementById('shiny2'+activelayer).className = shinyclassn2;
			
			//Image laden
			var imgurl = imageurl+"mainimages/"+topimages[activeimg]["imageshort"];
			var shine1url = imageurl+"backs/"+"headback_shine_short_"+topimages[activeimg]["shiny"]+"1.jpg";
			var shine2url = imageurl+"backs/"+"headback_shine_short_"+topimages[activeimg]["shiny"]+"2.jpg";
		}
		
		var arrloadimg = new Array();
		arrloadimg[0] = imgurl;
		arrloadimg[1] = shine1url;
		arrloadimg[2] = shine2url;
		finall = 1;
		preloader(arrloadimg,1);
		
		// Button Moreinfo setzen
		setlink(activeimg);
	}
}

function preloader(arrloadimg,imgnr){
	//alert('preload:');
	thisimage = new Image(); 
	//alert(thisimage.src);
	
	//Listener anhängen
	if (thisimage.addEventListener) { // DOM
    	thisimage.addEventListener ("load", ladenfertsch, false);
  	}else if (thisimage.attachEvent) { // IE
    	thisimage.attachEvent("onload", function(){ladenfertsch()});
  	}else{ // ELSE
		thisimage.onload = ladenfertsch();
	}
	
	function ladenfertsch(){
		//alert('geladen'+arrloadimg[imgnr-1]);
		if(imgnr < arrloadimg.length){
			//alert('neuladen:'+varid);
			preloader(arrloadimg,imgnr+1);
		}else{
			//alert('fertsch');
			if(finall == 1) finalload();
			if(finall == 2) switchload();
		}
	}
	thisimage.onerror = function(){
		//alert('error');	
	}
	//alert(arrloadimg[imgnr-1]);
	thisimage.src = arrloadimg[imgnr-1];
}

function finalload(){
	
	//alert('finalload:');
	// Bild faden
	fadein(containerid,fadetime);
	//Loader ausfaden
	fadeout('imageloader',500);
	// Shiny faden nach Zeit x
	setTimeout('fadein(\'shiny_all\'+activelayer,fadetime2)', fadetime);
	shiny1vis = 1;
	// Link einblenden
	setTimeout('fadelink()', 2000);
	if(varimagetype == 'home'){ // Nur auf Startseite
		//alert('home');
		// Ablauf starten
		aktivinterval = window.setInterval ('shineout()', intervaltime);
		// Pager zeichnen
		setTimeout('setpager()', 1500);
	}
	
}

function setpager(){
	//alert('setpager');
	pagerout = "";
	pagerelem1 = '<span class="numberblock" id="page';
	pagerelem2 = '"><span class="x1">&nbsp;</span><a href="javascript:;" class="number ';
	pagerelem3 = '" onclick="';
	pagerelem4 = '">&nbsp;</a></span>';
	
	
	breaker = '<div class="break">&nbsp;</div>'
	for(i=1;i <= allimg;i++){
		if(i==(activeimg+1)){
			activeclass = "nr"+i;
			clickimage = "";
		}else{
			activeclass = "";
			clickimage = "clickimagenow('"+i+"');"
		}
		pageelemout = pagerelem1+i+pagerelem2+activeclass+pagerelem3+clickimage+pagerelem4;
		pagerout+=pageelemout+"\n";
	}
	pagerout+=breaker;
	//alert(pagerout);
	document.getElementById('imagecounter').innerHTML = pagerout;
	// Pager einblenden
	pagetimer = 1500;
	for(i=1;i <= allimg;i++){
		setTimeout('fadein(\'page'+i+'\',fadetime2)', pagetimer);
		pagetimer = pagetimer+200;
	}
	//setTimeout('setlink(activeimg)', 1000);
}

function setlink(wer){
	// Button Moreinfo setzen
	if(varimagetype == 'home'){ // Nur auf Startseite
		document.getElementById('image_moreinfo').style.top = topimages[wer]["butposy"]+"px";
		document.getElementById('image_moreinfo').style.left = topimages[wer]["butposx"]+"px";
	}else{
		document.getElementById('image_moreinfo').style.top = "146px";
		document.getElementById('image_moreinfo').style.left = "832px";
	}
	document.getElementById('image_moreinfo').onclick = function(){
		window.location.href = topimages[wer]["gotourl"]; 	
	}	
}
function fadelink(){
	fadein('image_moreinfo',1000);	
}

// Image Floater
function shineout(){
	
	//Pager ausschalten
	for(i=1;i <= allimg;i++){
		fadeout('page'+i, 200);
	}
	// Link ausschalten
	fadeout('image_moreinfo', 200);
	
	
	if(shiny1vis == 1){
		fadeout('shiny_all1', 200);
		shiny1vis = 0;
	}
	if(shiny2vis == 1){
		fadeout('shiny_all2', 200);
		shiny2vis = 0;
	}
	floatimage();
	
}

function floatimage(){
	//fadein('imageloader',200);
	// nächstes Bild ermitteln
	if((activeimg+1)==allimg){
		nextimg = 0;
	}else{
		nextimg = activeimg+1;	
	}
	//alert(nextimg);
	
	//Layer ermitteln
	if(activelayer==1){
		nextlayer = 2;
	}else{
		nextlayer = 1;
	}
	//alert(nextlayer);
	
	// Klassen
	mainimageclass = "lay_mainimage"+nextlayer+" mi_"+(nextimg+1);
	shinyclassn1 = "lay_shiny1 sh_"+topimages[nextimg]["shiny"]+"1";
	shinyclassn2 = "lay_shiny2 sh_"+topimages[nextimg]["shiny"]+"2";
	//alert(mainimageclass);
	document.getElementById(('mainimage'+nextlayer)).className = mainimageclass;
	document.getElementById('shiny1'+nextlayer).className = shinyclassn1;
	document.getElementById('shiny2'+nextlayer).className = shinyclassn2;
	
	//Image laden
	var imgurl = imageurl+"mainimages/"+topimages[nextimg]["image"];
	var shine1url = imageurl+"backs/"+"headback_shine_"+topimages[nextimg]["shiny"]+"1.jpg";
	var shine2url = imageurl+"backs/"+"headback_shine_"+topimages[nextimg]["shiny"]+"2.jpg";
	var arrloadimg = new Array();
	arrloadimg[0] = imgurl;
	arrloadimg[1] = shine1url;
	arrloadimg[2] = shine2url;
	finall = 2;
	preloader(arrloadimg,1,2);
	
}

function switchload(){
	//alert('switch'+nextlayer);
	//fadeout('imageloader',500);
	
	if(nextlayer == 2){
		fadein('mainimage2',fadetime);
		setTimeout('fadein(\'shiny_all2\',fadetime2)', fadetime);
		shiny2vis = 1;
	}else{
		fadeout('mainimage2',fadetime);
		setTimeout('fadein(\'shiny_all1\',fadetime2)', fadetime);
		shiny1vis = 1;
	}
	activeimg = nextimg;
	activelayer = nextlayer;
	
	//alert(activeimg);
	//Pager einblenden
	setTimeout('setpager()', 1500);
	// Link einblenden
	setTimeout('fadelink()', 2500);
}

// Klick Image
function clickimagenow(wer){
	//alert(wer);
	fadestop();
	//alert(aktivinterval);
	// Bild setzen, Rest macht die folgende Funkton
	activeimg = wer-2;
	// Shine ausblenden und Fader starten
	shineout();
}


function fadein(id,time){
	MM_effectAppearFade(id, time, 0, 100, false);	
}
function fadeout(id,time){
	MM_effectAppearFade(id, time, 100, 0, false);	
}

function MM_effectAppearFade(targetElement, duration, from, to, toggle)
{
	Spry.Effect.DoFade(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
}

// Slider Variablen
var slideranz = 8; // Wieviel werden angezeigt
var sliderall = 0; // Wieviel sind es
var slideactiv = 0; // Welcher Sliderstep ist gerade aktiv
var slidestepsallow = 0; // Weiviel Slidersteps sind erlaubt


// Slider
function initslider(){
	var z=0;
  	var elem=document.getElementsByTagName("img");
 	for(var i=0;i<elem.length;i++)if(elem[i].id.indexOf("product_")!=-1)z++;
 	sliderall = z;
	//alert(z);
	// Pfeile initial
	document.getElementById('slidenext').style.display = "block";
	document.getElementById('slideprev').style.display = "block";
	if(sliderall <= 8){
		document.getElementById('slidenextoff').style.display = "block";
		document.getElementById('slideprevoff').style.display = "block";
	}
	if(slideactiv == 0){
		document.getElementById('slideprevoff').style.display = "block";
	}
	// Slidesteps allow
	slidestepsallow = Math.round((sliderall-slideranz)/2);
	//alert(slidestepsallow);
}
function slidenext(){
	if(slideactive == 0){
		slideactive = 1;
		if(slideactiv < slidestepsallow){
			fadestop();
			slideactiv++;
			flvFSL1('slider',218,0,20,0,1);
			checkslidebuttons();
		}
	}
}
function slideprev(){
	if(slideactive == 0){
		slideactive = 1;
		if(slideactiv > 0){
			fadestop();
			slideactiv--;
			flvFSL1('slider',218,0,20,0,2);
			checkslidebuttons();
		}
	}
}
function checkslidebuttons(){
	if(slideactiv == slidestepsallow){
		document.getElementById('slidenextoff').style.display = "block";
	}else{
		document.getElementById('slidenextoff').style.display = "none";
	}
	if(slideactiv == 0){
		document.getElementById('slideprevoff').style.display = "block";
	}else{
		document.getElementById('slideprevoff').style.display = "none";
	}
}

function flvFSL1(){//v2.3
// Copyright 2002-2004, Marja Ribbers-de Vroed, FlevOOware (www.flevooware.nl/dreamweaver/)
var v1=arguments,v2=v1[0],v3=MM_findObj(v2),v4,v5,v6,v7,v8,v9,v10,v11,v12,v13,v14,v15,v16,v17,v18,v19,v20=window,v21=navigator;if (v3){v4=parseInt(v1[1]);v5=parseInt(v1[2]);v6=parseInt(v1[3]);v7=(v1.length>4)?parseInt(v1[4]):0;v8=(v1.length>5)?parseInt(v1[5]):0;v9=10;v10=document.layers?v3:v3.style;if (v3.SL1!=null){clearTimeout(v3.SL1);}v11=isNaN(parseInt(v10.left))?v3.offsetLeft:parseInt(v10.left);v12=isNaN(parseInt(v10.top))?v3.offsetTop:parseInt(v10.top);if (v8!=0){if (v8==1){v4=v11-v4;v5=v12;}else if (v8==2){v4=v11+v4;v5=v12;}else if (v8==3){v5=v12-v5;v4=v11;}else {v5=v12+v5;v4=v11;}}v13=v4;v14=v5;if ((v11!=v4)||(v12!=v5)){if (v7>0){v9=v6;v15=v7;v16=v7,v17=Math.abs(v11-v4),v18=Math.abs(v12-v5);if (v17<v18){v16=(v17!=0)?((v18/v17)*v7):v7;}else {v15=(v18!=0)?((v17/v18)*v7):v7;}if (v15>=v17){v15=Math.min(Math.ceil(v15),v7);}if (v16>=v18){v16=Math.min(Math.ceil(v16),v7);}if ((v11<v4)&&(v11+v15<v4)){v4=v11+v15;}if ((v11>v4)&&(v11-v15>v4)){v4=v11-v15;}if ((v12<v5)&&(v12+v16<v5)){v5=v12+v16;}if ((v12>v5)&&(v12-v16>v5)){v5=v12-v16;}}else {v17=((v4-v11)/v6);v18=((v5-v12)/v6);v17=(v17>0)?Math.ceil(v17):Math.floor(v17);v4=v11+v17;v18=(v18>0)?Math.ceil(v18):Math.floor(v18);v5=v12+v18;}v19=(document.layers||window.opera)?"":"px";if (v17!=0){v10.left=v4+v19;}if (v18!=0){v10.top=v5+v19;}var v22="flvFSL1('"+v2+"',"+v13+","+v14+","+v6+","+v7+",0)";v3.SL1=setTimeout(v22,v9);}else {/*alert('slider fertsch');*/slideoff();if (v20.onSlideEnd){onSlideEnd(v2);}}}}

function fadestop(){
	if(varimagetype == 'home'){
		window.clearInterval(aktivinterval);
		if(varfadego == 0){
			setTimeout('fadego()', 3000);
		}
		varfadego = 1;
	}
}
function fadego(){
	if(varimagetype == 'home'){
		aktivinterval = window.setInterval ('shineout()', intervaltime);
		varfadego = 0;
	}
}

//Homepage Speacials
var varoutnow = 0;
var top1 = 180;
var top2 = 216;
var top3 = 252;
var top4 = 288;

function specialslide(wer,slidetype){
	
	fadestop();
	var specialheight = 70;	
	var butheigt = 36;
	var newslide = specialheight - butheigt;
	
	if(wer == 1){
		varoutnow = 1;
		if(slidetype != "inside"){
			flvFSL1('tscont1',0,top1-newslide,10,0,0);
			flvFSL1('tscont2',0,top2,10,0,0);
			flvFSL1('tscont3',0,top3,10,0,0);
			flvFSL1('tscont4',0,top4,10,0,0);
		}
		// grüne layer
		document.getElementById('tscont1').style.height = "71px";
		document.getElementById('tscont2').style.height = "auto";
		document.getElementById('tscont3').style.height = "auto";
		document.getElementById('tscont4').style.height = "auto";
		flvFSL1('tscont12',0,0,10,0,0);
		flvFSL1('tscont22',0,-70,10,0,0);
		flvFSL1('tscont32',0,-70,10,0,0);
		flvFSL1('tscont42',0,-70,10,0,0);
	}
	if(wer == 2){
		varoutnow = 1;
		if(slidetype != "inside"){
			flvFSL1('tscont1',0,top1-newslide,10,0,0);
			flvFSL1('tscont2',0,top2-newslide,10,0,0);
			flvFSL1('tscont3',0,top3,10,0,0);
			flvFSL1('tscont4',0,top4,10,0,0);
		}
		// grüne layer
		document.getElementById('tscont1').style.height = "auto";
		document.getElementById('tscont2').style.height = "71px";
		document.getElementById('tscont3').style.height = "auto";
		document.getElementById('tscont4').style.height = "auto";
		flvFSL1('tscont12',0,-70,10,0,0);
		flvFSL1('tscont22',0,0,10,0,0);
		flvFSL1('tscont32',0,-70,10,0,0);
		flvFSL1('tscont42',0,-70,10,0,0);
	}
	if(wer == 3){
		varoutnow = 1;
		if(slidetype != "inside"){
			flvFSL1('tscont1',0,top1-newslide,10,0,0);
			flvFSL1('tscont2',0,top2-newslide,10,0,0);
			flvFSL1('tscont3',0,top3-newslide,10,0,0);
			flvFSL1('tscont4',0,top4,10,0,0);
		}
		// grüne layer
		document.getElementById('tscont1').style.height = "auto";
		document.getElementById('tscont2').style.height = "auto";
		document.getElementById('tscont3').style.height = "71px";
		document.getElementById('tscont4').style.height = "auto";
		flvFSL1('tscont12',0,-70,10,0,0);
		flvFSL1('tscont22',0,-70,10,0,0);
		flvFSL1('tscont32',0,0,10,0,0);
		flvFSL1('tscont42',0,-70,10,0,0);
	}
	if(wer == 4){
		varoutnow = 1;
		if(slidetype != "inside"){
			flvFSL1('tscont1',0,top1-newslide,10,0,0);
			flvFSL1('tscont2',0,top2-newslide,10,0,0);
			flvFSL1('tscont3',0,top3-newslide,10,0,0);
			flvFSL1('tscont4',0,top4-newslide,10,0,0);
		}
		// grüne layer
		document.getElementById('tscont1').style.height = "auto";
		document.getElementById('tscont2').style.height = "auto";
		document.getElementById('tscont3').style.height = "auto";
		document.getElementById('tscont4').style.height = "71px";
		flvFSL1('tscont12',0,-70,10,0,0);
		flvFSL1('tscont22',0,-70,10,0,0);
		flvFSL1('tscont32',0,-70,10,0,0);
		flvFSL1('tscont42',0,0,10,0,0);
	}
	if(wer == 10){ // Slideoff
		varoutnow = 0;
		if(slidetype != "inside"){
			setTimeout('outnowx(\'home\')', 500);
		}else{
			setTimeout('outnowx(\'inside\')', 500);
		}
	}
	if(wer == 11){ // Slideoff
		varoutnow = 1;
	}
	
}


function outnowx(slidetype){
	if(varoutnow == 0){
		if(slidetype != "inside"){
			flvFSL1('tscont1',0,top1,10,0,0);
			flvFSL1('tscont2',0,top2,10,0,0);
			flvFSL1('tscont3',0,top3,10,0,0);
			flvFSL1('tscont4',0,top4,10,0,0);
		}
		// grüne layer
		document.getElementById('tscont1').style.height = "auto";
		document.getElementById('tscont2').style.height = "auto";
		document.getElementById('tscont3').style.height = "auto";
		document.getElementById('tscont4').style.height = "auto";
		flvFSL1('tscont12',0,-70,10,0,0);
		flvFSL1('tscont22',0,-70,10,0,0);
		flvFSL1('tscont32',0,-70,10,0,0);
		flvFSL1('tscont42',0,-70,10,0,0);
	}
}



// NewsSlider Variablen
var newsslideranz = 1; // Wieviel werden angezeigt
var newssliderall = 0; // Wieviel sind es
var newsslideactiv = 0; // Welcher Sliderstep ist gerade aktiv
var newsslidestepsallow = 0; // Weiviel Slidersteps sind erlaubt
var newsslidewidht = 370; // Wie weit wird geslidet

// Newsslider
function initnewsslider(){
	var z=0;
  	var elem=document.getElementsByTagName("div");
 	for(var i=0;i<elem.length;i++)if(elem[i].id.indexOf("article_")!=-1)z++;
 	newssliderall = z;
	//alert(z);
	// Pfeile initial
	
	document.getElementById('newsslidenext').style.display = "block";
	document.getElementById('newsslideprev').style.display = "block";
	if(newssliderall == 1){
		document.getElementById('newsslidenextoff').style.display = "block";
		document.getElementById('newsslideprevoff').style.display = "block";
	}
	if(newsslideactiv == 0){
		document.getElementById('newsslideprevoff').style.display = "block";
	}
	// Slidesteps allow
	newsslidestepsallow = Math.round((newssliderall-newsslideranz));
	//alert(newsslidestepsallow);
	setnewspager();
	
}
function newsslidenext(){
	if(slideactive == 0){
		slideactive = 1;
		if(newsslideactiv < newsslidestepsallow){
			slidenewsto = (newsslideactiv+1)*newsslidewidht;// slidepunkt
			slidenewsto = slidenewsto*-1;
			fadestop();
			document.getElementById('newscounter').innerHTML = "";
			newsslideactiv++;
			flvFSL1('newsslider',slidenewsto,0,10,0,0);
			checknewsslidebuttons();
			setTimeout('setnewspager()', 200);
		}
	}
}
function newsslideprev(){
	if(slideactive == 0){
		slideactive = 1;
		if(newsslideactiv > 0){
			slidenewsto = (newsslideactiv-1)*newsslidewidht;// slidepunkt
			slidenewsto = slidenewsto*-1;
			fadestop();
			document.getElementById('newscounter').innerHTML = "";
			newsslideactiv--;
			flvFSL1('newsslider',slidenewsto,0,10,0,0);
			checknewsslidebuttons();
			setTimeout('setnewspager()', 200);
		}
	}
}
function checknewsslidebuttons(){
	//alert(newsslideactiv);
	if(newsslideactiv == newsslidestepsallow){
		document.getElementById('newsslidenextoff').style.display = "block";
	}else{
		document.getElementById('newsslidenextoff').style.display = "none";
	}
	if(newsslideactiv == 0){
		document.getElementById('newsslideprevoff').style.display = "block";
	}else{
		document.getElementById('newsslideprevoff').style.display = "none";
	}
}
function setnewspager(){
	
	pagerout = "";
	pagerelem1 = '<a href="javascript:;" class="lay_nc_ic';
	pagerelem2 = '" onclick="';
	pagerelem3 = '" id="newspage';
	pagerelem4 = '">&nbsp;</a>';
	
	breaker = '<div class="break">&nbsp;</div>'
	for(i=1;i <= newssliderall;i++){
		if(i==(newsslideactiv+1)){
			activenewsclass = " nr"+i;
			clicknews = "";
		}else{
			activenewsclass = "";
			clicknews = "clicknewsnow('"+i+"');"
		}
		pageelemout = pagerelem1+activenewsclass+pagerelem2+clicknews+pagerelem3+i+pagerelem4;
		pagerout+=pageelemout+"\n";
	}
	pagerout+=breaker;
	//alert(pagerout);
	
	document.getElementById('newscounter').innerHTML = pagerout;
	// Pager einblenden
	pagetimer = 200;
	for(i=1;i <= newssliderall;i++){
		setTimeout('fadein(\'newspage'+i+'\',300)', pagetimer);
		pagetimer = pagetimer+100;
	}
}
// Klick News
function clicknewsnow(wer){
	//alert(wer);
	fadestop();
	slidenewsto = (parseFloat(wer)-1)*newsslidewidht;// slidepunkt
	slidenewsto = slidenewsto*-1;
	document.getElementById('newscounter').innerHTML = "";
	newsslideactiv = parseFloat(wer-1);
	flvFSL1('newsslider',slidenewsto,0,10,0,0);
	checknewsslidebuttons();
	setTimeout('setnewspager()', 200);
	
}

/* Mainnavi Start */
var mainnavianz = 0;
var navihoverout = 0; // Hat die Maus den navihover verlassen;

function mainnaviinit(){
	var z=0;
  	var elem=document.getElementsByTagName("a");
 	for(var i=0;i<elem.length;i++)if(elem[i].id.indexOf("mn_")!=-1)z++;
 	mainnavianz = z
	//alert(mainnavianz);
	for(i=1;i <= mainnavianz;i++){
		document.getElementById('mn_'+i).name = i;
		document.getElementById('mn_'+i).onmouseover = function(){
			navihoverout = 'off';
			mainnavi(this.name);
		}
		if(document.getElementById('sub'+i)){
			document.getElementById('sub'+i).name = i;
			document.getElementById('sub'+i).onmouseover = function(){
				navihoverout = 'off';
			}
			document.getElementById('sub'+i).onmouseout = function(){
				navihoverout = 'on';
				setTimeout('navihoveroff(this.name)', 500);
			}
			//Subnavi initialisieren
			subnaviinit(i);
			
		}
	}
}
function mainnavi(wer){
	if(document.getElementById('sub'+wer)){
		// Navi zurücksetzen
		naviallout();
		// Navi aktiv setzen
		varclassname = document.getElementById('mn2_'+wer).className;
		if(varclassname == "fo_nav_m") document.getElementById('mn2_'+wer).className = "fo_nav_mact";
		if(varclassname == "fo_nav_m last") document.getElementById('mn2_'+wer).className = "fo_nav_mact last";
		// Navihover aktiv setzen
		document.getElementById('sub'+wer).className = "lay_navihover_on";
	}else{
		// Navi zurücksetzen
		naviallout()
	}
}
function navihoveroff(){
	// mit verzögerung ausschalten :-)
	if(navihoverout == 'on'){
		naviallout();
	}
}
function naviallout(){
	// Navi zurücksetzen
	for(i=1;i <= mainnavianz-1;i++) document.getElementById('mn2_'+i).className = "fo_nav_m";
	document.getElementById('mn2_'+mainnavianz).className = "fo_nav_m last";
	// Navihover zurücksetzen
	for(i=1;i <= mainnavianz;i++){
		if(document.getElementById('sub'+i)){
			document.getElementById('sub'+i).className = "lay_navihover";
		}
	}
	// Subsubnavi ausschalten
	var elem=document.getElementsByTagName("div");
 	for(var i=0;i<elem.length;i++)if(elem[i].id.indexOf("ssub")!=-1)elem[i].className = "lay_nav_s_s_cont_off"; // Anzahl Subnavi (Level1) pro Hauptnavipunkt
	//  Subnavihightlight entfernen
	var elem=document.getElementsByTagName("a");
	for(var i=0;i<elem.length;i++)if(elem[i].id.indexOf("lev1")!=-1)elem[i].className = "fo_nav_s"; // Anzahl Subnavi (Level1) pro Hauptnavipunkt
	
}

function subnaviinit(wer){
	//alert(wer);
	var z=0;
  	var elem=document.getElementsByTagName("a");
 	for(var i=0;i<elem.length;i++)if(elem[i].id.indexOf("lev1_"+wer)!=-1)z++; // Anzahl Subnavi (Level1) pro Hauptnavipunkt
	//alert(z);
	if(z>0){ // Wenn Subnavi da?
		for(i=1;i <= z;i++){ // Alle Subnavi durchgehen (Level1)
			
			document.getElementById('lev1_'+wer+'_'+i).name='ssub'+wer+'_'+i;
			
			document.getElementById('lev1_'+wer+'_'+i).onmouseover = function(){
				
				// Hightlighting
				// die anderen Hightlights entfernen
				var elem=document.getElementsByTagName("a");
 				for(var i=0;i<elem.length;i++)if(elem[i].id.indexOf("lev1")!=-1)elem[i].className = "fo_nav_s"; // Anzahl Subnavi (Level1) pro Hauptnavipunkt
				// sich selbst highlighten
				this.className = "fo_nav_sact";
								
				// Susubnavis ausschalten
				poschar = this.name.indexOf("_");
				layerchar = this.name.substr(0, poschar);
				
				// Alle Subsubnavis ausschalten
				for(a=1;a<=z;a++){
					if(document.getElementById(layerchar+'_'+a)){
						//alert(layerchar+'_'+a);
						document.getElementById(layerchar+'_'+a).className = "lay_nav_s_s_cont_off";
					}
				}
					
				// Einschalten wenn vorhanden
				if(document.getElementById(this.name)){
					document.getElementById(this.name).className = "lay_nav_s_s_cont_on";
				}
				
				
			}
		}
	}
}


function slideoff(){ // Wenn sliden fertig ist
	slideactive = 0;	
}

// Produkte an/aus
function prodonoff(){
	thisbut = document.getElementById('prodonoff');
	thiscontainer = document.getElementById('productsinside');
	
	if(thisbut.className == 'lay_products_onoff_on'){
		thisbut.className = 'lay_products_onoff_off';
		thisbut.innerHTML = 'Produktgruppen zuklappen';
		thiscontainer.className = 'lay_products_inside_on';
	}else{
		thisbut.className = 'lay_products_onoff_on';
		thisbut.innerHTML = 'Produktgruppen aufklappen';
		thiscontainer.className = 'lay_products_inside_off';
	}
}


function startscripts(imgurl,imgnr){
	imageurl = imgurl;
	initslider();
	initnewsslider();
	mainnaviinit();
	headimage_loadrandom('mainimage1',2000,'home',imgnr);	
}
function startscripts2(imgurl,imgnr){
	imageurl = imgurl;
	initslider();
	headimage_loadrandom('mainimage1',2000,'inside',imgnr);	
}

/* Producttabellen */
var prodall = "";
var prodall2 = "";
var prodtip1 = "";
var prodtip2 = "";

function initproducts(tip1,tip2){
	prodall=document.getElementsByTagName("a");
	prodall2=document.getElementsByTagName("div");
	prodtip1 = tip1;
	prodtip2 = tip2;
	for(var i=0;i<prodall.length;i++){
		if(prodall[i].id.indexOf("prod_")!=-1){
			if(prodall[i].className == "lay_produkttab_action"){
				prodall[i].onmouseover = function(){
					new Tip(this, prodtip2, {style: 'narvatipnorm',stem: 'topLeft'});
				}
			}else{
				// Nix machen
			}
		}
	}
}
//onmouseover="new Tip(this, 'Produkttabelle schliessen', {style: 'narvatipnorm',stem: 'topLeft'});"
function producttab(wer){
	elemprod = document.getElementById('prod_'+wer);
	elemprod2 = document.getElementById('prodcont_'+wer);
	if(elemprod){ // Ist Tab da?
		if(elemprod.className == "lay_produkttab_actionact"){ // Ist Element schon aktiv?
			// Nix machen
		}else{ // Ist Element nicht aktiv?
			// Alles auschalten
			for(var i=0;i<prodall.length;i++){
				if(prodall[i].id.indexOf("prod_")!=-1){
					prodall[i].className = "lay_produkttab_action"; // Alle off setzen
					prodall[i].onmouseover = function(){
						new Tip(this, prodtip2, {style: 'narvatipnorm',stem: 'topLeft'});
					}
				}
			}
			for(var i=0;i<prodall2.length;i++)if(prodall2[i].id.indexOf("prodcont_")!=-1)prodall2[i].className = "lay_produkttab_content_off"; // Alle off setzen
			// Element Tabelle öffnen
			elemprod.className = "lay_produkttab_actionact";
			elemprod2.className = "lay_produkttab_content_on";
			elemprod.onmouseover = function(){
				Tips.hideAll();
				Tips.remove(this); // Tip entfernen
			}
		}
	}
}

//Kartenmaterial
var mapfadetime = 1000;
var dotfadetime = 500;
var dotoutall = '<div class="break"  style="height:20px;">&nbsp;</div>'; // Alle Adressen ausgeben

function changethemap(selectmap){
	//Alles zurücksetzen
	document.getElementById('mapcont').innerHTML = "";
	fadeout('mapchange',500);
	fadeout('mapcont',500);
	if(document.getElementById('dotdata').checkalpha != 0){
		fadeout('dotdata',500);
	}
	dotoutall = '<div class="break"  style="height:20px;">&nbsp;</div>';
	document.getElementById('alldataout').innerHTML = "";
	document.getElementById('butallout').innerHTML = "Alle Ansprechpartner anzeigen";
	document.getElementById('butallout').checkonoff = 0;
	
	setTimeout('setmapchange(\''+selectmap.value+'\')', 700);
	setTimeout('startworldmap(\''+selectmap.value+'\')', 700);
	
	
}
function setmapchange(wer){
	if(wer == "world"){
		document.getElementById('mapchange').style.top = "430px";
		document.getElementById('mapchange').style.left = "250px";
		document.getElementById('dotdata').className = "lay_dotdata_world";
	}
	if(wer == "euro"){
		document.getElementById('mapchange').style.top = "400px";
		document.getElementById('mapchange').style.left = "560px";
		document.getElementById('dotdata').className = "lay_dotdata_euro";
	}
	if(wer == "german"){
		document.getElementById('mapchange').style.top = "310px";
		document.getElementById('mapchange').style.left = "420px";
		document.getElementById('dotdata').className = "lay_dotdata_german";
	}	
}

function startworldmap(maptype){
	
	// Daten allgemein
	var mappoints = new Array();

	// Daten Weltkarte ##############################################################################
	var mappointsworld = new Array();
	
	mappointsworld[0] = new Object();
	mappointsworld[0]["country"] = "&Auml;GYPTEN";
	mappointsworld[0]["firm"] = "MAHER SHEBITA & Co.";
	mappointsworld[0]["adress"] = "International Co. for Engineering Works<br />36 Roshdl Str.<br />Abdeen, Cairo, Egypt";
	mappointsworld[0]["phone"] = "+20 2 390.11.79";
	mappointsworld[0]["phone2"] = "";
	mappointsworld[0]["mobile"] = "";
	mappointsworld[0]["fax"] = "+20 2 395.83.33";
	mappointsworld[0]["mail"] = "info@iec-egypt.com.eg";
	mappointsworld[0]["mail2"] = "";
	mappointsworld[0]["web"] = "";
	mappointsworld[0]["posx"] = "413";
	mappointsworld[0]["posy"] = "236";
	
	mappointsworld[1] = new Object();
	mappointsworld[1]["country"] = "ALGERIEN";
	mappointsworld[1]["firm"] = "Ounelec sarl";
	mappointsworld[1]["adress"] = "01 Rue du vieux Palais<br />16000 Alger<br />Algeria";
	mappointsworld[1]["phone"] = "+ 213 21838838";
	mappointsworld[1]["phone2"] = "";
	mappointsworld[1]["mobile"] = "";
	mappointsworld[1]["fax"] = "+ 213 21714714";
	mappointsworld[1]["mail"] = "ounelec_dz@yahoo.fr";
	mappointsworld[1]["mail2"] = "";
	mappointsworld[1]["web"] = "";
	mappointsworld[1]["posx"] = "353";
	mappointsworld[1]["posy"] = "228";
	
	mappointsworld[2] = new Object();
	mappointsworld[2]["country"] = "ISRAEL";
	mappointsworld[2]["firm"] = "OR BELL";
	mappointsworld[2]["adress"] = "Bazelet 2 I.P. Tzur Ygal<br />P.O.Box 13189<br />Israel";
	mappointsworld[2]["phone"] = "+ 972 9 749688273";
	mappointsworld[2]["phone2"] = "";
	mappointsworld[2]["mobile"] = "";
	mappointsworld[2]["fax"] = "+ 972 9 7496880";
	mappointsworld[2]["mail"] = "jeffreyz@or-bell.co.il";
	mappointsworld[2]["mail2"] = "";
	mappointsworld[2]["web"] = "";
	mappointsworld[2]["posx"] = "429";
	mappointsworld[2]["posy"] = "232";
	
	mappointsworld[3] = new Object();
	mappointsworld[3]["country"] = "JORDANIEN";
	mappointsworld[3]["firm"] = "NOOR ALA NOOR Est.";
	mappointsworld[3]["adress"] = "Lighting & Elec. Accessories<br />P.O.BOX 922 696<br />Amman 111 92";
	mappointsworld[3]["phone"] = "+ 962 6 533.24.10";
	mappointsworld[3]["phone2"] = "";
	mappointsworld[3]["mobile"] = "";
	mappointsworld[3]["fax"] = "+ 962 6 533.24.18";
	mappointsworld[3]["mail"] = "info@nooralanoor.net ";
	mappointsworld[3]["mail2"] = "";
	mappointsworld[3]["web"] = "";
	mappointsworld[3]["posx"] = "445";
	mappointsworld[3]["posy"] = "236";
	
	mappointsworld[4] = new Object();
	mappointsworld[4]["country"] = "KUWAIT";
	mappointsworld[4]["firm"] = "YOUSEF AL-AHMAD INT. GROUP";
	mappointsworld[4]["adress"] = "General Trading & Cont. W.L.L.<br />P.O.BOX 5168 Hawally<br />32082 Kuwait";
	mappointsworld[4]["phone"] = "+ 965 264 94 16";
	mappointsworld[4]["phone2"] = "";
	mappointsworld[4]["mobile"] = "";
	mappointsworld[4]["fax"] = "+ 965 264 94 17";
	mappointsworld[4]["mail"] = "info@alahmedgroup.com ";
	mappointsworld[4]["mail2"] = "";
	mappointsworld[4]["web"] = "";
	mappointsworld[4]["posx"] = "457";
	mappointsworld[4]["posy"] = "224";
	
	mappointsworld[5] = new Object();
	mappointsworld[5]["country"] = "LATEIN- UND S&Uuml;DAMERIKA";
	mappointsworld[5]["firm"] = "NARVA America-Latina";
	mappointsworld[5]["adress"] = "Casilla de Correro Nr. 103<br />Sucursal Belgrano (1428)<br />Buenos Aires, Argentina";
	mappointsworld[5]["phone"] = "+ 54 11 4788 8854";
	mappointsworld[5]["phone2"] = "";
	mappointsworld[5]["mobile"] = "";
	mappointsworld[5]["fax"] = "";
	mappointsworld[5]["mail"] = "info@narva-al.com";
	mappointsworld[5]["mail2"] = "";
	mappointsworld[5]["web"] = "";
	mappointsworld[5]["posx"] = "202";
	mappointsworld[5]["posy"] = "408";
	
	mappointsworld[6] = new Object();
	mappointsworld[6]["country"] = "LIBANON";
	mappointsworld[6]["firm"] = "AL AHLIAH EST";
	mappointsworld[6]["adress"] = "Blvd Adra Bldg<br />P.O.Box 1045<br />Tripoli, Lebanon";
	mappointsworld[6]["phone"] = "+ 961 6435301";
	mappointsworld[6]["phone2"] = "";
	mappointsworld[6]["mobile"] = "";
	mappointsworld[6]["fax"] = "+ 961 6625443";
	mappointsworld[6]["mail"] = "ranouna4@hotmail.com";
	mappointsworld[6]["mail2"] = "";
	mappointsworld[6]["web"] = "";
	mappointsworld[6]["posx"] = "429";
	mappointsworld[6]["posy"] = "220";
	
	mappointsworld[7] = new Object();
	mappointsworld[7]["country"] = "LIBYEN";
	mappointsworld[7]["firm"] = "C/o<br />AGRIPADANA";
	mappointsworld[7]["adress"] = "Grogolon Antonio & C. Sas<br />Via Altichiero, 8/11<br />IT-35135 Padova<br />Italia";
	mappointsworld[7]["phone"] = "+ 390 49605288";
	mappointsworld[7]["phone2"] = "";
	mappointsworld[7]["mobile"] = "";
	mappointsworld[7]["fax"] = "+ 390 49613616";
	mappointsworld[7]["mail"] = "agripadana@tin.it";
	mappointsworld[7]["mail2"] = "";
	mappointsworld[7]["web"] = "";
	mappointsworld[7]["posx"] = "381";
	mappointsworld[7]["posy"] = "236";
	
	mappointsworld[8] = new Object();
	mappointsworld[8]["country"] = "MADAGASKAR";
	mappointsworld[8]["firm"] = "EDELEC HABITAT & BATIMENTS";
	mappointsworld[8]["adress"] = "Rue Dr Raseta<br />B P 139 - Andraharo<br />101 ANTANARIVO";
	mappointsworld[8]["phone"] = "+ 261 20 23 209 47";
	mappointsworld[8]["phone2"] = "";
	mappointsworld[8]["mobile"] = "";
	mappointsworld[8]["fax"] = "+ 261 20 23 260 10";
	mappointsworld[8]["mail"] = "appro2.ehb@edelec-group.com";
	mappointsworld[8]["mail2"] = "";
	mappointsworld[8]["web"] = "";
	mappointsworld[8]["posx"] = "461";
	mappointsworld[8]["posy"] = "360";
	
	mappointsworld[9] = new Object();
	mappointsworld[9]["country"] = "MAROKKO";
	mappointsworld[9]["firm"] = "Sieten";
	mappointsworld[9]["adress"] = "29 Rue de Provins<br />Casablanca<br />Maroc";
	mappointsworld[9]["phone"] = "+ 212 22448171";
	mappointsworld[9]["phone2"] = "";
	mappointsworld[9]["mobile"] = "";
	mappointsworld[9]["fax"] = "+ 212 22448189";
	mappointsworld[9]["mail"] = "sietem@menara.ma";
	mappointsworld[9]["mail2"] = "";
	mappointsworld[9]["web"] = "";
	mappointsworld[9]["posx"] = "337";
	mappointsworld[9]["posy"] = "216";
	
	mappointsworld[10] = new Object();
	mappointsworld[10]["country"] = "NEUSEELAND";
	mappointsworld[10]["firm"] = "Lamps Exclusively Ltd.";
	mappointsworld[10]["adress"] = "4/38 Eaglehurst Road Ellerslie<br />P.O.Box39-131 Howick<br />New Zealand";
	mappointsworld[10]["phone"] = "+ 64 579 1512";
	mappointsworld[10]["phone2"] = "";
	mappointsworld[10]["mobile"] = "";
	mappointsworld[10]["fax"] = "+ 64 579 1526";
	mappointsworld[10]["mail"] = "lamps.ex@xtra.co.nz";
	mappointsworld[10]["mail2"] = "";
	mappointsworld[10]["web"] = "";
	mappointsworld[10]["posx"] = "741";
	mappointsworld[10]["posy"] = "464";
	
	mappointsworld[11] = new Object();
	mappointsworld[11]["country"] = "NIGERIA";
	mappointsworld[11]["firm"] = "CHANNOD VENTURES Ltd.";
	mappointsworld[11]["adress"] = "Block 04, Shop 15<br />Alaba International Market,<br />Ojo, Lagos, Nigeria";
	mappointsworld[11]["phone"] = "080 334.338.08";
	mappointsworld[11]["phone2"] = "";
	mappointsworld[11]["mobile"] = "";
	mappointsworld[11]["fax"] = "";
	mappointsworld[11]["mail"] = "channodventureslimited@yahoo.com";
	mappointsworld[11]["mail2"] = "";
	mappointsworld[11]["web"] = "";
	mappointsworld[11]["posx"] = "357";
	mappointsworld[11]["posy"] = "288";
	
	mappointsworld[12] = new Object();
	mappointsworld[12]["country"] = "PHILIPPINEN";
	mappointsworld[12]["firm"] = "ZENITH International Philippines, Inc.";
	mappointsworld[12]["adress"] = "647 Florentino Torres Street<br />Sta. Cruz Manila 1003";
	mappointsworld[12]["phone"] = "+ 632 733 8351";
	mappointsworld[12]["phone2"] = "+ 632 733 7342";
	mappointsworld[12]["mobile"] = "";
	mappointsworld[12]["fax"] = "+ 632 733 7257";
	mappointsworld[12]["mail"] = "partners@zenithinternational.ph";
	mappointsworld[12]["mail2"] = "";
	mappointsworld[12]["web"] = "";
	mappointsworld[12]["posx"] = "649";
	mappointsworld[12]["posy"] = "260";
	
	mappointsworld[13] = new Object();
	mappointsworld[13]["country"] = "PERU";
	mappointsworld[13]["firm"] = "Celiszen Repr. S.A.";
	mappointsworld[13]["adress"] = "Calle Campoverde 1329-7<br />Urb. Riconada Baja, La Molina";
	mappointsworld[13]["phone"] = "+ 51 1349 1301";
	mappointsworld[13]["phone2"] = "";
	mappointsworld[13]["mobile"] = "";
	mappointsworld[13]["fax"] = "+ 51 1348 7301";
	mappointsworld[13]["mail"] = "celiszen@terra.com.pe";
	mappointsworld[13]["mail2"] = "";
	mappointsworld[13]["web"] = "";
	mappointsworld[13]["posx"] = "166";
	mappointsworld[13]["posy"] = "332";
	
	mappointsworld[14] = new Object();
	mappointsworld[14]["country"] = "SYRIEN";
	mappointsworld[14]["firm"] = "BASSAM AL SADAT";
	mappointsworld[14]["adress"] = "Import Export Representation<br />P.O.BOX. 10984<br />Damascus-Syria";
	mappointsworld[14]["phone"] = "+ 963 11 3119200";
	mappointsworld[14]["phone2"] = "";
	mappointsworld[14]["mobile"] = "";
	mappointsworld[14]["fax"] = "+ 963 11 3342967";
	mappointsworld[14]["mail"] = "bassamsadat@cec.sy";
	mappointsworld[14]["mail2"] = "";
	mappointsworld[14]["web"] = "";
	mappointsworld[14]["posx"] = "445";
	mappointsworld[14]["posy"] = "216";
	
	mappointsworld[15] = new Object();
	mappointsworld[15]["country"] = "TUNESIEN";
	mappointsworld[15]["firm"] = "Artelec Sarl";
	mappointsworld[15]["adress"] = "6 rue Eledrissi<br />1000 Tunis<br />Tunisia";
	mappointsworld[15]["phone"] = "+ 216 71 350460";
	mappointsworld[15]["phone2"] = "";
	mappointsworld[15]["mobile"] = "";
	mappointsworld[15]["fax"] = "+ 216 71 350030";
	mappointsworld[15]["mail"] = "";
	mappointsworld[15]["mail2"] = "";
	mappointsworld[15]["web"] = "";
	mappointsworld[15]["posx"] = "369";
	mappointsworld[15]["posy"] = "216";
		
	// Daten Eurokarte ##############################################################################
	var mappointseuro = new Array();
	
	mappointseuro[0] = new Object();
	mappointseuro[0]["country"] = "ALBANIEN";
	mappointseuro[0]["firm"] = "Elektrik D&S sp.h.k.";
	mappointseuro[0]["adress"] = "Rruga sami frasheri pll 9 ap.46 shk 6<br />Tirana, Albania";
	mappointseuro[0]["phone"] = "";
	mappointseuro[0]["phone2"] = "";
	mappointseuro[0]["mobile"] = "";
	mappointseuro[0]["fax"] = "+ 355 424 3533";
	mappointseuro[0]["mail"] = "hdurmishi@hotmail.com";
	mappointseuro[0]["mail2"] = "";
	mappointseuro[0]["web"] = "";
	mappointseuro[0]["posx"] = "356";
	mappointseuro[0]["posy"] = "412";
	
	mappointseuro[1] = new Object();
	mappointseuro[1]["country"] = "BELGIEN";
	mappointseuro[1]["firm"] = "Ceramco S.A";
	mappointseuro[1]["adress"] = "Zas Du Faubourg<br />89 Chaussee De Nivelles<br />B-7170 Manage";
	mappointseuro[1]["phone"] = "+ 32 64570 440";
	mappointseuro[1]["phone2"] = "";
	mappointseuro[1]["mobile"] = "";
	mappointseuro[1]["fax"] = "+ 32 64570 439";
	mappointseuro[1]["mail"] = "ceramcoelec@skynet.be";
	mappointseuro[1]["mail2"] = "";
	mappointseuro[1]["web"] = "";
	mappointseuro[1]["posx"] = "192";
	mappointseuro[1]["posy"] = "296";
	
	mappointseuro[2] = new Object();
	mappointseuro[2]["country"] = "BULGARIEN";
	mappointseuro[2]["firm"] = "Kovas";
	mappointseuro[2]["adress"] = "1 Koloman street<br />BG-1640 Sofia";
	mappointseuro[2]["phone"] = "+ 35 929554043";
	mappointseuro[2]["phone2"] = "";
	mappointseuro[2]["mobile"] = "";
	mappointseuro[2]["fax"] = "+ 35 929555698";
	mappointseuro[2]["mail"] = "georgieva@kovasbg.com";
	mappointseuro[2]["mail2"] = "";
	mappointseuro[2]["web"] = "";
	mappointseuro[2]["posx"] = "408";
	mappointseuro[2]["posy"] = "384";
	
	mappointseuro[3] = new Object();
	mappointseuro[3]["country"] = "D&Auml;NEMARK";
	mappointseuro[3]["firm"] = "NARVA Danmark A/S";
	mappointseuro[3]["adress"] = "Postboks 1138<br />DK-2635 Ishoj";
	mappointseuro[3]["phone"] = "+ 45 43867329";
	mappointseuro[3]["phone2"] = "";
	mappointseuro[3]["mobile"] = "";
	mappointseuro[3]["fax"] = "+ 45 43717388";
	mappointseuro[3]["mail"] = "info@narvadanmark.dk";
	mappointseuro[3]["mail2"] = "";
	mappointseuro[3]["web"] = "www.narvadanmark.dk";
	mappointseuro[3]["posx"] = "232";
	mappointseuro[3]["posy"] = "212";
	
	mappointseuro[4] = new Object();
	mappointseuro[4]["country"] = "ESTLAND";
	mappointseuro[4]["firm"] = "EVAS B&P AS";
	mappointseuro[4]["adress"] = "Jalaka 85<br />50109 Tartu Estonia";
	mappointseuro[4]["phone"] = "+ 372 747 1333";
	mappointseuro[4]["phone2"] = "";
	mappointseuro[4]["mobile"] = "";
	mappointseuro[4]["fax"] = "+ 372 747 1484";
	mappointseuro[4]["mail"] = "rainerpedius@hotmail.com";
	mappointseuro[4]["mail2"] = "";
	mappointseuro[4]["web"] = "www.evas.ee";
	mappointseuro[4]["posx"] = "360";
	mappointseuro[4]["posy"] = "180";
	
	mappointseuro[5] = new Object();
	mappointseuro[5]["country"] = "FINNLAND";
	mappointseuro[5]["firm"] = "Sampolux KY";
	mappointseuro[5]["adress"] = "Martinlaaksontie 42 C 13<br />FIN-01620 Vantaa / Helsinki ";
	mappointseuro[5]["phone"] = "+ 358 92505466";
	mappointseuro[5]["phone2"] = "";
	mappointseuro[5]["mobile"] = "+ 358 50 5634742";
	mappointseuro[5]["fax"] = "+ 358 92505466";
	mappointseuro[5]["mail"] = "slux@mbnet.fi";
	mappointseuro[5]["mail2"] = "";
	mappointseuro[5]["web"] = "";
	mappointseuro[5]["posx"] = "352";
	mappointseuro[5]["posy"] = "120";
	
	mappointseuro[6] = new Object();
	mappointseuro[6]["country"] = "F&Auml;R&Ouml;ER INSELN";
	mappointseuro[6]["firm"] = "JM electric spf";
	mappointseuro[6]["adress"] = "Miobrekka 5<br />FO-370 Miovagur<br />Faroe Island";
	mappointseuro[6]["phone"] = "+ 298 283580";
	mappointseuro[6]["phone2"] = "";
	mappointseuro[6]["mobile"] = "";
	mappointseuro[6]["fax"] = "+ 298 333692";
	mappointseuro[6]["mail"] = "electric@E-Mail.fo";
	mappointseuro[6]["mail2"] = "";
	mappointseuro[6]["web"] = "";
	mappointseuro[6]["posx"] = "160";
	mappointseuro[6]["posy"] = "166";
	
	mappointseuro[7] = new Object();
	mappointseuro[7]["country"] = "FRANKREICH";
	mappointseuro[7]["firm"] = "Stephane Dubois";
	mappointseuro[7]["adress"] = "13 Rue des Saules<br />35 340 Liffre";
	mappointseuro[7]["phone"] = "+ 33 71 50 34 50";
	mappointseuro[7]["phone2"] = "+ 33 07 46 55 16";
	mappointseuro[7]["mobile"] = "";
	mappointseuro[7]["fax"] = "+ 33 99 68 31 18";
	mappointseuro[7]["mail"] = "stephane2@wanadoo.fr";
	mappointseuro[7]["mail2"] = "";
	mappointseuro[7]["web"] = "";
	mappointseuro[7]["posx"] = "168";
	mappointseuro[7]["posy"] = "332";
	
	mappointseuro[8] = new Object();
	mappointseuro[8]["country"] = "GRIECHENLAND";
	mappointseuro[8]["firm"] = "Lazaros Antoniadis & Co. SA";
	mappointseuro[8]["adress"] = "Kifissou 46 & Nikomidias<br />GR-12241 Egaleo Athen";
	mappointseuro[8]["phone"] = "+ 30 156 18081";
	mappointseuro[8]["phone2"] = "";
	mappointseuro[8]["mobile"] = "";
	mappointseuro[8]["fax"] = "+ 30 156 25640";
	mappointseuro[8]["mail"] = "lefteris@lazaros-antoniadis.gr";
	mappointseuro[8]["mail2"] = "";
	mappointseuro[8]["web"] = "";
	mappointseuro[8]["posx"] = "380";
	mappointseuro[8]["posy"] = "432";
	
	mappointseuro[9] = new Object();
	mappointseuro[9]["country"] = "GROSSBRITANNIEN";
	mappointseuro[9]["firm"] = "CP LIGHTING";
	mappointseuro[9]["adress"] = "Unit 25<br />Red Lion Road Business Centre<br />Red Lion Road<br />KT6 7QD<br />Surbiton, Surrey";
	mappointseuro[9]["phone"] = "+ 442 083 91 7474";
	mappointseuro[9]["phone2"] = "";
	mappointseuro[9]["mobile"] = "";
	mappointseuro[9]["fax"] = "+ 442 083 91 7475";
	mappointseuro[9]["mail"] = "paul.reading@cp-lighting.co.uk";
	mappointseuro[9]["mail2"] = "";
	mappointseuro[9]["web"] = "phil.verity@cp-lighting.co.uk";
	mappointseuro[9]["posx"] = "140";
	mappointseuro[9]["posy"] = "276";
	
	mappointseuro[10] = new Object();
	mappointseuro[10]["country"] = "GROSSBRITANNIEN";
	mappointseuro[10]["firm"] = "THE LAMP COMPANY LTD";
	mappointseuro[10]["adress"] = "Unit 4<br />Ashville Trading Estate<br />Royston Road<br />SG7 6NN<br />Baldock";
	mappointseuro[10]["phone"] = "+ 441 462 490066";
	mappointseuro[10]["phone2"] = "";
	mappointseuro[10]["mobile"] = "";
	mappointseuro[10]["fax"] = "+ 441 462 491166";
	mappointseuro[10]["mail"] = "kevin@lampco.co.uk";
	mappointseuro[10]["mail2"] = "";
	mappointseuro[10]["web"] = "www.lampco.co.uk";
	mappointseuro[10]["posx"] = "124";
	mappointseuro[10]["posy"] = "260";
	
	mappointseuro[11] = new Object();
	mappointseuro[11]["country"] = "GROSSBRITANNIEN";
	mappointseuro[11]["firm"] = "Trilight Ltd.";
	mappointseuro[11]["adress"] = "Unit 5<br />Crombie Road<br />AB11 9QQ<br />Aberdeen";
	mappointseuro[11]["phone"] = "+ 441 224 897002";
	mappointseuro[11]["phone2"] = "";
	mappointseuro[11]["mobile"] = "";
	mappointseuro[11]["fax"] = "+ 441 224 897009";
	mappointseuro[11]["mail"] = "graeme.hosie@trilight.co.uk";
	mappointseuro[11]["mail2"] = "gus.cruickshank@trilight.co.uk";
	mappointseuro[11]["web"] = "www.lampco.co.uk";
	mappointseuro[11]["posx"] = "120";
	mappointseuro[11]["posy"] = "208";
	
	mappointseuro[12] = new Object();
	mappointseuro[12]["country"] = "IRLAND";
	mappointseuro[12]["firm"] = "PK LIGHTING Ltd";
	mappointseuro[12]["adress"] = "1, Maple Grove, Carpenterstown Park<br />Castleknock, Dublin 15";
	mappointseuro[12]["phone"] = "+ 353 1 820 7953";
	mappointseuro[12]["phone2"] = "";
	mappointseuro[12]["mobile"] = "";
	mappointseuro[12]["fax"] = "+ 353 1 820 7953";
	mappointseuro[12]["mail"] = "pklight@eircom.net";
	mappointseuro[12]["mail2"] = "";
	mappointseuro[12]["web"] = "www.pklighting.ie";
	mappointseuro[12]["posx"] = "84";
	mappointseuro[12]["posy"] = "248";
	
	mappointseuro[13] = new Object();
	mappointseuro[13]["country"] = "ISLAND";
	mappointseuro[13]["firm"] = "Fl&uacute;rlampar ehf.";
	mappointseuro[13]["adress"] = "Kaplahrauni 20<br />IS-220 Hafnarfj&ouml;rdur";
	mappointseuro[13]["phone"] = "+ 354 55540 60";
	mappointseuro[13]["phone2"] = "";
	mappointseuro[13]["mobile"] = "";
	mappointseuro[13]["fax"] = "+ 354 56530 62";
	mappointseuro[13]["mail"] = "jam@flurlampar.is";
	mappointseuro[13]["mail2"] = "";
	mappointseuro[13]["web"] = "";
	mappointseuro[13]["posx"] = "60";
	mappointseuro[13]["posy"] = "80";
	
	mappointseuro[14] = new Object();
	mappointseuro[14]["country"] = "ITALIEN";
	mappointseuro[14]["firm"] = "BOT Lighting S.R.L.";
	mappointseuro[14]["adress"] = "Via Lombarda 37-39<br />30030 PIANIGA (VE)";
	mappointseuro[14]["phone"] = "+ 39 041 5129411";
	mappointseuro[14]["phone2"] = "";
	mappointseuro[14]["mobile"] = "";
	mappointseuro[14]["fax"] = "+ 39 041 5101715";
	mappointseuro[14]["mail"] = "info@botlighting.it";
	mappointseuro[14]["mail2"] = "";
	mappointseuro[14]["web"] = "";
	mappointseuro[14]["posx"] = "268";
	mappointseuro[14]["posy"] = "388";
	
	mappointseuro[15] = new Object();
	mappointseuro[15]["country"] = "KROATIEN";
	mappointseuro[15]["firm"] = "IBF PROJEKT d.o.o.";
	mappointseuro[15]["adress"] = "Zavrtnica 17<br />HR-10000 Zagreb";
	mappointseuro[15]["phone"] = "+ 385 16055 734 + 735";
	mappointseuro[15]["phone2"] = "";
	mappointseuro[15]["mobile"] = "";
	mappointseuro[15]["fax"] = "+ 385 16055 738";
	mappointseuro[15]["mail"] = "jasna@ibf.hr";
	mappointseuro[15]["mail2"] = "";
	mappointseuro[15]["web"] = "";
	mappointseuro[15]["posx"] = "312";
	mappointseuro[15]["posy"] = "356";
	
	mappointseuro[16] = new Object();
	mappointseuro[16]["country"] = "LETTLAND";
	mappointseuro[16]["firm"] = "PLAZA Ltd.";
	mappointseuro[16]["adress"] = "41b Mukusalas Street<br />1004 Riga";
	mappointseuro[16]["phone"] = "+ 371 706 1950";
	mappointseuro[16]["phone2"] = "";
	mappointseuro[16]["mobile"] = "";
	mappointseuro[16]["fax"] = "+ 371 706 1952";
	mappointseuro[16]["mail"] = "aivars.linins@plazaltd.lv";
	mappointseuro[16]["mail2"] = "";
	mappointseuro[16]["web"] = "";
	mappointseuro[16]["posx"] = "368";
	mappointseuro[16]["posy"] = "204";
	
	mappointseuro[17] = new Object();
	mappointseuro[17]["country"] = "LITAUEN";
	mappointseuro[17]["firm"] = "UAB SVIESOS SALTINIS";
	mappointseuro[17]["adress"] = "Savanoriu Str. 182a<br />LT-002009 Vilnius";
	mappointseuro[17]["phone"] = "+ 370 5 232 4391";
	mappointseuro[17]["phone2"] = "";
	mappointseuro[17]["mobile"] = "";
	mappointseuro[17]["fax"] = "+ 370 5 232 2010";
	mappointseuro[17]["mail"] = "saltinis@is.lt";
	mappointseuro[17]["mail2"] = "";
	mappointseuro[17]["web"] = "";
	mappointseuro[17]["posx"] = "360";
	mappointseuro[17]["posy"] = "228";
	
	mappointseuro[18] = new Object();
	mappointseuro[18]["country"] = "MAZEDONIEN";
	mappointseuro[18]["firm"] = "ALFI BI Company";
	mappointseuro[18]["adress"] = "Industriska Zona Karpos BB<br />1300 Kumanovo";
	mappointseuro[18]["phone"] = "+ 389 31 445240";
	mappointseuro[18]["phone2"] = "";
	mappointseuro[18]["mobile"] = "+ 389 70 313972";
	mappointseuro[18]["fax"] = "+ 389 31 445178";
	mappointseuro[18]["mail"] = "lidija@alfi.com.mk";
	mappointseuro[18]["mail2"] = "";
	mappointseuro[18]["web"] = "";
	mappointseuro[18]["posx"] = "372";
	mappointseuro[18]["posy"] = "404";
	
	mappointseuro[19] = new Object();
	mappointseuro[19]["country"] = "MOLDAWIEN";
	mappointseuro[19]["firm"] = "LumGrupMas SRL";
	mappointseuro[19]["adress"] = "87/7, str. G, Madan<br />MD - 2020, Chisinau";
	mappointseuro[19]["phone"] = "+ 37 322 433532";
	mappointseuro[19]["phone2"] = "";
	mappointseuro[19]["mobile"] = "";
	mappointseuro[19]["fax"] = "+ 373 22 433532";
	mappointseuro[19]["mail"] = "lumgrupmas@rambler.ru";
	mappointseuro[19]["mail2"] = "lumgrupmas@gmail.com";
	mappointseuro[19]["web"] = "www.lgm.com.md";
	mappointseuro[19]["posx"] = "432";
	mappointseuro[19]["posy"] = "320";
	
	mappointseuro[20] = new Object();
	mappointseuro[20]["country"] = "&Ouml;STERREICH";
	mappointseuro[20]["firm"] = "Licht PROFI";
	mappointseuro[20]["adress"] = "Kaplanstra&szlig;e 4-6<br />A-3430 Tulln";
	mappointseuro[20]["phone"] = "+ 432 272 61404 0";
	mappointseuro[20]["phone2"] = "";
	mappointseuro[20]["mobile"] = "";
	mappointseuro[20]["fax"] = "+ 432 272 61404 22";
	mappointseuro[20]["mail"] = "office@lichtprofi.at";
	mappointseuro[20]["mail2"] = "";
	mappointseuro[20]["web"] = "";
	mappointseuro[20]["posx"] = "280";
	mappointseuro[20]["posy"] = "336";
	
	mappointseuro[21] = new Object();
	mappointseuro[21]["country"] = "&Ouml;STERREICH";
	mappointseuro[21]["firm"] = "LUDWIG LEUCHTEN";
	mappointseuro[21]["adress"] = "J. u. M. Mitterbauer GmbH<br />Laxenburgerstra&szlig;e 244<br />A-1230 Wien";
	mappointseuro[21]["phone"] = "+ 431 615 4544-0";
	mappointseuro[21]["phone2"] = "";
	mappointseuro[21]["mobile"] = "";
	mappointseuro[21]["fax"] = "+ 431 615 4544-20";
	mappointseuro[21]["mail"] = "wien@ludwig-leuchten.at";
	mappointseuro[21]["mail2"] = "";
	mappointseuro[21]["web"] = "www.ludwig-leuchten.at";
	mappointseuro[21]["posx"] = "296";
	mappointseuro[21]["posy"] = "328";
	
	mappointseuro[22] = new Object();
	mappointseuro[22]["country"] = "POLEN";
	mappointseuro[22]["firm"] = "NARVA POLSKA Sp. Z o.o.";
	mappointseuro[22]["adress"] = "ul. Prosta 69<br />00-838 Warszawa";
	mappointseuro[22]["phone"] = "+ 48 22 444 1960 / 62 / 63";
	mappointseuro[22]["phone2"] = "";
	mappointseuro[22]["mobile"] = "";
	mappointseuro[22]["fax"] = "+ 48 22 444 1961";
	mappointseuro[22]["mail"] = "m.walkowicz@narva.com.pl";
	mappointseuro[22]["mail2"] = "biuro@narva.com.pl";
	mappointseuro[22]["web"] = "www.narva.com.pl";
	mappointseuro[22]["posx"] = "320";
	mappointseuro[22]["posy"] = "272";
	
	mappointseuro[23] = new Object();
	mappointseuro[23]["country"] = "PORTUGAL";
	mappointseuro[23]["firm"] = "GEONEXT S.A.";
	mappointseuro[23]["adress"] = "Rua Joerge Ferreirinha<br />0221 Vermoim-Maia";
	mappointseuro[23]["phone"] = "+ 351 22 9478830";
	mappointseuro[23]["phone2"] = "";
	mappointseuro[23]["mobile"] = "";
	mappointseuro[23]["fax"] = "+ 351 22 9478839";
	mappointseuro[23]["mail"] = "patricia.bastos@scl.com.pt";
	mappointseuro[23]["mail2"] = "geral@geonext.pt";
	mappointseuro[23]["web"] = "www.geonext.pt";
	mappointseuro[23]["posx"] = "28";
	mappointseuro[23]["posy"] = "400";
	
	mappointseuro[24] = new Object();
	mappointseuro[24]["country"] = "RUM&Auml;NIEN";
	mappointseuro[24]["firm"] = "NARVA Romania SRL";
	mappointseuro[24]["adress"] = "I.C. Bratianu Street, Bl. D5, Ap.1<br />130055 Targoviste, Dambovita county";
	mappointseuro[24]["phone"] = "+ 40 245 216567";
	mappointseuro[24]["phone2"] = "";
	mappointseuro[24]["mobile"] = "";
	mappointseuro[24]["fax"] = "+ 40 245 216944";
	mappointseuro[24]["mail"] = "sales@narva-romania.ro";
	mappointseuro[24]["mail2"] = "";
	mappointseuro[24]["web"] = "";
	mappointseuro[24]["posx"] = "396";
	mappointseuro[24]["posy"] = "340";
	
	mappointseuro[25] = new Object();
	mappointseuro[25]["country"] = "RUSSLAND";
	mappointseuro[25]["firm"] = "RASCO-ENERGO (ZAO)";
	mappointseuro[25]["adress"] = "Wolgogradsky Avenue 35, Office 106<br />Moscow, 109316";
	mappointseuro[25]["phone"] = "+ 7 495 6613050";
	mappointseuro[25]["phone2"] = "";
	mappointseuro[25]["mobile"] = "";
	mappointseuro[25]["fax"] = "+ 7 495 6767802";
	mappointseuro[25]["mail"] = "www.rasco-energo.com";
	mappointseuro[25]["mail2"] = "";
	mappointseuro[25]["web"] = "www.narva-rus.ru";
	mappointseuro[25]["posx"] = "500";
	mappointseuro[25]["posy"] = "208";
	
	mappointseuro[26] = new Object();
	mappointseuro[26]["country"] = "SCHWEIZ";
	mappointseuro[26]["firm"] = "UNEX Dakota AG";
	mappointseuro[26]["adress"] = "Dahliastrasse 5<br />CH-8034 Z&uuml;rich";
	mappointseuro[26]["phone"] = "+ 41 44 381 5660";
	mappointseuro[26]["phone2"] = "";
	mappointseuro[26]["mobile"] = "";
	mappointseuro[26]["fax"] = "+ 41 44 381 5717";
	mappointseuro[26]["mail"] = "info@unex-light.com";
	mappointseuro[26]["mail2"] = "";
	mappointseuro[26]["web"] = "www.unex-light.com";
	mappointseuro[26]["posx"] = "212";
	mappointseuro[26]["posy"] = "348";
	
	mappointseuro[27] = new Object();
	mappointseuro[27]["country"] = "SCHWEIZ";
	mappointseuro[27]["firm"] = "Ambrolight SA";
	mappointseuro[27]["adress"] = "Centro Violino Suisse<br />Via Cantonale 34a<br />CH-6928 Manno";
	mappointseuro[27]["phone"] = "+ 41 91600 2300";
	mappointseuro[27]["phone2"] = "";
	mappointseuro[27]["mobile"] = "";
	mappointseuro[27]["fax"] = "+ 41 91600 2301";
	mappointseuro[27]["mail"] = "info@ambrolight.com";
	mappointseuro[27]["mail2"] = "";
	mappointseuro[27]["web"] = "";
	mappointseuro[27]["posx"] = "228";
	mappointseuro[27]["posy"] = "344";
	
	mappointseuro[28] = new Object();
	mappointseuro[28]["country"] = "SKANDINAVIEN";
	mappointseuro[28]["firm"] = "NARVA Scandinavia AB";
	mappointseuro[28]["adress"] = "Box 2023<br />SE 151 02 S&ouml;dert&auml;lje";
	mappointseuro[28]["phone"] = "+ 46 8 550 398 15";
	mappointseuro[28]["phone2"] = "";
	mappointseuro[28]["mobile"] = "";
	mappointseuro[28]["fax"] = "+ 46 8 550 354 75";
	mappointseuro[28]["mail"] = "ulo@narvascand.se";
	mappointseuro[28]["mail2"] = "narva@narvascand.se";
	mappointseuro[28]["web"] = "www.narvascand.se";
	mappointseuro[28]["posx"] = "260";
	mappointseuro[28]["posy"] = "144";
	
	mappointseuro[29] = new Object();
	mappointseuro[29]["country"] = "SLOWAKEI";
	mappointseuro[29]["firm"] = "NARVA B.E.L.-Slovakia s.r.o.";
	mappointseuro[29]["adress"] = "J. Jesenskeho 1054/44<br />960 03 Zvolen";
	mappointseuro[29]["phone"] = "+ 421 45 5322948";
	mappointseuro[29]["phone2"] = "";
	mappointseuro[29]["mobile"] = "+ 421 90 3527699";
	mappointseuro[29]["fax"] = "+ 421 45 5322948";
	mappointseuro[29]["mail"] = "narva@nextra.sk";
	mappointseuro[29]["mail2"] = "";
	mappointseuro[29]["web"] = "www.narva-slovakia.sk";
	mappointseuro[29]["posx"] = "332";
	mappointseuro[29]["posy"] = "316";
	
	mappointseuro[30] = new Object();
	mappointseuro[30]["country"] = "SLOWENIEN";
	mappointseuro[30]["firm"] = "3F Favorit Zgur d.o.o.";
	mappointseuro[30]["adress"] = "Gaj nad Mariborom 16<br />02201 Zg. Kungota";
	mappointseuro[30]["phone"] = "+ 386 2 320 33 36";
	mappointseuro[30]["phone2"] = "";
	mappointseuro[30]["mobile"] = "";
	mappointseuro[30]["fax"] = "+ 384 41 61 08 14";
	mappointseuro[30]["mail"] = "info@zgur-ffz.si";
	mappointseuro[30]["mail2"] = "";
	mappointseuro[30]["web"] = "";
	mappointseuro[30]["posx"] = "288";
	mappointseuro[30]["posy"] = "356";
	
	mappointseuro[31] = new Object();
	mappointseuro[31]["country"] = "SPANIEN";
	mappointseuro[31]["firm"] = "RHULA Asesores, S.L.";
	mappointseuro[31]["adress"] = "Arag&oacute;n, 266,1. 0<br />E-08007 BARCELONA";
	mappointseuro[31]["phone"] = "+ 34 93 487 3621";
	mappointseuro[31]["phone2"] = "";
	mappointseuro[31]["mobile"] = "";
	mappointseuro[31]["fax"] = "+ 34 93 487 0959";
	mappointseuro[31]["mail"] = "irtorrent@rhula-info.com";
	mappointseuro[31]["mail2"] = "";
	mappointseuro[31]["web"] = "";
	mappointseuro[31]["posx"] = "88";
	mappointseuro[31]["posy"] = "412";
	
	mappointseuro[32] = new Object();
	mappointseuro[32]["country"] = "TSCHECHIEN";
	mappointseuro[32]["firm"] = "NARVA B.E.L./ CR spol. S.r.o.";
	mappointseuro[32]["adress"] = "Sidliste 693<br />CZ 407 22 Benesov nad Ploucnici";
	mappointseuro[32]["phone"] = "+ 420 412 586740";
	mappointseuro[32]["phone2"] = "";
	mappointseuro[32]["mobile"] = "";
	mappointseuro[32]["fax"] = "+ 420 412 586982";
	mappointseuro[32]["mail"] = "narva@narva.cz";
	mappointseuro[32]["mail2"] = "";
	mappointseuro[32]["web"] = "";
	mappointseuro[32]["posx"] = "296";
	mappointseuro[32]["posy"] = "304";
	
	mappointseuro[33] = new Object();
	mappointseuro[33]["country"] = "WEISSRUSSLAND";
	mappointseuro[33]["firm"] = "AVILUX";
	mappointseuro[33]["adress"] = "ul. Nekrasova, of. 909, 5<br />220040 Minsk";
	mappointseuro[33]["phone"] = "+ 375 17 262 6144";
	mappointseuro[33]["phone2"] = "";
	mappointseuro[33]["mobile"] = "";
	mappointseuro[33]["fax"] = "+ 375 17 288 4664";
	mappointseuro[33]["mail"] = "alecsey@beltuplex.com";
	mappointseuro[33]["mail2"] = "";
	mappointseuro[33]["web"] = "";
	mappointseuro[33]["posx"] = "400";
	mappointseuro[33]["posy"] = "244";
	
	// Daten Deutschland ##############################################################################
	var mappointsgerman = new Array();
	
	mappointsgerman[0] = new Object();
	mappointsgerman[0]["country"] = "Stammhaus Brand-Erbisdorf";
	mappointsgerman[0]["firm"] = "NARVA Lichtquellen GmbH + Co. KG";
	mappointsgerman[0]["adress"] = "Industriegebiet Nord, Erzstra&szlig;e 22</br>09618 Brand-Erbisdorf";
	mappointsgerman[0]["phone"] = "037322 17200";
	mappointsgerman[0]["phone2"] = "037322 17202";
	mappointsgerman[0]["mobile"] = "";
	mappointsgerman[0]["fax"] = "037322 17203 oder 17223";
	mappointsgerman[0]["mail"] = "office@narva-bel.de";
	mappointsgerman[0]["mail2"] = "";
	mappointsgerman[0]["web"] = "www.narva-bel.de";
	mappointsgerman[0]["posx"] = "396";
	mappointsgerman[0]["posy"] = "268";
	
	mappointsgerman[1] = new Object();
	mappointsgerman[1]["country"] = "Regionalvertretung Magdeburg";
	mappointsgerman[1]["firm"] = "IPLEG Industrievertretung";
	mappointsgerman[1]["adress"] = "Carnotstra&szlig;e 7</br>39120 Magdeburg";
	mappointsgerman[1]["phone"] = "0391 621 9760";
	mappointsgerman[1]["phone2"] = "";
	mappointsgerman[1]["mobile"] = "";
	mappointsgerman[1]["fax"] = "0391 621 9761";
	mappointsgerman[1]["mail"] = "planungsbuero-schreiber@gmx.de";
	mappointsgerman[1]["mail2"] = "";
	mappointsgerman[1]["web"] = "";
	mappointsgerman[1]["posx"] = "352";
	mappointsgerman[1]["posy"] = "164";
	
	mappointsgerman[2] = new Object();
	mappointsgerman[2]["country"] = "Regionalvertretung Bremen";
	mappointsgerman[2]["firm"] = "Udo Kleinschmidt e.K. Werksvertretungen";
	mappointsgerman[2]["adress"] = "Inh. Thorsten Breustedt</br>Walter-Geerdes-Stra&szlig;e 14</br>28307 Bremen";
	mappointsgerman[2]["phone"] = "0421 438 56 0";
	mappointsgerman[2]["phone2"] = "";
	mappointsgerman[2]["mobile"] = "";
	mappointsgerman[2]["fax"] = "0421 48 81 79";
	mappointsgerman[2]["mail"] = "kleinschmidt@kleinschmidt-bremen.de";
	mappointsgerman[2]["mail2"] = "";
	mappointsgerman[2]["web"] = "www.kleinschmidt-bremen.de";
	mappointsgerman[2]["posx"] = "204";
	mappointsgerman[2]["posy"] = "120";
	
	mappointsgerman[3] = new Object();
	mappointsgerman[3]["country"] = "Regionalvertretung Bergisch Gladbach";
	mappointsgerman[3]["firm"] = "Peter Esser Elektrotechnik &amp; Lichtvertrieb";
	mappointsgerman[3]["adress"] = "Ahornweg 30</br>51469 Bergisch Gladbach";
	mappointsgerman[3]["phone"] = "02202 33838";
	mappointsgerman[3]["phone2"] = "";
	mappointsgerman[3]["mobile"] = "";
	mappointsgerman[3]["fax"] = "02202 940473";
	mappointsgerman[3]["mail"] = "kontakt@elektro-esser.net";
	mappointsgerman[3]["mail2"] = "";
	mappointsgerman[3]["web"] = "";
	mappointsgerman[3]["posx"] = "144";
	mappointsgerman[3]["posy"] = "232";
	
	mappointsgerman[4] = new Object();
	mappointsgerman[4]["country"] = "Regionalvertretung Gro&szlig;engottern";
	mappointsgerman[4]["firm"] = "Industrievertretung Lenk";
	mappointsgerman[4]["adress"] = "Siegfried Lenk</br>Hohe Wende 22</br>99991 Gro&szlig;engottern";
	mappointsgerman[4]["phone"] = "036022 98777";
	mappointsgerman[4]["phone2"] = "";
	mappointsgerman[4]["mobile"] = "";
	mappointsgerman[4]["fax"] = "036022 98778";
	mappointsgerman[4]["mail"] = "silicht@gmx.net";
	mappointsgerman[4]["mail2"] = "";
	mappointsgerman[4]["web"] = "";
	mappointsgerman[4]["posx"] = "276";
	mappointsgerman[4]["posy"] = "232";
	
	mappointsgerman[5] = new Object();
	mappointsgerman[5]["country"] = "Regionalvertretung K&ouml;nigswartha";
	mappointsgerman[5]["firm"] = "KEGEL-PRODUCT OHG";
	mappointsgerman[5]["adress"] = "PF 11 16</br>02697 K&ouml;nigswartha";
	mappointsgerman[5]["phone"] = "035931 2350";
	mappointsgerman[5]["phone2"] = "";
	mappointsgerman[5]["mobile"] = "";
	mappointsgerman[5]["fax"] = "035931 23519";
	mappointsgerman[5]["mail"] = "info@licht-kegel.de";
	mappointsgerman[5]["mail2"] = "";
	mappointsgerman[5]["web"] = "";
	mappointsgerman[5]["posx"] = "444";
	mappointsgerman[5]["posy"] = "232";
	
	mappointsgerman[6] = new Object();
	mappointsgerman[6]["country"] = "Regionalvertretung Norderstedt";
	mappointsgerman[6]["firm"] = "S&Uuml;VEG";
	mappointsgerman[6]["adress"] = "B&uuml;ro Hamburg</br>Herr Brehm</br>Berliner Allee 55</br>22850 Norderstedt";
	mappointsgerman[6]["phone"] = "05404 9646-44";
	mappointsgerman[6]["phone2"] = "";
	mappointsgerman[6]["mobile"] = "";
	mappointsgerman[6]["fax"] = "05404 9646-99";
	mappointsgerman[6]["mail"] = "Jan.Brehm@sueveg.de";
	mappointsgerman[6]["mail2"] = "";
	mappointsgerman[6]["web"] = "www.sueveg.de";
	mappointsgerman[6]["posx"] = "240";
	mappointsgerman[6]["posy"] = "76";
	
	
	// Init
	var dotout = "";
	var dotelem1 = '<a href="javascript:;" class="lay_map_dot" style="top:';
	var dotelem2 = 'px;left:';
	var dotelem3 = 'px;" id="dot';
	var dotelem4 = '"><span id="dot';
	var dotelem4b = 'x">&nbsp;</span>';
	var dotelem5 = '</a>';
	var dotelemall = "";
	mapcontainer = document.getElementById('mapcont');
	// Init Data
	var dotdata = '<div class="lay_dotdata2"><div class="data1">#country#</div><div class="data2">#firm#</div><div class="data3">#adress#</div>';
	var dotdata1a = '<div class="break" style="height:5px;">&nbsp;</div>';
	var dotdata1b = '<div class="data4">';
	var dotdata2 = '<div class="break" style="height:5px;">&nbsp;</div><div class="data4_phone"><span>Phone:</span></div><div class="lay_dotfacts">#phone#</div>';
	var dotdata2b = '<div class="break" style="height:5px;">&nbsp;</div><div class="data4_phone"><span>Phone2:</span></div><div class="lay_dotfacts">#phone2#</div>';
	var dotdata2c = '<div class="break" style="height:5px;">&nbsp;</div><div class="data4_mobile"><span>Mobile:</span></div><div class="lay_dotfacts">#mobile#</div>';
	var dotdata3 = '<div class="break" style="height:5px;">&nbsp;</div><div class="data4_fax"><span>Fax:</span></div><div class="lay_dotfacts">#fax#</div>';
	var dotdata4 = '<div class="break" style="height:5px;">&nbsp;</div><div class="data4_mail"><span>eMail:</span></div><div class="lay_dotfacts"><a href="mailto:#mail#">#mail#</a></div>';
	var dotdata4b = '<div class="break" style="height:5px;">&nbsp;</div><div class="data4_mail"><span>eMail2:</span></div><div class="lay_dotfacts"><a href="mailto:#mail2#">#mail2#</a></div>';
	var dotdata5 = '<div class="break" style="height:5px;">&nbsp;</div><div class="data4_web"><span>Web:</span></div><div class="lay_dotfacts"><a href="http://#web#" target="_blank">#web#</a></div>';
	var dotdata6 = '</div><div class="break" style="height:10px;">&nbsp;</div></div>';
	var dotdataout = "";
	document.getElementById('dotdata').checkalpha = 0;
	document.getElementById('butallout').checkonoff = 0;
	
	//Karte setzen
	if(maptype == "world" || maptype == ""){
		document.getElementById('mapcont').className = "lay_worldmap";
		document.getElementById('mapchange').style.top = "430px";
		document.getElementById('mapchange').style.left = "250px";
		document.getElementById('dotdata').className = "lay_dotdata_world";
		mappoints = mappointsworld;
	}
	if(maptype == "euro"){
		document.getElementById('mapcont').className = "lay_euromap";
		document.getElementById('mapchange').style.top = "400px";
		document.getElementById('mapchange').style.left = "560px";
		document.getElementById('dotdata').className = "lay_dotdata_euro";
		mappoints = mappointseuro;
	}
	if(maptype == "german"){
		document.getElementById('mapcont').className = "lay_germanmap";
		document.getElementById('mapchange').style.top = "310px";
		document.getElementById('mapchange').style.left = "420px";
		document.getElementById('dotdata').className = "lay_dotdata_german";
		mappoints = mappointsgerman;
	}
	
	// Karte faden
	fadein('mapcont',mapfadetime);
	fadein('mapchange',mapfadetime);
	var dotfadestart = 500;
	
	for(i=0;i < mappoints.length;i++){
		dotout = dotelem1 + mappoints[i]["posy"] + dotelem2 + mappoints[i]["posx"] + dotelem3 + i + dotelem4 + i + dotelem4b + dotelem5;
		dotelemall += dotout;
		// Punkt faden
		setTimeout('fadein(\'dot'+i+'\',dotfadetime)', dotfadestart);
		dotfadestart = dotfadestart + 100;
		//alert(dotout);
	}
	
	if(mapcontainer){
		mapcontainer.innerHTML = dotelemall;
	}
	
	for(i=0;i < mappoints.length;i++){
		
		// MouseOver des Dots setzen
		dotelem = document.getElementById('dot'+i);
		dotelem.id2 = mappoints[i]["country"] + "&nbsp|&nbsp;" + mappoints[i]["firm"];
		dotelem.onmouseover = function(){
			new Tip(this, this.id2, {style: 'narvatipnorm',stem: 'topLeft'});
		}
		
		// Fatcs setzen
		dotelem.facts = "";
		dotdataout = SuchenUndErsetzen(dotdata,'#country#',mappoints[i]["country"]);
		dotdataout = SuchenUndErsetzen(dotdataout,'#firm#',mappoints[i]["firm"]);
		dotdataout = SuchenUndErsetzen(dotdataout,'#adress#',mappoints[i]["adress"]);
		if(mappoints[i]["phone"] != "" || mappoints[i]["fax"] != "" || mappoints[i]["mail"] != ""){
			dotdataout += dotdata1a;
		}
		dotdataout += dotdata1b;
		if(mappoints[i]["phone"] && mappoints[i]["phone"] != ""){
			dotdataout += dotdata2;
			dotdataout = SuchenUndErsetzen(dotdataout,'#phone#',mappoints[i]["phone"]);
		}
		if(mappoints[i]["phone2"] && mappoints[i]["phone2"] != ""){
			dotdataout += dotdata2b;
			dotdataout = SuchenUndErsetzen(dotdataout,'#phone2#',mappoints[i]["phone2"]);
		}
		if(mappoints[i]["mobile"] && mappoints[i]["mobile"] != ""){
			dotdataout += dotdata2c;
			dotdataout = SuchenUndErsetzen(dotdataout,'#mobile#',mappoints[i]["mobile"]);
		}
		if(mappoints[i]["fax"] && mappoints[i]["fax"] != ""){
			dotdataout += dotdata3;
			dotdataout = SuchenUndErsetzen(dotdataout,'#fax#',mappoints[i]["fax"]);
		}
		if(mappoints[i]["mail"] && mappoints[i]["mail"] != ""){
			dotdataout += dotdata4;
			dotdataout = SuchenUndErsetzen(dotdataout,'#mail#',mappoints[i]["mail"]);
		}
		if(mappoints[i]["mail2"] && mappoints[i]["mail2"] != ""){
			dotdataout += dotdata4b;
			dotdataout = SuchenUndErsetzen(dotdataout,'#mail2#',mappoints[i]["mail2"]);
		}
		if(mappoints[i]["web"] && mappoints[i]["web"] != ""){
			dotdataout += dotdata5;
			dotdataout = SuchenUndErsetzen(dotdataout,'#web#',mappoints[i]["web"]);
		}
		dotdataout += dotdata6;
		// Facts anhängen
		dotelem.facts = dotdataout;
		dotelem.onclick = function(){
			
			// Dot Hightlights ausmachen
			for(i=0;i < mappoints.length;i++){
				document.getElementById('dot'+i+'x').style.backgroundColor = "transparent";
			}
			// Dot highlighten
			document.getElementById(this.id+'x').style.backgroundColor = "#ff8400";
			
			
			if(document.getElementById('dotdata').checkalpha != 0){
				fadeout('dotdata',200);
				setTimeout('setdataout(\''+this.facts+'\')', 500);
			}else{
				document.getElementById('dotdata').checkalpha = 1;
				setdataout(this.facts);
			}
			//alert(this.facts);
		}
		// Alle Ausgaben speichern
		dotoutall += '<div class="lay_dotdata_float">';
		dotoutall += dotdataout;
		dotoutall += '</div>';
		
	}
	
}

function setdataout(was){
			//alert(was);
			document.getElementById('dotdata').innerHTML = was;
			fadein('dotdata',1000);
		}

function setalldataout(){
	if(document.getElementById('butallout').checkonoff == 0){
		document.getElementById('alldataout').innerHTML = dotoutall;
		document.getElementById('butallout').innerHTML = "Alle Ansprechpartner verbergen";
		document.getElementById('butallout').checkonoff = 1;
	}else{
		document.getElementById('alldataout').innerHTML = "";
		document.getElementById('butallout').innerHTML = "Alle Ansprechpartner anzeigen";
		document.getElementById('butallout').checkonoff = 0;
	}
}

function SuchenUndErsetzen(QuellText, SuchText, ErsatzText)
        {   // Erstellt von Ralf Pfeifer
            // Fehlerpruefung
            if ((QuellText == null) || (SuchText == null))           { return null; }
            if ((QuellText.length == 0) || (SuchText.length == 0))   { return QuellText; }

            // Kein ErsatzText ?
            if ((ErsatzText == null) || (ErsatzText.length == 0))    { ErsatzText = ""; }

            var LaengeSuchText = SuchText.length;
            var LaengeErsatzText = ErsatzText.length;
            var Pos = QuellText.indexOf(SuchText, 0);

            while (Pos >= 0)
            {
                QuellText = QuellText.substring(0, Pos) + ErsatzText + QuellText.substring(Pos + LaengeSuchText);
                Pos = QuellText.indexOf(SuchText, Pos + LaengeErsatzText);
            }
            return QuellText;
        } // -->
