/**
 *
 * @access public
 * @return void
 **/
function submitForm(){
	var selects = $('select[class=qty]');
	var sErrMessage;
	var bQty = false;
	selects.each(function(i){
		if($(this).val()!=''){
			bQty=true;
		}
	});

	if (bQty==false) {
		if (selects.length>1) {
			alert("Please select quantity for at least one colour")
		}
		else
		{
			alert("Please select quantity")
		}

		return false;
	}
	$('#savebasket').attr("value","1");
	return true;
}

jQuery(document).ready(function() {
var zoomOptions = {
		zoomType: 'reverse',
	    zoomWidth: 460,
	    zoomHeight: 340,
            xOffset: 20,
            yOffset: 0,
            lens: true,
            position: "right"
	};

	 // check for not supported browsers (Safari on Mac)
	if (!(navigator.userAgent.toLowerCase().indexOf("safari") > -1 && navigator.userAgent.toLowerCase().indexOf("mac os") > -1)) {
		jQuery("a.zoomMe").jqzoom(zoomOptions);

		// wierd behaviour of Safari/Chrome - needs to change the img source first to make it work :-@
		var sTemp = jQuery("#media a.zoomMe img").attr("src");
		jQuery("#media a.zoomMe img").attr({"src": "blank.jpg"});
		jQuery("#media a.zoomMe img").attr({"src": sTemp});

		jQuery("a.zoomMe").mouseover(function()
		{
			jQuery("#enlarge").hide();
			jQuery("#gallery").hide();
			jQuery("#curveBox").hide();
		});
	    jQuery("a.zoomMe").mouseout(function()
	    {
	    	jQuery("#enlarge").show();
			jQuery("#gallery").show();
			jQuery("#curveBox").show();

	    });

	} else {
		jQuery("a.zoomMe").attr({'target':'_blank'});
	}

	// END jQZoom plugin call
// -----------------------------------------------------------------
});
