  $(document).ready(function(){
    
	$('#feature').bxSlider({
		mode: 'fade',
		pager: 'true',
		auto: 'true',
		pause: 4500, 
		controls: false
	});

	$('#news').bxSlider({
		mode: 'fade',
		auto: 'true',
	    controls: false,
		pause: 4500, 
		randomStart: 'true'
	});
	
	if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) {
	    $(".nav li").click(function(){
	        //we just need to attach a click event listener to provoke iPhone/iPod/iPad's hover event
	        //strange
	    });
	}
	
	$(".hover").qtip({
		content: 'Dbvisit Standby is the world\'s #1 alternative to Data Guard for Oracle Standard Edition and Standard Edition One databases',
		position: {
			corner: {
		    	target: 'topRight',
		        tooltip: 'bottomLeft'
		    }
		},   
		style: { 
			width: 200,
			padding: 1,
			tip: 'bottomLeft',
			background: '#009FC3',
			color: 'white',
			textAlign: 'left',
			border: {
				width: 7,
				radius: 5,
				color: '#009FC3'
			}
		}
	});
});
