function bookmark_me()
{
var url="http://www.2-motion.de";
var title="2-motion";
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.2-motion.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";
}
}


function diashow()
{
i++;
if(i==pics.length)
{
i=0;
}
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);
}


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(titel,url,breit,hoch)
{
fenster = window.open("","","width=" + breit + ",height=" + hoch);
with(fenster.document)
{
open();
write("<html><head><title>" + titel + "</title></head>");
write("<body leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>");
write("<a href='javascript:self.close()'>");
write("<img src='" + url + "' border='0'>");
write("</a>");
close();
}
}
