/*@cc_on
eval((function(props) {
  var code = [];
  for (var i = 0, l = props.length;i<l;i++){
    var prop = props[i];
    window['_'+prop]=window[prop];
    code.push(prop+'=_'+prop);
  }
  return 'var '+code.join(',');
})('document self top parent alert setInterval clearInterval setTimeout clearTimeout'.split(' ')));
@*/
var jShowMenu={uDIV:new Array(),horizontal_scrolloff:0,position:0,visibleTime:0,obj:0,menuobj:0,currentLayer:0,clickLayer:0,pendingBlock:0,newframe:0,tempLocator:new Array()};$(document).ready(function(){$("a.checkbox").click(function(){$(this).toggleClass("checked");})
trimIE();$("#betatag").hover(function(){$(".label",this).show("fast");},function(){$(".label",this).hide("fast");})
$(".norclick").bind("contextmenu",function(e){return false;});})
function getObject(element){var objectElement=(document.all)?document.all[element]:document.getElementById(element);return objectElement;}
function clickMenu(id,object,fn){$("#smdiv").unbind("mouseout");jShowMenu.menuobj=document.getElementById(id)?getObject(id):id;if($(jShowMenu.menuobj).length){jShowMenu.clickLayer=(fn=="pulldown")?0:1;jShowMenu.enableMenu(id,object,fn);var f=function(){clearTimeout(jShowMenu.visibleTime)};setTimeout(f,500);}}
function clickOff(id,object,fn){clearTimeout(jShowMenu.visibleTime);jShowMenu.disableMenu(id,object,fn);}
function showMenu(showcase,id,object,fn){jShowMenu.handler(showcase,id,object,fn);}
jShowMenu.handler=function(showcase,id,object,fn){var delayShowTime=(fn=="pulldown")?100:600;clearTimeout(this.visibleTime);var menuobj=document.getElementById(id)?getObject(id):id;var fsm=function(){showMenu(showcase,id,object,fn)};if(this.pendingBlock!=id){if(showcase=="on"&&$(menuobj).length&&(!this.currentLayer||this.currentLayer!=id)){this.clickLayer=0;var cbf=function(){jShowMenu.enableMenu(id,object,fn);}
this.visibleTime=setTimeout(cbf,delayShowTime);}else if(this.currentLayer&&showcase=="off"){var cf=function(){jShowMenu.disableMenu(id,object,fn)};this.visibleTime=setTimeout(cf,delayShowTime);}}else if($(menuobj).length){this.pendingBlock==0;fsm();}else{this.visibleTime=setTimeout(fsm,delayShowTime);}}
jShowMenu.enableMenu=function(id,object,fn){jsm=$("#smcontent");if(this.currentLayer){this.returnRight();while(this.currentLayer){}}
this.menuobj=document.getElementById(id)?getObject(id):id;if($(this.menuobj).prev().length){this.tempLocator=new Array($(this.menuobj).prev(),"prev");jsm.html($(this.menuobj));}else if($(this.menuobj).next().length){this.tempLocator=new Array($(this.menuobj).next(),"next");jsm.html($(this.menuobj));}else{this.tempLocator=new Array($(this.menuobj).parent(),"parent");jsm.html($(this.menuobj).clone());}
this.currentLayer=id;$("#smdiv").css({visibility:"hidden",display:"block"});jsm.children().css({display:"block",position:"relative"});this.avoidOverlap("hidden");this.coordinate(id,object,fn);}
jShowMenu.coordinate=function(id,object,fn){if(id==this.currentLayer){var jsd=$("#smdiv");$(this.obj).removeClass("onPullDown");jsd.unbind("mouseover").unbind("mouseout");if(!this.clickLayer){jsd.mouseover(function(){showMenu('on',id,object,fn)})
jsd.mouseout(function(){showMenu('off',id,object,fn)})}
this.obj=(this.clickLayer&&!object.offsetWidth)?this.obj:object;if(this.obj){var re=clearbrowseredge(this.obj,"rightedge"),sd=getObject("smdiv"),sm=getObject("smcontent"),tbarrow=$("#tarrow,#barrow");sd.style.left=$(this.obj).offset().left-re+this.horizontal_scrolloff+"px";if(document.all){sd.style.left=sd.offsetLeft-2+"px"}
if(sd.offsetLeft<=0){sd.style.left=$(this.obj).offset().left+this.obj.offsetWidth/2-getObject("smcontent").offsetWidth/2+this.horizontal_scrolloff+"px";}
var be=clearbrowseredge(this.obj,"bottomedge");sd.style.top=$(this.obj).offset().top-be+this.obj.offsetHeight+"px";if(fn!="pulldown"){if(sm.offsetWidth<this.obj.offsetWidth){tbarrow.css("left",$(this.obj).offset().left-jsd.offset().left+sm.offsetWidth/2-8+"px");}else{tbarrow.css("left",$(this.obj).offset().left-jsd.offset().left+this.obj.offsetWidth/2-8+"px");}
if(!be){getObject("tarrow").style.display="block";getObject("barrow").style.display="none";}else if(be<=iecompattest().clientHeight-(iecompattest().clientHeight-$(this.obj).offset().top)){getObject("tarrow").style.display="none";getObject("barrow").style.display="block";}else{tbarrow.css("display","none");}
if(be>iecompattest().clientHeight-(iecompattest().clientHeight-$(this.obj).offset().top)){sd.style.top=iecompattest().scrollTop+10+"px";}}else{sd.style.top=$(this.obj).offset().top+this.obj.offsetHeight+"px";if(document.all){sd.style.top=sd.offsetTop-2+"px"}}
$("#shadow").css({height:sm.offsetHeight+"px",top:sm.offsetTop+3+"px",display:"block"})
if(fn=="pulldown"){jsd.css({visibility:"visible"});$(object).addClass("onPullDown");}else{jsd.css({display:"block",visibility:"visible"})
if(jQuery.isFunction(fn)){fn();}}
this.obj=object;if(parseFloat(jQuery.browser.version)<7&&document.all&&this.newframe){$(this.newframe).css({width:sm.offsetWidth+"px",height:sm.offsetHeight+7+"px",left:sd.offsetLeft+"px",top:sd.offsetTop+"px",zIndex:"50",display:""});}}}}
jShowMenu.disableMenu=function(id,object,fn){if(this.currentLayer){clearTimeout(jShowMenu.visibleTime);if(fn=="pulldown"){$(object).removeClass("onPullDown");}
$("#smdiv").css("display","none").unbind("mouseover").unbind("mouseout");jShowMenu.returnRight();}
if(jQuery.isFunction(fn)){fn();}}
jShowMenu.returnRight=function(e){if(this.currentLayer){this.avoidOverlap("visible");$("#shadow").css("height","0px");$("#smcontent>*,#tarrow,#barrow").css("display","none");switch(this.tempLocator[1]){case"prev":$("#smcontent>*").insertAfter(this.tempLocator[0]);break;case"next":$("#smcontent>*").insertBefore(this.tempLocator[0]);break;case"parent":$("#smcontent").empty();break;}
this.currentLayer=0;}}
jShowMenu.avoidOverlap=function(e){if(parseFloat(jQuery.browser.version)<7&&document.all&&e=="hidden"&&!this.newframe){var iframeEl=document.createElement("IFRAME");iframeEl.frameBorder=0;iframeEl.src="javascript:false;";iframeEl.style.display="none";iframeEl.style.position="absolute";iframeEl.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)";this.newframe=document.getElementsByTagName("body")[0].appendChild(iframeEl);}else if(parseFloat(jQuery.browser.version)<7&&document.all&&e=="visible"&&this.newframe){this.newframe.style.display="none";}else if(parseFloat(jQuery.browser.version)<5.5&&document.all){$("select").not(".overlay select").each(function(){this.style.visibility=e;})}}
function iecompattest(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;}
function clearbrowseredge(object,whichedge){var edgeoffset=0,sm=getObject("smcontent");if(whichedge=="rightedge"){var windowedge=(document.all&&!window.opera)?iecompattest().scrollLeft+iecompattest().clientWidth-15:window.pageXOffset+window.innerWidth-15;if(windowedge-$(object).offset().left<sm.offsetWidth||(jShowMenu.position==4&&($(object).offset().left-iecompattest().scrollLeft)>sm.offsetWidth)){edgeoffset=sm.offsetWidth-object.offsetWidth;}}else{var windowedge=(document.all&&!window.opera)?iecompattest().scrollTop+iecompattest().clientHeight-15:window.pageYOffset+window.innerHeight-18;if(windowedge-$(object).offset().top<sm.offsetHeight||(jShowMenu.position==1&&($(object).offset().top-iecompattest().scrollTop)>(sm.offsetHeight+7))){edgeoffset=sm.offsetHeight+object.offsetHeight+7;}}
return edgeoffset;}
function loadJs(path){var head=document.getElementsByTagName("head")[0];script=document.createElement('script');script.type='text/javascript';script.src=path;head.appendChild(script);}
function togglePart(id,e){id=(document.getElementById(id))?getObject(id):id;$(id).slideToggle("fast");$(e).toggleClass("off");}
var Shown=new Array;function addShowMenu(idn){Shown[idn]=true;$(idn+" li a:first-child").hover(function(){var cover=this.getElementsByTagName("img")[0];$(this).siblings(".popbox").each(function(){showMenu("on",this,cover);})},function(){showMenu("off",".popbox",'')}).click(function(){if(jShowMenu.visibleTime){clearTimeout(jShowMenu.visibleTime);}})}
function trimIE(){if(document.all){$(".sbutton .sbc input:submit, .mbutton .gbc input:submit").hover(function(){$(this).css({color:"#FF0",cursor:"pointer"});},function(){$(this).css({color:"#FFF",cursor:"pointer"});})
$(".versionlist li.row dl").hover(function(){$(this).css("background","#ECECEC");},function(){$(this).css("background","transparent");})
$(".versionlist li.row:last-child, .versionlist li.row dl:last-child, #remark ul li:last-child").css({borderBottom:"none",marginBottom:"0"});$("#browseList>span>li:first-child").css({borderTop:"none"});$("img[@src$=.png],input[@src$=.png]").ifixpng();}}
function winScroll(e){if($(e).length){var targetOffset=$(e).offset().top;$('html,body').animate({scrollTop:targetOffset},1000,"swing");}}