	// Image highlights 
	function move_in(img_name,img_src) {
		if (document.images) { document.images[img_name].src=img_src }
	}
	function move_out(img_name,img_src) {
		if (document.images) { document.images[img_name].src=img_src }
	}
	// Floater plain
	function floater(width,height,url) {
		floaterWin = window.open(url,'floaterDoc','height='+height+',width='+width+',left=0,top=0,dependent=yes,resizable=yes,scrollbars=no');
		window.floaterWin.focus();
	}
	// Floater with scrollbars       
	function floaterScroll(width,height,url) {
		scrollfloaterWin = window.open(url,'floaterScrollDoc','height='+height+',width='+width+',left=0,top=0,dependent=yes,resizable=yes,scrollbars=yes');
		window.scrollfloaterWin.focus();
	}
	// Popup
	function openWindow(width, height, name, url) {
		SepWindow = window.open(url, name, 'height='+height+', width='+width+', left=0, top=0, dependent=yes, resizable=yes, scrollbars=yes');
		window.SepWindow.focus();
	}

	// Zoom
	function openZoom(media,href,width,height) {
		if (width<468) { width=468; }
		width += 13; height += 159;
		zoomWin = window.open('http://www.teleboy.ch/memberzone/postcard/view.php?media='+escape(media)+'&'+'href='+escape(href)+'&frames=0','zoomDoc','width='+width+',height='+height+',toolbar=no,resizable=yes,scrollbars=no');
		window.zoomWin.focus();
	}

	// Video
	function openVideo(file,width,height) {
		if (!width) { width = 192; }
		if (!height) { height = 132; }
		winWidth = width + 32;
		winHeight = height + 160;
		if (winWidth<490) { winWidth=490; }
		videoWin = window.open('/tool/video.php?file='+escape(file)+'&width='+width+'&height='+height,'videoDoc','width='+winWidth+',height='+winHeight+',toolbar=no,resizable=yes,scrollbars=no');
		window.videoWin.focus();
	}
	// Trailer
	function openTrailer(movie_id,format) {
		if (format) { format = '&format='+format } else { format = '' }
		trailerWin = window.open('/tool/trailer.php?movie_id='+movie_id+format,'trailerDoc','width=550,height=450,dependent=yes,toolbar=no,status=no,menubar=no,resizable=yes,scrollbars=no');
		window.trailerWin.focus();
	}

	// Artikel drucken/senden
	function openAction(url,name,features) {
		quelle = window.document.location.href;
		window.open(url+'?file='+quelle,name,features);
	}

	// Artikel drucken/senden neu mit encodierter Quelle (01.09.2005)
	function openActionNew(url,name,features) {
		quelle = window.document.location.href;
		while(quelle.indexOf("&") != -1){
			quelle = quelle.replace(/&/, "kfmnn");
		}
		while(quelle.indexOf("+") != -1){
			quelle = quelle.replace(/\+/, "plssgn");
		}
		window.open(url+'?file='+quelle,name,features);
	}

	function ausklapp(zellennr) {
		var zelle_klein = 'beitrag_klein_' + zellennr;
		var zelle_gross = 'beitrag_gross_' + zellennr;
		document.getElementById(zelle_klein).style.display = 'none';
		document.getElementById(zelle_gross).style.display = 'inline';
	}
  
	function einklapp(zellennr) {
		var zelle_klein = 'beitrag_klein_' + zellennr;
		var zelle_gross = 'beitrag_gross_' + zellennr;
		document.getElementById(zelle_klein).style.display = 'inline';
		document.getElementById(zelle_gross).style.display = 'none';
	}
  
	w_openwindow = null;
	function open_window(nurl,windowname,width,height, leftPos, topPos, newwindow) {
		if (typeof leftPos == 'undefined' || leftPos < 0) leftPos = (self.screen.width-width-25)/2;
		if (typeof topPos == 'undefined' || topPos < 0) topPos = (self.screen.height-height-25)/2;
		if (typeof newwindow == 'undefined') newwindow = 0;
		if (newwindow)
			window.open(nurl, windowname,'width='+width+',height='+height+',left='+leftPos+',top='+topPos+',directories=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,resizable=yes');
		else
			w_openwindow = window.open(nurl, windowname,'width='+width+',height='+height+',left='+leftPos+',top='+topPos+',directories=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,resizable=yes');
	}

  // E-Mail
  function setzm(nom, dum, tld, txt, dom){
    var mal = "mailto";
    var mat = "@";
    if(tld == ""){
      tld = "ch"
    }

    if(txt == ""){
      document.write('<a href="'+mal+':'+nom+mat+dom+'.'+tld+'">'+nom+mat+dom+'.'+tld+'</a>');
    }
    else{
      document.write('<a href="'+mal+':'+nom+mat+dom+'.'+tld+'">'+txt+'</a>');
    }
  }
  