function objResize(){if($("#flashcontainer").length>0){fullsize=$("#flashcontainer").width();$("object").width(fullsize);$("object").height(Math.ceil(fullsize*.73))}}function scrollTop(){$("html, body").animate({scrollTop:0},"fast")}$(document).ready(function(){var a=navigator.userAgent.toLowerCase();$iOS=a.match(/(iphone|ipod|ipad)/);if($iOS){$("#navigation div").click(function(){$(this).children("ul").slideToggle("slow");return false})}$("input[type=text], textarea").attr("aria-required","true");$("#footer #topbtn").click(function(){scrollTop();return false});$(".toggler").click(function(){$target=$(this).attr("data-target");$(this).slideUp("fast");$("#"+$target).slideDown("fast")});if($(".lb").length>0){$("<div id='lb'><img /></div>").insertAfter("#footer");$("#lb").click(function(){$(this).fadeOut("fast")});$(".lb li a").click(function(){imgsrc=$(this).attr("href");$("#lb img").attr("src",imgsrc);$("#lb").fadeIn("fast");return false})}$(".wooden a,.wooden img,abbr").qtip({position:{my:"top center",at:"bottom center",viewport:$(window)},style:{tip:true,classes:"ui-tooltip-dark ui-tooltip-rounded"}});objResize();if(top!==self){$("#teasemsg").fadeOut("slow",function(){$("#framealert").fadeIn("slow")})}$("#framealert").click(function(){top.location.replace(self.location.href)});$("input[type=file]").filestyle({image:"/icons/b_default.png",imageheight:16,imagewidth:16,width:250});$(".removebtn").click(function(){url=$(this).attr("href");$(this).parent("li").load(url);return false})});$(window).resize(function(){objResize()});
