if(!d) var d = document;
if(!w) var w = window;

// prevent IE6 background flicker
// window.onload = function() { // todo: move to window.onload event
try {
document.execCommand('BackgroundImageCache', false, true);
} catch(e) {}
// }


// jQuery & Google API
// code.google.com/intl/de-DE/apis/ajax/documentation

// var head=document.getElementsByTagName("head")[0]?document.getElementsByTagName("head")[0]:document.getElementsByTagName("body")[0];
// var script = document.createElement("script");
// script.type = "text/javascript";
// script.src = "http://www.google.com/jsapi?key=ABCDEFG"";
// head.appendChild(script);
// google.load("jquery", "1");

// $(document).ready(function(){
// Your code here
// });
// d.write(ClientLocation.address.city);


// redirection

var URI = w.location.href.toString();
URI = unescape(URI.toLowerCase());

if(URI.indexOf('marooush.de')<0) {
var URI_old = URI;

URI = URI.replace("maroosh","marooush");
URI = URI.replace("marousch","marooush");
URI = URI.replace("maroush","marooush");
URI = URI.replace("marusch","marooush");
URI = URI.replace("marough","marooush");

URI = URI.replace("prinz-hamlet","marooush");
URI = URI.replace("prinzhamlet","marooush");

URI = URI.replace("krokodil-am-nil","marooush");
URI = URI.replace("krokodilamnil","marooush");

URI = URI.replace("cafesahara","marooush");

URI = URI.replace("omrilounge","marooush");
URI = URI.replace("omri-lounge","marooush");

URI = URI.replace("monsieur-ibrahim","marooush");

URI = URI.replace("oaseamnil","marooush");
URI = URI.replace("oase-am-nil","marooush");

URI = URI.replace("lenil","marooush");
URI = URI.replace("le-nil","marooush");

URI = URI.replace("luxorbar","marooush");
URI = URI.replace("luxor-bar","marooush");

URI = URI.replace("marooush-club","marooush");
URI = URI.replace("marooush-restaurant","marooush");

URI = URI.replace("cluboriental","marooush");

URI = URI.replace(".com",".de");

if(URI!=URI_old){if(w.location.href.replace){top.location.replace(URI);}else{top.location.href=URI;}}
}


// encrypt email address
function encEmail(titel, address)
{
var enc_email='';
if(address) {
enc_email=address;
}
else if(!enc_email) {
var email_array=[107,111,110,116,97,107,116,64,109,97,114,111,111,117,115,104,46,100,101];
for(var i=0;i<email_array.length;i++)enc_email+=String.fromCharCode(email_array[i]);
}
var receiver=titel?enc_email:"das Marooush";
if(address)receiver=address;
if(!titel)titel=enc_email;
document.write('<a href="mailto:'+enc_email+'" title="eMail an ' + receiver + ' senden">'+titel+'</a><br />');
}