function opacity(id, opacStart, opacEnd, millisec) { //speed for each frame var speed = Math.round(millisec / 100); var timer = 0; //determine the direction for the blending, if start and end are the same nothing happens if(opacStart > opacEnd) { for(i = opacStart; i >= opacEnd; i--) { setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); timer++; } } else if(opacStart < opacEnd) { for(i = opacStart; i <= opacEnd; i++) { setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); timer++; } } } //change the opacity for different browsers function changeOpac(opacity, id) { var object = document.getElementById(id).style; object.opacity = (opacity / 100); object.MozOpacity = (opacity / 100); object.KhtmlOpacity = (opacity / 100); object.filter = "Alpha(opacity=" + opacity + ")"; } function shiftOpacity(id, millisec) { //if an element is invisible, make it visible, else make it ivisible if(document.getElementById(id).style.opacity == 0) { opacity(id, 0, 100, millisec); } else { opacity(id, 100, 0, millisec); } } function openvid(vidname) { var bildschirmx = screen.availWidth; var bildschirmy = screen.availHeight; var hoehe = 611; var breite = 1024; var fensterx = 1024; var fenstery = hoehe; var startx = Math.round((bildschirmx / 2) - (breite / 2) - 10); var starty = Math.round((bildschirmy / 2) - (fenstery / 2) - 50); if(!window.open("flash/vid.php?vidfile=" + vidname , "vid", "width=" + breite + ",height=" + hoehe + ",status=no,toolbar=no,menubar=no,resizable=no,scrollbars=no,screenX=" + startx + ",left=" + startx + ",screenY=" + starty + ",top=" + starty + " ")) { alert ('popupblocker?'); } } function opensitemap() { var bildschirmx = screen.availWidth; var bildschirmy = screen.availHeight; var hoehe = 430; var breite = 930; var fensterx = 200; var fenstery = hoehe; var startx = Math.round((bildschirmx / 2) - (breite / 2) - 10); var starty = Math.round((bildschirmy / 2) - (fenstery / 2) - 50); if(!window.open("sitemap.html" , "sitemap", "width=" + breite + ",height=" + hoehe + ",status=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes,screenX=" + startx + ",left=" + startx + ",screenY=" + starty + ",top=" + starty + " ")) { alert ('popupblocker?'); } } function getPageSize() { var xScroll, yScroll; if (window.innerHeight && window.scrollMaxY) { xScroll = window.innerWidth + window.scrollMaxX; yScroll = window.innerHeight + window.scrollMaxY; } else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac xScroll = document.body.scrollWidth; yScroll = document.body.scrollHeight; } else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari xScroll = document.body.offsetWidth + 25; yScroll = document.body.offsetHeight + 25; } var windowWidth, windowHeight; if (self.innerHeight) { // all except Explorer if(document.documentElement.clientWidth){ windowWidth = document.documentElement.clientWidth; } else { windowWidth = self.innerWidth; } windowHeight = self.innerHeight; } else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode windowWidth = document.documentElement.clientWidth; windowHeight = document.documentElement.clientHeight; } else if (document.body) { // other Explorers windowWidth = document.body.clientWidth; windowHeight = document.body.clientHeight; } // for small pages with total height less then height of the viewport if(yScroll < windowHeight){ pageHeight = windowHeight; } else { pageHeight = yScroll; } // for small pages with total width less then width of the viewport if(xScroll < windowWidth){ pageWidth = xScroll; } else { pageWidth = windowWidth; } return [pageWidth,pageHeight]; } function gpSize() { var myWidth = 0, myHeight = 0; if( typeof( window.innerWidth ) == 'number' ) { //Non-IE myWidth = window.innerWidth; myHeight = window.innerHeight; } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { //IE 6+ in 'standards compliant mode' myWidth = document.documentElement.clientWidth; myHeight = document.body.offsetHeight; } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { //IE 4 compatible myWidth = document.body.clientWidth; myHeight = document.body.clientHeight; } return [myWidth,myHeight]; } function getScrollXY() { var scrOfX = 0, scrOfY = 0; if( typeof( window.pageYOffset ) == 'number' ) { //Netscape compliant scrOfY = window.pageYOffset; scrOfX = window.pageXOffset; } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) { //DOM compliant scrOfY = document.body.scrollTop; scrOfX = document.body.scrollLeft; } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) { //IE6 standards compliant mode scrOfY = document.documentElement.scrollTop; scrOfX = document.documentElement.scrollLeft; } return [ scrOfX, scrOfY ]; } function showProf(e) { var posx = 0; var posy = 0; if (!e) var e = window.event; if (e.pageX || e.pageY) { posx = e.pageX; posy = e.pageY; } else if (e.clientX || e.clientY) { posx = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft; posy = e.clientY + document.body.scrollTop + document.documentElement.scrollTop; } test2 = new Array; test2 = getPageSize(); divX2 = (test2[0] / 2) - 350; pos = divX2; if(document.getElementById('apDiv1').style.visibility=='hidden') { document.getElementById("apDiv1").style.left = pos + "px"; document.getElementById('apDiv1').style.visibility='visible'; document.getElementById('ticker').style.visibility ='hidden'; AjaxRequest.get({'url':'module/module_load.php','onSuccess':function(req){ insert_content(req.responseText); }}); hideB(); changeOpac(100,'apDiv1'); } else { document.getElementById('hid').style.visibility='hidden'; changeOpac(0,'hid'); changeOpac(0,'apDiv1'); document.getElementById('apDiv1').style.visibility='hidden'; document.getElementById('ticker').style.visibility ='visible'; } } function insert_content(cn) { document.getElementById('gad_content').innerHTML = cn; } function hideB() { test = new Array; test = getPageSize(); document.getElementById('hid').style.width = test[0] + 'px'; document.getElementById('hid').style.height = test[1] + 'px'; document.getElementById('hid').style.visibility='visible'; changeOpac(70,'hid'); } function hideC() { test = new Array; test = getPageSize(); document.getElementById('hid').style.width = test[0] + 'px'; document.getElementById('hid').style.height = test[1] + 'px'; document.getElementById('hid').style.visibility='visible'; changeOpac(70,'hid'); var newX = Math.round((test[0] / 2) - (600 / 2) - 10); document.getElementById('hid_f').style.left = newX + 'px'; document.getElementById('hid_f').style.visibility='visible'; } function showC() { document.getElementById('hid').style.visibility='hidden'; changeOpac(0,'hid'); document.getElementById('hid_f').style.visibility='hidden'; } function sendFeedback(theform) { var status = AjaxRequest.submit( theform ,{ 'onSuccess':function(req){ var res = req.responseText.split("|"); alert(res[0]); if(res[1] == "ok") { move(); document.getElementById('memo').value = ''; document.getElementById('opt_email').value = ''; document.getElementById('F1').checked = false; document.getElementById('E1').checked = false; showC(); } } } ); return status; } function initPage(){ } function gadget(gd,st,container) { if(st == false) { document.getElementById(container).style.visibility='hidden'; } else { document.getElementById(container).style.visibility='visible'; } writeCookie(gd,st); } function showEdlg(e) { var myX = getPageSize(); var xDLG = (myX[0] / 2) - 220; document.getElementById("empdlg").style.top = '300px'; document.getElementById("empdlg").style.left = xDLG + 'px'; document.getElementById('empdlg').style.visibility='visible'; } function sendEdlg(theform,aid) { var status = AjaxRequest.submit( theform ,{ 'onLoading':function() { document.getElementById("empdlg").innerHTML = innerHTML = '