// ändert 3 Frame - clients gleichzeitig // aufruf : javascript:chg2fr('mitte02.html','Middle','footer02.html','Footer','Head01.html','Head')/*	
function chg2fr(url1,fr1,url2,fr2,url3,fr3){		
parent.frames[fr1].location.replace(url1);		
parent.frames[fr2].location.replace(url2);		
parent.frames[fr3].location.replace(url3); 	
} 
///*******************************************************************************************************
function chgStatus(TXT){		window.status=TXT; 	}//*******************************************************************************************************
var hist= new Array(); var counter=0; var maxcount=1;var vflag=0;
hist[counter]=new Array(6);
hist[counter][0] = "Head00.html"; 
hist[counter][1] = "Mitte01.html";
hist[counter][2] = "footer01.html"; 
hist[counter][3] = "Head";
hist[counter][4] = "Middle"; 
hist[counter][5] = "Footer";

function show_hist() {  
if ((vflag==0) ||( fe.closed==true)) {
fe=window.open("blank.htm","fe","width=550,height=200,left=10,top=460,status=yes,resizable=yes"); vflag=1;
}  else { 
fe.focus(); }  
fe.document.write("<html><head><title>JS-History: "+maxcount+" Eintr&auml;ge</title>\n<style type=\"text/css\">\n");  
fe.document.write("body, ol, li{font-family:sans-serif; font-size:9pt}</style></head><body>\n<ol>");  
i=0;  
while (i<maxcount) {    
fe.document.write("<li>")    
if (i==counter) {
fe.document.write("<font color=FF0000>");
}    else {
i2=i-counter;fe.document.write("<a href=\"javascript:opener.fr2_hist("+i2+");opener.show_hist()\">");}    
fe.document.write("Inhalt: "+hist[i][2]+"\n");    
if (i==counter) {
fe.document.write("</font>");
}    else {
fe.document.write("</a>");}    i++  }  
fe.document.write("</ol></body></html>");  fe.document.close();}

function chg2fr(uri1,fr1,uri2,fr2,uri3,fr3) {  
window.parent.frames[fr1].location.replace(uri1);  
window.parent.frames[fr2].location.replace(uri2);  
window.parent.frames[fr3].location.replace(uri3);  
counter=maxcount;  hist[counter]=new Array(6);//(4)  
hist[counter][0] = uri1;  hist[counter][1] = uri2;  hist[counter][2] = uri3;  
hist[counter][3] = fr1;  hist[counter][4] = fr2;  hist[counter][5] = fr3;  
maxcount++;}

function fr2_hist(dir) {  
counter=counter+dir;  if (counter>=maxcount) counter=maxcount-1;  
if (counter<0) counter=0;  window.alert = 'HISTORY-Counter : ' + (hist[counter][0]);        window.parent.frames[hist[counter][3]].location.replace(hist[counter][0]);  window.parent.frames[hist[counter][4]].location.replace(hist[counter][1]);  window.parent.frames[hist[counter][5]].location.replace(hist[counter][2]);}

function clean_hist() {  
maxcount=0;  uri1=hist[counter][0]; uri2=hist[counter][1]; uri3=hist[counter][2];  fr1=hist[counter][3]; fr2=hist[counter][4]; fr3=hist[counter][5];  counter=-1;

chg2fr(uri1,fr1,uri2,fr2,uri3,fr3); }

function close_hist() {  if (vflag==1 && fe.closed==false) fe.close();	}

function chngIMG (pfad,cID0,cID1,cIMG0,cIMG1) {
    //alert(cIMG0 + " ImageName+++FrameName " + cID0);
	parent.frames[1].window.location = pfad;
    parent.frames["E1"].document.images[0].src = cIMG1;
    document.getElementById(cID0).style.backgroundImage = "url("+ cIMG0 +")"; }	//E2
//"background-image:url(background3.jpg); margin:30px; padding:10px"
//document.all.MeinText.style.backgroundImage = "url(back.gif)"
//document.all.E1.style.backgroundColor = "yellow";
//document.getElementById(cID1).src = cIMG1; 	//E1	
//document.getElementById(cID1).style.backgroundColor = "#88B5FF";
/* for (var i = 0; i < parent.frames.length; i++)
alert(parent.frames[i].document.images[0].id);*/

