addEvent(window,"load",init_page);function isIE(){if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var ieversion=new Number(RegExp.$1)
return ieversion;}
else return false;}
function init_page(){var copyright_notice=$("#copyright_notice");var main_content=$("#main-content");var browser_notification=$("#ie6-notify");var content_height=0;if(copyright_notice.offsetTop<535){for(i=0;i<main_content.childNodes.length;i++){if(main_content.childNodes[i].offsetHeight)content_height+=main_content.childNodes[i].offsetHeight;}
copyright_notice.style.margin=(615-content_height)+'px 0px 0px 0px';}
if(isIE()&&isIE()<=6){browser_notification.css({display:"block"});browser_notification.animate({height:"30px"},{queue:false,duration:1000});}}
function addEvent(elm,evType,fn,useCapture)
{if(elm.addEventListener){elm.addEventListener(evType,fn,useCapture);return true;}else if(elm.attachEvent){var r=elm.attachEvent("on"+evType,fn);return r;}else{alert("Handler could not be removed");}}
function togglecontent(content){var toggleable_content=$('.toggleable');var toggle_images=$('.toggle_image');for(i=0;i<toggleable_content.length;i++){if((toggleable_content[i].id==content)&&(toggleable_content[i].style.display!='block')){$(toggleable_content[i]).slideDown("slow");toggle_images[i].src='/images/downarrow.png';}
else{$(toggleable_content[i]).slideUp("slow");toggle_images[i].src='/images/rightarrow.png';}}}
function reveal_house(){$("#house").fadeIn("fast");}
function hide_house(){$("#house").fadeOut("fast");}