jQuery.noConflict(); // Safety first
var $j = jQuery; 

// ===============================================
//  Functions
// =============================================== 

function pd_switchnav_init (show) {
	window.show = show;
	
	$j('.switchparent').css({display: 'none'});
	$j('#' + show).css({display: 'block'});
	
	$j("a.switch").each(function () {
		if ( $j(this).attr("rel") == window.show ) {
			$j(this).addClass('active');
		}
	});

	
	$j('#PeSwitcherFirst a.switch').click( function() {
		var id = $j(this).attr("rel");
		
		$j("a.switch").removeClass('active');
		$j(this).addClass('active');
		
		$j('.switchparent').css({display: 'none'});
		$j('#' + id).css({display: 'block'});
	
	});
	

}
