function preloadImg() {
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=preloadImg.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];}}
}

var temp = -1;
	var bilder = new Array("nav_01","nav_02","nav_03","nav_04","nav_05","nav_06","nav_07","nav_08","nav_09","nav_10","nav_11","nav_13");
	
	function topmenu(num, over, mClick)
	{
		if (mClick)
		{
			if (document.all && temp != -1)
			{
				document.images[bilder[temp]].src = "pix/" + bilder[temp] + ".gif";
			}
			
			else if (!document.all && temp != -1)
			{
				document.images[bilder[temp]].src = "pix/" + bilder[temp] + ".gif";
			}
			temp = num;
			parent.frames['WineFrame'].location.href = bilder[num] + ".html";
		}
			
		if (over)
		{
			if (document.all)
			{
				document.images[bilder[num]].src = "pix/" + bilder[num] + "_act.gif";
			}
			else
			{
				document.images[bilder[num]].src = "pix/" + bilder[num] + "_act.gif";
			}
		}
		
		else if (!over && temp != num)
		{
			if (document.all)
			{
				document.images[bilder[num]].src = "pix/" + bilder[num] + ".gif";
			}
			
			else
			{
				document.images[bilder[num]].src = "pix/" + bilder[num] + ".gif";
			}
		}
	}


function wopen(theURL,winName,features) {
  window.open(theURL,winName,features);
}
function wopen1(theURL,winName,features) {
  window.open(theURL,winName,features);
}

function ladeDat1(dat)
	{
		if(document.all)
			top.EventsFrame.document.location.href = dat;
		else
			parent.frames.EventsFrame.document.location.href = dat;
	}
	
function ladeDat2(datLinks)
	{
		if(document.all)
			top.WineNavFrame.document.location.href = datLinks;
		else
			parent.frames.WineNavFrame.document.location.href = datLinks;
	}
	
function ladeDat3(datOben)
	{
		if(document.all)
			top.WineFrame.document.location.href = datOben;
		else
			parent.frames.WineFrame.document.location.href = datOben;
	}
function ladeDat4(datNav)
	{
		if(document.all)
			top.MenueFrame.document.location.href = datNav;
		else
			parent.frames.MenueFrame.document.location.href = datNav;
	}

function ladeDat5(datMovie)
	{
		if(document.all)
			top.FlashMovieFrame.document.location.href = datMovie;
		else
			parent.frames.FlashMovieFrame.document.location.href = datMovie;
	}
function loadMovie(){
			
	str="<table width=\"98%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"98%\">\n<tr>\n<td align=\"center\" valign=\"middle\">";
	idx = Math.round((2)* Math.random());
	if (idx==0){
		document.bgColor="#C33FF4";
		str+="<object type=\"application/x-shockwave-flash\" data=\"c.swf?path=artist_01.swf\" width=\"480\" height=\"300\">\n";
		str+="<param name=\"movie\" value=\"c.swf?path=artist_01.swf?ziel=#\">\n";
		str+="<img src=\"pix/artist_01.jpg\" width=\"480\" height=\"300\" border=\"0\" alt=\"\">\n";
	}else if (idx==1){
		document.bgColor="#555C7E";
		str+="<object type=\"application/x-shockwave-flash\" data=\"c.swf?path=artist_02.swf\" width=\"480\" height=\"300\">\n";
		str+="<param name=\"movie\" value=\"c.swf?path=artist_02.swf?ziel=#\">\n";
		str+="<img src=\"pix/artist_02.jpg\" width=\"480\" height=\"300\" border=\"0\" alt=\"\">\n";
	}else{
		document.bgColor="#EDB1ED";
		str+="<object type=\"application/x-shockwave-flash\" data=\"c.swf?path=artist_03.swf\" width=\"480\" height=\"300\">\n";
		str+="<param name=\"movie\" value=\"c.swf?path=artist_03.swf?ziel=#\">\n";
		str+="<img src=\"pix/artist_03.jpg\" width=\"480\" height=\"300\" border=\"0\" alt=\"\">\n";
	}
	str+="</object></td>";
	str+="</tr></table>";
	document.getElementById("movie").innerHTML=str;
}



function b(URL){
mainfenster=window.open(URL,"popup","menubar=no,resizable=no,width=480,height=300,location=no,directories=no,status=no,toolbar=no,scrollbars=no");
if(document.layers){
                mainfenster.innerWidth=480;
                mainfenster.innerHeight=300;
        }
if(screen.width>=800) mainfenster.moveTo(parseInt((screen.availWidth-480)/2), parseInt((screen.availHeight-300)/2));
        else                              mainfenster.moveTo(0,0);
        mainfenster.focus();
}

function a(URL){
mainfenster=window.open(URL,"popup","menubar=no,resizable=no,width=287,height=422,location=no,directories=no,status=no,toolbar=no,scrollbars=no");
if(document.layers){
                mainfenster.innerWidth=287;
                mainfenster.innerHeight=422;
        }
if(screen.width>=800) mainfenster.moveTo(parseInt((screen.availWidth-287)/2), parseInt((screen.availHeight-422)/2));
        else                              mainfenster.moveTo(0,0);
        mainfenster.focus();
}


function c(URL){
mainfenster=window.open(URL,"popup","menubar=no,resizable=no,width=480,height=173,location=no,directories=no,status=no,toolbar=no,scrollbars=no");
if(document.layers){
                mainfenster.innerWidth=480;
                mainfenster.innerHeight=173;
        }
if(screen.width>=800) mainfenster.moveTo(parseInt((screen.availWidth-480)/2), parseInt((screen.availHeight-173)/2));
        else                              mainfenster.moveTo(0,0);
        mainfenster.focus();
}
