/* ---------------------- */ /* Copyright by Marc Wolf */ /* ---------------------- */ /* http://www.marcwof.net */ /* ---------------------- */ function warnung(objLink, strHREF, text) { if(confirm(text)) { objLink.location = strHREF; } } function openCenteredPopup(theURL,winName,features, myWidth, myHeight, isCenter) { if (window.screen) if (isCenter) if (isCenter == "true") { var myLeft = (screen.width - myWidth) / 2; var myTop = (screen.height - myHeight) / 2; features += (features != '') ? ',' : ''; features += ',left=' + myLeft + ',top=' + myTop; } window.open(theURL,winName,features + ((features != '') ? ',' : '') + 'width=' + myWidth + ',height=' + myHeight); } function countDown() { time--; if (time > -1) { gett("container").innerHTML = time; } if (time == -1) { window.location = page; } } function gett(id) { if(document.getElementById) return document.getElementById(id); if(document.all) return document.all.id; if(document.layers) return document.layers.id; if(window.opera) return window.opera.id; } function init() { if (gett('container')) { setInterval(countDown, 1000); gett("container").innerHTML = time; } else { setTimeout(init, 50); } } Array.prototype.in_array = function(needle) { for (var i = 0; i < this.length; i++) { if (needle === this[i]) return true } return false; } var openShadowbox = function(elementId) { var el = document.getElementById(elementId); if(el) Shadowbox.open(el); }; Shadowbox.init({ language: 'de-DE', players: ['img', 'html', 'iframe', 'qt', 'wmp', 'swf', 'flv'] });