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 = "801"
ads[1].height = "252"
ads[1].src = "../images/ele_07_top_start_ge_14.jpg"
ads[1].border = "0"

ads[2].width = "801"
ads[2].height = "252"
ads[2].src = "../images/ele_07_top_start_bot_5.jpg"
ads[2].border = "0"

ads[3].width = "801"
ads[3].height = "252"
ads[3].src = "../images/ele_07_top_start_gla_15.jpg"
ads[3].border = "0"

ads[4].width = "801"
ads[4].height = "252"
ads[4].src = "../images/ele_07_top_start_ge_wipa_46.jpg"
ads[4].border = "0"

ads[5].width = "801"
ads[5].height = "252"
ads[5].src = "../images/ele_07_top_start_gla_blau_47.jpg"
ads[5].border = "0"

ads[6].width = "801"
ads[6].height = "252"
ads[6].src = "../images/ele_07_top_start_gla_rot_48.jpg"
ads[6].border = "0"

ads[7].width = "801"
ads[7].height = "252"
ads[7].src = "../images/ele_07_top_start_ge_hv_101.jpg"
ads[7].border = "0"

ads[8].width = "801"
ads[8].height = "252"
ads[8].src = "../images/ele_07_top_strom_180.jpg"
ads[8].border = "0"

ads[9].width = "801"
ads[9].height = "252"
ads[9].src = "../images/ele_07_start_gaskugel_250.jpg"
ads[9].border = "0"

var n = Math.random() + ''
n = parseInt(n.charAt(9))
if(n >9) {
        n = n -9
}
else if(n==0) {
        n = n + 9
}
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>'



////////////////////////////////////////////////////////////////////////////////////////////////////////


// 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;
}
}
}


function surfto(form) {
        var myindex=form.select1.selectedIndex
        if (form.select1.options[myindex].value != "0") {
       	 top.frames.location=form.select1.options[myindex].value;}}



function open_win(filename, winname,width,height,left,top)
		{
		open_window(filename,winname,"width=" + width + ",height=" + height + ",left=" + left + ",top=" + top + ",resize=no,scrollbars=no,menubar=no,directories=no");
		}
		
function open_window(filename,winname,params) {
handle=window.open("", winname, params);
handle.location.href=filename;
window.handle.document.close();
}

function open_win_mit(filename, winname,width,height,left,top)
		{
		open_window_mit(filename,winname,"width=" + width + ",height=" + height + ",left=" + left + ",top=" + top + ",resize=no,scrollbars=yes,menubar=no,directories=no");
		}
		
function open_window_mit(filename,winname,params) {
handle=window.open("", winname, params);
handle.location.href=filename;
window.handle.document.close();
}
