/**
 * @author M. Dreyer
 */

window.addEvent('domready', function() {
$$('img').each(function(el){

          
          var src=el.getProperty('src');
			    if (src=='/img/machines/tn/' || src=='/img/machines/mid/' || src=='/img/machines/big/') el.dispose();
			  });
});

function getHoverContent(pid, updateableObject_id, level){
	new Request.HTML({
		url: './dbsim/'+level+'/HoverContent_'+pid+'.html',
		method: 'get',
		update: updateableObject_id,
		evalScripts: true,
		onComplete: function(){
			
		}
	}).send();
}

function showFirst (container, replacecontent){
	replaceHover($(container).getFirst(),replacecontent);
}

function replaceHover (newcontent, replacecontent){
		try { 
			var showclone = newcontent.clone();
			showclone.set('id',replacecontent).replaces(replacecontent);
			}
		catch(e){}
		
}

function hideItem(value) {
        if (value=='invisible') document.write('class="invisible"');
        
      };

