$(document).ready(function() {
	$("#myController").jFlow( {
		slides : "#mySlides",
		controller : ".jFlowControl", // must be class, use . sign
		slideWrapper : "#jFlowSlide", // must be id, use # sign
		selectedWrapper : "jFlowSelected", // just pure text, no sign
		// easing: "easeOutBounce",
		width : "100%",
		height : "333px",
		duration : 400,
		prev : ".jFlowPrev", // must be class, use . sign
		next : ".jFlowNext" // must be class, use . sign
	});

	$("a[rel^='prettyPhoto']").prettyPhoto();
	
	ddsmoothmenu.init({
		mainmenuid: "smoothmenu1", //menu DIV id
		orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
		classname: 'ddsmoothmenu', //class added to menu's outer DIV
		//customtheme: ["#1c5a80", "#18374a"],
		contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
	});
});


/***********************************************************************************
 *  Method: CheckNumericInput
 *  Description: Permits only numeric input
 *  Arguments: 
 *  Return: 
 *  Version: 1.1
 *  Date: 05.07.2008
 *  Author: Kovacs Andrei (k_andrei@yahoo.com)
 ************************************************************************************/		
function checkNumericInput(evt)
{
	var charCode = (evt.which) ? evt.which : event.keyCode
	if((charCode == 16) || (charCode == 35) || (charCode == 36) || (charCode == 37) || (charCode == 39) || (charCode==46))
		return true;
	if(charCode >= 96 && charCode <= 105) return true;
	if (charCode > 31 && (charCode < 48 || charCode > 57))
		return false;

	return true;
}

/***********************************************************************************
 *  Method: CheckNumericInput
 *  Description: Permits only numeric input + one digit
 *  Arguments: 
 *  Return: 
 *  Version: 1.0
 *  Date: 05.07.2008
 *  Author: Kovacs Andrei (k_andrei@yahoo.com)
 ************************************************************************************/		
function checkNumericInputWithDigit(evt, val)
{
	var charCode = (evt.which) ? evt.which : event.keyCode;
	if( (val.indexOf(",")>=0 || val.indexOf(".") >=0) && (charCode == 110 || charCode == 188 || charCode == 190 )) return false;
	if(val.indexOf(".") == -1)
	{
		if (charCode == 190) return true;
	}
	if((charCode == 16) || (charCode == 35) || (charCode == 36) || (charCode == 37) || (charCode == 39) || (charCode==46))
		return true;
	if(charCode >= 96 && charCode <= 105) return true;
	if(charCode == 110) return true;
	if(charCode == 188) return true;
	if (charCode > 31 && (charCode < 48 || charCode > 57))
		return false;

	return true;
}
