﻿window.onerror=function(){return true};function refreshCaptcha(img){img.src+="0"}function unikeyOnOff(value){on_off=value;updateInfo()}function unikeyUpdate(){$("#unikey_button_on").attr("checked",(on_off==1));$("#unikey_button_off").attr("checked",(on_off==0));$("#unikey_button").attr("class",on_off?"unikey_on":"unikey_off")}function onoff_sound(tag){$(function(){var b_off=$.cookie("bgsound_off");var div_nav=$("#bgsound_nav");if(b_off=="1"){$.cookie("bgsound_off",0);__prepareMedia(function(){$("#bgsound_nav_uc").webvideo("play",{url:div_nav.attr("url"),images:"",autoPlay:True,loop:True,offSilverlight:True,offScreen:True,hasLicensed:False,width:1,height:1})});$(tag).removeClass("bg_sound_off")}else{$.cookie("bgsound_off","1");div_nav.html("<div id=\"bgsound_nav_uc\"></div>");$(tag).addClass("bg_sound_off")}})}___win_manager={};function show_win(id,ok_handler,cancel_handler,open_handler,center){var con=$("#"+id),win=___win_manager[id];if(con.length>0&&!win){$('embed, object, select').css({'visibility':'hidden'});___win_manager[id]=win=$("<div><div class='windows_mask'></div><div class='windows_container'></div></div>");win.oldParent=con.parent();win.ok_handler=ok_handler;win.cancel_handler=cancel_handler;win.appendTo(document.body);var win_con=win.children(".windows_container");var h=win_con.height();win.children(".windows_container").append(con.detach());if(center){h=(h-con.outerHeight())/2-40;if(h<5){h=5}con.css("margin-top",h+"px")}if(open_handler){open_handler()}}}function hide_win(id,ok){var con=$("#"+id),win=___win_manager[id];if(con.length>0&&win){if(ok&&win.ok_handler){if(win.ok_handler()===false){return}}else if(!ok&&win.cancel_handler){win.cancel_handler()}win.hide();win.oldParent.append(con.detach());win.remove();$('embed, object, select').css({'visibility':'visible'});win.oldParent=win.ok_handler=win.cancel_handler=null;___win_manager[id]=null;delete ___win_manager[id];win=null}}function show_loading(div){if(div==null){var win=$("#loading_main_windows_nav");if(win.length<1){$("<div style='display:none !important;'><div id='loading_main_windows_nav'><img src='/css/images/slide-loading.gif' style='display:block;margin:0 auto;margin-top:150px;' /></div></div>").appendTo(document.body)}hide_win("loading_main_windows_nav");show_win("loading_main_windows_nav")}else{div=$(div);var h=div.height(),w=div.width();div.width(w).height(h).html("").addClass("loading_div")}}function hide_loading(div){if(div==null){hide_win("loading_main_windows_nav")}else{$(div).removeClass("loading_div")}}function open_admin_windows(a){var win=$("#__admin_windows_nav");if(win.length<1){$("<div style='display:none !important;'><div id='__admin_windows_nav' class='windows_100'></div></div>").appendTo(document.body)}hide_win("__admin_windows_nav");show_win("__admin_windows_nav",null,function(){$("#__admin_windows_nav").html("")},function(){$("#__admin_windows_nav").html("<iframe src='"+$(a).attr("href")+"' allowtransparency='true' frameborder='0' style='width:100%;height:100%'></iframe>")},false);return false}function init_banner(id,time){var curIndex=0,allBanner=$('#'+id).children('div'),length=allBanner.length,f_handler=function(){$(allBanner[curIndex]).fadeTo(500,0,function(){$(allBanner[curIndex]).hide();if(++curIndex>=length)curIndex=0;$(allBanner[curIndex]).css('opacity',0).show().fadeTo(500,1,function(){window.setTimeout(f_handler,5000)})})};window.setTimeout(f_handler,time)}function sg_search(domain,btn){var txt=$(btn).prev(),_v=txt.val();if(!_v||_v==""){txt.addClass("red_textbox");return false}window.open('http://www.google.com/search?ie=utf-8&oe=utf-8&vnType=0&domains='+domain+'&sitesearch'+'='+domain+'&q='+_v,'_blank')}function svn_search(btn){var txt=$(btn).prev(),_v=txt.val();if(!_v||_v==""){txt.addClass("red_textbox");return false}return true}function ft_changetheme(sel){$(sel).next().click()}function __prepareMedia(handler){if(!__prepareMedia.isInit){__prepareMedia._obj=$("<div></div>");__prepareMedia.isInit=true}if(__prepareMedia.isLoadScript){handler()}else{__prepareMedia._obj.bind("webvideo",handler);if(!__prepareMedia.isLoading){__prepareMedia.isLoading=true;$.loadScript("webvideo","/JScript/webvideo/webvideo.js",function(){__prepareMedia.isLoadScript=true;__prepareMedia._obj.trigger("webvideo")})}}}var __advertise={random:function(time){if(!__advertise._israndom){__advertise._israndom=true;$(".adv_rand_container").each(function(){var div_nav=$(this),cur_div=div_nav.children("div.adv_rand");if(cur_div.length<2){return}var i=0,div=cur_div.first(),f_handler=function(){div.fadeTo(1000,0,function(){if(++i>=cur_div.length){i=0}var tmp=$(cur_div[i]);div.hide();div=tmp.fadeTo(0,0).show().fadeTo(3000,100,function(){window.setTimeout(f_handler,time)})})};window.setTimeout(f_handler,time)})}},h_mar_adv:function(time){if(!__advertise._is_h_mar){__advertise._is_h_mar=true;$(".adv_h_mar_container").each(function(){var div_nav=$(this),div_adv=div_nav.children("div.adv_repeat:first"),div_clear=div_nav.children("div:last"),w_nav=div_adv.width(),i=5;while(i-->0){div_adv.after(div_adv.clone(false))}var i_scroll=0,i_timer=0;var f_handler=function(){i_scroll+=1;if(i_scroll>div_adv.width()){var w_tmp=div_adv.width();if(i_scroll>w_tmp){i_scroll-=w_tmp;var tmp=div_adv.next();div_clear.before(div_adv.detach());div_adv=tmp}}else{div_nav.scrollLeft(i_scroll)}i_timer=window.setTimeout(f_handler,time)};f_handler();div_nav.mouseenter(function(){if(i_timer){window.clearTimeout(i_timer)}}).mouseleave(function(){f_handler()})})}},v_mar_adv:function(time){if(!__advertise._is_v_mar){__advertise._is_v_mar=true;$(".adv_v_mar_container").each(function(){var div_nav=$(this),div_adv=div_nav.children("div.adv_v_mar"),div_clear=div_nav.children(":last");if(div_adv.length<3){return}var adv_1=div_adv.first(),adv_2=adv_1.next(),isFirst=true;var f_handler=function(){if(isFirst){div_nav.height(adv_1.height()+adv_2.height())}var tmp=adv_2.next().show(),dh=tmp.height()+adv_2.height();adv_1.slideUp(500);div_nav.animate({"height":dh},500,function(){div_clear.before(adv_1.detach());adv_1=adv_2;adv_2=tmp;window.setTimeout(f_handler,time)})};window.setTimeout(f_handler,time)})}}};var __paging={p:function(i,e){return true}};var __rt={init:function(id){var s_html="";for(var i=1;i<=10;i++){s_html+="<li v='"+i+"' class='trl_"+(i%2)+"'></li>"}var ul=$("#"+id).html(s_html).mouseout(function(){ul.removeClass().addClass("trl_rating cm_post_rating trl_rating_"+ul.attr("v"))}).attr("v",0);ul.children("li").click(function(){var v=$(this).attr("v");ul.attr("v",v).prev().val(v)}).mouseover(function(){ul.removeClass().addClass("trl_rating cm_post_rating trl_rating_"+$(this).attr("v"))})}};var __nl={zoomIn:function(quick){var name="nl_font";if(quick){name="nl_font_q"}var size=($.cookie(name)*1)-1;if(size<0){size=0}$.cookie(name,size);__nl._zoom()},zoomOut:function(quick){var name="nl_font";if(quick){name="nl_font_q"}var size=($.cookie(name)*1)+1;if(size>20){size=20}$.cookie(name,size);__nl._zoom()},_zoom:function(){$(function(){var size=$.cookie("nl_font");if((size*1)!=0){var style=$("#nl_fonttag");if(style.length==0)style=$("<div id='nl_fonttag'></div>");style.remove().html("<style>#nc_news_detail_content .nc_content_description,#nc_news_detail_content .nc_content_description *{font-size:"+(100+10*(size*1))+"% !important; line-height:150%;}</style>").appendTo(document.body)}else{$("#nl_fonttag").remove()}size=$.cookie("nl_font_q");if((size*1)!=0){var style=$("#nl_font_q");if(style.length==0)style=$("<div id='nl_font_q'></div>");style.remove().html("<style>.nl_items .nc_content_description,.nl_items .nc_content_description *{font-size:"+(100+10*(size*1))+"% !important; line-height:150%;}</style>").appendTo(document.body)}else{$("#nl_font_q").remove()}})},email:function(a){$("#nc_news_sendmail").html("<iframe src='"+$(a).attr("href")+"' allowtransparency='true' frameborder='0' style='width:495px; height: 215px'></iframe>");show_win("nc_news_sendmail",function(){$("#nc_news_sendmail").html("")},function(){$("#nc_news_sendmail").html("")},null,true);return false},_print:function(div){div.innerHTML=$("#nc_news_printable").html()},scrollToDetail:function(){var a=$("#nl_detail_bookmark");if(a.length>0){var t=a.position().top;$("#body_scroll").animate({scrollTop:"+="+t},500)}return false},toggle_detail:function(a,id,quick){a=$(a);if(!quick&&!a.hasClass("nl_toggle")){return true}if(__nl._isRunToggle){return false}__nl._isRunToggle=true;if(quick){$("#news_detail_container").empty()}var href=$(a).attr("href"),div_items=$("#"+id),div_content=div_items.find(".nl_content:first"),a_tog=div_items.find(".nl_toggle:first"),html_tmp=div_content.html();if(__nl._oldToggle&&__nl._oldToggle[0]==div_content[0]){__nl._oldToggle.css("visibility","hidden").animate({height:__nl._oldToggleHeight},800,function(){$(this).html(__nl._oldToggleHtml).css("visibility","visible");a_tog.removeClass("nl_toggle_expand");__nl._oldToggle=null;__nl._oldToggleHtml=null;__nl._oldToggleHeight=null;__nl._isRunToggle=false});return false}show_loading(div_content);var _f=function(data){var _nav=$("<div></div>");_nav[0].innerHTML=data;var _html=_nav.find("#nc_news_detail_content").html(),_h=div_content.height(),_testH=$.testHeight(_html,div_content.width());hide_loading(div_content);div_content.css("visibility","hidden");_old_html=__nl._oldToggleHtml;if(__nl._oldToggle){__nl._oldToggle.css("visibility","hidden").animate({height:__nl._oldToggleHeight},800,function(){$(this).html(_old_html).css("visibility","visible").prev().prev().find(".nl_toggle_expand:first").removeClass("nl_toggle_expand")})}div_content.animate({height:_testH},800,function(){div_content.html(_html).css("visibility","visible").css("height","auto");a_tog.addClass("nl_toggle_expand");__nl._oldToggle=div_content;__nl._oldToggleHtml=html_tmp;__nl._oldToggleHeight=_h;var t=div_items.position().top;$("#body_scroll").animate({scrollTop:"+="+t},500);__nl._isRunToggle=false})};if(div_items.data("__html")){_f(div_items.data("__html"))}else{$.post(href,{"isAjax":true,"ajaxAction":'articleDetail'},function(data){div_items.data("__html",data);_f(data)})}return false},tooltip:function(){if(!__nl._isRunTooltip){__nl._isRunTooltip=true;$.tooltip(".nl_header_tooltip",function(target){var content=target.next().next(".nl_tooltip");if(content.length>0){return{text:target.next().next().html()}}return false},null)}},viewbydate:function(btn){$.loadCss("jquery-ui","/JScript/ui/jquery-ui-1.8.2.css",function(){$.loadScript("datetime-ui","/JScript/ui/datetime.js",function(){var txt=$(btn).prev();txt.datepicker({gotoCurrent:true,maxDate:new Date(),yearRange:'1990:2030'}).change(function(){txt.prev().click()}).focus();$(btn).unbind("onclick").click(function(){txt.focus()})})},true)}};var __nc={slideshow:function(){$("#nc_content_slideshow img").lightBox({fixedNavigation:false})},c:function(item,i){var state=$.cookie("__booklist_state"),c='';item=$(item);if(item.hasClass('e')){item.removeClass().addClass('c').next().next().show();c='1'}else if(item.hasClass('c')){item.removeClass().addClass('e').next().next().hide();c='2'}if(state&&state!=''){state=state.substring(0,i)+c+state.substr(i+1);$.cookie("__booklist_state",state)}return false},c2:function(item){$(item).prev().click()}};var __cm={post:function(){var r=true;$("#cm_post_form :text,#cm_post_form textarea").each(function(){var v=this.value;if(!v||v==""){$(this).addClass("red_textbox");r=false}else{$(this).removeClass("red_textbox")}});return r}};var __emr={accept:function(cbx){$(cbx).parent().parent().next().attr("disabled",!cbx.checked).toggleClass("btn_disabled")},send:function(btn){var txt=$(btn).prev().prev();var v=txt.val();if(!v||v==""){txt.addClass("red_textbox");return false}else{txt.removeClass("red_textbox");return true}}};var __hss={init:function(div,type){var imagelist=$(div).find(".hss_hidden:first > span"),length=imagelist.length,count=0,handler=function(){if(count>=length){count=0}var src="";if(type=="small"){src=$(imagelist[count]).attr("src")}else if(type=="large"){src=$(imagelist[count]).attr("large")}loadImage.attr("src",src);count++},curImage=$("<img />"),loadImage=$("<img style='display:none !important' />").load(function(){curImage.fadeTo(800,0,function(){curImage.attr("src",loadImage.attr("src")).fadeTo(5000,100,function(){window.setTimeout(handler,3000)})})});$(div).find(".hss_current:first").append(curImage).append(loadImage);handler()}};var __reg={check_user:function(txt){txt=$(txt).removeClass("red_textbox");var div=txt.next().next().hide();var v=txt.val();if(v==""){txt.addClass("red_textbox");return}$.post("ajax.axd",{action:'check_user',user:v},function(data){if(data=="1"){div.css("display","block");txt.addClass("red_textbox")}})},check_email:function(txt){txt=$(txt).removeClass("red_textbox");var div=txt.next().next().hide(),v=txt.val(),reg=/\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;if(v==""||!reg.test(v)){txt.addClass("red_textbox");return}$.post("ajax.axd",{action:'check_email',email:v},function(data){if(data=="1"){div.css("display","block");txt.addClass("red_textbox")}})},accept:function(cbx){$(cbx).parent().next().attr("disabled",!cbx.checked).toggleClass("btn_disabled")}};function scrollNewsBox(divID,type,time,item){$(function(){var div_nav=$("#"+divID).find("div.nl_display_list:first").css("overflow","hidden"),div_adv=div_nav.children("div.nl_col_1_1").css("padding-bottom","1px");if(div_adv.length<=item){return}var i=1,adv_1=div_adv.eq(0),adv_2=div_adv.eq(1),isFirst=true;var f_handler=function(){if(isFirst){div_nav.height(adv_1.height()+adv_2.height())}if(++i>=div_adv.length){i=0}var tmp=div_adv.eq(i),dh=tmp.height()+adv_2.height();div_nav.animate({"height":dh,"scrollTop":adv_1.outerHeight()},800,function(){var div_clear=adv_1.next(".nav_clear");adv_1.detach();if(div_clear.length>0){div_clear.detach()}div_nav[0].scrollTop=0;div_nav.append(adv_1);if(div_clear.length>0){div_nav.append(div_clear)}adv_1=adv_2;adv_2=tmp;window.setTimeout(f_handler,time)})};f_handler()})};
