// JavaScript Document

var fb_width = 160;
var fb_height = 120;
function printFacebookLikeBtn(currentPage){
	document.write('<iframe src="http://www.facebook.com/plugins/like.php?href='+currentPage+'&amp;layout=standard&amp;show_faces=true&amp;width='+fb_width+'&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height='+fb_height+'" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:'+fb_width+'px; height:'+fb_height+'px; margin:auto; display:block" allowTransparency="true"></iframe>');
}

$(document).ready(function(){

	$('#servicesdropdownsubmit').hide();
	
	$("#professiontypes").change(function(){
			if($(this).val() != ""){
         		$('#professiontypesform').submit();
			}
     });


});


jQuery(window).load(function(){
    jQuery("#slider").nivoSlider({
        effect:"fade",
        animSpeed:500,
        pauseTime:3000,
        startSlide:0,
        directionNav:false,
        directionNavHide:true,
        controlNav:false,
        controlNavThumbs:false,
        controlNavThumbsFromRel:false,
        keyboardNav:true,
        pauseOnHover:true,
        manualAdvance:false
    });
});








