//Browsererkenneung

var ns4 = document.layers?1:0;
var ie  = document.all?1:0;
var ns6 = document.styleSheets&&!document.all?1:0;


//substitute 135 and 40 with the width and height of your logo image, respectively
if (document.images){
var staticlogo=new Image(156,107);

//change the image path to reflect the path of your logo image
staticlogo.src="../pic/logo.gif";}

//Change url below to the target URL of the logo
//var logolink="#";

//change the alttext variable to reflect the text used for the "alt" attribute of the image tag
var alttext="Biologa - Produkte für gesundes Bauen und Leben";
var delta1=295; // Y-Wert
var deltaX=295;//dieser Wert muss mit top in der <div> übereinstimmen.
var scrollbild='<div id="logo" style="position:absolute;top:295; left:295; width:156;height:107"><img src="../pic/logo.gif" border=0 alt="'+alttext+'"></div>';
//-------------------------Do not edit below this line------------------------

function regenerate(){
// scheint überflüssig zu sein
//if (ns4){
//setTimeout("window.onresize=regenerate",400);
//}
}

if (ie){document.write(scrollbild);}

function createlogo(){
//staticimage=new Layer(300);
//staticimage.document.write(scrollbild);
//staticimage.document.close();
//staticimage.visibility="show";
//regenerate();
//staticitns2();
//document.open();
//document.write(scrollbild);
//document.close();
//clickwas();
alert('hallo-slider');
}

function createlogo2(){
staticimage = document.getElementById("logo").style;
staticitns();
regenerate();
clickwas();
}

function logoit(){
var w2=document.body.scrollLeft+delta1;
var h2=document.body.scrollTop+delta1;
logo.style.left=w
logo.style.top=h2
}

function logoit2(){
if(ie){
staticimage.top=document.body.scrollTop+delta1;}
else {staticimage.top=pageYOffset+delta1;}
}

function logoit3(){
staticimage.top=(pageYOffset+2);
}

function staticitns(){
setInterval("logoit2()",90);
}
function staticitns2(){
setInterval("logoit3()",90);
}

//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
//alert(navigator.appName);
if (ns4) {
//window.onload=createlogo;
// Do nothing
}else
{ 
if (ns6){document.write(scrollbild); window.onload=createlogo2;}else	
{
w=deltaX;
h=delta1;
logo.style.left=w;
logo.style.top=h;
window.onscroll=logoit;
window.onresize=new Function("window.location.reload()");
window.onload=createlogo2;
}
}