jQuery.noConflict(); (function($) { $(function() {

$('html').attr('id', 'js'); // Enabled Javascript Detection

if($("a[rel=external]")){
	$("a[rel=external]").click(function() {
		window.open(this.href);  
		return false;
	});
}

if ($('#slideshow').length){$('#slideshow').cycle({fx: 'fade', speed: 2000, timeout: 5000})};

if ($("#html_mail_form").length) { $("#html_mail_form").validate({errorElement: "span"})};

//*****************************************************************************************************
// Equal Height Columns
//*****************************************************************************************************
function equalHeight(columns) {
	var tallest = 0;
	columns.each(function() {
		thisHeight = $(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	columns.css('min-height', tallest);
}

$(window).load(function () {
	$(".content_internal_in").each(function() {
		equalHeight($(this).children(".int_box"));
	});
});

$('a[href*=#]').click(function() {
	if($(this).parent().attr('class')=='scrollable_navigation' || $(this).attr('href').indexOf('javascript')>-1) return;
	var duration=1000;
	var easing='swing';
	var newHash=this.hash;
	var oldLocation=window.location.href.replace(window.location.hash, '');
	var newLocation=this;
	if(oldLocation+newHash==newLocation)
	{
		var target=$(this.hash+', a[name='+this.hash.slice(1)+']').offset().top;
		if(target > $(document).height()-$(window).height()) target=$(document).height()-$(window).height();			
		if($.browser.safari) var animationSelector='body:not(:animated)';
		else var animationSelector='html:not(:animated)';
		$(animationSelector).animate({ scrollTop: target }, duration, easing, function() {
			window.location.href=newLocation;
		});
		return false;
	}
});

$(".dropdown_list h4").click(function(){
	$(this).next("div").slideToggle("slow").siblings("div:visible").slideUp("slow");
	$(this).toggleClass("active");
	$(this).siblings("h4").removeClass("active");
});

}); })(jQuery);



