// is not to be sold
var arrMsg=new Array(
"",
"     + + +     Filou vom Räuberweg is not to be sold !!!     + + +                           ",
"     + + +     Filou vom Räuberweg ist nicht zu verkaufen !!!     + + +                           "
)
var strMsg="";
var timerId;
var pos = 30;

function initNews(id) {
    var i;
    var z = arrMsg.length;
    for(i = 0; i < z; i++){
        strMsg = strMsg + arrMsg[id];
    }
    timerId=setTimeout("news()", 500);
};
function news() {
    strMsg = strMsg.substring (1, strMsg.length) + strMsg.substring (0, 1);
    document.getElementsByName("ticker")[0].value=strMsg;
    timerId = setTimeout("news()", 100);
};

function change_img(name, nsdoc, rpath, preload){
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img) {
    img.altsrc = img.src;
    img.src    = rpath;
  }
}

function restore(name){
  var image = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? 'document.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (image && image.altsrc) {
    image.src    = image.altsrc;
    image.altsrc = null;
  }
}

function detailImg(bild, text, id){
    img = bild;
    name = text;
    if(id==1) txt = "close window";
    if(id==2) txt = "Fenster schließen";
    foto= new Image();
    foto.src=(bild);
    check_img(foto, img, name, txt);
}

function check_img(foto, img, name, txt){

    if((foto.width > 0)&&(foto.height > 0))
        fWriteHTML(img, name, txt, foto.width + 60, foto.height + 170);
    else
        window.setTimeout("check_img(foto, img, name, txt)", 50);

    //window.setTimeout("pause()", 50);

}

function pause(){
    alert(img+" , "+name);
}

function fWriteHTML(sPic, sBU, sCL, breite, hoehe){
    oWin=open('','new','scrollbars=no,resizable=no,width='+breite+',height='+hoehe+', top=75, left=175')
    oWin.document.write('<HTML><HEAD>');
    oWin.document.write('<STYLE>body {margin:25px;},.text { font-family:ARIAL, Helvetica; font-size:10pt;} </STYLE>');
    oWin.document.write('<TITLE>www.rottweiler-schmidt.de</TITLE>');
    oWin.document.write('<link rel="stylesheet" type="text/css" href="inc/style.css">');
    //oWin.document.write('<SCRIPT LANGUAGE="JavaScript" src="inc/scripte.js"></SCRIPT>');
    oWin.document.write('</HEAD>');
    oWin.document.write('<BODY BGCOLOR="#000000" text="#600000">');
    oWin.document.write('<table width="95%" height="95%" border=0>');
    if(sBU != -1){
    oWin.document.write('<tr><th align=left>&nbsp;<font class="titel">'+sBU+'</font></th></tr>');
    };
    oWin.document.write('<tr align="center" valign="top">');
    oWin.document.write('<td><br><img src='+sPic+' border="0"><br><br><a href="javascript:window.close()"><span class="linkliste">'+sCL+'</span></a></td>');
    oWin.document.write('</tr>');
    oWin.document.write('</BODY></HTML>');
    oWin.document.close();
    oWin.resizeTo(breite, hoehe);
    oWin.focus();
}
function openWindow(sSite){
    oWin = open(sSite,'ztp','scrollbars=yes,width=770,height=600, top=75, left=100')
    oWin.focus();
}
