// JavaScript Document

$(function(){
	 //$('#staffcarousel').jcarousel();
    $('#staffcarousel').jcarousel({
        start: 3
    });

	if($("#bodycontent")!=null){
	    $("#bodycontent").load('html/benefits.htm');
	}

	$("#jobs").change(function () {
	  var str = "";
	  var myfilter=new RegExp("-| ", "g");
	  $("select option:selected").each(function () {
			str += $(this).text() + " ";
			str=str.toLowerCase();
			str="html/"+str.replace(myfilter, "")+".htm";
			str = str.replace('(','');
		    str = str.replace(')','');
			//alert (str);
      });

	  $("#bodycontent").load(str);
    });    
/*    $('#eventwrapper ul').innerfade({
		animationtype: 'slide',
		speed: 750,
		timeout: 5000,
		type: 'random',
		containerheight: '178px'
	  });      
    $("#ccardForm").validate();*/
});
	
