﻿<!--//


function locationSearch(){
    var queryString = new String();
    queryString = window.location.search;
    queryString = queryString.substring(1);
    var arr1 = new Array();
    arr1 = queryString.split("&");
    var arr2 = new Array();
    for(var i = 0; i<arr1.length; i++){
        arr2[i] = arr1[i].toString().substring(arr1[i].toString().indexOf("=") + 1);
        arr1[i] = arr1[i].toString().substring(0,arr1[i].toString().indexOf("="));
    }
    return arr2;
} 

//Start JQuery
$(document).ready(function() {
//Contact Us Switches:
	$("#carousel").jCarouselLite({
		circular: false,
		visible: 2,
		scroll: 1,
		btnNext: ".more",
		btnPrev: ".less"
	});




  
	
	// if there is a hash on the url, filter the links by the hash prop
	var toshow = window.location.hash ? '[hash=' + window.location.hash + ']' : ':first';
	var containers = $('#news dl > dd');
	
	$('#news dl dt a.expand').click(function () {
		if ($(this).find('.ctrl').text() == "collapse"){
			$('#news dl dt a.expand').find('.ctrl').text("expand");
			containers.hide();
		} else {
			containers.hide().filter(this.hash).show();

			$('#news dl dt a.expand').find('.ctrl').text("expand");
			$(this).find('.ctrl').text("collapse");
		}
	}).filter(toshow).click();
	

//Erase the dotted line around links
	$('a').click( function() { this.blur(); });
	
//Add target to external links:
	$('a').click( function() {
		var target = $(this).attr("class");
		if (target == "external"){
			$(this).attr("target","_blank");
		}
	});
	
}); ///jquery

//-->
