var ns4=document.layers
var ie4=document.all
var ns6=document.getElementById&&!document.all
var ns=(document.layers);
var ie=(document.all);
var w3=(document.getElementById && !ie);
var bannerWidth = parseInt("500");
var bannerWidth2 = 10;
var bannerWidth3 = bannerWidth + bannerWidth2;
var bannerHeight = "395";
var x = "NaN";
var y = "NaN";
var zeigeBannerAnzahl = 0;
//Cookiename
var cookiename = 'layer';
var userpi=0;
var thedate = new Date();
var thetime = thedate.getTime();
//Cookie funktions
function createCookie(name,value,days)
{
if (days)
{
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
}
else
{
var expires = "";
}
document.cookie = name+"="+value+expires+"; path=/";
}
function readCookie(name)
{
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++)
{
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
function eraseCookie(name)
{
createCookie(name,"",-1);
}
qupbanner = readCookie(cookiename);
if (qupbanner==null)
{
userpi=1;
if (zeigeBannerAnzahl==0)
{
createCookie(cookiename,'1#1#'+thetime,0);
}
else
{
createCookie(cookiename,'1#0#0',0);
}
}
else
{//cookie there
var ar = qupbanner.split("#");
userpi=Math.abs(ar[0])+1;
pilastdisplay=Math.abs(ar[1]);
timelastdisplay=ar[2];
if (zeigeBannerAnzahl==1)
{//only one time
if (upfirstcall==userpi)
{//the right page impression
createCookie(cookiename,userpi+'#'+userpi+'#'+thetime,0);
}
else
{//still doing nothing
createCookie(cookiename,userpi+'#'+pilastdisplay+'#'+timelastdisplay,0);
}
}
else
{//more than one time
if (zeigeBannerAnzahl!=0)
{
if (userpi==pilastdisplay+upnextpi)
{
createCookie(cookiename,userpi+'#'+userpi+'#'+thetime,0);
}
else
{
createCookie(cookiename,userpi+'#'+pilastdisplay+'#'+timelastdisplay,0);
}
}
}
}
//Cookie functions end
//drag drop function for NS 4////
/////////////////////////////////
var dragswitch=0
var nsx
var nsy
var nstemp
function drag_dropns(name)
{
if (!ns4)
return
temp=eval(name)
temp.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)
temp.onmousedown=gons
temp.onmousemove=dragns
temp.onmouseup=stopns
}
function gons(e)
{
temp.captureEvents(Event.MOUSEMOVE)
nsx=e.x
nsy=e.y
}
function dragns(e)
{
if (dragswitch==1)
{
temp.moveBy(e.x-nsx,e.y-nsy)
return false
}
}
function stopns()
{
temp.releaseEvents(Event.MOUSEMOVE)
}
//drag drop function for ie4+ and NS6////
/////////////////////////////////
function drag_drop(e)
{
if (ie4&&dragapproved)
{
crossobj.style.left=tempx+event.clientX-offsetx
crossobj.style.top=tempy+event.clientY-offsety
return false
}
else if (ns6&&dragapproved)
{
crossobj.style.left=tempx+e.clientX-offsetx
crossobj.style.top=tempy+e.clientY-offsety
return false
}
}
function initializedrag(e)
{
crossobj=ns6? document.getElementById("showimage") : document.all.showimage
var firedobj=ns6? e.target : event.srcElement
var topelement=ns6? "HTML" : "BODY"
while (firedobj.tagName!=topelement&&firedobj.id!="dragbar")
{
firedobj=ns6? firedobj.parentNode : firedobj.parentElement
}
if (firedobj.id=="dragbar")
{
offsetx=ie4? event.clientX : e.clientX
offsety=ie4? event.clientY : e.clientY
tempx=parseInt(crossobj.style.left)
tempy=parseInt(crossobj.style.top)
dragapproved=true
document.onmousemove=drag_drop
}
}
document.onmousedown=initializedrag
document.onmouseup=new Function("dragapproved=false")
////drag drop functions end here//////
// center Banner
function truebody()
{
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function centeredWidth()
{
if (ie){
documentWidth =truebody().offsetWidth/2+truebody().scrollLeft-20;
}else if (ns){
documentWidth=window.innerWidth/2+window.pageXOffset-20;
}else if (w3){
documentWidth=self.innerWidth/2+window.pageXOffset-20;
}
if(x == "NaN")
{
documentWidth = documentWidth-bannerWidth/2;
}
else
{
documentWidth = x;
}
return documentWidth;
}
function centeredHeight()
{
if (ie){
documentHeight =truebody().offsetHeight/2+truebody().scrollTop-20;
}else if (ns){
documentHeight=window.innerHeight/2+window.pageYOffset-20;
}else if (w3){
documentHeight=self.innerHeight/2+window.pageYOffset-20;
}
if(y == "NaN")
{
documentHeight = documentHeight-bannerHeight/2;
}
else
{
documentHeight = y;
}
return documentHeight;
}
// center Banner End
//Hide Banner
function hidebox()
{
if (ie4||ns6)
crossobj.style.visibility="hidden"
else if (ns4)
document.showimage.visibility="hide"
}
function versteck()
{
crossobj=ns6?document.getElementById("showimage"):document.all.showimage;
hidebox();
}
//Hide Banner End
function zeige()
{
if(zeigeBannerAnzahl == 0)
{
if (ie4||ns6)
crossobj.style.visibility="visible"
else if (ns4)
document.showimage.visibility="show"
zeigeBannerAnzahl = 1;
}
}
window.setTimeout("versteck()", 17000);
window.setTimeout("zeige()", 2000);
/*document.write("
");
document.write("
");
document.write("");
document.write("| ");
document.write("");
document.write("Expedia | ");
document.write("");
document.write("x | ");
document.write(" ");
document.write("");
document.write(" ");
document.write(" ");
document.write("");
document.write(" | |
");*/
/*document.write("
");
document.write("");*/
document.write("
");
document.write("");
versteck();