Cufon.replace('h1', {fontFamily: 'Verdana'});
Cufon.replace('.bluelarge', {fontFamily: 'Verdana'});
Cufon.replace('.bluemedium', {fontFamily: 'Verdana'});
Cufon.replace('.redlarge', {fontFamily: 'Verdana'});
Cufon.replace('.greenlarge', {fontFamily: 'Verdana'});
//Cufon.replace('.sf-vertical li a', {hover: true, fontFamily: 'Verdana'});

ParentMenu=""

$(document).ready(function() {
	$('#wrap').hide();
	$('#wrap').fadeIn(500)

	// Highlight parent menu
	if (ParentMenu != ""){
		$("#"+ParentMenu).addClass("active");
		Cufon.refresh();
	}	

	$("ul.sf-menu").supersubs({
		minWidth:    8,   // minimum width of sub-menus in em units
		maxWidth:    22,   // maximum width of sub-menus in em units
		extraWidth:  1     // extra width can ensure lines don't sometimes turn over
				   // due to slight rounding differences and font-family
	}).superfish();  // call supersubs first, then superfish, so that subs are
			 // not display:none when measuring. Call before initialising
			 // containing tabs for same reason.

	// Clickable DIVS
	$("div.clickable").click(function(){window.location = $(this).attr("url");});
	$("div.clickable_blank").click(function(){window.open($(this).attr("url"),"BPEX");});
	// HS Clickable DIVS
	$('div.hsclickable').click(function() {
		document.getElementById($(this).attr("hs")).onclick();
	});			 

});					 

//////////////////////////////////////////////////////////

function Validate(){
	validated=false;
	if (window.document.form1.name.value == ''){
		alert('Your name has not been entered\nPlease enter your name.');
		return false;}
	if (window.document.form1.email.value == ''){
		alert('Your email address has not been entered\nPlease enter your email address');
		return false;}

	if (window.document.form1.email.value.indexOf('@') == -1){
		alert('A valid email address has not been entered\nPlease enter a valid email address');
		return false;}

	if (window.document.form1.email.value.indexOf('.') == -1){
		alert('A valid email address has not been entered\nPlease enter a valid email address');
		return false;}

	if (validated){return true};

}

function ValidateMerchandise(){
	validated=false;
	if (window.document.form1.name.value == ''){
		alert('Your name has not been entered\nPlease enter your name.');
		return false;}
	if (window.document.form1.address.value == ''){
		alert('Your address has not been entered\nPlease enter your address');
		return false;}
	if (window.document.form1.postcode.value == ''){
		alert('Your postcode has not been entered\nPlease enter your postcode');
		return false;}
	if (window.document.form1.email.value == ''){
		alert('Your email address has not been entered\nPlease enter your email address');
		return false;}

	if (window.document.form1.email.value.indexOf('@') == -1){
		alert('A valid email address has not been entered\nPlease enter a valid email address');
		return false;}

	if (window.document.form1.email.value.indexOf('.') == -1){
		alert('A valid email address has not been entered\nPlease enter a valid email address');
		return false;}

	if (validated){return true};

}



