var flick = {
	SetupFlicks : function() {
		$('a[rel="flick"]').each(function (i) {
			$(this).hover(function(){ flick.over(this) }, function(){ flick.out(this) });
		});
	},
	
	over : function(oFlick) {
		($(oFlick).children()).each(function (i) {
			if ($(this).attr('left') == undefined) { $(this).attr('left', flick.dePX($(this).css('left'))); }
			if ($(this).attr('top') == undefined) { $(this).attr('top', flick.dePX($(this).css('top'))); }
			var sLeft = parseInt($(this).attr('left')) - $(this).width() + 1;
			var sTop = parseInt($(this).attr('top')) - $(this).height() + 1;
			$(this).animate({
				left: sLeft,
				top: sTop
			}, 100)
		});
	},
	
	out : function(oFlick) {
		($(oFlick).children()).each(function (i) {
			$(this).animate({
				left: $(this).attr('left'),
				top: $(this).attr('top')
			}, 200)		
		});
	},
	
	dePX : function(sValue) {
		aiValue = sValue.split('px');
		return aiValue[0];
	}
}
