function viewToogle(node){if($(node).nextAll('ul').css("display")=="block"){$(node).nextAll('ul').slideUp('fast');$(node).nextAll('.nav_lvl_sub > li').css('background-color',"#666666");}else{$("a").nextAll('ul').slideUp('slow');$(node).nextAll('ul').slideDown('slow');}}function gallery_btn(elementNow){if(jQuery.browser.msie==true&&jQuery.browser.version=="6.0"){$("#hobd_gallery_1").load('php/class.gallery.php?gallery='+elementNow);}else{$("div#container").fadeOut("fast",function(){$("div#site_overlay").fadeIn();});$("#gal_bar").load("php/func.jQgallery.php?dir="+elementNow);}$("#news_animation").stop();}function overlay_off(){$("div#container").fadeIn("fast",function(){$('#gal_img').css('background-image','url(img/png/system/gallery_manual.png)');$("div#site_overlay").fadeOut();unsee_textfile();$('div#gal_bar').css("margin-left","0px");});restart_news();}function scroll_imgbar_left(){$('div#gal_bar').animate({marginLeft:'+=770px'},1000);}function scroll_imgbar_right(){$('div#gal_bar').animate({marginLeft:'-=770px'},1000);}function show_textfile(file){$("#gal_img_txt").load("php/func.utf8decode.php?file=../"+file,function(){git_height=parseInt($("#gal_img_txt").height());new_git_height=505-git_height;if($.browser.msie){ieBugFix="$(\"#gal_img_txt\").css(\"top\", new_git_height+\"px\"); $(\"#gal_img_txt\").css(\"visibility\", \"visible\");";setTimeout(ieBugFix,0);}else{$("#gal_img_txt").css("top",new_git_height+"px");$("#gal_img_txt").css("visibility","visible");}});}function unsee_textfile(){$("#gal_img_txt").css("visibility","hidden");}function start_news(){apt=$("#news_animation").height();speed=(apt*100)/2;$("#news_animation").animate({marginTop:"-"+apt},speed,"linear",function(){restart_news();});}function restart_news(){winHeight=$("#right").height();$("#news_animation").css("margin-top",winHeight);start_news();}