var dom = document.getElementById ? true:false;var ns4 = document.layers ? true:false;var ie = document.all ? true:false;var mouseY;var mouseX;//--DOWN--function down(e){if((document.layers && e.which!=1) || (document.all && event.button!=1)) return true; // Enables the right mousebuttongetMouse(e);//-----EDIT WHEN DROPDOWN CHANGE------------------------------------------------------// if ns4 click on dropdown: versteht keine doppelbesetzung von onmousedown in event und html --NS4 no IMG select--if (ns4) {if (mouseX > 0 && mouseX < 174 && mouseY > 0 && mouseY < 16){startscroll('logodrop',-48,17);return false;}}//-----DOM no IMGselect--if (dom && mouseX < 340) {return false;} else {return true;}}//--DRAG--function move(e){//-- IE no IMGselect--if(ie && mouseX < 340) {return false;}}//--UP--function up(e3){	platz(e3);	return true;}//--MAUS X und Yfunction getMouse(e){	if(ie){mouseY = event.clientY; mouseX = event.clientX;}	else if(ns4){mouseY = e.pageY; mouseX = e.pageX;}	else if(dom){mouseY = e.clientY; mouseX = e.clientX;}}//--INITfunction eventLoader(){losgehts='ja';posiH('logo',1);posiH('logodrop',1);LoadToo();}//----------------------dropdown custom-------------------------------------------------// by email@raphaelhofer.com ---had to mix it with the scrollcode cause of eventhandlers//----------------------scroll----------------------------------------------------------var ID;var tempo=5;var zaehler=0;var POSstart=-48;var POSend=17;var EBENEauswahl='x';var EBENEvorwahl='x';var EBENEsniff=1;var losgehts='ne';var intervall=15;if (document.getElementById && navigator.platform.substr(0,3)=='Mac') {intervall=15;}function MOVE() {if (losgehts=='ja'){			if (document.getElementById)				{if (zaehler < POSend) {zaehler = zaehler + tempo; document.getElementById(EBENEauswahl).style.top = zaehler +"px";				ID = window.setTimeout('MOVE()',intervall);}				}			else if (document.all)				{ if (zaehler < POSend) {zaehler = zaehler + tempo; document.all(EBENEauswahl).style.top = zaehler;				ID = window.setTimeout('MOVE()',intervall);}				}			else if (document.layers)				{ if (document.layers[EBENEauswahl].top < POSend) {document.layers[EBENEauswahl].top += tempo;				ID = window.setTimeout('MOVE()',intervall);}				}			}}function startscroll(ebene,startpoint,stoppoint) {if (losgehts=='ja'){//---variablen uebernehmen--zaehler=startpoint;POSend=stoppoint;EBENEvorwahl=EBENEauswahl;EBENEauswahl=ebene;if (EBENEvorwahl==EBENEauswahl) {EBENEsniff=EBENEsniff*-1;} else {EBENEsniff=1;}//--neuer scroll starten oder bei 2.klik alter killen----if (EBENEsniff > 0) {MOVE();} else {killscroll();}}}function fixscroll() {EBENEsniff=1;EBENEauswahl='x';}function killscroll() {//--timer killenclearTimeout(ID);//--drop beseitigenif (document.getElementById) {document.getElementById('logodrop').style.top=POSstart +"px";}else if (document.all) {document.all('logodrop').style.top=POSstart +"px";}else if (document.layers) {	document.layers['logodrop'].top=POSstart;}}//---------wobinich---------------------------------------------------------------------------------var posx;var posy;function platz(e2){getMouse(e2); wobistdu();}//-----EDIT WHEN DROPDOWN CHANGE------------------------------------------------------function wobistdu() { if (mouseX > 0 && mouseX < 174 && mouseY > 0 && mouseY < 82) {nix();}					else {killscroll();fixscroll();}}function unmark() {return false;}function LoadToo(){if (document.layers) {document.captureEvents(Event.MOUSEDOWN | Event.MOUSEMOVE | Event.MOUSEUP);}document.onmousedown = down;document.onmousemove = move;document.onmouseup = up;}//--------------------------------------------------------------------------------//---------positionnier layers H--------------function posiH(derlayerH,derplatzH){if (document.layers) {document.layers[derlayerH].left = derplatzH;}else if (document.all) {document.all(derlayerH).style.left = derplatzH +"px";}else if (document.getElementById) {document.getElementById(derlayerH).style.left = derplatzH +"px";}}//-------------------------------------------function deblur(derlink) {if(document.all || document.getElementById) {derlink.blur();}}function nix() {var a=0;}//--------------------------------------------------------------------------------//---------image rollover--------------function rollin() {}function rollout() {}
