

var origin = {
  contactPanels: function () {
    var singlePanelVisibleOnly = true;
    $(".panels .panel .area").hide();
    
    $(".panels h2 a").click(function () {
      if (singlePanelVisibleOnly) {
        if (!$(this).parents(".panel").hasClass("on")) {
          $(".panels .panel.on .area").slideUp("fast").parent(".panel").removeClass("on");
        }
        $(this).parents(".panel").find(".area").slideDown("fast").parents(".panel").addClass("on");
      }
      else {
        if ($(this).parents(".panel").hasClass("on")) {
          $(this).parents(".panel").find(".area").slideUp("fast").parents(".panel").removeClass("on");
        }
        else {
          $(this).parents(".panel").find(".area").slideDown("fast").parents(".panel").addClass("on");
        }
      }
      return false;
    });
    if (location.hash.substring(1) == "all") {
      $(".panels .panel").addClass("on").find(".area").show();
    }
    else if (location.hash.substring(1).length && $(".panel" + location.hash).length) {
      $(".panel" + location.hash).addClass("on").find(".area").show();
    } else {
      $(".panel:first").addClass("on").find(".area").show();
    }
  },

  // Used by make_tips_dynamic() to position and toggle tip
  //
  toggleTip: function(tip_id, speed) 
  {
    tip_button = jQuery("#"+tip_id);
    tip_content = jQuery("#"+tip_id+"_tip");
  
    if( tip_button.hasClass("dd_tip_show") ) {
      tip_button.html("Show tip");
      tip_button.removeClass("dd_tip_show");
      tip_content.fadeOut(speed);
    } else {
      // Hide all other tips
      //
      jQuery(".dd_tip").html("Show tip");
      jQuery(".dd_tip").removeClass("dd_tip_show");
      jQuery(".dd_tip_content").fadeOut(speed);
      
      // Position tip content next to tip button
      //
      var button_position = tip_button.position();
      var tip_left = button_position.left + 40;
      var tip_top = button_position.top - tip_content.outerHeight();
      
      tip_content.css({'left': tip_left + 'px', 'top': tip_top + 'px'});
      
      // Show this
      //
      tip_button.html("Hide tip");
      tip_button.addClass("dd_tip_show");
      tip_content.fadeIn(speed);
    }
  },
  
  // Make .dd_tip / .dd_tip_content pair into button and popup tip
  //
  make_tips_dynamic: function(speed)
  {
    $(".dd_tip_content").hide();
    // Add a close button to each tip content and make each one position:absolute
    //
    $(".dd_tip_content").each(function(){
      $(this).addClass('dd_tip_content_dynamic');
      var close_button = $('<a/>')
        .attr('href', '#')
        .addClass('dd_tip_close_button')
        .append('close')
        .click(function(event){
          var tip_id = $(this).closest(".dd_tip_content").attr('id').replace(/_tip/, '');
          origin.toggleTip(tip_id, speed);
          event.preventDefault();
        });
      $(this).prepend(close_button);
    });
    
    $(".dd_tip_content").draggable();
  
    $(".dd_tip").each( function() {
      $(this).show().click(function(event){
        origin.toggleTip($(this).attr("id"), speed);
      });
    });
  }

};

// Stop calls to console.log from breaking IE
if (typeof console == "undefined") {var console = {};} if (typeof console.log == "undefined") {console.log = function(){};}


function setFieldDefaultText(elRef, defaultText) {
  $(elRef).focus(function() {
    if ($(this).val() == defaultText) $(this).val("");
  }).blur(function() {
    if ($(this).val().length == 0) $(this).val(defaultText);
  }).keyup(function() {
    if ($(this).val() == defaultText || $(this).val().length == 0)
      $(this).parent().find('input[type="button"], input.button, button').attr("disabled", true);
    else
      $(this).parent().find('input[type="button"], input.button, button').attr("disabled", false);
  });
}

$(document).ready(function() {
$(".oe_plugin_62 .search form input.text").val('Search');
$(".oe_plugin_62 .search input.button").hover(function () {
  $(this).toggleClass("hover");
});
setFieldDefaultText($(".oe_plugin_62 .search form input.text"), "Search");
});


