  $(document).ready(function(){
	// Questions hide/show animation.
    $("div.faqs dl.item dd").hide();
	$("div.faqs dl.item dt span").hide();
    $("div.faqs dl.item dt").click(function () {
      if ($(this).parent().find("dd").is(":hidden")) {
	  	//console.log($(this).parent().parent().find("dd"));
        $(this).parent().find("dd").slideDown("fast");
		$(this).parent().find("span").slideDown("fast");
		return false;
      } else {
        $(this).parent().find("dd").slideUp("fast");
		$(this).parent().find("span").slideUp("fast");
		return false;
      }
    });
	// Style new question items differently.
	$("div.questions dl:contains('NEW')").addClass("new");
	
	// Make parent news div clickable for increased usability based on child's link (only if link has a value).
	$("div.pressReleaseItem").click(function(){openDeepLink(this);});
	$("div.seminarItem div.description").click(function(){openDeepLink(this);});
	$("div.logoItem").click(function(){openDeepLink(this);});
	$("div.blueLineCon320").click(function(){openDeepLink(this);});
	$(".smartModules td").click(function(){openDeepLink(this);});
	$("div.shopItem div.description").click(function(){openDeepLink(this);});	
	$("div.news div.item").click(function(){openDeepLink(this);});	
	$("div.xmascard").click(function(){openDeepLink(this);});	
	
	
	
	//Open a link passed in in parent browser window.
	function openDeepLink(element, linkValue){
		var linkValue = $(element).find("a").attr("href");
		if(linkValue){
			window.open(linkValue, '_parent');	
		}
	}
	
  });