//redirect to notSupported-Page if NS4
var NS4 = (document.layers)?true:false;
var IE = (document.all && document.getElementById)?true:false;
var NS6 = (!document.all && document.getElementById)?true:false;
if ((NS6 == false) && (IE == false)){
	window.location.href = "http://www.chyll.at/misc/notsupported.html";
}
function writeNavIfNs(){
	document.write("<table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>");
	document.write("<td width=\"105\" align=\"center\" class=\"clsCMTopOn\"><a href=\"http:\/\/www.chyll.nl\/index.php?ref=Chyll Systeem&sub=algemeen\" target=\"_self\" class=\"clsNsOn\">Chyll&reg; Systeem<\/a><\/td>");
	document.write("<td width=\"80\" align=\"center\" class=\"clsCMTopOn\"><a href=\"http:\/\/www.chyll.nl\/index.php?ref=Voordelen&sub=algemeen\" target=\"_self\" class=\"clsNsOn\">Voordelen<\/a><\/td>");
	document.write("<td width=\"80\" align=\"center\" class=\"clsCMTopOn\"><a href=\"http:\/\/www.chyll.nl\/producten.php?ref=Producten&sub=Algemeen\" target=\"_self\" class=\"clsNsOn\">Producten<\/a><\/td>");
	document.write("<td width=\"80\" align=\"center\" class=\"clsCMTopOn\"><a href=\"http:\/\/www.chyll.nl\/index.php?ref=Gebruikers&sub=Algemeen\" target=\"_self\" class=\"clsNsOn\">Gebruikers<\/a><\/td>");
	document.write("<td width=\"60\" align=\"center\" class=\"clsCMTopOn\"><a href=\"http:\/\/www.chyll.nl\/prijsberekening.php?ref=Prijzen&sub=Algemeen\" target=\"_self\" class=\"clsNsOn\">Prijzen<\/a><\/td>");
	document.write("<td width=\"60\" align=\"center\" class=\"clsCMTopOn\"><a href=\"http:\/\/www.chyll.nl\/contact.php?ref=Contact&sub=Algemeen\" target=\"_self\" class=\"clsNsOn\">Contakt<\/a><\/td>");
	document.write("<\/tr><\/table><\/td>");
}
//popUp Window
var openedWindow = false;
function openWindow(fileName,windowHeader, wHeight, wWidth){
	closeWindow();
	openedWindow = window.open(fileName,windowHeader,"height=" + wHeight + ",width=" + wWidth + ",fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0");
}
function closeWindow(){
	if(openedWindow){if (openedWindow.closed == false){openedWindow.close();}}
}


