function clickclear(thisfield, defaulttext) {
	if (thisfield.value == defaulttext) {thisfield.value = "";}
}

function clickrecall(thisfield, defaulttext) {
	if (thisfield.value == "") {thisfield.value = defaulttext;}
}


$(function() {
	$("#scrollable").scrollable({items:'.items', horizontal:true});
});



$(document).ready(function() {
	$(".service").each(function(i){
		$('.c'+i).click(function() {
			$('#service_'+i).fadeOut("slow");
		});
	});
});

$(document).ready(function() {
	$(".service-info").each(function(i){
		$('.s'+i).click(function() {
			$(".service-info").each(function(k){
				if(i !== k) {$('#service_'+k).fadeOut("fast");}
			});
			$('#service_'+i).fadeIn("slow");
		});
	});
});

$(document).ready(function() {
	$(".service-info").each(function(i){
		$('.next').click(function() {
			$(".service-info").each(function(k){
				if(i !== k) {$('#service_'+k).fadeOut("fast");}
			});
		});
	});
});

$(document).ready(function() {
	$(".service-info").each(function(i){
		$('.prev').click(function() {
			$(".service-info").each(function(k){
				if(i !== k) {$('#service_'+k).fadeOut("fast");}
			});
		});
	});
});

$(document).ready(function(){
	$('a[href*=#]').click(function() {
    	if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
			var $target = $(this.hash);
            $target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
            if ($target.length) {
           		var targetOffset = $target.offset().top;
                $('html,body').animate({scrollTop: targetOffset}, 300);
                return false;
            }
  		}
	});
});

$(document).ready(function() {
	$(".service-info").each(function(i){
		$('#banner').mouseover(function() {
			$(".service-info").each(function(k){
				if(i !== k) {$('#service_'+k).fadeOut("slow");}
			});
		});
	});
});

$(document).ready(function() {
	$(".service-info").each(function(i){
		$('.s'+i).mouseover(function() {
			$(".service-info").each(function(k){
				if(i !== k) {$('#service_'+k).fadeOut("slow");}
			});
		});
	});
});

																	  


