$(document).ready(function(){if(jQuery.support.opacity){$("#menu li").hover(function(){$(this).children("a").css({backgroundPosition:"bottom left"}).end();$(this).children("ul").animate({opacity:"show",top:"18"},250)},function(){$(this).children("a").css({backgroundPosition:"top left"}).end();$(this).children("ul").animate({opacity:"hide",top:"25"},250)})}else{$("#menu li").hover(function(){$(this).children("a").css({backgroundPosition:"bottom left"}).end();$(this).children("ul").show().animate({top:"18"},250)},function(){$(this).children("a").css({backgroundPosition:"top left"}).end();$(this).children("ul").hide().animate({top:"25"},250)})}$("div.sidebarBox div.minimized").hide();$("div.sidebarTop h3, div.sidebarTop span.minmax").css({cursor:"pointer"}).click(function(){var a=$(this).parent().parent().children("div.sidebarContent");var b=$(this).parent().children("span.minmax");if(a.is(":hidden")){b.css({backgroundPosition:"bottom center"});a.slideDown(200)}else{b.css({backgroundPosition:"top center"});a.slideUp(200)}});$("div.galleryViewport").mouseenter(function(){$(this).children("a").children("img").animate({height:"130",left:"0",top:"0",width:"180"},{queue:false,duration:200}).end().children("span").fadeIn(300)}).mouseleave(function(){$(this).children("a").children("img").animate({height:"150",left:"-20",top:"-20",width:"200"},{queue:false,duration:200}).end().children("span").fadeOut(300)});$("div.galleryViewport a").colorbox({close:"Schließen",current:"{current} von {total}",next:"Nächstes",opacity:0.6,previous:"Vorheriges",scrolling:false,slideshow:true,slideshowAuto:false,slideshowSpeed:3000,slideshowStart:"Slideshow",slideshowStop:"Anhalten"});$("div.previewViewport").mouseenter(function(){$(this).children("a").children("img").animate({height:"184",left:"0",top:"0",width:"183"},{queue:false,duration:200}).end().children("span").fadeIn(300)}).mouseleave(function(){$(this).children("a").children("img").animate({height:"200",left:"-16",top:"-16",width:"200"},{queue:false,duration:200}).end().children("span").fadeOut(300)});$("#moreaboutme").toggle(function(){$("#footer").animate({height:"+=200"},100,function(){$("html, body").stop().animate({scrollTop:$("body").attr("scrollHeight")},1000)})},function(){$("#footer").animate({height:"-=200"},100)});$("#aboutme").mouseenter(function(){$("#footer div.latestTweet").fadeIn(300)});$("#footer").mouseleave(function(){$("#footer div.latestTweet").fadeOut(600)});$("#closeTweet").click(function(){$("#footer div.latestTweet").fadeOut(200)})});function rate(a){if(a!=""){jQuery("#ratePost").text("...");jQuery.post("http://planetd.de/wp-content/themes/gmtt/ratepost.php",{id:a},function(b){jQuery("#ratePost").text(b);jQuery("#ratePost").addClass("rated")})}};