$(document).ready(function() {

  var t = false;

  var current_url = window.location.href;

  var twitter_url = 'http://twitter.com/share';
  var twitter_text = 'Found this interesting Origin link';

  var facebook_url = 'http://www.facebook.com/sharer.php';

  $('#page-tools #print-page').click(function() {
    window.print();
    return false;
  });

  $('#page-tools #resize')
    .mouseover(function() {
      $(this).addClass('hover');
    })
    .mouseout(function() {
      $(this).removeClass('hover');
    });

  $('#page-tools #share-link').click(function(e) {
    clearTimeout(t);
    $('#share-services').toggle();
    e.preventDefault();
    return false;
  });

  $('#page-tools #share-services, #page-tools #share-services *')
    .mouseover(function() {
      clearTimeout(t);
      $('#share-services').show();
    });

  $('#page-tools #share')
    .mouseout(function() {
      t = setTimeout("$('#share-services').hide()", 350);
    });

  $('#share-twitter').attr('href', twitter_url + '?url=' + encodeURIComponent(current_url) + "&text=" + escape(twitter_text));

  $('#share-facebook').attr('href', facebook_url + '?u=' + encodeURIComponent(current_url));

});


var fr_original_size = 100;
var fr_minimum_size = fr_original_size * 0.8;
var fr_maximum_size = fr_original_size * 1.6;
var fr_cookieName = 'fr_current_size';
var fr_cookieAge = 30; // days


function fr_resize( element, delta ) {
	var current_size;
	
	if ( current_size = readCookie(fr_cookieName) ) { // normal operation, when cookie has been set
		current_size = parseInt(current_size);
	} else if( element.style.fontSize ) { // after reset - no cookie, but fontsize is set
		current_size = parseInt(element.style.fontSize.replace("%",""));
	} else { // initial click of resize button - no cookie or fontsize
		current_size = fr_original_size;
	}

	var new_size = current_size + delta;

	if( new_size > fr_maximum_size ) {
		new_size = fr_maximum_size;
	} 
	
	if (new_size < fr_minimum_size) {
		new_size = fr_minimum_size;
	} 
	
	fr_setsize(element, new_size);
	
	if( new_size != current_size ) {
		fr_setcookie( new_size );
	}
}

function fr_reset( element )
{
// 	alert('reset to ' + fr_original_size);
	fr_setsize(element, fr_original_size);
	eraseCookie(fr_cookieName);
}

function fr_setsize(element, size) {
// 	alert('set size of ' + element + ' to ' + size); 
	element.style.fontSize = size + "%";
}

function fr_setcookie( size )
{
// 	alert('set cookie to ' + size);
	createCookie(fr_cookieName, size, fr_cookieAge);
}


/************************** HANDY COOKIE FUNCTIONS *****************************/
/*************** FROM http://www.quirksmode.org/js/cookies.html ****************/

function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function eraseCookie(name) {
	createCookie(name,"",-1);
}


/*!
 * slideViewer 1.2
 * Examples and documentation at: 
 * http://www.gcmingati.net/wordpress/wp-content/lab/jquery/imagestrip/imageslide-plugin.html
 * 2007-2010 Gian Carlo Mingati
 * Version: 1.2.3 (9-JULY-2010)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 * 
 * Requires:
 * jQuery v1.4.1 or later, jquery.easing.1.2
 * 
 */

