<!--

	var iPos = 0 ;
	var bFlashPlugIn = false ;
	

	function changePicture( iPosition ) {

		var _sFile   = '' ;
		var _sWrite  = '' ;
		var _iHeight = 0 ;
		var _iWidth  = 0 ;

		_sWrite = '' ;

		iPos = iPosition ;

		aItem = aPictures[iPos].split('|') ;

		_sFile = aItem[0] ;
		var _sExtension = _sFile.substr( _sFile.lastIndexOf('.') + 1, _sFile.length ) ;


		if (    _sExtension.toLowerCase() == 'jpg' 
		     || _sExtension.toLowerCase() == 'jpeg' 
		     || _sExtension.toLowerCase() == 'gif' 
		     || _sExtension.toLowerCase() == 'png'
		   ) {
		   	
		  _sPosition = parseInt( iPos ) + 1 ;


      _sWrite  = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n" ;
      _sWrite += "  <tr>\n" ;
      _sWrite += "    <td align=\"center\" width=\"20%\">\n" ;
      _sWrite += "      <a href=\"#\" id=\"first\" onClick=\"changePicture( 0 ) ; return false ;\">&lt;&lt;</a>\n" ;
      _sWrite += "    </td>\n" ;
      _sWrite += "    <td align=\"center\" width=\"20%\">\n" ;
      _sWrite += "      <a href=\"#\" id=\"back\" onClick=\"changePicture( ( iPos * 1 ) - 1 ) ; return false ;\">&lt;</a>\n" ;
      _sWrite += "    </td>\n" ;
      _sWrite += "    <td align=\"center\" width=\"20%\">\n" ;
      _sWrite += "      <a href=\"#\" id=\"overview\" onClick=\"history.back() ; return false ;\">zur &Uuml;bersicht</a>\n" ;
      _sWrite += "    </td>\n" ;
      _sWrite += "    <td align=\"center\" width=\"20%\">\n" ;
      _sWrite += "      <a href=\"#\" id=\"forward\" onClick=\"changePicture( ( iPos * 1 ) + 1 ) ; return false ;\">&gt;</a>\n" ;
      _sWrite += "    </td>\n" ;
      _sWrite += "    <td align=\"center\" width=\"20%\">\n" ;
      _sWrite += "      <a href=\"#\" id=\"last\" onClick=\"changePicture( aPictures.length - 1 ) ; return false ;\">&gt;&gt;</a>\n" ;
      _sWrite += "    </td>\n" ;
      _sWrite += "  </tr>\n" ;
      _sWrite += "</table>\n" ;
		  
			_sWrite += "<img alt=\"\" id=\"preLoad\" style=\"display: none ; z-index: 2 ;\" src=\"/images/dummy.gif\">\n" ;
			_sWrite += "<img alt=\"\" border=\"1\" class=\"border\" id=\"picture\" name=\"picture\" src=\"" + _sFile + "\">\n" ;
			_sWrite += "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n" ;
			_sWrite += "\t<tr>\n" ;
			_sWrite += "\t\t<td>" + _sPosition + " von " + aPictures.length + "</td>\n" ;
			if ( aItem[2].length > 0 ) {
				_sWrite += "\t\t<td align=\"right\">\n" ;
				_sWrite += "Foto: " ;
				if ( aItem[3].length > 0 ) {
					_sWrite += "<a href=\"" + aItem[3] + "\" target=\"_blank\">" + aItem[2] + "</a>" ;
				}
				else {
					_sWrite += aItem[2] ;
				}				
				_sWrite += "\t\t</td>\n" ;
			}
			_sWrite += "\t</tr>\n" ;
			_sWrite += "</table>\n" ;
	
			window.setTimeout( "_protected()", 2250 ) ;
		}
		else if ( _sExtension.toLowerCase() == 'swf' ) {

			_iWidth  = _sFile.substr( 0, _sFile.indexOf('|') ) ;
			_sFile   = _sFile.substr( _sFile.indexOf('|') + 1, _sFile.length ) ;
			_iHeight = _sFile.substr( 0, _sFile.indexOf('|') ) ;
			_sFile   = _sFile.substr( _sFile.indexOf('|') + 1, _sFile.length ) ;

			_sWrite = setSWF( _sFile, _iWidth, _iHeight, true ) ;
			
		}
	
		document.getElementById('show').innerHTML = _sWrite ;		

		checkDisplays( iPosition, true ) ;

		return true ;
	}

	function checkDisplays( iPosition, bSingleMode ) {

		document.getElementById('first').style.visibility = 'visible' ;
		document.getElementById('back').style.visibility = 'visible' ;
		document.getElementById('forward').style.visibility = 'visible' ;
		document.getElementById('last').style.visibility = 'visible' ;

		if ( iPosition <= 0 ) {
			document.getElementById('first').style.visibility = 'hidden' ;
			document.getElementById('back').style.visibility = 'hidden' ;

		}
		if ( iPosition >= aPictures.length - 1 || ( aPictures.length <= 16 && ! bSingleMode ) ) {
			document.getElementById('forward').style.visibility = 'hidden' ;
			document.getElementById('last').style.visibility = 'hidden' ;

		}

		return true ;
	}
	
  function doSendMail( sString ) {
  	
  	if ( sString.indexOf('¿') != -1 ) {
  		aChars = sString.split('¿') ;
  		var sReturn = String() ;
  		for( i = 0 ; i < aChars.length ; i++ ) {
  			sReturn += String.fromCharCode(( aChars[i] - 5 )) ;
  		}
  		if ( sReturn.indexOf('@') != -1 ) {
  			location.href = 'mailto:' + sReturn ;
  		}
  	}
  }
  
  function doWriteMailCode( sEmail ) {
  	  var sEmailCode = String() ;
    	for( i = 0 ; i < sEmail.length ; i++ ) {
    		sEmailCode += ( sEmail.charCodeAt(i) + 5 ) + "¿" ;
    	}
    	sEmailCode = sEmailCode.substr( 0, ( sEmailCode.length - 1 ) ) ;
    	
    	document.write(sEmailCode) ;
  }	

	function printPictureTable( sLink ) {

		document.write( "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">" ) ;

		for( i = 0 ; i < iPicturePerLines ; i++ ) {
			document.write( "<tr>" ) ;
			for( j = 0 ; j < iPicturePerLines ; j++ ) {
				if ( ( ( i * iPicturePerLines ) + j ) < aLines[iArrayPos].length ) {
					aItem = aPictures[aLines[iArrayPos][ ( ( i * iPicturePerLines ) + j ) ]].split('|') ;
					document.write( "<td height=\"84%\" align=\"center\" class=\"thumbs\"><a href=\"" + sLink + "?iPos=" + aLines[iArrayPos][ ( ( i * iPicturePerLines ) + j ) ] + "\"><div class=\"border clearfix\"><a href=\"" + sLink + "?iPos=" + aLines[iArrayPos][ ( ( i * iPicturePerLines ) + j ) ] + "\"><img alt=\"\" border=\"0\" src=\"" + aItem[1] + "\"></a></div></a></td>" ) ;
				}
			}
			document.write( "</tr>" ) ;
		}
		document.write( "</table>" ) ;

    var _sWrite = String() ;

		_sWrite  = "<table border=\"0\" width=\"100%\">\n" ;
		_sWrite += "\t<tr>\n" ;
		_sWrite += "\t\t<td>&nbsp;&nbsp;" + ( ( iArrayPos * iPicturePerLines * iPicturePerLines ) + 1 ) + " bis " + ( ( iArrayPos * iPicturePerLines * iPicturePerLines ) + aLines[iArrayPos].length ) + " / " + aPictures.length + "</td>\n" ;
		_sWrite += "\t</tr>\n" ;
		_sWrite += "</table>\n" ;
		
		document.write(_sWrite) ;
		
	}

	function _protected() {

		if ( document.getElementById('preLoad') ) {
			document.getElementById('preLoad').style.top  = document.getElementById('picture').style.top ;
			document.getElementById('preLoad').style.left = document.getElementById('picture').style.left ;
			document.getElementById('preLoad').width  = document.getElementById('picture').width + 8 ;
			document.getElementById('preLoad').height = document.getElementById('picture').height + 8 ;
			document.getElementById('preLoad').style.position = 'absolute' ;
    	
			if ( document.getElementById('preLoad').style.top  == document.getElementById('picture').style.top &&
			     document.getElementById('preLoad').style.left == document.getElementById('picture').style.left ) {

			  document.getElementById('preLoad').style.display = '' ;
			}
    }
	}
	
	function sendForm( sId, sAction ) {
		if ( typeof sId == 'object' ) {
			sId.action = sAction ;
			return true ;	
		}
		
		return false ;
	}

	function setSWF( _sFile, _iWidth, _iHeight, _bNotWrite, _sAlternativeFile, _sAlternativeLink ) {

		var _sReturn = '' ;

		if ( bFlashPlugIn ) {
			var _sParameter = ' Menu=FALSE swModifyReport=TRUE width=' + _iWidth + ' height=' + _iHeight + ' ' ;

		 	_sReturn  = "<SCR" + "IPT LANGUAGE=\"JavaScript\" TYPE=\"text/javascript\">\n" ;
		 	_sReturn += "<!--\n" ;
		 	_sReturn += "  function MM_reloadPage(init) {\n" ;
		 	_sReturn += "    //reloads the window if Nav4 resized\n" ;
		 	_sReturn += "    if ( init == true ) {\n" ;
		 	_sReturn += "      with (navigator) {\n" ;
		 	_sReturn += "        if ( ( appName == 'Netscape' ) && ( parseInt(appVersion) == 4 ) ) {\n" ;
		 	_sReturn += "          document.MM_pgW = innerWidth ;\n" ;
		 	_sReturn += "          document.MM_pgH = innerHeight ;\n" ;
		 	_sReturn += "          onresize = MM_reloadPage ;\n" ;
		 	_sReturn += "        }\n" ;
		 	_sReturn += "      }\n" ;
		 	_sReturn += "    }\n" ;
		 	_sReturn += "    else if ( innerWidth != document.MM_pgW || innerHeight != document.MM_pgH ) {\n" ;
			_sReturn += "      location.reload();\n" ;
		 	_sReturn += "    }\n" ;
		 	_sReturn += "  }\n" ;
		 	_sReturn += "  MM_reloadPage(true);\n" ;
		 	_sReturn += "// -->\n" ;
		 	_sReturn += "</SCRI" + "PT>\n" ;
		 	_sReturn += "<SCRI" + "PT LANGUAGE=\"VBScript\">\n" ;
		 	_sReturn += "Sub ban_FSCommand( ByVal command, ByVal args )\n" ;
		 	_sReturn += "  call ban_DoFSCommand( command, args )\n" ;
		 	_sReturn += "end sub \n" ;
		 	_sReturn += "</SCRI" + "PT>\n" ;

		 	_sReturn += "<object id=\"flash\" width=\"" + _iWidth + "\" height=\"" + _iHeight + "\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=3,0,0,0\"" + _sParameter + ">" ;
		 	_sReturn += "  <param name=\"src\" value=\"" + _sFile + "\">" ;
		 	_sReturn += "  <param name=\"quality\" value=\"autohigh\">" ;
		 	_sReturn += "  <param name=\"loop\" value=\"true\">" ;
		 	_sReturn += "  <param name=\"play\" value=\"true\">" ;
		 	_sReturn += "  <param name=\"menu\" value=\"false\">" ;
		 	_sReturn += "  <param name=\"wmode\">" ;
		 	_sReturn += "  <param name=\"quality\" value=\"high\">" ;
		 	_sReturn += "  <embed name=\"flash\" allowscriptaccess=\"always\" width=\"" + _iWidth + "\" height=\"" + _iHeight + "\" src=\"" + _sFile + "\" " + _sParameter + " pluginspage=\"http://www.macromedia.com/shockwave\" type=\"application/x-shockwave-flash\" PLAY=\"true\" LOOP=\"true\" QUALITY=\"autohigh\">" ;
		 	_sReturn += "  </embed>" ;
		 	_sReturn += "</object>" ;
		}
		else if ( _sAlternativeLink || _sAlternativeFile ) {
		  _sReturn = "<a href=\"" + _sAlternativeLink + "\" target=\"_blank\"><img src=\"" + _sAlternativeFile + "\" width=\"" + _iWidth + "\" height=\"" + _iHeight + "\" border=\"0\" alt=\"\"></a>" ;
		}
		else {
			_sReturn = "Flash Player is missing. You can find on Site <a href=\"http://www.macromedia.com/shockwave\" target=\"_blank\">http://www.macromedia.com/shockwave</a>" ;
		}

		if ( ! _bNotWrite ) {
			document.write( _sReturn ) ;
		}
		else {
			return _sReturn ;
		}

		return true ;
	}

	function setZero( iInt, iCharCount ) {
		if ( iCharCount == undefined ) {
			iCharCount = 2 ;
		}

		iInt = iInt * 1 ;

		iInt += "" ;

		iLength = iInt.length ;

		if ( iLength < iCharCount ) {
			for ( i = iLength ; i < iCharCount ; i++ ) {
				iInt = '0' + iInt ;
			}
			i = 0 ;
		}

		return iInt ;
	}

	
	function MM_preloadImages() { //v3.0
	  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	}
	
	function MM_swapImgRestore() { //v3.0
	  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
	}
	
	function MM_findObj(n, d) { //v4.01
	  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	  if(!x && d.getElementById) x=d.getElementById(n); return x;
	}
	
	function MM_swapImage() { //v3.0
	  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
	}
	
	function mostReadShowTotal( iDiv ) {
		for ( i = 0 ; i < document.getElementsByTagName('div').length ; i++ ) {
			if ( document.getElementsByTagName('div')[i].id.match( /mostread_news_/ ) ) {
				if ( document.getElementsByTagName('div')[i].className.match( / active/ ) ) {
				 	document.getElementsByTagName('div')[i].className = document.getElementsByTagName('div')[i].className.replace( /active/i, 'noactive' ) ;
				}
			}
		}
		document.getElementById(iDiv).className = document.getElementById(iDiv).className.replace( /noactive/i, 'active' ) ;
	}
	
	function Zero(Zahl)
	{
	  if (Zahl < 10)
	    Zahl = "0" + Zahl;
	  return Zahl;
	}

	var aHeaders = new Array( 
	                          '<img alt="Seestadt Rostock / Stafthafen" border="0" height="160" src="/images/header1.jpg" title="Seestadt Rostock / Stafthafen" width="730">', 
	                          '<img alt="Seestadt Rostock / Stafthafen" border="0" height="160" src="/images/header2.jpg" title="Seestadt Rostock / Stafthafen" width="730">',
	                          '<img alt="Seestadt Rostock / St. Marienkirche" border="0" height="160" src="/images/header3.jpg" title="Seestadt Rostock / St. Marienkirche" width="730">', 
	                          '<img alt="Seestadt Rostock / Universit&auml;t" border="0" height="160" src="/images/header4.jpg" title="Seestadt Rostock / Universit&auml;t" width="730">',  				
	                          '<img alt="Seestadt Rostock / Universit&auml;t" border="0" height="160" src="/images/header5.jpg" title="Seestadt Rostock / Universit&auml;t" width="730">', 
	                          '<img alt="Seestadt Rostock / Rathaus" border="0" height="160" src="/images/header6.jpg" title="Seestadt Rostock / Rathaus" width="730">',
	                          '<img alt="Seestadt Rostock / Hauptbahnhof" border="0" height="160" src="/images/header7.jpg" title="Seestadt Rostock / Hauptbahnhof" width="730">',  				
	                          '<img alt="Seestadt Rostock / Kirche Kloster zum Heiligen Kreuz" border="0" height="160" src="/images/header8.jpg" title="Seestadt Rostock / Kirche Kloster zum Heiligen Kreuz" width="730">', 
	                          '<img alt="Seestadt Rostock / Yachthafen Hohe D&uuml;ne" border="0" height="160" src="/images/header9.jpg" title="Seestadt Rostock / Yachthafen Hohe D&uuml;ne" width="730">',
	                          '<img alt="Seestadt Rostock / Deutsche Med" border="0" height="160" src="/images/header10.jpg" title="Seestadt Rostock / Deutsche Med" width="730">',
	                          '<img alt="Seestadt Rostock / AIDAbella am Passagierkai" border="0" height="160" src="/images/header11.jpg" title="Seestadt Rostock / AIDAbella am Passagierkai" width="730">'
	                        ) ;
	
	window.status = "www.seestadt-rostock.de  -  Copyright 2008 Daniel Gaudlitz";

	if ( location.search != '' ) {
		sPos = location.search.match( /iPos=[0-9]+/ ) ;
		if ( sPos ) {
			sPos = sPos[0] ;
			sPos = sPos.match( /[0-9]+/ ) ;
			if ( sPos ) {
				iPos = sPos[0] ;
			}
		}

		if ( iPos < 1 || iPos >= aPictures.length ) {
			iPos = 0 ;
		}
	}
	
	window.onload = function() {
/*
		var facebookElement = document.createElement('div') ;
		facebookElement.innerHTML = '<div id="box_facebook"><a href="http://www.facebook.com/pages/HRO-Newsde/168515746530008" target="_blank"><img alt="Besuche HRO-News.de auf facebook" border="0" height="32" src="/images/facebook.png" title="http://www.facebook.com/pages/HRO-Newsde/168515746530008" width="32" /></a></div>' ;
		
		document.getElementsByTagName('body')[0].appendChild(facebookElement) ;
*/
	}
	
	$(function() {
	  $('div#box_content div#box_news a.lightbox').lightBox() ;
  }) ;
	
//-->
