var path, title, note;

function diashow_open(leer,verzeichnis,name)
{
 window.open(leer+"system/diashow/diashow.php?verz="+verzeichnis+"&name="+name,"Diashow", "width=450, height=505, left=0, top=0");
}

function make_popup(bildpfad, titel, text, breite, hoehe, leer)
{
 path = bildpfad;
 title = titel;
 note = text;

 window.open(leer+"popup.html","Bild","width="+breite+",height="+hoehe+",left=0,top=0");

}

function open_popup()
{
 document.images[1].src = opener.path;
 document.title = opener.title;
 document.getElementsByTagName("p")[1].firstChild.data = " ";

 loading();

}

function loading()
{
 while(document.images[1].complete==true)
 {
  document.images[0].src=opener.path;
  document.getElementsByTagName("p")[1].firstChild.data = opener.note;
  break;
 }
}



function in_picture(bildname)
{
 document.getElementsById(bildname)[0].border= 2;
}

function out_picture(bildname)
{
 document.getElementsById(bildname)[0].border= 1;
}


// Timelinefunktionen

function changeImage (newUrl)
{
 var complete_imageurl = "pics/system/timeline/bild" + newUrl + ".jpg";
 var complete_linkurl = "sites/p_" + newUrl + "/p_" + newUrl + ".php";

 // Link ändern
 document.getElementById("info_pic_link").href = complete_linkurl

 // Überblendung
 if(navigator.userAgent.indexOf("Opera") != -1 || navigator.appName == "Netscape") {
  document.all.info_pic.src = complete_imageurl;
 }
 else {
  document.all.info_pic.filters.blendTrans.Apply();
  document.all.info_pic.src = complete_imageurl;
  document.all.info_pic.filters.blendTrans.Play();
 }
}


