//jQuery.noConflict();



jQuery(document).ready(function(){

    jQuery('#menu').lavaLamp({
        fx: 'easeOutBack',
        speed:500
    }); 

    jQuery("#logo")
        .add("#wrapper")
        .add("#header")
        .add("#top_blue_shape")
        .add("#menu li")
        .add("#content")
        .add("#sidebar ul")
        .add("#footer")
        .addClass("png_bg");
        
     //jQuery.preloadCssImages();
     
     jQuery(".social-links a").attr("target", "_blank");


	// search box behaviour
	var searchBox = jQuery("#newsletter input.textBox");
	var searchBoxDefault = searchBox.attr("value");
	

	searchBox.focus(function(){
		jQuery(this).addClass('active');
		if(jQuery(this).attr("value") == searchBoxDefault)
			jQuery(this).attr("value", "");
	});	
	searchBox.blur(function(){
		jQuery(this).removeClass('active');
		if(jQuery(this).attr("value") == "") jQuery(this).attr("value", searchBoxDefault);
	});
    
    
    
    // fancybox
	jQuery(".fancy").fancybox({
		'zoomSpeedIn': 500,
		'zoomSpeedOut': 500,
		'overlayShow': true,
        'overlayOpacity': 0.8,
        'overlayColor': "#000",
        'padding' : "3"
	});
    
    // remove unnecesary RSS icon - otherwise it would require hacking WP core
    //  files
    jQuery(".rsswidget img").remove();
        

});
