var $j = jQuery.noConflict();

$j().ready(function(){
	$j('.printPage').click(function(){
		window.print();
		return false;
	});
	$j('a.change-image').click(function(){
		var url = '/admin/choose-image.php?' + $j(this).attr('href');
		var newwindow=window.open(url,'name','scrollbars=yes,resizable=yes,height=500,width=500');
		if (window.focus){
			newwindow.focus();
		}
		return false;
	});
	$j('a.delete-speaker').click(function(){
		return confirm("Delete This Speaker?");
	});
	$j('a.remove-image').click(function(){
		var image = $j(this).attr('title');
		$j('img.'+image).each(function(){
			$j(this).attr('src', '');
		});
		$j('input.'+image).each(function(){
			$j(this).attr('value', '');
		});
		$j('span.'+image).each(function(){
			$j(this).html('');
		});
		return false;
	});
	$j('a.popup').click(function(){
	var url = $j(this).attr('href');
	window.open(url, '', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,resizable=1,width=800,height=600');
		return false;
	});
	$j('a.videoPopup').click(function(){
	var url = $j(this).attr('href');
	window.open(url, '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=688,height=492');
		return false;
	});
	$j('a.popupScroll').click(function(){
	var url = $j(this).attr('href');
	window.open(url, '', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width=1025,height=600');
		return false;
	});
	
	$j("#adminTable tr:gt(0)").hover(
     function () {
       $j(this).addClass('current')
     }, 
     function () {
       $j(this).removeClass('current')
     }
   );

});
