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()};jQuery(document).ready(function(){jQuery(
"a.checkbox"
).click(function(){jQuery(this).toggleClass(
"checked"
);})
trimIE();jQuery(
"#smartTagID"
).hover(function(){jQuery(
".smartTagLabel"
,this).show(
"fast"
);},function(){jQuery(
".smartTagLabel"
,this).hide(
"fast"
);})})
function getObject(element){var objectElement=(document.all)?document.all[element]:document.getElementById(element);return objectElement;}
function clickMenu(id,object,fn){jQuery(
"#smdiv"
).unbind(
"mouseover,mouseout"
);jShowMenu.menuobj=document.getElementById(id)?getObject(id):id;if (jQuery(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);this.menuobj=document.getElementById(id)?getObject(id):id;var fsm=function(){showMenu(showcase,id,object,fn)};if (this.pendingBlock !=id){this.clickLayer=0;if (showcase==
"on"
&&jQuery(this.menuobj).length){if (!this.currentLayer||this.currentLayer!=id){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 (jQuery(this.menuobj).length){this.pendingBlock==0;fsm();} else {this.visibleTime=setTimeout(fsm,delayShowTime);}}
jShowMenu.enableMenu=function(id,object,fn){jsm=jQuery(
"#smcontent"
);if (this.currentLayer){this.returnRight();while (this.currentLayer){}}
 this.menuobj=document.getElementById(id)?getObject(id):id;if (jQuery(this.menuobj).prev().length){this.tempLocator=new Array(jQuery(this.menuobj).prev(),
"prev"
);jsm.html(jQuery(this.menuobj));} else if (jQuery(this.menuobj).next().length){this.tempLocator=new Array(jQuery(this.menuobj).next(),
"next"
);jsm.html(jQuery(this.menuobj));} else {this.tempLocator=new Array(jQuery(this.menuobj).parent(),
"parent"
);jsm.html(jQuery(this.menuobj).clone());}
 this.currentLayer=id;jQuery(
"#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=jQuery(
"#smdiv"
);jQuery(this.obj).removeClass(
"onPullDown"
);jsd.unbind(
"mouseover,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=jQuery(
"#tarrow,#barrow"
);
sd.style.left=jQuery(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=jQuery(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=jQuery(this.obj).offset().top-be+this.obj.offsetHeight+
"px"
;
if (fn!=
"pulldown"
){if (sm.offsetWidth<this.obj.offsetWidth){tbarrow.css(
"left"
,jQuery(this.obj).offset().left-jsd.offset().left+sm.offsetWidth/2-8+
"px"
);} else {tbarrow.css(
"left"
,jQuery(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-jQuery(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-jQuery(this.obj).offset().top)){sd.style.top=iecompattest().scrollTop+10+
"px"
;}} else {sd.style.top=jQuery(this.obj).offset().top+this.obj.offsetHeight+
"px"
;if (document.all){sd.style.top=sd.offsetTop-2+
"px"
}}
jQuery(
"#shadow"
).css({height:sm.offsetHeight+
"px"
,top:sm.offsetTop+3+
"px"
,display:
"block"
})
if (fn==
"pulldown"
){jsd.css({visibility:
"visible"
});jQuery(object).addClass(
"onPullDown"
);} else {jsd.css({display:
"none"
,visibility:
"visible"
}).slideDown(sd.offsetHeight,function(){if (jQuery.isFunction(fn)){fn();}})}
this.obj=object;
if (parseFloat(jQuery.browser.version)<7&&document.all&&this.newframe){jQuery(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"
){jQuery(
"#smdiv"
).css(
"display"
,
"none"
).unbind(
"mouseover,mouseout"
);jShowMenu.returnRight();jQuery(object).removeClass(
"onPullDown"
);} else {jQuery(
"#smdiv"
).slideUp(10,function(){var rr=function(){jShowMenu.returnRight()}
setTimeout(rr,10);}).unbind(
"mouseover,mouseout"
)}}
if (jQuery.isFunction(fn)){fn();}}
jShowMenu.returnRight=function(e){if (this.currentLayer){this.avoidOverlap(
"visible"
);jQuery(
"#shadow"
).css(
"height"
,
"0px"
);jQuery(
"#smcontent>*,#tarrow,#barrow"
).css(
"display"
,
"none"
);switch (this.tempLocator[1]){case
"prev"
:jQuery(
"#smcontent>*"
).insertAfter(this.tempLocator[0]);break;case
"next"
:jQuery(
"#smcontent>*"
).insertBefore(this.tempLocator[0]);break;case
"parent"
:jQuery(
"#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){jQuery(
"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-jQuery(object).offset().left<sm.offsetWidth||(jShowMenu.position==4&&(jQuery(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-jQuery(object).offset().top<sm.offsetHeight||(jShowMenu.position==1&&(jQuery(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;jQuery(id).slideToggle(
"fast"
);jQuery(e).toggleClass(
"off"
);}
function trimIE(){if (document.all){
jQuery(
".sbutton .sbc input:submit, .mbutton .gbc input:submit"
).hover(function(){jQuery(this).css({color:
"#FF0"
,cursor:
"pointer"
});},function(){jQuery(this).css({color:
"#FFF"
,cursor:
"pointer"
});})
jQuery(
".versionlist li.row dl"
).hover(function(){jQuery(this).css(
"background"
,
"#ECECEC"
);},function(){jQuery(this).css(
"background"
,
"transparent"
);})
jQuery(
".versionlist li.row:last-child, .versionlist li.row dl:last-child, #remark ul li:last-child"
).css({borderBottom:
"none"
,marginBottom:
"0"
});
jQuery(
"#browseList>span>li:first-child"
).css({borderTop:
"none"
});
}}

/*jQuery(
"img[@src$=.png],input[@src$=.png]"
).ifixpng();*/
