var J = jQuery.noConflict();
J(document).ready(function(){
	J("a[rel^='prettyOverlay'],a[rel^='prettyPhoto']").prettyPhoto({
		animationSpeed: 'normal', /* fast/slow/normal */
      	padding: 40, /* padding for each side of the picture */
      	opacity: 0.50, /* Value betwee 0 and 1 */
      	showTitle: true, /* true/false */
      	allowresize: true, /* true/false */
      	counter_separator_label: " - " /* The separator for the gallery counter 1 "of" 2 */
    });

	J('INPUT.auto-hint').each(function(i, el){
        if(J(this).val() == ''){
            J(this).val(J(this).attr('title'));
        }
        J(el).focus(function(){
            if (J(this).val() == J(this).attr('title')) {
                J(this).val('');
            }
        });
        J(el).blur(function(){
            if (J(this).val() == '') {
                J(this).val(J(this).attr('title'));
            }
        });
    });
	J('.carousel').jCarouselLite({
		btnNext: ".controls .next",
		btnPrev: ".controls .prev",
		visible:1,
		speed:500,
		easing:"swing",
		auto: 5000
    });

	J('ul.tabs a').click(function(){
		var currTab = J(this).attr('rel')
		J('ul.tabs li').removeClass('current');
		J(this).parent().addClass('current');
		J('.content .right-col .tab-content').hide();
		J('.content .right-col #'+currTab).show();
	});

	/*J('.breadcrumbs a:last').addClass('current');*/
});