function chngPAGE(pfad){
	parent.frames["Fensterlein"].window.location = pfad;
	}
//fuer InnenFrames
function chngPAGEi(pfad){
	frames["FensterleinI"].window.location = pfad;
	}	
// Nettes Menue

/* <div  id="object1"  style="position:absolute; visibility:show; left:25px; top:-50px; z-index:2">
<table border=1 width=150 bgcolor=80FFFF>
<td><center>
<a href=http://yoursite.com/page1.html>Link 1!</a>
</center></td>
</table>
</div>

<div id="object2" style="position:absolute; visibility:show; left:25px; top:-50px; z-index:2">
<table border=1 width=150 bgcolor=80FFFF>
<td><center>
<a href=http://yoursite.com/page2.html>Link 2!</a>
</center></td>
</table>
</div>

<div id="object3" style="position:absolute; visibility:show; left:25px; top:-50px; z-index:2">
<table border=1 width=150 bgcolor=80FFFF>
<td><center>
<a href=http://yoursite.com/page3.html>Link 3!</a>
</center></td>
</table>
</div>


<div id="object4" style="position:absolute; visibility:show; left:25px; top:-50px; z-index:2">
<table border=1 width=150 bgcolor=80FFFF>
<td><center>
<a href=http://yoursite.com/page4.html>Link 4!</a>
</center></td>
</table>
</div>


<div id="object5" style="position:absolute; visibility:show; left:25px; top:-50px; z-index:2">
<table border=1 width=150 bgcolor=80FFFF>
<td><center>
<a href=http://yoursite.com/page5.html>Link 5!</a>
</center></td>
</table>
</div>


<div id="object6" style="position:absolute; visibility:show; left:25px; top:-50px; z-index:2">
<table border=1 width=150 bgcolor=80FFFF>
<td><center>
<a href=http://yoursite.com/page6.html>Link 6!</a>
</center></td>
</table>
</div> */

// <script language="javascript" type="text/javascript">      

/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! */
//<!-- Begin
function buildMenu() {
speed=10; // 35
topdistance=250; //100
items=6;
y=-50;
ob=1;
if (navigator.appName == "Netscape") {
v=".top=",sD=".style";
}
else {
v=".pixelTop=",sD=".style";
   }
}
function scrollItems() {
if (ob<items+1) {
objectX="object"+ob; y+=10; eval('document.getElementById(objectX)' + sD + v + y);
changeOpac(70,objectX);
if (y<topdistance) setTimeout("scrollItems()",speed);
else y=-50, topdistance+=40, ob+=1, setTimeout("scrollItems()",speed);

   }
}
function Go()
{
buildMenu();
scrollItems();
}
// window.onload=Go;
// End -->
//</SCRIPT> 

	// make image transparent 
	// changeOpac(0, imageid)

function changeOpac(opacity, id) { 
	var object = document.getElementById(id).style
	object.opacity = (opacity / 100)
	object.MozOpacity = (opacity / 100)
	object.KhtmlOpacity = (opacity / 100)
	object.filter = "alpha(opacity=" + opacity + ")"
}

//________________________________________________________

