$(document).ready(function(){var d="easeOutBounce";var c="jswing";var a=1000;var g=300;var f=Math.round($(".qitem").width()/2)*(-1);var e=f*(-1);var b=e*2;$(".qitem").each(function(){url=$(this).find("a").attr("href");img=$(this).find("img").attr("src");$("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:e,height:e});$(this).find("div.topRight").css({top:0,left:e,width:e,height:e});$(this).find("div.bottomLeft").css({bottom:0,left:0,width:e,height:e});$(this).find("div.bottomRight").css({bottom:0,left:e,width:e,height:e})}).hover(function(){$(this).find("div.topLeft").stop(false,true).animate({top:f,left:f},{duration:g,easing:c});$(this).find("div.topRight").stop(false,true).animate({top:f,left:b},{duration:g,easing:c});$(this).find("div.bottomLeft").stop(false,true).animate({bottom:f,left:f},{duration:g,easing:c});$(this).find("div.bottomRight").stop(false,true).animate({bottom:f,left:b},{duration:g,easing:c})},function(){$(this).find("div.topLeft").stop(false,true).animate({top:0,left:0},{duration:a,easing:d});$(this).find("div.topRight").stop(false,true).animate({top:0,left:e},{duration:a,easing:d});$(this).find("div.bottomLeft").stop(false,true).animate({bottom:0,left:0},{duration:a,easing:d});$(this).find("div.bottomRight").stop(false,true).animate({bottom:0,left:e},{duration:a,easing:d})}).click(function(){window.location=$(this).find("a").attr("href")})});
