	//menue.php

	var ns;
	var ie;
	var ns6;
	var store;
	var IMG;
	var gestirn="gall";
	var we1=0;
	var we2=0;
	gest=new Array('g1','g4','g3','g5','g2','g6','gall');
	//'g1','g2','g3','g4','g5','g6','gall'
	genre="abc";

	function select_genre()
	{
    if(ns){
        obj=document.layers["selectLay"].document.forms[0].genresel.options;
            for(i=0;obj.length;i++){
                if(obj[i].selected){  genre=obj[i].value;break;  }
            }
        }
	else{genre=document.forms[0].genresel.value;}
	parent.namen.location.href="men2.php?inc=abc&"+genre+"=1&"+gestirn+"=1&we1="+we1+"&we2="+we2;
	parent.namen.focus();
	}

	function init()
	{
		ir="pics/men/";
		ns=(document.layers)?true:false;
		ie=(document.all)?true:false;
	    ns6=(parseFloat(navigator.appVersion)>=5)?true:false;
		store=6;
		names=new Array('z','n','o','s','w','a','u');
		cities=new Array('z','n','o','s','w','u','u');
		width=new Array(688,666,857,431,79,1382,557);
		height=new Array(1532,1251,1481,1701,1242,2461,1427);
		IMG=new Array();cIMG=new Array();
		weIMG=new Array();
		for(i=0;i<7;i++){
			IMG[i]=new Image();IMG[i].src=ir+names[i]+"_on.gif";
			cIMG[i]=new Image();cIMG[i].src=ir+cities[i]+".gif";
		}
		weIMG[0]=new Image();weIMG[0].src=ir+"leer.gif";
		weIMG[1]=new Image();weIMG[1].src=ir+"we1.gif";
		weIMG[2]=new Image();weIMG[2].src=ir+"we2.gif";


	}

	function swapImg(id,onoff)
	{
		var bild=(onoff)? IMG[id].src:ir+"leer.gif";
		if(ns){
            document.layers["lay"].document.images["b"+id].src=bild;
        }
		else{document.images["b"+id].src=bild;}
	}

	function changGest(which)
	{
		chgWend(0);
		swapImg(store,0);
		store=which;
		gestirn=gest[which];
		swapImg(store,1);
		chgMen('A');
		if(ns){document.layers["cmap"].document.images["city"].src=cIMG[store].src;}
		else{document.images["city"].src=cIMG[store].src;}
		parent.content.location.href="plakat.php?width="+width[which]+"&height="+height[which];
	}
	
/*********************** chgMen geändert ***********************/	

	function chgMen(which)
	{
   		 woende="";
    		// wird #1 oder #2 uebergeben so wird nach 1. oder 2. wochenende gesucht
    		if(which=="#1"){
			which="gm_abc_we1.html";}
    		if(which=="#2"){
			which="gm_abc_we2.html";}
    		if(which=="all"){
			which="gm_abc.html"; }			

		//parent.abc.location.href=which;
		parent.window.frames["abc"].location.href=which;
		//document.getElementById("box_top").href=which;
	}


	function chgWend(which)
	{
		if(ns){document.layers["we"].document.images["wend"].src=weIMG[which].src;}
		else{document.images["wend"].src=weIMG[which].src;}
		we1=0; we2=0;
		if(which==1) we1=1;
		if(which==2) we2=1;
	}

/*********************** gm ***********************/

function ie_version(){
 var ua=window.navigator.userAgent;
 var msie=ua.indexOf("MSIE");
 //&& window.navigator.platform=="Win32"
 if (msie>0)
  return parseInt(ua.substring(msie+5,ua.indexOf(".", msie)));
 else
  return 0;
}


var displlink = 0;
var z=ie_version();

function display_link_gm(){
	if(z>6 || z==0){
	parent.document.getElementById("link_kuenstler").style.border="1px solid #c1e8fc";
	parent.document.getElementById("link_karte").style.display="inline";
	parent.document.getElementById("link_karte_gross").style.display="inline";
	}
}

function aufrufKarte(){
	window.location.href='gm/gm_start.html';
	}