﻿$(document).ready(function(){var f="easeOutBounce",d="jswing",e=1e3,c=300,b=Math.round($(".item").width()/2)*-1,a=b*-1,g=a*2;$(".item").each(function(){url=$(this).find("a").attr("href");img=$(this).find("img").attr("src");alt=$(this).find("img").attr("img");$("img",this).remove();$(this).append('<div class="topLeft"></div><div class="topRight"></div><div class="bottomLeft"></div><div class="bottomRight"></div>');$(this).children("div").css("background-image","url("+img+")");$(this).find("div.topLeft").css({top:0,left:0,width:a,height:a});$(this).find("div.topRight").css({top:0,left:a,width:a,height:a});$(this).find("div.bottomLeft").css({bottom:0,left:0,width:a,height:a});$(this).find("div.bottomRight").css({bottom:0,left:a,width:a,height:a})}).hover(function(){$(this).find("div.topLeft").stop(false,true).animate({top:b,left:b},{duration:c,easing:d});$(this).find("div.topRight").stop(false,true).animate({top:b,left:g},{duration:c,easing:d});$(this).find("div.bottomLeft").stop(false,true).animate({bottom:b,left:b},{duration:c,easing:d});$(this).find("div.bottomRight").stop(false,true).animate({bottom:b,left:g},{duration:c,easing:d})},function(){$(this).find("div.topLeft").stop(false,true).animate({top:0,left:0},{duration:e,easing:f});$(this).find("div.topRight").stop(false,true).animate({top:0,left:a},{duration:e,easing:f});$(this).find("div.bottomLeft").stop(false,true).animate({bottom:0,left:0},{duration:e,easing:f});$(this).find("div.bottomRight").stop(false,true).animate({bottom:0,left:a},{duration:e,easing:f})})})
