// JavaScript Document
$(document).ready(function(){
	$('ul#nav li:not(:last)').css('borderRight','1px solid #55CEF0');
	
	$('.col500Content form').jqTransform({imgPath:imgroot + '/includes/images/forms/'});
	
	$.easing.custom = function (x, t, b, c, d) { 
	    var s = 1.70158;  
	    if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; 
	    return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; 
	}
	
	$('ul.leftNav li:not(#backTo)').click( function() {
		var selMenu = $(this).find("a").attr('childid');
		var thisHref = $(this).find("a").attr("href");
		var thisTitle = $(this).find("a").attr("title");
		if (selMenu.length) {
			$("#childOf_" + selMenu).toggle(200, function(){
				$('#secondaryNavSlideSlider').animate({
					marginLeft: "-182px"
				}, 700, 'custom', function(){
					$('#secondaryNavTitle').html(thisTitle);
					$("#secondaryNavSlideSlider").animate({height: $("#childOf_" + selMenu).height()+20},700, 'custom', function(){
						window.location = thisHref;
					});
				});
			});
		} else {
			window.location = thisHref;
		}
		return false;
	});
	
	$('.col330 > .col155:odd').css('margin-left','18px');
	$('hr').attr("noshade","noshade");
	//$('.col212 div:not(#navClip)').removeClass('col155');
	$('.col212 .col155').removeClass('col155').css('width','182px');
 });