var jJ = jQuery.noConflict();
jJ(document).ready(function(){
	
	if (jJ('UL.category-list').length > 0) {
		jJ('UL.category-list LI:last').addClass('last');
	};
		
	if (jJ('.contact-form').length > 0) {
		jJ('div.wpcf7-response-output').replaceWith('');
		jJ('.wpcf7').prepend('<div class="wpcf7-response-output wpcf7-display-none"></div>');
	};
	
	jJ('A[rel="external"]').attr('target', '_blank');
	
	jJ('.contact-form .form-row').each(function(){
		if (!jJ(this).hasClass('button')) {
			jJ(this).children('SPAN').children('INPUT').attr('title', jJ(this).attr('title')).attr('value', jJ(this).attr('title'));
			jJ(this).children('SPAN').children('TEXTAREA').attr('title', jJ(this).attr('title')).html(jJ(this).attr('title'));
		}
	});
	
	jJ('.contact-form .form-row INPUT').click(function(){
		if (jJ(this).attr('value') == jJ(this).attr('title')) jJ(this).attr('value', '');
	});
	
	jJ('.contact-form .form-row INPUT').blur(function(){
		if (jJ(this).attr('value') == '') jJ(this).attr('value', jJ(this).attr('title'));
	});
	
	jJ('.contact-form .form-row TEXTAREA').click(function(){
		if (jJ(this).html() == jJ(this).attr('title')) jJ(this).html('');
	});
	
	jJ('.contact-form .form-row TEXTAREA').blur(function(){
		if (jJ(this).html() == '') jJ(this).html(jJ(this).attr('title'));
	});
	
	jJ(".holder #rotator").jcarousel({
		scroll: 1,
		auto: 3,
		animation: 1500,
		wrap: 'both'
	});
	
});


