$(function(){
	$('#loginContainer > div').hide();
/*	  
	//Rounded corners IE and Opera;  
	if($.browser.msie){  
		if($.browser.version =="8.0"){
			$.getScript("http://everythingconference.org/js/jquery.corner.js", function(){
  				$('a.button').corner("round cc:#fdfdfd 10px");
  				$('a.loggedInLinks').corner("round cc:#70bcec 10px");
  				$('#topbar .navCatIcon, .scheduleContainer').corner("round cc:#eee 5px");
	  			$('#postTitleBar .postCatIcon').corner("round cc:#fdfdfd 15px");
  				$('#sidebar .postCatIcon').corner("round cc:#fdfdfd 15px");
			});
		}
  	}
*/	  
/*	$("a[href^=http]").each(function(){
       	if(this.href.indexOf(location.hostname) == -1) {
       		$(this).attr('target', '_blank');
      	}
    });  
*/	  
	$('.defaultValue').each(function() {
		var default_value = this.value;
		$(this).focus(function(){
			if(this.value == default_value) {
				this.value = '';
			}
		});
		
		$(this).blur(function(){
			if(this.value == '') {
		    	this.value = default_value;
			}
		});
	});
	
	$('#loginTab').click(function(){
		if($(this).hasClass('closed')){
			$('#loginContainer > div').slideDown(500);
			$(this).removeClass('closed');
		} else {
			$('#loginContainer > div').slideUp(500);
			$(this).addClass('closed');
		}
		return false;
	});
	
	$('.videoIcon').each(function(i) {  
    	var iconConta = parseInt($(this).parent().outerHeight());
    	var iconContb = (iconConta - 10);
    	var positionH = parseInt((iconContb/2)-12, 10);
    	$(this).css("top", positionH);
    });
    
    $('a.contributors').hover(function(){
		$(this).children('img').animate({'opacity' : 0.7});
	}, function(){
		$(this).children('img').animate({'opacity' : 1});
	});
});