$(document).ready(function(){
	var browser = navigator.userAgent.toLowerCase();
	var mobile = false;
	if(browser.search('iphone') > -1 || browser.search('ipod') > -1 || browser.search('ipad') > -1 || browser.search('android') > -1)
		mobile = true;
						   
	if(!mobile)
	{
		//$('.colorbox').each(function(i){
			//$(this).attr('class','colorbox-video');
			//$(this).attr('href','http://www.youtube.com/embed/' + $(this).attr('url') + '?rel=0&autoplay=1');
		//})
		
		
		$('.has-tooltip *[title],.has-tooltip[title]').tipTip({maxWidth: 'auto', defaultPosition: 'bottom'	});
		
		$('.prettyPhoto').prettyPhoto({ theme: 'dark_rounded', social_tools: '' });
		
		$('.prettyVideo').prettyPhoto({
			theme: 'light_rounded',
			social_tools: '',
			allow_resize: true,
			default_width: 600,
			default_height: 375,
			callback: function(){
				window.history.back();
			}
		});
		
	}
	
	$(".sort-me").tablesorter();
});
