/*----------------------globale variabeln----------------------------------------------*/

var n4 = (document.layers)?1:0; 
var ie = (document.all)?1:0; 
var n6 =(document.getElementById && !document.all)?1:0; 
var xLay = (n4) ? document.layers : document.all;
var mac = (navigator.platform == "MacPPC");
var pc = (navigator.platform == "Win32");

//---------------------- start preload navi_img ----------------------->
var navPath = "images/"
var preImg = new Array('email');
var imgAll = new Array();
	
function preLoadPix() {
	for (y = 0; y < preImg.length; y++) {
		imgAll[y * 2] = new Image();
		imgAll[y * 2].src = navPath + preImg[y] + ".gif";
		imgAll[y * 2 + 1] = new Image();
		imgAll[y * 2 + 1].src = navPath + preImg[y] + "_hl.gif";
	}
}
//---------------------- end preload navi_img ------------------------------>

//---------------------- start rollover_click navi_img ------------------>
	
function onImg(imgName) {
	
	if (n6) {
		
		document.getElementsByName(imgName)[0].src = navPath + imgName + "_hl.gif";
		//alert(document.getElementsByName(imgName)[0].src);
	}
	else {
		document.images[imgName].src = navPath + imgName + "_hl.gif";
	}
}

function offImg(imgName) {
	if (n6) {
		//alert(document.getElementsByName(imgName)[0].src);
		document.getElementsByName(imgName)[0].src = navPath + imgName + ".gif";
	}
	else {
		document.images[imgName].src = navPath + imgName + ".gif";
	}
}

//-->

function noSpam(user,domain){
	locationstring = "mailto:" + user + "@" + domain;
	window.location = locationstring;
}

function go_newsletter() {
	//alert('hallo');
	
	popUp = window.open('http://www.macnews.de/',"popUpFenster","width=750,height=509,resizable=no,scrollbars=no");
	this.focus();
	test = popUpFenster.document.forms[0].action;
	alert(test);
	//mymail = document.email_form.email_eingabe.value;
	//alert(mymail);
	//top.newsletteranmeldefenster.location.href = "http://lists.akbild.ac.at/mailman/listinfo/beogradgazela-newsletter/";
	
	//test = top.newsletteranmeldefenster.document.forms[0].action;
	//alert(test);

}