function openpopup(thiswidth,thisheight,thispic) {
	
	wbreite = screen.width;
			hpos = (wbreite/2)-(thiswidth/2);
			whoehe = screen.height;
			vpos = (whoehe/2)-(thisheight/2);
	
	nw=window.open("", "zoom", "status=no,location=no,toolbar=no,menubar=no,resizable=no,scrollbars=no,width="+thiswidth+",height="+thisheight+",top="+vpos+", left="+hpos)
	nw.focus();
	nw.document.write("<html><head><title>zoom</title>")
	nw.document.write("</head>")
	nw.document.write("<body marginwidht=0 marginheight=0 leftmargin=0 topmargin=0 rightmargin=0 bottommargin=0 bgcolor='white'>")
	nw.document.write("<div id='rahmen'>")
	nw.document.write('<a href=\"javascript:self.close()\" title=\"schliessen\">');
	nw.document.write("<center><img src='"+thispic+"'  border=\"0\"></div></center>")
	nw.document.write("</a>")
	nw.document.write("</body></html>")
	nw.document.close() 
}



function fla(thiswidth,thisheight,thispic) {
	
	wbreite = screen.width;
			hpos = (wbreite/2)-(thiswidth/2);
			whoehe = screen.height;
			vpos = (whoehe/2)-(thisheight/2);
	
	nw=window.open("", "zoom", "status=no,location=no,toolbar=no,menubar=no,resizable=no,scrollbars=no,width="+thiswidth+",height="+thisheight+",top="+vpos+", left="+hpos)
	nw.focus();
	nw.document.write("<html><head><title>zoom</title>")
	nw.document.write("<style>body{ background-color:#000; font-family:Arial, Helvetica, sans-serif;} a, a:visited { color:#fff;text-decoration:none;} a:hover {color:#C90000; text-decoration:none;}</style>")
	nw.document.write("</head>")
	nw.document.write("<body><center>")
	
		nw.document.write("<body bgcolor='black'><center> <object width='425' height='350'><param name='movie' value='"+thispic+"'></param><param name='wmode' value='transparent'></param><embed src='"+thispic+"' type='application/x-shockwave-flash' wmode='transparent' width='425' height='350'></embed></object>")
		nw.document.write('<div align=\"right\" <p><a href=\"javascript:self.close()\">close</p>')
	nw.document.write("</a></div>")
	nw.document.write("</center></body></html>");
	nw.document.close() 
}







function hidefocus(element) { if(element.blur) { element.blur(); } }

		  
function MM_CheckFlashVersion(reqVerStr,msg){
  with(navigator){
    var isIE  = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
    var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
    if (!isIE || !isWin){  
      var flashVer = -1;
      if (plugins && plugins.length > 0){
        var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
        desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
        if (desc == "") flashVer = -1;
        else{
          var descArr = desc.split(" ");
          var tempArrMajor = descArr[2].split(".");
          var verMajor = tempArrMajor[0];
          var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
          var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
          flashVer =  parseFloat(verMajor + "." + verMinor);
        }
      }
      // WebTV has Flash Player 4 or lower -- too low for video
      else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;

      var verArr = reqVerStr.split(",");
      var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
  
      if (flashVer < reqVer){
        if (confirm(msg))
          window.location = "http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
      }
    }
  } 
}	





function sms()
{
window.open('http://www.919.ch/list.php?kword=GAMPEL.WIN@919','sms','width=370,height=470,left=770,top=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes')
          }
		  
		  
function work()
{
popup = window.open('http://2007.openairgampel.ch/img/news/works/','work','width=700,height=600,left=20,top=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes')
popup.focus();
          } 	
		  
		  
		  
function video()
{
window.open('http://2007.openairgampel.ch/img/news/tvspot/','video','width=350,height=300,left=350,top=50,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes')
          }		  
		  
	  
		  
		  
		  
function timetable()
{
popup = window.open('http://2007.openairgampel.ch/timetable.php','timetable','width=600,height=700,left=20,top=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes')
popup.focus();
          }   
		  
		  
		  
function map()
{
popup = window.open('http://2007.openairgampel.ch/img/quickinfos/index.php','map','width=600,height=700,left=20,top=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes')
popup.focus();
          }   
		  
		  
		  
		  function feedback()
{
popup = window.open('http://alpha3.officeco.ch/cgi-bin/oag07-feedback.pl','feedback','width=850,height=600,left=20,top=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes')
popup.focus();
          } 		  