jQuery(document).ready(function(){
		
		 jQuery(".rzcolorboxCO2").colorbox({transition: "elastic",width:"342px", height:"530px", opacity:"0.85", iframe:true, top:"30px"})

	jQuery('#bioBtn').click(function() {
			jQuery('#biography').toggle('slow');
		jQuery('#contact').hide('slow');
		jQuery('.anythingBase').anythingSlider(1);
/*
jQuery('#biography').css('filter',"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)");
		jQuery('.contentContainer').css('filter',"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)");
		jQuery('.panel').css('filter',"DXImageTransform.Microsoft.gradient(startColorstr=#9A000000, endColorstr=#9A000000)");
*/
		return false;
});
	
		jQuery('#contactBtn').click(function() {

		jQuery('#contact').toggle('slow', function(){
							if ($.browser.msie && $.browser.version.substr(0,1)<8) {

		jQuery('#contact').css('background',"url(/fileadmin/templates/img/trans_grey.png) repeat");
		jQuery('#biography').css('background',"url(/fileadmin/templates/img/trans_grey.png) repeat");
		}	

			});

			jQuery('#biography').hide('fast', function(){
			});
			        if (jQuery.browser.msie)  
            this.style.removeAttribute('filter');
		

		return false;
});
		
jQuery(".cRight .newsLatestBorder .btnSmall > span").html("Tickets");

if ( jQuery('.active').length == 0)
	jQuery('#entertainNav #alle').addClass("selected");




});

           (function($){
              jQuery(document).ready(function(){
            	 jQuery(".rzcolorbox-content").colorbox({current:"Event {current} von {total}",transition: "elastic", opacity:"0.85", iframe:true, innerWidth:700, innerHeight:200});
            	});
            }(jQuery));
           
           
           
               jQuery(window).load(function(){
               		       
               var c33height = jQuery( "#paintingBig" ).height();   
               	 jQuery( "#setSize" ).css( 'height' , c33height);	     
            /*we are using $(window).load() here because we want the coding to take
            effect when the image finishes loading. */

            jQuery( ".painting" ).each(
            //get the width of the parent
            function( intIndex ){
            //get the width of the image
            var image_height = jQuery( this ).height();
             var image_width = jQuery( this ).width();
            //calculate how far from top the image should be
            var top_margin = (188 - image_height)/2;
            var left_margin = (188 - image_width)/2;

            //and change the margin-top css attribute of the image
            if ( image_height != "188" ) {
           jQuery( this ).css( 'margin-top' , top_margin+20);
            
           jQuery( this ).css( 'margin-bottom' , top_margin);
            }
                        if ( image_width != "188" ) {

            jQuery( this ).css( 'margin-left' , left_margin);
            		}
}
);
 
});
           

