$(document).ready(function(){
	toggle = false;
	$('.dj_list tr').css('cursor','pointer').each(function(){
	
		if(toggle){
			$(this).css('background-color','#63B0EF');
			toggle=false;
		}else{
			$(this).css('background-color','#52A5EC');
			toggle=true;
		}
	}).click(function(){
		var emailLink;
		var foundEmail=false;
		var foundLink=false;
		$(this).find('a').each(function(){
			if(this.href.indexOf("http://") != -1){
				foundLink=true;				
				window.open(this.href);
			}else if(this.href.indexOf("mailto:") != -1){
				emailLink = this.href;
				foundEmail=true;
			}
		});
		if(foundEmail && !foundLink){
			window.location = emailLink;
		}
	}).mouseover(function(){
		$(this).children().each(function(){
			$(this).stop(true).animate({color:'blue'},300);
			$(this).find('a').each(function(){
				//$(this).css('color','blue');
				$(this).stop(true).animate({color:'blue'},300);
			});
		});
	}).mouseout(function(){
		$(this).children().each(function(){
			$(this).animate({color:'#fff'},300);
			$(this).find('a').each(function(){
				$(this).animate({color:'#fff'},300);
			});
		});		
	});
	$('.dj_img img').mouseover(function(){
		$(this).stop(true).animate({top:'-10px'},400);
	}).mouseout(function(){
		$(this).stop(true).animate({top:'0px'},400);
	});
});
