// JavaScript Document// Function for expanding & collapsing DIV tags that are appropriately taggedfunction toggleDiv(divid) {	if(document.getElementById(divid).style.display == 'none') {		document.getElementById(divid).style.display = 'block';		} else {			document.getElementById(divid).style.display = 'none';			}}function nextClient(currentDiv,nextDiv) {	document.getElementById(currentDiv).style.display = 'none';	document.getElementById(nextDiv).style.display = 'block';}function MM_preloadImages() { //v3.0  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}function MM_openBrWindow(theURL,winName,features) { //v2.0  window.open(theURL,winName,features);}// This function is required for the CSS drop-down menu support in IE.sfHover = function() {	var sfEls = document.getElementById("nav").getElementsByTagName("LI");	for (var i=0; i<sfEls.length; i++) {		sfEls[i].onmouseover=function() {			this.className+=" sfhover";		}		sfEls[i].onmouseout=function() {			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");		}	}}if (window.attachEvent) window.attachEvent("onload", sfHover);/* Derived from a script by Alejandro Gervasio. Modified to work in FireFox by Stefan Mischook for Killersites.comHow it works: just apply the CSS class of 'match_y' to your pages' main columns.*/matchColumns=function(){      var divs,contDivs,maxHeight,divHeight,d; 	     // get all <div> elements in the document     divs=document.getElementsByTagName('div');     contDivs=[];      // initialize maximum height value     maxHeight=0;      // iterate over all <div> elements in the document     for(var i=0;i<divs.length;i++){           // make collection with <div> elements with class attribute 'match_y'           if(/\bmatch_y\b/.test(divs[i].className)){                 d=divs[i];                 contDivs[contDivs.length]=d;                 // determine height for <div> element                 if(d.offsetHeight){                      divHeight=d.offsetHeight; 					                }                 else if(d.style.pixelHeight){                      divHeight=d.style.pixelHeight;                }                 // calculate maximum height                 maxHeight=Math.max(maxHeight,divHeight);           }      }      // assign maximum height value to all of container <div> elements      for(var i=0;i<contDivs.length;i++){           contDivs[i].style.height=maxHeight + "px";      } } // Runs the script when page loads window.onload=function(){      if(document.getElementsByTagName){           matchColumns();     } }/*******	***	Anchor Slider by Cedric Dugas   ***	*** Http://www.position-absolute.com ***		Never have an anchor jumping your content, slide it.	Don't forget to put an id to your anchor !	You can use and modify this script for any project you want, but please leave this comment as credit.	*****/		$(document).ready(function() {	$("a.anchorLink").anchorAnimate()});jQuery.fn.anchorAnimate = function(settings) { 	settings = jQuery.extend({		speed : 1000	}, settings);			return this.each(function(){		var caller = this		$(caller).click(function (event) {				event.preventDefault()			var locationHref = window.location.href			var elementClick = $(caller).attr("href")						var destination = $(elementClick).offset().top;			$("html:not(:animated),body:not(:animated)").animate({ scrollTop: destination}, settings.speed, function() {				window.location.hash = elementClick			});		  	return false;		})	})}