$(document).ready(function(){
		if ($.browser.msie && $.browser.version < 7) {
			$("img[src$=png]").pngfix({
				//imageFixSrc: "http://127.0.0.1/c21/www/images/x.gif"
				imageFixSrc: baseurl + "images/x.gif"
			});
		}
		//gradient
		Cufon('.mainNav a, .featured_text h4, .f_login h2, .heading_one h1, .memberFeatures h3 , .box1 h5 , .box2 h5, .BL h1 ,.BL h2 ' , {
			fontFamily: 'GothamMedium',
			hover: true,
			hoverables: { li: true, a:true }
		});
		
		Cufon('.f_row .col1 h2, .f_row .col2 h2' , {
			fontFamily: 'GothamMedium'
		});
		
		Cufon('.box_ccDiscountJoin .barker' , {
			fontFamily: 'GothamBook'
		});
		
		Cufon('.box_ccDiscountJoin .barker .barker_strong' , {
			fontFamily: 'GothamBold'
		});
		
		Cufon('.featured_text h3 , .f_login h1, .BL h2,', {
			fontFamily: 'GothamLight',
			hover: true,
			hoverables: { li: true, a:true }
		});
		
		Cufon('.memberFeatures li h5, .box1 li h5, .box2 li h5,', {
			fontFamily: 'GothamBook',
			hover: true,
			hoverables: { li: true, a:true }
		});
		
		
		//$("a.video_demo").colorbox({transition:"none", opacity:0.4, title:'&nbsp;', iframe:true, innerWidth:980, innerHeight:560});
		$("a.video_demo").colorbox({transition:"none", opacity:0.4, title:'&nbsp;'});
		
		
	//FAQ
	$(".faq").each(function(){
		
		$(".faq_desc", this).each(function(){
			if ($(".faq_topborder", this).length < 1) {
				$("<div class='faq_topborder'></div>").appendTo(this);
			}
			if ($(".faq_bottomborder", this).length < 1) {
				$("<div class='faq_bottomborder'></div>").appendTo(this);
			}
		});
		$(".faq_title", this)
			.each(function(){
				$(this).append("<span></span>");
				if ( $(this).next().is(".faq_desc") ) {
					$(this).next().wrap("<div class='faq_wrapper'></div>");
					$(this).next().data("faq_wrapper_height", $(this).next().height());
					
					$(this).unbind().bind("click", function(){
						if ( $(this).is(".faq_title_active") ) {
							$(this).next().stop().animate({height:0}, { queue:false, duration: 800, easing: "easeOutExpo"});
						} else {
							$(this).next().stop().animate({height:$(this).next().data("faq_wrapper_height")}, { queue:false, duration: 800, easing: "easeOutExpo"});
							
							$(this).closest(".faq").find(".faq_title_active").each(function(){
								$(this).removeClass("faq_title_active").next().stop().animate({height:0}, { queue:false, duration: 800, easing: "easeOutExpo"});
							});
						}
						
						//$(this).next().toggle();
						$(this).toggleClass("faq_title_active");
					});
					
					$(this).next().css("height",0);
					
				} else {
					//
					$(this).addClass("faq_title_disabled");
				}
			})
			.not(".faq_title_disabled").filter(":eq(0)").addClass("faq_title_active").next().css("height", "");
		
		
	});
});
