Cufon.replace('.thetherd #rightLinks a, .detail_info_left h2',
				{hover: true, fontFamily: 'Gotham Light'});
				
Cufon.replace('.vid_title',
				{hover: true, fontFamily: 'Univers-LT-Std-Condensed'});
				
Cufon.replace('.tech_content h4, ul#tabbed_nav li a, .post_tech h4',
				{hover: true, fontFamily: 'Gotham Medium'});
				
Cufon.replace('.div_block1 h5, h3.h3_i, .tech_content h1, .tech_content .left_info h4, ul#tabbed_nav2 li a, .detail_info_left h1, .detail_info_right .heading_block h3, a.bfr3rd',
				{hover: true, fontFamily: 'Gotham Black'});
				
Cufon.replace('.installation_block ul li ul li a',
				{hover: true, fontFamily: 'Gotham Medium'});

var $j = jQuery.noConflict();

$j(document).ready( function(){
	
	
	$j(".installation_block h4 a").toggle(function(){
		$j(".installation_block h4 a").removeClass("active");
		$j(this).addClass("active");
		}, function () {
		$j(this).removeClass("active");
	});
	
	
	$j(".installation_block h4 a").click(function(){
		$j(".installation_block ul").slideUp("slow");
		var $this = $j(this);
		$this.parent().next("ul").slideToggle("slow");
		
	});
	
	
	$j(".installation_block ul li a.bfr3rd").toggle(function(){
		$j(this).addClass("active");
		}, function () {
		$j(this).removeClass("active");
	});
	
	$j(".installation_block ul li a.bfr3rd").click(function(){
		var $this = $j(this);
		$this.next("ul").slideToggle("slow");
		
		
		
	});
	
	jQuery('.tab_imgs').hide();
	jQuery('#img_link-t1').show();
	jQuery('[id^=link-t]').click(function() {
		var $this = jQuery(this);
		var x = $this.attr("id");
		
		jQuery('[id^=link-t]').removeClass("current"); 
		jQuery('#'+x).addClass("current"); 
		Cufon.replace('ul#tabbed_nav2 li a',
				{hover: true, fontFamily: 'Gotham Black'});
		jQuery('.tab_imgs').hide();
		jQuery('#img_'+x).show();
		return false;
	});
	
	jQuery('[id^=tabbed_link-l]').click(function() {
		
		var $this = jQuery(this);
		var x = $this.attr("id");
		
		jQuery('[id^=tabbed_link-l]').removeClass("current"); 
		jQuery('#'+x).addClass("current_ajaxed");
		
		Cufon.replace('ul#tabbed_nav li a',
				{hover: true, fontFamily: 'Gotham Medium'});

		var name = jQuery('a#'+x).attr("title");
		var exp = jQuery(this).hasClass('mountain') ? 'mountain' : (jQuery(this).hasClass('road') ? 'road' : 'tritt');
        
        
		jQuery.ajax({
		url: '/bike/wp-content/plugins/get_tech_details.php?tech_name='+name+'&exp='+exp, 
		cache: false,
		success: function(message) {
			jQuery('#'+x).removeClass("current_ajaxed");
			jQuery('#'+x).addClass("current");
			jQuery('.tech_tab_info').empty().append(message);
		}
		});
		
		return false;
	});
	
	// tech_slider images slider
	$j('#tech_slider').wslide({
				width: 360,
                height: 280,
                horiz: true,
				autolink: false,
				duration: 300
	});




});

