function create() {
        this.width = ''
        this.height = ''
        this.src = ''
        this.border = ''
       
}
ads = new Array()
for(var i=1; i<=9; i++) { ads[i] = new create() }

ads[1].width = "1000"
ads[1].height = "187"
ads[1].src = "../images/zoom_header_asien_9481.jpg"
ads[1].border = "0"

ads[2].width = "1000"
ads[2].height = "187"
ads[2].src = "../images/eisbaer_header_12049.jpg"
ads[2].border = "0"

ads[3].width = "1000"
ads[3].height = "187"
ads[3].src = "../images/zoom_header_kodiak_2982.jpg"
ads[3].border = "0"

ads[4].width = "1000"
ads[4].height = "187"
ads[4].src = "../images/zoom_header_loewe_2983.jpg"
ads[4].border = "0"

ads[5].width = "1000"
ads[5].height = "187"
ads[5].src = "../images/zoom_header_robben_2984.jpg"
ads[5].border = "0"



var n = Math.random() + ''
n = parseInt(n.charAt(5))
if(n >5) {
        n = n - 5
}
else if(n==0) {
        n = n + 5
}
n += ""

var image = ads[n]
var ad = ""
ad += '<img src="' + image.src + '" width=' + image.width
ad += '\n height=' + image.height + ' border=' + image.border
ad += '\n>'



////////////////////////////////////////////////////////////////////////////////////////////////////////
function surfto(form) {
        var myindex=form.select1.selectedIndex
        if (form.select1.options[myindex].value != "0") {
       	 top.frames.location=form.select1.options[myindex].value;}}


////////////////////////////////////////////////////////////////////////////////////////////////////////

// Bei Link auf aktuelle Seite die CSS Klasse auf aktiv setzen

function highlightCurrentPageLink() {
// Alle Links durchlaufen und pruefen
var anzHrefs = document.getElementsByTagName("a").length;
for (var i = 0; i <= anzHrefs - 1; i++) {
// Link auf aktuelle Seite gefunden, also umsetzen CSS auf aktiv
if (document.getElementsByTagName("a")[i].href == document.location.href) {
var currentClassName = document.getElementsByTagName("a")[i].className;
var newClassName = currentClassName.replace(/k/,"a");
document.getElementsByTagName("a")[i].className = newClassName;
}
}
}


////////////////////////////////////////////////////////////////////////////////////////////////

var image_frame;
function openImageFrame(width,height,bild_location){
  x=screen.availWidth-width-10; 
  image_frame=window.open("","image","height="+height+",width="+width+",location=no,menubar=no,resizable=yes,scrollbars=no,status=no,titlebar=no,toolbar=no,directories=no,left="+x+",top=0");
  image_frame.document.open();
  image_frame.document.writeln("<body marginheight='0' leftmargin='0' topmargin='0' marginwidth='0' >");
  image_frame.document.writeln("<img name='bild' src='"+bild_location+"' border='0' alt=''>");
  image_frame.document.writeln("</body>");
  image_frame.document.close();
  image_frame.resizeTo(width+12,height+70);
  image_frame.focus();  
  return false;
 }  
   
function open_win(filename, winname,width,height,left,top)
		{left=screen.availWidth-width-10;
		open_window(filename,winname,"width=" + width + ",height=" + height + ",left=250" + ",top=250" + ",location=no,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,toolbar=no,directories=no");
		}
		
function open_win_mit(filename, winname,width,height,left,top)
		{left=screen.availWidth-width-10;
		open_window(filename,winname,"width=" + width + ",height=" + height + ",left=250" + ",top=250" + ",location=no,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,toolbar=no,directories=no");
		}
		
function open_window(filename,winname,params) {
handle=window.open("", winname, params);
handle.location.href=filename;
window.handle.document.close();
}




var image_frame_print;
function openImageFrame_print(width,height,bild_location){
  x=screen.availWidth-width-10; 
  image_frame_print=window.open("","image","height="+height+",width="+width+",location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,titlebar=no,toolbar=no,directories=no,left="+x+",top=0");
  image_frame_print.document.open();
  image_frame_print.document.writeln("<head>");
  image_frame_print.document.writeln("<link rel='stylesheet' href='/include/zoom_style.css' type='text/css'>");
  image_frame_print.document.writeln("<body marginheight='0' leftmargin='0' topmargin='0' marginwidth='0' >");
  image_frame_print.document.writeln("<div style='text-align:center;width:100%;'><a class='hyperlink' href='javascript:window.print();'>drucken</a> - <a class='hyperlink' href='javascript:window.close();'>Fenster schließen</a></div><br>");
  image_frame_print.document.writeln("<img name='bild' src='"+bild_location+"' border='0' alt=''>");
  image_frame_print.document.writeln("<br><div style='text-align=center;width:100%;'><a class='hyperlink' href='javascript:window.print();'>drucken</a> - <a class='hyperlink' href='javascript:window.close();'>Fenster schließen</a></div>");
  image_frame_print.document.writeln("</body>");
  image_frame_print.document.writeln("</head>");
  image_frame_print.document.close();
  image_frame_print.resizeTo(width,height);
  image_frame_print.focus();  
  return false;
 }   
  
var image_frame_print;
function openImageFrame_print_eng(width,height,bild_location){
  x=screen.availWidth-width-10; 
  image_frame_print=window.open("","image","height="+height+",width="+width+",location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,titlebar=no,toolbar=no,directories=no,left="+x+",top=0");
  image_frame_print.document.open();
  image_frame_print.document.writeln("<head>");
  image_frame_print.document.writeln("<link rel='stylesheet' href='/include/zoom_style.css' type='text/css'>");
  image_frame_print.document.writeln("<body marginheight='0' leftmargin='0' topmargin='0' marginwidth='0' >");
  image_frame_print.document.writeln("<div style='text-align:center;width:100%;'><a class='hyperlink' href='javascript:window.print();'>print</a> - <a class='hyperlink' href='javascript:window.close();'>close</a></div><br>");
  image_frame_print.document.writeln("<img name='bild' src='"+bild_location+"' border='0' alt=''>");
  image_frame_print.document.writeln("<br><div style='text-align=center;width:100%;'><a class='hyperlink' href='javascript:window.print();'>print</a> - <a class='hyperlink' href='javascript:window.close();'>close</a></div>");
  image_frame_print.document.writeln("</body>");
  image_frame_print.document.writeln("</head>");
  image_frame_print.document.close();
  image_frame_print.resizeTo(width,height);
  image_frame_print.focus();  
  return false;
 }   

