// Stopp Uhr
var Mov = Class.create();

Mov.prototype = {

	initialize: function(width, height){
       this.width = width;
       this.height= height;
	},

	big: function(obj, file){

	  var topPos = this.getScrollTop() + 200; 
      var body = document.getElementsByTagName("body")[0]; 
      
      if($('imageContainer')){
      	  var obj = body;
      	  var path = '../'; 
      }else{
        var obj = body;
        var path = '../../'; 
      }
      
      
      var html = ''
                +'<div id="layer">'
                +'<p id="playerClose"><img style="cursor:pointer;" onclick="mov.close(\'layer\')" src="'+path+'image/close.jpg" alt="close" /></p>'
                +'<p id="player"><a href="http://www.macromedia.com/go/getflashplayer">Get Flash</a> to see this Moovie.</p>'
                +'<script type="text/javascript">'
                +'var so = new SWFObject(\''+path+'function/mediaplayer.swf\',\'player\',\''+this.width+'\',\''+this.height+'\',\'7\');'
                +'so.addParam("allowfullscreen","true"); '
                +'so.addVariable("file", "'+path+'upload/files/'+file+'"); '
                //+'so.addVariable("displayheight","300"); '
                +'so.addVariable("autostart","true"); '
                +'so.write(\'player\'); '
                +'</script>'
                +'</div>'; 
      
      
      new Insertion.Bottom(obj, html); 
	},

	getScrollTop: function(){
	  return window.pageYOffset||
      document.documentElement&&document.documentElement.scrollTop||
      document.body.scrollTop||0;
	},

	close: function(id){
		
		$(id).remove();
		

	},

	timeFormat: function(sec){

	}
}

mov = new Mov(735, 435);


// Nebel
var nebelClass = '';

function noNebel(obj){
	nebelClass = obj.className; 
	obj.className = 'noNebel'; 
}
function doNebel(obj){
	obj.className = nebelClass;
}


// Grosses Bild in Projektdetail
function showBig(file, moovie){
  
	$('bigImageHolder').innerHTML = '<img src="../../upload/image/big/'+file+'" onclick="mov.big(this, \''+moovie+'\')" />'; 
}