var __svw_j = 0;
jQuery.fn.slideView = function(settings) {
	settings = jQuery.extend({
		easeFunc: "easeInOutExpo",
		easeTime: 750,
		uiBefore: false,
		toolTip: false,
		ttOpacity: 0.9
	}, settings);
	return this.each(function(){
		var container = jQuery(this);
		container.find("img.ldrgif").remove();
		container.removeClass("svw").addClass("stripViewer");		
		var pictWidth = container.find("img").width();
		var pictHeight = container.find("img").height();
		var pictEls = container.find("li").size();
		var stripViewerWidth = pictWidth*pictEls;
		container.find("ul").css("width" , stripViewerWidth);
		container.css("width" , pictWidth);
		container.css("height" , pictHeight);
		container.each(function(i) {
    (!settings.uiBefore) ? jQuery(this).after("<div class='stripTransmitter' id='stripTransmitter" + (__svw_j) + "'><ul><\/ul><\/div>") : jQuery(this).before("<div class='stripTransmitter' id='stripTransmitter" + (__svw_j) + "'><ul><\/ul><\/div>");			
		jQuery(this).find("li").each(function(n) {
		jQuery("div#stripTransmitter" + __svw_j + " ul").append("<li><a title='" + jQuery(this).find("img").attr("alt") + "' href='#'>"+(n+1)+"<\/a><\/li>");												
		});
		jQuery("div#stripTransmitter" + __svw_j + " a").each(function(z) {
		jQuery(this).bind("click", function(){		
		jQuery(this).addClass("current").parent().parent().find("a").not(jQuery(this)).removeClass("current"); // wow!
		var cnt = -(pictWidth*z);
		container.find("ul").animate({ left: cnt}, settings.easeTime, settings.easeFunc);
		return false;
		});
		});
		
		
		container.bind("click", function(e){
			var ui = (!settings.uiBefore) ? jQuery(this).next().find("a.current") : jQuery(this).prev().find("a.current");
			var bTotal = parseFloat(jQuery(this).css('borderLeftWidth').replace("px", "")) +  parseFloat(jQuery(this).css('borderRightWidth').replace("px", ""));
			var dOs = jQuery(this).offset();
			var zeroLeft = (bTotal/2 + pictWidth) - (e.pageX - dOs.left);
			if(zeroLeft >= pictWidth/2) { 
				var uiprev = ui.parent().prev().find("a");	
				(jQuery(uiprev).length != 0)? uiprev.trigger("click") : ui.parent().parent().find("a:last").trigger("click");							
			} 
			else {
				var uinext = ui.parent().next().find("a");
			  (jQuery(uinext).length != 0)? uinext.trigger("click") : ui.parent().parent().find("a:first").trigger("click");
			}
		});
		
		
		jQuery("div#stripTransmitter" + __svw_j).css("width" , pictWidth);
		jQuery("div#stripTransmitter" + __svw_j + " a:first").addClass("current");
		jQuery('body').append('<div class="tooltip" style="display:none;"><\/div>');
		

		if(settings.toolTip){
		var aref = jQuery("div#stripTransmitter" + __svw_j + " a");

		aref.live('mousemove', function(e) {
		var att = jQuery(this).attr('title');
		posX=e.pageX+10;
		posY=e.pageY+10;
		jQuery('.tooltip').html(att).css({'position': 'absolute', 'top': posY+'px', 'left': posX+'px', 'display': 'block', 'opacity': settings.ttOpacity});
		});
		aref.live('mouseout', function() {
		jQuery('.tooltip').hide();
		});				
		}
		});
		__svw_j++;
	});	
};


/*
 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
 *
 * Uses the built in easing capabilities added In jQuery 1.1
 * to offer multiple easing options
 *
 * TERMS OF USE - jQuery Easing
 * 
 * Open source under the BSD License. 
 * 
 * Copyright © 2008 George McGinley Smith
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without modification, 
 * are permitted provided that the following conditions are met:
 * 
 * Redistributions of source code must retain the above copyright notice, this list of 
 * conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list 
 * of conditions and the following disclaimer in the documentation and/or other materials 
 * provided with the distribution.
 * 
 * Neither the name of the author nor the names of contributors may be used to endorse 
 * or promote products derived from this software without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
 * OF THE POSSIBILITY OF SUCH DAMAGE. 
 *
*/

// t: current time, b: begInnIng value, c: change In value, d: duration
jQuery.easing['jswing'] = jQuery.easing['swing'];

jQuery.extend( jQuery.easing,
{
	def: 'easeOutQuad',
	swing: function (x, t, b, c, d) {
		//alert(jQuery.easing.default);
		return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
	},
	easeInQuad: function (x, t, b, c, d) {
		return c*(t/=d)*t + b;
	},
	easeOutQuad: function (x, t, b, c, d) {
		return -c *(t/=d)*(t-2) + b;
	},
	easeInOutQuad: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t + b;
		return -c/2 * ((--t)*(t-2) - 1) + b;
	},
	easeInCubic: function (x, t, b, c, d) {
		return c*(t/=d)*t*t + b;
	},
	easeOutCubic: function (x, t, b, c, d) {
		return c*((t=t/d-1)*t*t + 1) + b;
	},
	easeInOutCubic: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t + b;
		return c/2*((t-=2)*t*t + 2) + b;
	},
	easeInQuart: function (x, t, b, c, d) {
		return c*(t/=d)*t*t*t + b;
	},
	easeOutQuart: function (x, t, b, c, d) {
		return -c * ((t=t/d-1)*t*t*t - 1) + b;
	},
	easeInOutQuart: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
		return -c/2 * ((t-=2)*t*t*t - 2) + b;
	},
	easeInQuint: function (x, t, b, c, d) {
		return c*(t/=d)*t*t*t*t + b;
	},
	easeOutQuint: function (x, t, b, c, d) {
		return c*((t=t/d-1)*t*t*t*t + 1) + b;
	},
	easeInOutQuint: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
		return c/2*((t-=2)*t*t*t*t + 2) + b;
	},
	easeInSine: function (x, t, b, c, d) {
		return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
	},
	easeOutSine: function (x, t, b, c, d) {
		return c * Math.sin(t/d * (Math.PI/2)) + b;
	},
	easeInOutSine: function (x, t, b, c, d) {
		return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
	},
	easeInExpo: function (x, t, b, c, d) {
		return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
	},
	easeOutExpo: function (x, t, b, c, d) {
		return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
	},
	easeInOutExpo: function (x, t, b, c, d) {
		if (t==0) return b;
		if (t==d) return b+c;
		if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
		return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
	},
	easeInCirc: function (x, t, b, c, d) {
		return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
	},
	easeOutCirc: function (x, t, b, c, d) {
		return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
	},
	easeInOutCirc: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
		return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
	},
	easeInElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
	},
	easeOutElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
	},
	easeInOutElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d/2)==2) return b+c;  if (!p) p=d*(.3*1.5);
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
		return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
	},
	easeInBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158;
		return c*(t/=d)*t*((s+1)*t - s) + b;
	},
	easeOutBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158;
		return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
	},
	easeInOutBack: function (x, t, b, c, d, s) {
		if (s == undefined) 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;
	},
	easeInBounce: function (x, t, b, c, d) {
		return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
	},
	easeOutBounce: function (x, t, b, c, d) {
		if ((t/=d) < (1/2.75)) {
			return c*(7.5625*t*t) + b;
		} else if (t < (2/2.75)) {
			return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
		} else if (t < (2.5/2.75)) {
			return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
		} else {
			return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
		}
	},
	easeInOutBounce: function (x, t, b, c, d) {
		if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
		return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
	}
});

