function initMenu() {
$('#menulinks ul.productlist').hide();
$('#menulinks h2').click(
function() {
$(this).next().slideToggle('normal');
}
);
}
$(document).ready(function() {initMenu();
$.fn.fadeToggle = function(speed, easing, callback) {
return this.animate({opacity: 'toggle', height: 'toggle'}, speed, easing, callback);
};
$('#cartproducts').hide();
$('#carttop').click(function() {
$('#cartproducts').fadeToggle('slow');
return false;
});
});
$(document).ready(function() {
var pageName = $("body").attr("id");
//alert(pageName);
if(pageName=="contactpage") {

$("a#wolverhampton") .click(function() {
$('#contact-frame').load('contact_wolverhampton.php');
return false;
});
$("a#droitwich") .click(function() {
$('#contact-frame').load('contact_droitwich.php');
return false;
});

$("#contactform").validity(function() {
$("#name")                      // The first input:
        .require()                          // Required:
$("#email")                      // The first input:
        .require()                          // Required:
        .match("email");                    // In the format of an email address:
    $("#telephone")                           // The second input:
        .require();                          // Required:
        });
}
// end document ready
});
