var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-10531346-1']);
_gaq.push(['_setDomainName', '.camwithcarmen.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({ 
		offset: [4, 1],
		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({		
		offset: [4, 1],
		effect: 'fade'
	}).dynamic( { 
		bottom: { 
			direction: 'down', 
		} 
	});
	
	$(".videotip[title]").tooltip({ 
		position: "bottom center",
		offset: [3, 0],
		effect: 'fade'
	}); 
});

flowplayer("player", "http://cdn.camwithcarmen.com/swf/ohcplayer.commercial-3.2.1.swf",  { 
	key: '#@389fc2d70a1c0999910', 
	
	clip: { 
		url: 'mp4:vod/cwcvod.trifectacreation/CarmenPromoFinal.mp4',
		autoPlay: false,
		autoBuffering: false,
		provider: 'rtmp',
		linkUrl: 'http://camwithcarmen.com/join/'
	},
	
	canvas: { 
		backgroundImage: 'url(http://cdn.camwithcarmen.com/media/preview.jpg)' 
	},

	plugins: {
		rtmp: {
			url: 'ohcplayer.rtmp-3.2.1.swf',
			netConnectionUrl: 'rtmp://vod01.netdna.com/play'
		},
		controls: { 
			url: 'ohcplayer.controls.swf' 
		}  
	}
	
});
