// Bildanzeige im Popup
var PopUpWin;
function imgpopup(filename) {
	hurl = "_imgpopup.htm?Bild=" + filename;
	if (!PopUpWin || PopUpWin.closed) {
		PopUpWin = window.open(hurl,"PopUp","WIDTH=640,HEIGHT=480,SCROLLBARS,RESIZABLE");
	} else {
		PopUpWin.location = hurl;
		PopUpWin.focus();
	}
}

// Seitenanzeige im Popup
var PopUpWin2;
function popup(pagename) {
	if (!PopUpWin2 || PopUpWin2.closed) {
		PopUpWin2 = window.open(pagename,"PopUp2","WIDTH=640,HEIGHT=480,SCROLLBARS,RESIZABLE");
	} else {
		PopUpWin2.location = pagename;
		PopUpWin2.focus();
	}
}

// Highlighting, funktioniert nur im MS IE:
function Highlight(obj)
{
    obj.bgColor = "#e3f4fa";
}
function UnHighlight(obj)
{
    obj.bgColor = "white";
}

/* author@ShuvoRim
 * http://www.shuvorim.tk/
 * shuvorim@hotmail.com
 * (c)ShuvoRim Pvt. Ltd. 2002 -03
 * All rights reserved.
 * --------------------------------------------------
 * visit our web site for more free Java applications
 * and applets. Thank you for using our program. */
 //declaring necessary local variables
 var img = new Array(4); //array to hold the images
 var start = null; //start pointer
 var counter = 1; //counts the image sequences
 var delayTime = 4000; //user defined
 if(document.images) //pre-load all the images
 {
   /* change the looping condition if you want
      to add or remove images. Do not load too
      many images, it will slow down the program's
      loading time [e.g. 30 or above images] */
   for(i = 1; i <= 9; i++)
   {
     img[i] = new Image();
     img[i].src = "../imgchanger/pic" + i + ".jpg";
   }
 }
 //function for changing the images
 function anim()
 {
   counter++;
   document.imgchanger.src = img[counter].src;
   if(counter == 9)
    counter = 1; //sets the counter value to 0
 }
 //function for starting the slide show
 function slide()
 {
     start = setInterval("anim()", delayTime);
 }
