(function($) {
$(document).ready(function(){

    $('#slider')
    .cycle({
        fx:     'fade',
        speed:  'slow',
        timeout: 5000, // 0 no animation
        pause:   1,
        fit:     1
    });

	$("#col-alpha a:not(:has(img))").css({"borderBottom": "1px dotted #F61411", "color": "#f61411"})
	.mouseover(function(){
		$(this).css({'top': '1px', 'position' : 'relative',"borderBottom": "1px solid #F61411"});
	}).mouseout(function(){
		$(this).css({'top': '0px', 'position' : 'static', "borderBottom": "1px dotted #F61411"});
	});


    //$("#ads a span").addClass("png_bg");
	$("#ads a, .banner a").each(function() {
		$(this).css({'opacity': '0.8'});
	});
	$('#ads a, .banner a').each(function(){
		$(this).hover(function(e){
			$(this).hoverFlow(e.type, {"opacity":"1"}, {"duration":"400"});
			//$(this).fadeTo(300, 1);
		}, function(e){
			$(this).hoverFlow(e.type, {"opacity":"0.8"}, {"duration":"400"});
			//$(this).fadeTo(300, 0.8);
		});
	});

    // fancybox
	$("#col-alpha a:has(img), #content a:has(img)").fancybox({
		'transitionIn' : 'elastic',
		'transitionOut' : 'elastic',
		'zoomSpeedIn': 500,
		'zoomSpeedOut': 500,
		'overlayShow': true,
		'overlayOpacity': 0.6,
		'overlayColor': "#000",
		'padding' : 3
		});


});
})(jQuery)

