jQuery(document).ready( function($) {

	$('div.csc-textpic-border div.csc-textpic-imagewrap .csc-textpic-image img, div.csc-textpic-border div.csc-textpic-single-image img')
	.after('<div class="bbottom"></div>');

	$('ul.sf-menu').superfish({ 
            delay:       1000,                            // one second delay on mouseout 
            animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
            speed:       'fast',                          // faster animation speed 
            autoArrows:  true,                           // disable generation of arrow mark-up 
            dropShadows: false                            // disable drop shadows 
        });
    $('ul.sf-menu a.sf-with-ul').click( function() { return false; });	
	/* remove tab-focus at click */
	$('.sf-menu a, a').bind('click', function() { $(this).css('outline','0'); });	
	
	//$('.intro .subcl h3.csc-firstHeader a').bind('click', function() { alert('huhu'); return false; ); });
	
	$('body.intro #col1_content h3.csc-firstHeader').bind('click',function() { 
		return false; 
		});
	$('body.intro #col1_content h3.csc-firstHeader').bind('mouseover',function() { 
		$(this).find('a').css('cursor','default');
		$('div#c20 .csc-textpic-text').css('background','#efefef');
		$('div#c20 .csc-textpic-text').css('outline','1px solid green');
		});	
	$('body.intro #col1_content h3.csc-firstHeader').bind('mouseout',function() { 
		$('div#c20 .csc-textpic-text').css('background','none');
		$('div#c20 .csc-textpic-text').css('outline','none');
		});	

	/* lib.MEDIA */
	/* dont works, dontnowwhybut we dontneedcycle */
	/*
	jQuery.ajax({
		type: 'GET',
		url: window.location.href,
		data: 'type=71629',
		dataType: 'xml',
		success: function(xml) {
			$(xml).find('media>img').each(
				function() {
					jQuery('<img />')
						.attr('src',    $(this).attr('src'   ))
						.attr('width',  $(this).attr('width' ))
						.attr('height', $(this).attr('height'))
						.attr('alt',    $(this).attr('alt'   ))
						.attr('title',  $(this).attr('title' ))
						.load( function(){
							// static: new images will be appended to the bottom of the list
							$('#media').append($(this));
							// random: new images will be added randomly to the list 
							// $('#media>img:nth-child(' + Math.ceil(Math.random() * $('#media>img').length) + ')').after($(this));
							$('#media').cycle(
								{
									fx:     'fade',
									timeout: 7000,
									speed:   2500,
									random:  0      // does not work with with $.cycle.lite.min.js
									                // but we don't care, because the preloading would mix up and brake the slideshow anyways
								}
							);
						});		
				}
			);
		}
	});
	*/
} );