/*  <script  language="javascript"  type="text/javascript">
<!-- Begin
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);

ns3up = (browserName == "Netscape" && browserVer >= 3);
ie4up = (browserName.indexOf("Microsoft") >= 0 && browserVer >= 4);

function doPic(imgName) {
if (ns3up || ie4up) {
imgOn = ("" + imgName);
document.mainpic.src = imgOn;
   }
}
//  End -->
*//*
</script>
<center>
<table width=360 border=1 cellspacing=0 cellpadding=0>
<tr>
<td><a href="javascript:doPic('toad.jpg');"><img src="toad.jpg" width=90 height=60 border=0></a></td>
<td><a href="javascript:doPic('lizard.jpg');"><img src="lizard.jpg" width=90 height=60 border=0></a></td>
<td><a href="javascript:doPic('gecko.jpg');"><img src="gecko.jpg" width=90 height=60 border=0></a></td>
<td><a href="javascript:doPic('chameleon.jpg');"><img src="chameleon.jpg" width=90 height=60 border=0></a></td>
</tr>
<tr>
<td colspan=4 align=center><img name="mainpic" src="toad.jpg" width=365 height=190 border=0></td>
</tr>
</table>
</center>
*/
//________________________________________________________
/*<script  language="javascript"  type="text/javascript">      
/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
/*prev1 = new Image (32,18);
prev1.src = "prev1.jpg";
prev2 = new Image (32,18);
prev2.src = "prev2.jpg";

next1 = new Image (32,18);
next1.src = "next1.jpg";
next2 = new Image (32,18);
next2.src = "next2.jpg";

go1 = new Image (48,24);
go1.src = "go1.jpg";
go2 = new Image (48,24);
go2.src = "go2.jpg";

maxPic = 4;

p1 = new Image (144,96);
p1.src = "chameleon-small.jpg";
link1 = "chameleon.jpg";

p2 = new Image (144,96);
p2.src = "gecko-small.jpg";
link2 = "gecko.jpg";

p3 = new Image (144,96);
p3.src = "lizard-small.jpg";
link3 = "lizard.jpg";

p4 = new Image (144,96);
p4.src = "toad-small.jpg";
link4 = "toad.jpg";

count = 1;
function next() {
count++;
if (count > maxPic) {
count = 1;
}
eval("document.p.src=p" + count + ".src");
}
function back() {
count--;
if (count == 0) {
count = maxPic;
}
eval("document.p.src=p" + count + ".src");
}
function link() {
location.href=eval("link" + count);
}
//  End -->
</script>
<table bgcolor="#003366" border=0>
<tr>
<td align=center width=300>
<font color=white face="Arial, Helvetica" size="+1">Thumbnail Navigator</font>
<br><br>
<img name=p src="chameleon-small.jpg" border=0 width=144 height=96>
<br>
<table border=0>
<tr>
<td><a href="javascript:back()" onmouseover="prev.src=prev2.src" onmouseout="prev.src=prev1.src"><img src="prev1.jpg"  width="32" height="18" border="0" name="prev"></td>
<td><a href="javascript:link()" onmouseover="go.src=go2.src" onmouseout="go.src=go1.src"><img src="go1.jpg" width="48" height="24" border="0" name="go"></td>
<td><a href="javascript:next()" onmouseover="next.src=next2.src" onmouseout="next.src=next1.src"><img src="next1.jpg" width="32" height="18" border="0" name="next"></td>
</tr>
</table>
<br>
<font color="#A3ACC9" size="2" face="Arial">
Browse to a picture you like and click "GO".</font>
</td>
</tr>
</table> */


// <script  language="JavaScript"  type="Text/JavaScript">
//Made by 1st JavaScript Editor
//http://www.yaldex.com
//Come and get more (free) products

var fifteenth=new Array();fifteenth[0]='<br> Enjoy Making Scripts with Yaldex.com! ';fifteenth[1]='';
function sixteenth(){window.location.reload();}
function seventeenth(){
if (document.layers){eighteenth();setTimeout("window.onresize=sixteenth",420);}}
function nineteenth(twentieth){
if (document.all||document.getElementById){first2=document.getElementById? document.getElementById("fourth2"):document.all.fourth2;first2.innerHTML='<font face="Verdana" color="red">'+twentieth+'<font>';}
else if (document.layers){document.second2.document.third2.document.write('<font face="Verdana" color="red">'+twentieth+'</font>');document.second2.document.third2.document.close();}}
function eighteenth(){document.second2.visibility='show';}window.onload=seventeenth;
//</script>
/*
<div id="scriptmenu" style="line-height:20px"><p><font face="Verdana, Arial, Helvetica, sans-serif">
<a href="http://yaldex.com/JSFactory_Pro.htm" onMouseover="nineteenth(fifteenth[0])" onMouseOut="nineteenth(fifteenth[1])">Yaldex Software</a>
<br></font></p></div>
<ilayer id="second2" width="200" height="200" visibility="hide"><layer id="third2" width="200" height="200"><div id="fourth2" align="left">
</div></layer></ilayer>
*/ 

	
//<script  language="javascript"  type="text/javascript">      
/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! */
/*<!-- Begin
datetoday = new Date();
timenow=datetoday.getTime();
datetoday.setTime(timenow);
thehour = datetoday.getHours();
if (thehour > 18) display = "Evening";
else if (thehour >12) display = "Afternoon";
else display = "Morning";
var greeting = ("Good " + display + "!");
document.write('<b>'+greeting+'</b>');
//  End -->
//</script>*/


