 
jQuery.noConflict(); 


(function($, window, document, undefined){

$(function(){
	// IE6 PNG fix
	if (window['DD_belatedPNG'] !== undefined)
		DD_belatedPNG.fix('img');
	
	// accordion by Adriana Cortes
	$('.faqs div').hide();
	$('.faqs li a').click(function(){
		
		if($(this).next().is(":visible") == true) {
			$('.faqs li').removeClass('current');
			$(this).next().slideUp('fast');
		}
		else {
			$('.faqs li').removeClass('current');
			$('.faqs div').slideUp('fast');
			$(this).parent().addClass('current');
			$(this).next().slideDown('fast');
		}
	   return false;
	});
	
	// smooth scroll
	$('.top,blockquote a').click(function() {
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') 
        && location.hostname == this.hostname) {
            var $target = $(this.hash);
            $target = $target.length && $target || $('[id=' + this.hash.slice(1) +']');
            if ($target.length) {
                var targetOffset = $target.offset().top - 20;
                $('html,body').animate({scrollTop: targetOffset}, 800);
                return false;
            }
        }
    });
	
	// filter selects
	var lastRel;
    $(".sh").bind('mouseover', function(e) { 
		var rel = $(this).attr('rel');
		$('#'+rel).show(); });
    
		$(".sh").bind('mouseout', function(e) { 
        var rel = $(this).attr('rel'); $('#'+rel).hide();
    });
});

// plugins

})(jQuery, window, document);

