<!--


var visible = null;



function show_block (id){

	$(visible).slideUp();
	visible = $("#"+id+"_div");
	$(visible).slideDown();
	return;
}


function validate() {

    var status;

  
    if ( document.email_form.subject[document.email_form.subject.selectedIndex].value == null ) {

	    alert("Sorry, This is the standard template.\nActivate your own FormHandler please.");

	    status = false;

	    }

	    else if ( document.email_form.body.value.length == 0 ) {

		    if ( confirm("You haven't typed anything yet. Do you want to send anyway?")) {

			    status = true;

		    }

		    else {

			status = false;

		    }

	    }else
 status = true;

 

   checkEmail = document.email_form.email.value


    if
	((checkEmail != '') && (checkEmail.indexOf('@') < 0) ||
	((checkEmail.charAt(checkEmail.length-4) != '.') && 

	(checkEmail.charAt(checkEmail.length-3) != '.'))) {

	    alert("You have entered an invalid email address. Please try again.");

	    document.email_form.email.select();

	    return false;

    }


    if ( status ) {
            $("#messageGo").hide();
	    document.email_form.submit();
    }
    return;

}



$(document).ready(function(){


	$("div.art-article").not("#nav_home_div").hide();
	visible = $("#nav_home_div");

	$(".js-menu a").each(function(){
	  id=$(this).attr("id");
	  $(this).attr("href","javascript:show_block('"+id+"')");
	});

        $("a.contactUs").each(function(){
           $(this).attr("href","javascript:show_block('nav_contact')");
        });

	$("#messageGo").click(function(){validate();});

	$("#messageClear").click(function(){document.email_form.reset();});



	$('a.jTip').cluetip({
		cluetipClass: 'rounded',
		local:true,
		arrows: true,
		width:650, 		showTitle:true,
		cursor: 'pointer',
		dropShadow: false
	});


	$('a.jTip350').cluetip({
		cluetipClass: 'rounded',
		local:true,
		arrows: true,
		width:350,
		showTitle:true,
		cursor:'pointer',
		dropShadow: false
	});

});



-->

