1 $(document).ready(function(){
3 if ($(".logohover").length == 0) { return };
5 var cont = $(".logocontent");
7 var inactive = $("img.img1");
8 var active = $("img.img2");
12 reposition = function() {
13 var winheight = $(window).height();
14 var winwidth = $(window).width();
19 var top = (winheight / 2) - (imgheight / 2);
20 if (top < 0) { top = 0; };
23 var left = (winwidth / 2) - (imgwidth / 2);
24 if (left < 0) { left = 0; };
26 $(".logohover img").css({top:top, left:left});
30 $(window).resize(reposition);
35 capture.mouseenter(function() {
36 if (hovering) { return };
38 inactive.fadeOut(time);
41 capture.mouseleave(function() {
42 if (!hovering) { return };
46 inactive.fadeIn(time);