
jQuery(document).ready(function($){
	$('.col-news p:last').addClass('last-new');
	$('.gform_widget').wrapInner('<div class="form-top"></div>');
	$('.form-top').prepend('<span>' + window.form_widget_title + '</span>');

	$('.gform_widget .medium').each(function(){
		$(this).attr('title', $(this).val());
	});

	$('#sidebar input.button').hover(function(){
		$(this).addClass('active');
	}, function(){
		$(this).removeClass('active');
	});
	
	$('#navigation .sub-menu').each(function(){
		$(this).wrap('<div class="sub-menu-outer"></div>');
		$(this).after('<span class="sub-bottom">&nbsp;</span>');
		$(this).find('.item-left, .item-right').remove();
		$(this).find('.link-outer').addClass('link-inner');
	});

	$('#navigation > ul > li').hover(function(){
		if ($(this).find('.sub-menu').length != 0) {
			$(this).addClass('hovered');
			$(this).find('.sub-menu-outer').show();
		};
	}, function(){
		if ($(this).find('.sub-menu').length != 0) {
			$(this).removeClass('hovered');
			$(this).find('.sub-menu-outer').hide();
		};
	});

	$('.gform_widget textarea').parents('.gfield').addClass('gfield_textarea');

	/* JCAROUSEL */
	
	$('#slider-cnt ul').jcarousel({
		wrap: 'both',
		scroll: 1,
		auto: 3
		
	});
	
	/* END JCAROUSEL */
	
	
	/* Field Focus */
	
	$('.blink, .medium').focus(function(){
		if( $(this).attr('title') == $(this).val() ) {
			$(this).val('');
		}
	}).blur(function(){
		if( $(this).val() == '' ) {
			$(this).val( $(this).attr('title') );
		}
	});
	
	$('.table-content .col a.tooltip').tooltip({
		showURL: false,
		track: true
	});
	
	/* End Field Focus */
	
	if ($.browser.msie && $.browser.version.substr(0,1)<7) {
		DD_belatedPNG.fix('#footer, .footr-logo img, .box img, #slider img, h1#logo a, .slider-cnt a.button, .footer-bottom p a#footer-logo, .table-content .col ul li.last a.button, .table-content .col ul li.last a.button:hover, .table-content .col.second-col .head h3, .table-content .col.green .bottom, .table-content .col.green .head h3, .table-content .col.green .head span.popular, .table-content .col.green ul li, .table-content .col.last-col .head h3, .table-content .col ul li img');
	};
	
});	

	

