$(document).ready(

	function(){
		if ($('a.infolink').length > 0) {
			$('a.infolink').mouseover(function(){
				$(this).animate({marginLeft:10}, 'fast');
			});
			$('a.infolink').mouseleave(function(){
				$(this).animate({marginLeft:0}, 'fast');
			});
		}
		
		if ($('.replicate').length > 0) {
			$('.replicate').slideDown();
			
			$('a#replicate-close').click(function(){
				$('.replicate').slideUp();
				
				return false;
			});
		}
		
		if ($('#paypal').length > 0) {
			$('#paypal').click(function(){
				var paypalForm = $('#paypal').parent().find('form');
				paypalForm.submit();
				
				return false;
			});
		}
		
		if ($('div.dl-vcard').length > 0) {
			$('a.dl-vcard-link').mouseover(function(){
				$(this).parent().find('div.dl-vcard').show();
				$(this).parent().find('div.dl-vcard').animate({marginTop:15});
			});
			$('a.dl-vcard-link').mouseleave(function(){
				$(this).parent().find('div.dl-vcard').animate({marginTop:-15}).animate({top:'hide'}, 1);
			});
		}
		
		if ($('div.website-view').length > 0) {
			$('a.website-link').mouseover(function(){
				$(this).parent().find('div.website-view').show();
				$(this).parent().find('div.website-view').animate({marginRight:15});
			});
			$('a.website-link').mouseleave(function(){
				$(this).parent().find('div.website-view').animate({marginRight:-15}).animate({top:'hide'}, 1);
			});
		}
		
		if ($('div.addr-view').length > 0) {
			$('a.addr-link').mouseover(function(){
				$(this).parent().find('div.addr-view').show();
				$(this).parent().find('div.addr-view').animate({marginLeft:15});
			});
			$('a.addr-link').mouseleave(function(){
				$(this).parent().find('div.addr-view').animate({marginLeft:-15}).animate({top:'hide'}, 1);
			});
		}
		
		if ($('div.download-view').length > 0) {
			$('a.download-link').mouseover(function(){
				$(this).parent().find('div.download-view').show();
				$(this).parent().find('div.download-view').animate({marginLeft:15});
			});
			$('a.download-link').mouseleave(function(){
				$(this).parent().find('div.download-view').animate({marginLeft:-15}).animate({top:'hide'}, 1);
			});
		}
	}
	
);