/*
 *
 * TERMS OF USE - EASING EQUATIONS
 * 
 * Open source under the BSD License. 
 * 
 * Copyright © 2001 Robert Penner
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without modification, 
 * are permitted provided that the following conditions are met:
 * 
 * Redistributions of source code must retain the above copyright notice, this list of 
 * conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list 
 * of conditions and the following disclaimer in the documentation and/or other materials 
 * provided with the distribution.
 * 
 * Neither the name of the author nor the names of contributors may be used to endorse 
 * or promote products derived from this software without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
 * OF THE POSSIBILITY OF SUCH DAMAGE. 
 *
 */

// Hide while loading
//
$(document).ready(function(){
  $('.svw').addClass('svw_dyn').each(function(){
    var me = $(this);
  
    // Get settings from class of container
    //
    var svw_settings = {};
    svw_settings.toolTip = me.hasClass('svw_toolTip');
    svw_settings.uiBefore = me.hasClass('svw_uiBefore');
    
    // Parse className for svw_easeTime_*
    //
    var idx;
    if (-1 != (idx = this.className.indexOf('svw_easeTime_'))) {
      var easeTime = parseInt(this.className.match(/svw_easeTime_([0-9]+)/gi)[0].replace(/svw_easeTime_/gi,''));
      if (!isNaN(easeTime)) {
        svw_settings.easeTime = easeTime;
      }
    }
    
    me.prepend("<img src='/files/ajax_loader_indicator.gif' class='ldrgif' alt='loading...'/ >");
    
    // Make browser wait for first image to load before setting up slider. This is because 
    // webkit browsers don't set img.width/height until image is loaded resulting in 
    // slider thinking images are 0px x 0px and creating a zero-size slider.
    //
    me.find('img').not('.ldrgif').first().each(function(){
      $(this).bind('load readystatechange', function(){
  			me.slideView(svw_settings).removeClass('svw_dyn');
  	  });
      var src = this.src;
      this.src = '#';
      this.src = src;   	  
    });	  
  });
});


faq_toggle = function(ev) {
  var ev_target = $(ev.target);
  var ga_category = '';

	if( ev_target.hasClass("active") ) {
		ev_target.removeClass("active").next().slideUp("fast");
    ga_category = 'FAQ close';
	} else {
		ev_target.addClass("active").next().slideDown("fast");
    ga_category = 'FAQ open';
	}

  if (typeof _gaq != 'undefined') {
    _gaq.push(['_trackEvent', ga_category, location.href, ev_target.text()]);
  }
};

//FAQ collapsible accordion - each accordion opens independantly
jQuery(document).ready(function($) {
	$(".faq_collapse_content").hide();
	$(".faq_collapse_content_open").show();
	$('.faq_collapse_content_open').prev('h3').addClass('active')
	$(".faq_collapse h3").addClass('faq_dynamic').click(function(ev) {
    faq_toggle(ev);
  });
	
  if (location.hash.substring(1).length && $("h3" + location.hash).length) {
		var faqItem = $("h3" + location.hash);
		faqItem.addClass("active").next().show();
	}	
	
});

