(function(A){A.extend({format:function(G){if(arguments.length>1){var D=arguments[0];if(arguments.length==2&&typeof arguments[0]=="string"&&typeof arguments[1]=="object"){var F=arguments[1];for(var B in F){if(F[B]!=undefined){var E=new RegExp("({\x20*"+B+"\x20*})","g");D=D.replace(E,F[B])}}}else{for(var C=1;C0){A(".g-hd").css("opacity",".95");C.show()}else{A(".g-hd").css("opacity","1");C.hide()}};if(this){window.onscroll=function(){B()};window.onresize=function(){B()}}this.click(function(D){D.preventDefault();var E=document.body.scrollTop||300;if(E>300){E=300}A("body,html").animate({scrollTop:0},2*E)});return this}}(jQuery));(function(A){A.fn.helptips=function(){return this.each(function(){if($(this).find("img").length==0){$(this).append($(''))}if($(this).find(".tips-cinfo-show").length==0){$(this).append($('
'))}var G=$(this).find("img").get(0);var H=$(this).find(".tips-cinfo-show");H.html($(this).attr("title"));$(this).removeAttr("title");var D=G.getBoundingClientRect();if(typeof($(this).attr("width"))!="undefined"){H.css("width",parseInt($(this).attr("width"))+"px");$(this).removeAttr("width")}var E=parseInt(H.css("width")),F=parseInt(H.css("left"));var B=document.documentElement.clientWidth,C=document.documentElement.clientHeight;$(this).find(".tips-cinfo-show").css("text-align","left");$(this).find(".tips-cinfo-show").css("z-index","9999");if(D.right+E>B){$(this).find(".tips-cinfo-show").css("left",(B-(D.right+E+F)-17)+"px")}if(D.bottom+H.get(0).scrollHeight>C){$(this).find(".tips-cinfo-show").css("top",(0-H.get(0).scrollHeight-4)+"px")}})}})(jQuery),$(function(){$(".tips-cinfo").helptips()});