var toLoad = '';
$.noConflict();
//$(document).ready(function () {
jQuery(document).ready(function ($) {
    $('body').addClass("js");
    if($('body').hasClass("bildergalerie")){
    	$('#bgal_outer').cycle({ 
		    fx:     'scrollHorz', 
		    prev:   '#prev1', 
		    next:   '#next1', 
		    timeout: 0,
		    speed: 300 
			});
			/*$('#bgal_outer').cycle({
			fx:'fade'}); */
    }
    	
    	
    	//$('#row2').slideDown();
    	//$('#row4_inhalt').show('slide', {direction: 'right'}, 1000);
    	$('#row4_inhalt').animate({width: '745px'}, 400);

    
    
    //}else{
    //	$('#row2').show();
    //}
	
		$('.nav_main	a').click(function(){
															//toLoad = $(this).attr('HREF');  
															//toLoad = $(this).href;  
															toLoad = this.href;  
															//alert(toLoad);
															//var test = +this.href.match( /\d+$/ )[0];
															//alert(test);
															//$('#row2').slideUp(400,function(){window.location = toLoad;});
															//$('#row4_inhalt').hide('slide', {direction: 'left'}, 1000,function(){window.location = toLoad;});
															//$('#row4_inhalt').animate('slide', {direction: 'left'}, 1000,function(){window.location = toLoad;});
															$('#row4_inhalt').animate({width: 0}, 200, function() {$(this).hide();window.location = toLoad;});

															return false;
														});	
		

});
///////////////////////////////////////////////////////////////////////////


