var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-11705526-1']);
_gaq.push(['_setDomainName', '.gotgisele.com']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

$(document).ready(function() { 

	$(".toooltipme[title]").tooltip({ 
		effect: 'slide'
	});
	
	$(".showmetooltip[title]").tooltip({ 
		effect: 'slide'
	}).dynamic( { 
		bottom: { 
			direction: 'down', 
			bounce: true 
		} 
	});
	
	$("#myform :input").tooltip({
		position: "center right",
		offset: [-2, 10],
		effect: "fade",
		opacity: 0.8
	});
	
	$("#inputs :input").tooltip({		
		position: "center right",
		offset: [-2, 10],
		effect: "fade",
		opacity: 1.0
	});
	
	$(".videotip[title]").tooltip({ 
		position: "bottom center",
		offset: [3, 0],
		effect: 'fade'
	});
});

flowplayer("player", "http://gg.ohcimg.com/cdn/swf/ohcplayer.commercial-3.2.7.swf",  { 
	key: '#@60b0de6db818e77d77f', 

	clip: { 
		url: 'mp4:vod/ggvod.trifectacreation/promo_2.mp4',
		autoPlay: false,
		autoBuffering: false,
		provider: 'rtmp',
		linkUrl: 'http://gotgisele.com/join/'
	},
	
	canvas: { 
		backgroundImage: 'url(http://gg.ohcimg.com/cdn/media/preview.jpg)' 
	},
	
	plugins: {
		rtmp: {
			url: 'ohcplayer.rtmp-3.2.1.swf',
			netConnectionUrl: 'rtmp://vod01.netdna.com/play'
		},
		controls: { 
			url: 'ohcplayer.controls-tube-3.2.0.swf' 
		}
	}
});

flowplayer("memberPlayer", "http://gg.ohcimg.com/cdn/swf/ohcplayer.commercial-3.2.7.swf",  { 
	key: '#@60b0de6db818e77d77f',
	
	clip: { 
		// these two configuration variables does the trick 
		autoPlay: false,
		scaling: 'fit'
	},

	canvas: {
		backgroundColor: '#000',
		backgroundGradient: 'none'
	},
	
	plugins: {
		rtmp: {
			url: 'ohcplayer.rtmp-3.2.1.swf',
			netConnectionUrl: 'rtmp://216.155.132.107/gotgiseletv/'
		},
		controls: { 
			url: 'ohcplayer.controls-tube-3.2.0.swf' 
		}  
	}
	
});
