// Fehler unterdrücken
var _root = '/';


function stopError() {
//	return true;
}
onerror = stopError;


$(document).ready(function(){
	
	
	/* Toolbox */
	/* $('#print').click(function(event){print();});*/
	
	/* Suche */
	$('input#schnellsuche').focus(function(){
		if(this.value=='Suche'){this.value = '';}
		if(this.value=='Search'){
			this.value = '';
		}
	});
	$('input#schnellsuche').blur(function(){
		if(this.value==''){
			this.value='Suche';
		}
	});
	
	
	if($(".zoom").length > 0 ){
	
		$('.zoom').click(function(e){
			
			var widthIn = '655px';
			var marginIn = '-127px';

			var widthOut = '400px';
			var marginOut = '0px';
			var schnell = '1000';
	
			if( $(this).hasClass('in') ){
				$(this).find("img").animate({
					width: widthIn,
					marginLeft: marginIn
				}, schnell );
				$(this).removeClass('in');
				$(this).addClass('out');
			}else{
				$(this).find("img").animate({
					width: widthOut,
					marginLeft: marginOut
				}, schnell );
				$(this).removeClass('out');
				$(this).addClass('in');
			}
			
			e.preventDefault;
			return false;
		});
	}
		
	
	

}); // OnDocumentReady Ende

$(window).load (function () {


}); // WindowLoad 

//### blendet je ein Element ein & aus
function showhide( showid, hideid ) {
	if ( showid == hideid && document.getElementById( showid ) ) {
		if ( document.getElementById( hideid ).style.visibility == 'hidden' ) {
			hideid = '';
		}
		else {
			showid = '';
		}
	}
  if ( document.getElementById( showid ) ) {
    document.getElementById( showid ).style.visibility = 'visible';
    document.getElementById( showid ).style.display = '';
  }
  if ( document.getElementById( hideid ) ) {
    document.getElementById( hideid ).style.visibility = 'hidden';
    document.getElementById( hideid ).style.display = 'none';
  }
}
