﻿function InitialiseSliderWidget()
{
	$('.slidingtrigger:first').addClass('active').next().show(); //Add "active" class to first trigger, then show/open the immediate next container
	$('.slidingtrigger').click(function(){	//On Click
		if( $(this).next().is(':hidden') ) { //If immediate next container is closed...
			$('.slidingtrigger').removeClass('active').next().slideUp(); //Remove all .trigger classes and slide up the immediate next container
			$(this).toggleClass('active').next().slideDown(); //Add .trigger class to clicked trigger and slide down the immediate next container
		}
		return false; //Prevent the browser jump to the link anchor
	});
}

/**
Vertigo Tip by www.vertigo-project.com
Requires jQuery
*/
this.vtip=function(){this.xOffset=-10;this.yOffset=10;$(".vtip").unbind().hover(function(a){this.t=this.title;this.title="";this.top=(a.pageY+yOffset);this.left=(a.pageX+xOffset);$("body").append('<p id="vtip"><img id="vtipArrow" />'+this.t+"</p>");$("p#vtip #vtipArrow").attr("src","/Style%20Library/HIGC/images/pagecontent/vtip_arrow.png");$("p#vtip").css("top",this.top+"px").css("left",this.left+"px").fadeIn("slow")},function(){this.title=this.t;$("p#vtip").fadeOut("slow").remove()}).mousemove(function(a){this.top=(a.pageY+yOffset);this.left=(a.pageX+xOffset);$("p#vtip").css("top",this.top+"px").css("left",this.left+"px")})};jQuery(document).ready(function(a){vtip()});
