$(document).ready(function(){

	//No Spam
	$('.email').nospam({filterLevel:'low'})

	//Datetimepicker
	if($('.datetime').length != 0){
		$('.datetime').datepicker({
			dateFormat: 'yy-mm-dd',
			duration: '',
			showTime: true,
			constrainInput: false,
			stepMinutes: 1,
			stepHours: 1,
			altTimeField: '',
			time24h: true
		})
	}
	
	//Datepicker
	//if($(':date') && $(':date').length != 0){
	if($('.dateinput').length != 0){
	//if($(':date')){
		$(":date").dateinput({
			format: 'dd/mm/yyyy'	// the format displayed for the user
		})
	}
	if($('.scroll-pane').length != 0){
		$('.scroll-pane').jScrollPane();
	}
	
	if($("a[rel]").length != 0){
		$("a[rel]").overlay({
			expose: {
				color: '#000',
				loadSpeed: 200,
				opacity: 0.7,
			},
			fixed: false
		})
	};
	
	if($("a.tip").length != 0){
		$("a.tip").tooltip({
			effect: 'slide'
		})
	};
	
});
