
$(document).ready(function() { 
	$('.box-link').hover(function() {
		$(this).addClass('boxHover');
		$(this).find('.boxHover-enchancement').css({
				'display':'block',
				'height': $(this).height(),
				'width': $(this).width() //-1
				});
		}, function() {
		$(this).removeClass('boxHover');
		$(this).find('.boxHover-enchancement').css('display','none');
	});
	
	$('.box-link').click(function(e) {
		if (e.target.nodeName.toLowerCase() == 'a') {
			return true;
		}
		var link = $('a', $(this)).attr('href');
		
		if( $(this).find('a').hasClass('outer-link') ) {			
			window.open(link);
		}
		else {
			document.location = link;
		}
		});
		
	$('#extraFooter-1 a').toggle(function() {
	//var padd = 20 + $('#hide').height();
	$('#hide').css('display','block').animate({width: '+=508', top : '-189' /* + padd */ }, 500);
	},
	function() {
		$('#hide').css({'display':'none', 'top':'0', 'width':'233px'});
	});
	
	$("#hide").click(function() {
		$(this).css({'display':'none', 'top':'0', 'width':'233px'});
	});
	
	
	$('.extraPlatform').hover(function() {
		$(this).find('span:first-child').addClass('active');
		},	function() {
		$(this).find('span:first-child').removeClass('active');
	});
	
	$("#view-main-image").mouseover(function() {
		$('#original-image').show(500);
	});
	$("#original-image").mouseout(function () {
		$('#original-image').hide(200);
	});

	
	$('a[rel="external"]').click( function() {
        window.open( $(this).attr('href') );
        return false;
    });
});

