function $ID(id){return document.getElementById(id)}function go(url){window.location=url}function goNew(url){window.open(url)}function isOldIe(){return(/MSIE (6|7)/i.test(navigator.userAgent))}function isIe(){return(/MSIE (6|7|8|9)/i.test(navigator.userAgent))}function isIDevice(){return(/(iPhone|iPad|iPod)/i.test(navigator.userAgent))}function _update_pages(){var s=$('.slide');var pw=0;var ww=$(window).width();var wh=$(window).height();if(wh<768)wh=768;$('#page_container').width(ww).height(wh);s.each(function(){$(this).css({'left':pw,'display':'block'});pw+=ww}).width(ww);$('#page').width(pw);_update_bg(bgs);_update_bodys(s);$(window).hashchange()}function _update_bg(bgs){var w={width:$(window).width(),height:$(window).height()};if(w.height<768)w.height=768;bgs.load(function(){var $t=$(this);var m=($t.width()/$t.height());var nh=w.height;var nw=nh*m;var ld=0;var td=0;if(w.width<nw){ld=Math.abs((w.width-nw)/2)*-1}else{var nw=w.width;var nh=nw*1/m;td=Math.abs((w.height-nh)/2)*-1}$t.width(nw).height(nh).css('left',ld).css('top',td)})}function menu(target,that){if(isIe())return true;if(typeof that!="undefined"){that.href="#"+target;alert(that.href);return true}else{window.location.hash=target}return false}function _update_bodys(s){var w={width:$(window).width(),height:$(window).height()};if(w.height<768)w.height=768;s.find('.body').each(function(){var that=$(this);var mh=w.height-468-41;if(w.height<600)mh=100;that.height(mh)}).jScrollPane({verticalDragMaxHeight:162,showArrows:false})}
