	    var arrTemp=self.location.href.split("?"); 
	    var picUrl = (arrTemp.length>0)?arrTemp[1]:""; 
	    var NS = (navigator.appName=="Netscape")?true:false; 

	    function resizepage() {
		var iWidth, iHeight
		iWidth = (NS)?
		window.innerWidth:document.body.clientWidth; 
		iHeight = (NS)?
		window.innerHeight:document.body.clientHeight;
		iWidth = document.images[0].width;
		iHeight = document.images[0].height;
		if(iWidth>550) {
		   iWidth = iWidth + 150;
		}
		else {
		   iWidth = 650;
		}
		if(iHeight>430) {
		   iHeight = iHeight + 380;
		}
		else {
		   iHeight = 680;
		}
		self.focus();
		self.resizeTo(iWidth, iHeight);
		self.focus(); 
	    }

	    function check_skip() {
		if(document.myForm.skip[0].checked==true) {
		    //document.myForm.timer.disabled = true;
		}
		else {
		    document.myForm.timer.disabled = false;
		}
	    }

	    function slideshow(gid, id) {
		if(document.myForm.skip[1].checked==true && id!='') {
		    setTimeout("redirect(" + gid + ", " + id + ")", document.myForm.timer.value);
		}
	    }

	    function redirect(gid, id) {
		if(document.myForm.skip[1].checked==true) {
		    window.location.href="bildgalerie_popup.asp?gid=" + gid + "&id=" + id + "&skip=automatisch&intv=" + document.myForm.timer.value;
		}
	    }

	function BildPopUp(gid, id) {

		var Bildgalerie;
		Bildgalerie = window.open('bildgalerie_popup.asp?gid=' + gid + '&id=' + id, 'Bildgalerie', 'status=no,menubar=no,width=800,height=650,top=20,left=20');
		Bildgalerie.focus();

	}
