$(document).ready(function() {
	$('#fadeshow1').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		pager:  '#nav',
		pagerAnchorBuilder: function(idx, slide) {
            // return sel string for existing anchor
            return '#nav li:eq(' + (idx) + ') a';
        }
	});
	$("#input_when_side").datepicker({ dateFormat: 'dd/mm/yy', constrainInput: true, minDate: 11, maxDate : 330});				
	$( "#rightVal" ).datepicker({constrainInput: true, minDate: 11, maxDate : 330,
		altField: "#input_when_side",
		altFormat: "dd/mm/yy"
	});
	$("#advanced_input_when_txt").datepicker({ dateFormat: 'dd/mm/yy', constrainInput: true, minDate: 11, maxDate : 330});				
	$( "#mainVal" ).datepicker({constrainInput: true, minDate: 11, maxDate : 330,
		altField: "#advanced_input_when_txt",
		altFormat: "dd/mm/yy"
	});
});

function DisplayOverlay() {
	isIE6 = navigator.userAgent.toLowerCase().indexOf('msie 6') != -1;
	if (isIE6) {
		document.getElementById('right').style.display = 'none';
	}
	oc_popup.MakeVisible();
}

function HideOverlay() {
	isIE6 = navigator.userAgent.toLowerCase().indexOf('msie 6') != -1;
	if (isIE6) {
		document.getElementById('right').style.display = 'none';
	}
	oc_popup.MakeInvisible();
}	
