function detectChrome(){
	//alert(navigator.userAgent.toLowerCase());
	/*
	if(navigator.userAgent.toLowerCase().indexOf('safari') > -1){
		$('#video').animate({'position':'absolute', 'top':'185px', 'left':'30px'}, 300);	
		$('#update').animate({'position':'absolute', 'left':'910', 'top':'105px'}, 300);
		$('#nav').animate({'left':'736px', 'cursor':'hand'});
		$('#nav-bottom').animate({'left':'1032px'});
	}
	*/
}

function showHref(href, w, h, s){
	
	window.myLytebox.start({
		getAttribute: function(a){
			switch (a) {
				case 'rel':
					return 'lyteframe';
				case 'href':
					return href;
				case 'rev':
					return 'width: '+w+'px; height: '+h+'px; scrolling: '+s+';';
			};
		}
	}, false, true);
}

function showLb(href){
	
	window.myLytebox.start({
		getAttribute: function(a){
			switch (a) {
				case 'rel':
					return 'lyteframe';
				case 'href':
					return href;
				case 'rev':
					return 'width: 500px; height: 400px; scrolling: \'yes\';';
			};
		}
	}, false, true);

}

function playMusic(){
	var player = document.getElementById('player');
	player.sendEvent("PLAY","true");
}

$(document).ready(function(){
	
	$('#videotoggle').click(function(){
			$('#video').animate({'height':'320px', 'width':'420px'}, 300);
			$('#vid').animate({'height':'320px'}, 300);
			$(this).animate({'height':'0px'});
	});
	
	$('#music').click(function(){
		playMusic();			
	});	
	
	detectChrome();

});