function nachoben(){
	(function($) {
		$('html, body').animate({scrollTop:0}, 500);
	})(jQuery);
}

(function($) {
	$(document).ready(function($){
		$('#videoflv').show();
		$('#videohtml5').hide();
		
		if(navigator.userAgent.toLowerCase().match(/iP(hone|ad)/i)){
			$('#videoflv').hide();
			$('#videohtml5').show();
		}
		
		$('#innercon a').each(function(i){
			if($(this).attr("target")=="thePicture"){
				var oc=$(this).attr("href");
				oc=oc.split('&');
				for(i=0;i<oc.length;i++){
					if(oc[i].substr(0,4)=="file"){
						$(this).attr("href","http://www.modhouse.de/"+oc[i].substr(5).replace('%2F',"/"));
						$(this).attr("rel","congallery");
						$(this).removeAttr("target");
						$(this).removeAttr("onclick");
						$(this).addClass("jqfancybox");
					}
				}
			}
		});
	});
})(jQuery);

