function bookmark_me()
{
var url="http://www.andys-lichtideen.de";
var title="Andys Lichtideen";
var browser=navigator.appName;
if(browser=="Microsoft Internet Explorer")
{
window.external.AddFavorite(url,title);
}
else
{
alert("bitte STRG + D drücken,\n" + "um Lesezeichen zu setzen !");
}
}

function homepage()
{
if(document.all)
{
document.all.start.style.behavior="url(#default#homepage)";
document.all.start.setHomePage('http://www.andys-lichtideen.de');
}
else
{
alert("Ihr Browser unterstützt diese Funktion leider nicht !");
}
}

function scroller_auto()
{
if(document.getElementById)
{
var container = document.getElementById("box").style;
var pos_top = parseInt(document.getElementById("box").style.top);
var hoehe = box.offsetHeight;
//alert(hoehe);
if(pos_top >= -145) 
{
container.top=pos_top-1;
}
else
{
container.top=60; // unterer Rand des inneren Div-Bereichs
}
setTimeout("scroller_auto()",60);
}
}

function zoomIt(feld,wert)
{
if(document.getElementById)
{
document.getElementById(feld).style.height=wert + "px";
}
}


var browser = navigator.appName;
function diashow()
{
i++;
if(i==pics.length)
{
i=0;
}
if(browser=="Microsoft Internet Explorer")
{
document.getElementById("bild").filters.blendTrans.Apply();
document.getElementById("bild").style.visibility = "visible";
document.getElementById("bild").filters.blendTrans.Play();
document.bild.src="pictures_diashow/" + pics[i];
counter=setTimeout("diashow()",delay);
}
else
{
document.getElementById("bild").style.visibility = "visible";
document.bild.src="pictures_diashow/" + pics[i];
counter=setTimeout("diashow()",delay);
}
}


var timer;
function ticker()
{
//init()
if(document.getElementById)
{
container = document.getElementById("laufband").style;
pos_left = parseInt(document.getElementById("laufband").style.left);
var breite = laufband.offsetWidth;
}

if(document.getElementById)
{
if(pos_left > -breite)
{
container.left = pos_left - 1;
}
if(pos_left == -breite)
{
container.left = 540 + "px"
}
timer=setTimeout("ticker()",30);
}}

function timeout()
{
timer=setTimeout("ticker()",2000);
}


function win_auf(url)
{
window.open(url,"","width=590,height=420");
}

