/* 
 * NimbleHost Pulse VIP
 * Copyright 2010. All rights reserved.
 *
 */

function nimblehostPulseVIP() {
	$flexture('#visitorInteractionPanel').pulse({
		opacity: [0,1]
	}, {
		duration: 2000,
		times: 1000
	});
		
	var pulsePanelConfig = {
		sensitivity: 3, // number = sensitivity threshold (must be 1 or higher)    
		interval: 50, // number = milliseconds for onMouseOver polling interval    
		over: pulseRevealPanel, // function = onMouseOver callback (REQUIRED)    
		timeout: 400, // number = milliseconds delay before onMouseOut    
		out: pulseHidePanel
		};
	
	function pulseRevealPanel(){
		$flexture('#visitorInteractionPanel').stop().fadeTo('fast', 1);
		$flexture('#visitorInteractionPanel ul').slideDown('normal');
	}
	
	function pulseHidePanel(){
		$flexture('#visitorInteractionPanel ul').slideUp('normal');
		$flexture('#visitorInteractionPanel').pulse({
			opacity: [0,1]
		}, {
			duration: 2000,
			times: 1000
		});
	}
	if( !(navigator.userAgent.match(/iPad/i)) && (typeof nimblehostSolidVIP != 'function') ) {
		$flexture('#visitorInteractionPanel').hoverIntent(pulsePanelConfig);
	}
}

$flexture(document).ready(function() {
	if( !((navigator.userAgent.match(/iPhone/i))||(navigator.userAgent.match(/iPod/i))||(navigator.userAgent.match(/Android/))||(navigator.userAgent.match(/webOS/))) ) {
		visitorInteractionPanel();
		nimblehostPulseVIP();
	}
});