function Fensterweite () {
  if (window.innerWidth) {
    return window.innerWidth;
  } else if (document.body && document.body.offsetWidth) {
    return document.body.offsetWidth;
  } else {
    return 0;
  }
}

function Fensterhoehe () {
  if (window.innerHeight) {
    return window.innerHeight;
  } else if (document.body && document.body.offsetHeight) {
    return document.body.offsetHeight;
  } else {
    return 0;
  }
}
/*function neuAufbau () {
  if (Weite != Fensterweite() || Hoehe != Fensterhoehe())
     {  location.href = location.href;
	document.getElementById("E2").height = 0;
	document.getElementById("E1").height = 0;  }
  else { 	document.getElementById("E2").height = 81;
		document.getElementById("E1").height = 81; }
}

//Überwachung von Netscape initialisieren 
if (!window.Weite && window.innerWidth) {
  window.onresize = neuAufbau;
  Weite = Fensterweite();
  Hoehe = Fensterhoehe();
 // window.document.title = "Weite: " + Weite + " Höhe: " + Hoehe;
}

// Überwachung von Internet Explorer initialisieren 
if (!window.Weite && document.body && document.body.offsetWidth) {
  window.onresize = neuAufbau;
  Weite = Fensterweite();
  Hoehe = Fensterhoehe();
 alert( "Weite: " + Weite + " Höhe: " + Hoehe);	
} */

/***********************************************************************************************************/

var vaerPopupWindow=null;
function vaerPopup(mypage,myname,w,h,pos,infocus){
	if(pos=='random') {
		LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
		TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;
	}
	
	if(pos=='center') {
		LeftPosition=(screen.width)?(screen.width-w)/2:100;
		TopPosition=(screen.height)?(screen.height-h)/2:100;
	} else if((pos!='center' && pos!='random') || pos==null) {
		LeftPosition=150;TopPosition=100;
	}
	
	settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=yes,dependent=no';
	vaerPopupWindow=window.open('',myname,settings);
	
	if(infocus=='front') {
		vaerPopupWindow.focus();vaerPopupWindow.location='vaer5dager.asp';
	}
}

function MM_displayStatusMsg(msgStr) { //v1.0
	status=msgStr;
	document.MM_returnValue = true;
}

var vaerforePopupWindow=null;
function vaerforePopup(mypage,myname,w,h,pos,infocus) {
	if(pos=='random') {
		LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
		TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;
	}
	
	if(pos=='center') {
		LeftPosition=(screen.width)?(screen.width-w)/2:100;
		TopPosition=(screen.height)?(screen.height-h)/2:100;
	} else if((pos!='center' && pos!='random') || pos==null) {
		LeftPosition=150;TopPosition=100;
	}
	
	settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=yes,dependent=no';
	vaerforePopupWindow=window.open('',myname,settings);
	
	if(infocus=='front') {
		vaerforePopupWindow.focus();vaerforePopupWindow.location='vaer_fore.asp';
	}
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}


/***********************************************************************************************************/

/*
JavaScript Image slideshow:
By JavaScript Kit (www.javascriptkit.com)
Over 200+ free JavaScript here!
*/

var slideimages=new Array()
var slidelinks=new Array()
function slideshowimages(){
for (i=0;i<slideshowimages.arguments.length;i++){
slideimages[i]=new Image()
slideimages[i].src=slideshowimages.arguments[i]
}
}

function slideshowlinks(){
for (i=0;i<slideshowlinks.arguments.length;i++)
slidelinks[i]=slideshowlinks.arguments[i]
}

function gotoshow(){
if (!window.winslide||winslide.closed)
winslide=window.open(slidelinks[whichlink])
else
winslide.location=slidelinks[whichlink]
winslide.focus()
}

/* webcam */
function bildeVindu(theURL,winName,features) {
	window.open(theURL,winName,features);
}

