var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;function ControlVersion(){var version;var axo;var e;try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");version=axo.GetVariable("$version");}catch(e){}if(!version){try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");version="WIN 6,0,21,0";axo.AllowScriptAccess="always";version=axo.GetVariable("$version");}catch(e){}}if(!version){try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version=axo.GetVariable("$version");}catch(e){}}if(!version){try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version="WIN 3,0,18,0";}catch(e){}}if(!version){try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");version="WIN 2,0,0,11";}catch(e){version=-1;}}return version;}function GetSwfVer(){var flashVer=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var swVer2=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";
var flashDescription=navigator.plugins["Shockwave Flash"+swVer2].description;var descArray=flashDescription.split(" ");var tempArrayMajor=descArray[2].split(".");var versionMajor=tempArrayMajor[0];var versionMinor=tempArrayMajor[1];var versionRevision=descArray[3];if(versionRevision==""){versionRevision=descArray[4];}if(versionRevision[0]=="d"){versionRevision=versionRevision.substring(1);}else{if(versionRevision[0]=="r"){versionRevision=versionRevision.substring(1);if(versionRevision.indexOf("d")>0){versionRevision=versionRevision.substring(0,versionRevision.indexOf("d"));}}}var flashVer=versionMajor+"."+versionMinor+"."+versionRevision;}}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1){flashVer=4;}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1){flashVer=3;}else{if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1){flashVer=2;}else{if(isIE&&isWin&&!isOpera){flashVer=ControlVersion();}}}}}return flashVer;}function DetectFlashVer(reqMajorVer,reqMinorVer,reqRevision){versionStr=GetSwfVer();
if(versionStr==-1){return false;}else{if(versionStr!=0){if(isIE&&isWin&&!isOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",");}else{versionArray=versionStr.split(".");}var versionMajor=versionArray[0];var versionMinor=versionArray[1];var versionRevision=versionArray[2];if(versionMajor>parseFloat(reqMajorVer)){return true;}else{if(versionMajor==parseFloat(reqMajorVer)){if(versionMinor>parseFloat(reqMinorVer)){return true;}else{if(versionMinor==parseFloat(reqMinorVer)){if(versionRevision>=parseFloat(reqRevision)){return true;}}}}}return false;}}}function AC_AddExtension(src,ext){if(src.indexOf("?")!=-1){return src.replace(/\?/,ext+"?");}else{return src+ext;}}function AC_Generateobj(objAttrs,params,embedAttrs){var str="";if(isIE&&isWin&&!isOpera){str+="<object ";for(var i in objAttrs){if(i=="src"){str+=i+'="'+objAttrs[i]+"?"+(new Date()).getTime()+'" ';}else{str+=i+'="'+objAttrs[i]+'" ';}}str+=">";for(var i in params){if(i=="src"){str+='<param name="'+i+'" value="'+params[i]+"?"+(new Date()).getTime()+'" /> ';
}else{str+='<param name="'+i+'" value="'+params[i]+'" /> ';}}str+="</object>";}else{str+="<embed ";for(var i in embedAttrs){if(i=="src"){str+=i+'="'+embedAttrs[i]+"?"+(new Date()).getTime()+'" ';}else{str+=i+'="'+embedAttrs[i]+'" ';}}str+="> </embed>";}return str;}function AC_FL_RunContent(){var ret=AC_GetArgs(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");return AC_Generateobj(ret.objAttrs,ret.params,ret.embedAttrs);}function AC_GetArgs(args,ext,srcParamName,classid,mimeType){var ret=new Object();ret.embedAttrs=new Object();ret.params=new Object();ret.objAttrs=new Object();for(var i=0;i<args.length;i=i+2){var currArg=args[i].toLowerCase();switch(currArg){case"classid":break;case"pluginspage":ret.embedAttrs[args[i]]=args[i+1];break;case"src":case"movie":args[i+1]=AC_AddExtension(args[i+1],ext);ret.embedAttrs.src=args[i+1];ret.params[srcParamName]=args[i+1];break;case"onafterupdate":case"onbeforeupdate":case"onblur":case"oncellchange":case"onclick":case"ondblClick":case"ondrag":case"ondragend":case"ondragenter":case"ondragleave":case"ondragover":case"ondrop":case"onfinish":case"onfocus":case"onhelp":case"onmousedown":case"onmouseup":case"onmouseover":case"onmousemove":case"onmouseout":case"onkeypress":case"onkeydown":case"onkeyup":case"onload":case"onlosecapture":case"onpropertychange":case"onreadystatechange":case"onrowsdelete":case"onrowenter":case"onrowexit":case"onrowsinserted":case"onstart":case"onscroll":case"onbeforeeditfocus":case"onactivate":case"onbeforedeactivate":case"ondeactivate":case"type":case"codebase":ret.objAttrs[args[i]]=args[i+1];
break;case"id":case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"tabindex":ret.embedAttrs[args[i]]=ret.objAttrs[args[i]]=args[i+1];break;default:ret.embedAttrs[args[i]]=ret.params[args[i]]=args[i+1];}}ret.objAttrs.classid=classid;if(mimeType){ret.embedAttrs.type=mimeType;}return ret;}(function(){var window=this,undefined,_jQuery=window.jQuery,_$=window.$,jQuery=window.jQuery=window.$=function(selector,context){return new jQuery.fn.init(selector,context);},quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,isSimple=/^.[^:#\[\.,]*$/;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;this.context=selector;return this;}if(typeof selector==="string"){var match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1]){selector=jQuery.clean([match[1]],context);}else{var elem=document.getElementById(match[3]);if(elem&&elem.id!=match[3]){return jQuery().find(selector);
}var ret=jQuery(elem||[]);ret.context=document;ret.selector=selector;return ret;}}else{return jQuery(context).find(selector);}}else{if(jQuery.isFunction(selector)){return jQuery(document).ready(selector);}}if(selector.selector&&selector.context){this.selector=selector.selector;this.context=selector.context;}return this.setArray(jQuery.isArray(selector)?selector:jQuery.makeArray(selector));},selector:"",jquery:"1.3.2",size:function(){return this.length;},get:function(num){return num===undefined?Array.prototype.slice.call(this):this[num];},pushStack:function(elems,name,selector){var ret=jQuery(elems);ret.prevObject=this;ret.context=this.context;if(name==="find"){ret.selector=this.selector+(this.selector?" ":"")+selector;}else{if(name){ret.selector=this.selector+"."+name+"("+selector+")";}}return ret;},setArray:function(elems){this.length=0;Array.prototype.push.apply(this,elems);return this;},each:function(callback,args){return jQuery.each(this,callback,args);},index:function(elem){return jQuery.inArray(elem&&elem.jquery?elem[0]:elem,this);
},attr:function(name,value,type){var options=name;if(typeof name==="string"){if(value===undefined){return this[0]&&jQuery[type||"attr"](this[0],name);}else{options={};options[name]=value;}}return this.each(function(i){for(name in options){jQuery.attr(type?this.style:this,name,jQuery.prop(this,options[name],type,i,name));}});},css:function(key,value){if((key=="width"||key=="height")&&parseFloat(value)<0){value=undefined;}return this.attr(key,value,"curCSS");},text:function(text){if(typeof text!=="object"&&text!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text));}var ret="";jQuery.each(text||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8){ret+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this]);}});});return ret;},wrapAll:function(html){if(this[0]){var wrap=jQuery(html,this[0].ownerDocument).clone();if(this[0].parentNode){wrap.insertBefore(this[0]);}wrap.map(function(){var elem=this;while(elem.firstChild){elem=elem.firstChild;
}return elem;}).append(this);}return this;},wrapInner:function(html){return this.each(function(){jQuery(this).contents().wrapAll(html);});},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html);});},append:function(){return this.domManip(arguments,true,function(elem){if(this.nodeType==1){this.appendChild(elem);}});},prepend:function(){return this.domManip(arguments,true,function(elem){if(this.nodeType==1){this.insertBefore(elem,this.firstChild);}});},before:function(){return this.domManip(arguments,false,function(elem){this.parentNode.insertBefore(elem,this);});},after:function(){return this.domManip(arguments,false,function(elem){this.parentNode.insertBefore(elem,this.nextSibling);});},end:function(){return this.prevObject||jQuery([]);},push:[].push,sort:[].sort,splice:[].splice,find:function(selector){if(this.length===1){var ret=this.pushStack([],"find",selector);ret.length=0;jQuery.find(selector,this[0],ret);return ret;}else{return this.pushStack(jQuery.unique(jQuery.map(this,function(elem){return jQuery.find(selector,elem);
})),"find",selector);}},clone:function(events){var ret=this.map(function(){if(!jQuery.support.noCloneEvent&&!jQuery.isXMLDoc(this)){var html=this.outerHTML;if(!html){var div=this.ownerDocument.createElement("div");div.appendChild(this.cloneNode(true));html=div.innerHTML;}return jQuery.clean([html.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0];}else{return this.cloneNode(true);}});if(events===true){var orig=this.find("*").andSelf(),i=0;ret.find("*").andSelf().each(function(){if(this.nodeName!==orig[i].nodeName){return;}var events=jQuery.data(orig[i],"events");for(var type in events){for(var handler in events[type]){jQuery.event.add(this,type,events[type][handler],events[type][handler].data);}}i++;});}return ret;},filter:function(selector){return this.pushStack(jQuery.isFunction(selector)&&jQuery.grep(this,function(elem,i){return selector.call(elem,i);})||jQuery.multiFilter(selector,jQuery.grep(this,function(elem){return elem.nodeType===1;})),"filter",selector);},closest:function(selector){var pos=jQuery.expr.match.POS.test(selector)?jQuery(selector):null,closer=0;
return this.map(function(){var cur=this;while(cur&&cur.ownerDocument){if(pos?pos.index(cur)>-1:jQuery(cur).is(selector)){jQuery.data(cur,"closest",closer);return cur;}cur=cur.parentNode;closer++;}});},not:function(selector){if(typeof selector==="string"){if(isSimple.test(selector)){return this.pushStack(jQuery.multiFilter(selector,this,true),"not",selector);}else{selector=jQuery.multiFilter(selector,this);}}var isArrayLike=selector.length&&selector[selector.length-1]!==undefined&&!selector.nodeType;return this.filter(function(){return isArrayLike?jQuery.inArray(this,selector)<0:this!=selector;});},add:function(selector){return this.pushStack(jQuery.unique(jQuery.merge(this.get(),typeof selector==="string"?jQuery(selector):jQuery.makeArray(selector))));},is:function(selector){return !!selector&&jQuery.multiFilter(selector,this).length>0;},hasClass:function(selector){return !!selector&&this.is("."+selector);},val:function(value){if(value===undefined){var elem=this[0];if(elem){if(jQuery.nodeName(elem,"option")){return(elem.attributes.value||{}).specified?elem.value:elem.text;
}if(jQuery.nodeName(elem,"select")){var index=elem.selectedIndex,values=[],options=elem.options,one=elem.type=="select-one";if(index<0){return null;}for(var i=one?index:0,max=one?index+1:options.length;i<max;i++){var option=options[i];if(option.selected){value=jQuery(option).val();if(one){return value;}values.push(value);}}return values;}return(elem.value||"").replace(/\r/g,"");}return undefined;}if(typeof value==="number"){value+="";}return this.each(function(){if(this.nodeType!=1){return;}if(jQuery.isArray(value)&&/radio|checkbox/.test(this.type)){this.checked=(jQuery.inArray(this.value,value)>=0||jQuery.inArray(this.name,value)>=0);}else{if(jQuery.nodeName(this,"select")){var values=jQuery.makeArray(value);jQuery("option",this).each(function(){this.selected=(jQuery.inArray(this.value,values)>=0||jQuery.inArray(this.text,values)>=0);});if(!values.length){this.selectedIndex=-1;}}else{this.value=value;}}});},html:function(value){return value===undefined?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(value);
},replaceWith:function(value){return this.after(value).remove();},eq:function(i){return this.slice(i,+i+1);},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","));},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem);}));},andSelf:function(){return this.add(this.prevObject);},domManip:function(args,table,callback){if(this[0]){var fragment=(this[0].ownerDocument||this[0]).createDocumentFragment(),scripts=jQuery.clean(args,(this[0].ownerDocument||this[0]),fragment),first=fragment.firstChild;if(first){for(var i=0,l=this.length;i<l;i++){callback.call(root(this[i],first),this.length>1||i>0?fragment.cloneNode(true):fragment);}}if(scripts){jQuery.each(scripts,evalScript);}}return this;function root(elem,cur){return table&&jQuery.nodeName(elem,"table")&&jQuery.nodeName(cur,"tr")?(elem.getElementsByTagName("tbody")[0]||elem.appendChild(elem.ownerDocument.createElement("tbody"))):elem;
}}};jQuery.fn.init.prototype=jQuery.fn;function evalScript(i,elem){if(elem.src){jQuery.ajax({url:elem.src,async:false,dataType:"script"});}else{jQuery.globalEval(elem.text||elem.textContent||elem.innerHTML||"");}if(elem.parentNode){elem.parentNode.removeChild(elem);}}function now(){return +new Date;}jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(typeof target==="boolean"){deep=target;target=arguments[1]||{};i=2;}if(typeof target!=="object"&&!jQuery.isFunction(target)){target={};}if(length==i){target=this;--i;}for(;i<length;i++){if((options=arguments[i])!=null){for(var name in options){var src=target[name],copy=options[name];if(target===copy){continue;}if(deep&&copy&&typeof copy==="object"&&!copy.nodeType){target[name]=jQuery.extend(deep,src||(copy.length!=null?[]:{}),copy);}else{if(copy!==undefined){target[name]=copy;}}}}}return target;};var exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i,defaultView=document.defaultView||{},toString=Object.prototype.toString;
jQuery.extend({noConflict:function(deep){window.$=_$;if(deep){window.jQuery=_jQuery;}return jQuery;},isFunction:function(obj){return toString.call(obj)==="[object Function]";},isArray:function(obj){return toString.call(obj)==="[object Array]";},isXMLDoc:function(elem){return elem.nodeType===9&&elem.documentElement.nodeName!=="HTML"||!!elem.ownerDocument&&jQuery.isXMLDoc(elem.ownerDocument);},globalEval:function(data){if(data&&/\S/.test(data)){var head=document.getElementsByTagName("head")[0]||document.documentElement,script=document.createElement("script");script.type="text/javascript";if(jQuery.support.scriptEval){script.appendChild(document.createTextNode(data));}else{script.text=data;}head.insertBefore(script,head.firstChild);head.removeChild(script);}},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()==name.toUpperCase();},each:function(object,callback,args){var name,i=0,length=object.length;if(args){if(length===undefined){for(name in object){if(callback.apply(object[name],args)===false){break;
}}}else{for(;i<length;){if(callback.apply(object[i++],args)===false){break;}}}}else{if(length===undefined){for(name in object){if(callback.call(object[name],name,object[name])===false){break;}}}else{for(var value=object[0];i<length&&callback.call(value,i,value)!==false;value=object[++i]){}}}return object;},prop:function(elem,value,type,i,name){if(jQuery.isFunction(value)){value=value.call(elem,i);}return typeof value==="number"&&type=="curCSS"&&!exclude.test(name)?value+"px":value;},className:{add:function(elem,classNames){jQuery.each((classNames||"").split(/\s+/),function(i,className){if(elem.nodeType==1&&!jQuery.className.has(elem.className,className)){elem.className+=(elem.className?" ":"")+className;}});},remove:function(elem,classNames){if(elem.nodeType==1){elem.className=classNames!==undefined?jQuery.grep(elem.className.split(/\s+/),function(className){return !jQuery.className.has(classNames,className);}).join(" "):"";}},has:function(elem,className){return elem&&jQuery.inArray(className,(elem.className||elem).toString().split(/\s+/))>-1;
}},swap:function(elem,options,callback){var old={};for(var name in options){old[name]=elem.style[name];elem.style[name]=options[name];}callback.call(elem);for(var name in options){elem.style[name]=old[name];}},css:function(elem,name,force,extra){if(name=="width"||name=="height"){var val,props={position:"absolute",visibility:"hidden",display:"block"},which=name=="width"?["Left","Right"]:["Top","Bottom"];function getWH(){val=name=="width"?elem.offsetWidth:elem.offsetHeight;if(extra==="border"){return;}jQuery.each(which,function(){if(!extra){val-=parseFloat(jQuery.curCSS(elem,"padding"+this,true))||0;}if(extra==="margin"){val+=parseFloat(jQuery.curCSS(elem,"margin"+this,true))||0;}else{val-=parseFloat(jQuery.curCSS(elem,"border"+this+"Width",true))||0;}});}if(elem.offsetWidth!==0){getWH();}else{jQuery.swap(elem,props,getWH);}return Math.max(0,Math.round(val));}return jQuery.curCSS(elem,name,force);},curCSS:function(elem,name,force){var ret,style=elem.style;if(name=="opacity"&&!jQuery.support.opacity){ret=jQuery.attr(style,"opacity");
return ret==""?"1":ret;}if(name.match(/float/i)){name=styleFloat;}if(!force&&style&&style[name]){ret=style[name];}else{if(defaultView.getComputedStyle){if(name.match(/float/i)){name="float";}name=name.replace(/([A-Z])/g,"-$1").toLowerCase();var computedStyle=defaultView.getComputedStyle(elem,null);if(computedStyle){ret=computedStyle.getPropertyValue(name);}if(name=="opacity"&&ret==""){ret="1";}}else{if(elem.currentStyle){var camelCase=name.replace(/\-(\w)/g,function(all,letter){return letter.toUpperCase();});ret=elem.currentStyle[name]||elem.currentStyle[camelCase];if(!/^\d+(px)?$/i.test(ret)&&/^\d/.test(ret)){var left=style.left,rsLeft=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;style.left=ret||0;ret=style.pixelLeft+"px";style.left=left;elem.runtimeStyle.left=rsLeft;}}}}return ret;},clean:function(elems,context,fragment){context=context||document;if(typeof context.createElement==="undefined"){context=context.ownerDocument||context[0]&&context[0].ownerDocument||document;
}if(!fragment&&elems.length===1&&typeof elems[0]==="string"){var match=/^<(\w+)\s*\/?>$/.exec(elems[0]);if(match){return[context.createElement(match[1])];}}var ret=[],scripts=[],div=context.createElement("div");jQuery.each(elems,function(i,elem){if(typeof elem==="number"){elem+="";}if(!elem){return;}if(typeof elem==="string"){elem=elem.replace(/(<(\w+)[^>]*?)\/>/g,function(all,front,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:front+"></"+tag+">";});var tags=elem.replace(/^\s+/,"").substring(0,10).toLowerCase();var wrap=!tags.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!tags.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||tags.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!tags.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!tags.indexOf("<td")||!tags.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!tags.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!jQuery.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];
div.innerHTML=wrap[1]+elem+wrap[2];while(wrap[0]--){div=div.lastChild;}if(!jQuery.support.tbody){var hasBody=/<tbody/i.test(elem),tbody=!tags.indexOf("<table")&&!hasBody?div.firstChild&&div.firstChild.childNodes:wrap[1]=="<table>"&&!hasBody?div.childNodes:[];for(var j=tbody.length-1;j>=0;--j){if(jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length){tbody[j].parentNode.removeChild(tbody[j]);}}}if(!jQuery.support.leadingWhitespace&&/^\s/.test(elem)){div.insertBefore(context.createTextNode(elem.match(/^\s*/)[0]),div.firstChild);}elem=jQuery.makeArray(div.childNodes);}if(elem.nodeType){ret.push(elem);}else{ret=jQuery.merge(ret,elem);}});if(fragment){for(var i=0;ret[i];i++){if(jQuery.nodeName(ret[i],"script")&&(!ret[i].type||ret[i].type.toLowerCase()==="text/javascript")){scripts.push(ret[i].parentNode?ret[i].parentNode.removeChild(ret[i]):ret[i]);}else{if(ret[i].nodeType===1){ret.splice.apply(ret,[i+1,0].concat(jQuery.makeArray(ret[i].getElementsByTagName("script"))));}fragment.appendChild(ret[i]);
}}return scripts;}return ret;},attr:function(elem,name,value){if(!elem||elem.nodeType==3||elem.nodeType==8){return undefined;}var notxml=!jQuery.isXMLDoc(elem),set=value!==undefined;name=notxml&&jQuery.props[name]||name;if(elem.tagName){var special=/href|src|style/.test(name);if(name=="selected"&&elem.parentNode){elem.parentNode.selectedIndex;}if(name in elem&&notxml&&!special){if(set){if(name=="type"&&jQuery.nodeName(elem,"input")&&elem.parentNode){throw"type property can't be changed";}elem[name]=value;}if(jQuery.nodeName(elem,"form")&&elem.getAttributeNode(name)){return elem.getAttributeNode(name).nodeValue;}if(name=="tabIndex"){var attributeNode=elem.getAttributeNode("tabIndex");return attributeNode&&attributeNode.specified?attributeNode.value:elem.nodeName.match(/(button|input|object|select|textarea)/i)?0:elem.nodeName.match(/^(a|area)$/i)&&elem.href?0:undefined;}return elem[name];}if(!jQuery.support.style&&notxml&&name=="style"){return jQuery.attr(elem.style,"cssText",value);}if(set){elem.setAttribute(name,""+value);
}var attr=!jQuery.support.hrefNormalized&&notxml&&special?elem.getAttribute(name,2):elem.getAttribute(name);return attr===null?undefined:attr;}if(!jQuery.support.opacity&&name=="opacity"){if(set){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(value)+""=="NaN"?"":"alpha(opacity="+value*100+")");}return elem.filter&&elem.filter.indexOf("opacity=")>=0?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100)+"":"";}name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase();});if(set){elem[name]=value;}return elem[name];},trim:function(text){return(text||"").replace(/^\s+|\s+$/g,"");},makeArray:function(array){var ret=[];if(array!=null){var i=array.length;if(i==null||typeof array==="string"||jQuery.isFunction(array)||array.setInterval){ret[0]=array;}else{while(i){ret[--i]=array[i];}}}return ret;},inArray:function(elem,array){for(var i=0,length=array.length;i<length;i++){if(array[i]===elem){return i;}}return -1;},merge:function(first,second){var i=0,elem,pos=first.length;
if(!jQuery.support.getAll){while((elem=second[i++])!=null){if(elem.nodeType!=8){first[pos++]=elem;}}}else{while((elem=second[i++])!=null){first[pos++]=elem;}}return first;},unique:function(array){var ret=[],done={};try{for(var i=0,length=array.length;i<length;i++){var id=jQuery.data(array[i]);if(!done[id]){done[id]=true;ret.push(array[i]);}}}catch(e){ret=array;}return ret;},grep:function(elems,callback,inv){var ret=[];for(var i=0,length=elems.length;i<length;i++){if(!inv!=!callback(elems[i],i)){ret.push(elems[i]);}}return ret;},map:function(elems,callback){var ret=[];for(var i=0,length=elems.length;i<length;i++){var value=callback(elems[i],i);if(value!=null){ret[ret.length]=value;}}return ret.concat.apply([],ret);}});var userAgent=navigator.userAgent.toLowerCase();jQuery.browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};
jQuery.each({parent:function(elem){return elem.parentNode;},parents:function(elem){return jQuery.dir(elem,"parentNode");},next:function(elem){return jQuery.nth(elem,2,"nextSibling");},prev:function(elem){return jQuery.nth(elem,2,"previousSibling");},nextAll:function(elem){return jQuery.dir(elem,"nextSibling");},prevAll:function(elem){return jQuery.dir(elem,"previousSibling");},siblings:function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem);},children:function(elem){return jQuery.sibling(elem.firstChild);},contents:function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes);}},function(name,fn){jQuery.fn[name]=function(selector){var ret=jQuery.map(this,fn);if(selector&&typeof selector=="string"){ret=jQuery.multiFilter(selector,ret);}return this.pushStack(jQuery.unique(ret),name,selector);};});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(selector){var ret=[],insert=jQuery(selector);
for(var i=0,l=insert.length;i<l;i++){var elems=(i>0?this.clone(true):this).get();jQuery.fn[original].apply(jQuery(insert[i]),elems);ret=ret.concat(elems);}return this.pushStack(ret,name,selector);};});jQuery.each({removeAttr:function(name){jQuery.attr(this,name,"");if(this.nodeType==1){this.removeAttribute(name);}},addClass:function(classNames){jQuery.className.add(this,classNames);},removeClass:function(classNames){jQuery.className.remove(this,classNames);},toggleClass:function(classNames,state){if(typeof state!=="boolean"){state=!jQuery.className.has(this,classNames);}jQuery.className[state?"add":"remove"](this,classNames);},remove:function(selector){if(!selector||jQuery.filter(selector,[this]).length){jQuery("*",this).add([this]).each(function(){jQuery.event.remove(this);jQuery.removeData(this);});if(this.parentNode){this.parentNode.removeChild(this);}}},empty:function(){jQuery(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild);}}},function(name,fn){jQuery.fn[name]=function(){return this.each(fn,arguments);
};});function num(elem,prop){return elem[0]&&parseInt(jQuery.curCSS(elem[0],prop,true),10)||0;}var expando="jQuery"+now(),uuid=0,windowData={};jQuery.extend({cache:{},data:function(elem,name,data){elem=elem==window?windowData:elem;var id=elem[expando];if(!id){id=elem[expando]=++uuid;}if(name&&!jQuery.cache[id]){jQuery.cache[id]={};}if(data!==undefined){jQuery.cache[id][name]=data;}return name?jQuery.cache[id][name]:id;},removeData:function(elem,name){elem=elem==window?windowData:elem;var id=elem[expando];if(name){if(jQuery.cache[id]){delete jQuery.cache[id][name];name="";for(name in jQuery.cache[id]){break;}if(!name){jQuery.removeData(elem);}}}else{try{delete elem[expando];}catch(e){if(elem.removeAttribute){elem.removeAttribute(expando);}}delete jQuery.cache[id];}},queue:function(elem,type,data){if(elem){type=(type||"fx")+"queue";var q=jQuery.data(elem,type);if(!q||jQuery.isArray(data)){q=jQuery.data(elem,type,jQuery.makeArray(data));}else{if(data){q.push(data);}}}return q;},dequeue:function(elem,type){var queue=jQuery.queue(elem,type),fn=queue.shift();
if(!type||type==="fx"){fn=queue[0];}if(fn!==undefined){fn.call(elem);}}});jQuery.fn.extend({data:function(key,value){var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value===undefined){var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);if(data===undefined&&this.length){data=jQuery.data(this[0],key);}return data===undefined&&parts[1]?this.data(parts[0]):data;}else{return this.trigger("setData"+parts[1]+"!",[parts[0],value]).each(function(){jQuery.data(this,key,value);});}},removeData:function(key){return this.each(function(){jQuery.removeData(this,key);});},queue:function(type,data){if(typeof type!=="string"){data=type;type="fx";}if(data===undefined){return jQuery.queue(this[0],type);}return this.each(function(){var queue=jQuery.queue(this,type,data);if(type=="fx"&&queue.length==1){queue[0].call(this);}});},dequeue:function(type){return this.each(function(){jQuery.dequeue(this,type);});}});(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,done=0,toString=Object.prototype.toString;
var Sizzle=function(selector,context,results,seed){results=results||[];context=context||document;if(context.nodeType!==1&&context.nodeType!==9){return[];}if(!selector||typeof selector!=="string"){return results;}var parts=[],m,set,checkSet,check,mode,extra,prune=true;chunker.lastIndex=0;while((m=chunker.exec(selector))!==null){parts.push(m[1]);if(m[2]){extra=RegExp.rightContext;break;}}if(parts.length>1&&origPOS.exec(selector)){if(parts.length===2&&Expr.relative[parts[0]]){set=posProcess(parts[0]+parts[1],context);}else{set=Expr.relative[parts[0]]?[context]:Sizzle(parts.shift(),context);while(parts.length){selector=parts.shift();if(Expr.relative[selector]){selector+=parts.shift();}set=posProcess(selector,set);}}}else{var ret=seed?{expr:parts.pop(),set:makeArray(seed)}:Sizzle.find(parts.pop(),parts.length===1&&context.parentNode?context.parentNode:context,isXML(context));set=Sizzle.filter(ret.expr,ret.set);if(parts.length>0){checkSet=makeArray(set);}else{prune=false;}while(parts.length){var cur=parts.pop(),pop=cur;
if(!Expr.relative[cur]){cur="";}else{pop=parts.pop();}if(pop==null){pop=context;}Expr.relative[cur](checkSet,pop,isXML(context));}}if(!checkSet){checkSet=set;}if(!checkSet){throw"Syntax error, unrecognized expression: "+(cur||selector);}if(toString.call(checkSet)==="[object Array]"){if(!prune){results.push.apply(results,checkSet);}else{if(context.nodeType===1){for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&(checkSet[i]===true||checkSet[i].nodeType===1&&contains(context,checkSet[i]))){results.push(set[i]);}}}else{for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&checkSet[i].nodeType===1){results.push(set[i]);}}}}}else{makeArray(checkSet,results);}if(extra){Sizzle(extra,context,results,seed);if(sortOrder){hasDuplicate=false;results.sort(sortOrder);if(hasDuplicate){for(var i=1;i<results.length;i++){if(results[i]===results[i-1]){results.splice(i--,1);}}}}}return results;};Sizzle.matches=function(expr,set){return Sizzle(expr,null,null,set);};Sizzle.find=function(expr,context,isXML){var set,match;
if(!expr){return[];}for(var i=0,l=Expr.order.length;i<l;i++){var type=Expr.order[i],match;if((match=Expr.match[type].exec(expr))){var left=RegExp.leftContext;if(left.substr(left.length-1)!=="\\"){match[1]=(match[1]||"").replace(/\\/g,"");set=Expr.find[type](match,context,isXML);if(set!=null){expr=expr.replace(Expr.match[type],"");break;}}}}if(!set){set=context.getElementsByTagName("*");}return{set:set,expr:expr};};Sizzle.filter=function(expr,set,inplace,not){var old=expr,result=[],curLoop=set,match,anyFound,isXMLFilter=set&&set[0]&&isXML(set[0]);while(expr&&set.length){for(var type in Expr.filter){if((match=Expr.match[type].exec(expr))!=null){var filter=Expr.filter[type],found,item;anyFound=false;if(curLoop==result){result=[];}if(Expr.preFilter[type]){match=Expr.preFilter[type](match,curLoop,inplace,result,not,isXMLFilter);if(!match){anyFound=found=true;}else{if(match===true){continue;}}}if(match){for(var i=0;(item=curLoop[i])!=null;i++){if(item){found=filter(item,match,i,curLoop);var pass=not^!!found;
if(inplace&&found!=null){if(pass){anyFound=true;}else{curLoop[i]=false;}}else{if(pass){result.push(item);anyFound=true;}}}}}if(found!==undefined){if(!inplace){curLoop=result;}expr=expr.replace(Expr.match[type],"");if(!anyFound){return[];}break;}}}if(expr==old){if(anyFound==null){throw"Syntax error, unrecognized expression: "+expr;}else{break;}}old=expr;}return curLoop;};var Expr=Sizzle.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(elem){return elem.getAttribute("href");
}},relative:{"+":function(checkSet,part,isXML){var isPartStr=typeof part==="string",isTag=isPartStr&&!/\W/.test(part),isPartStrNotTag=isPartStr&&!isTag;if(isTag&&!isXML){part=part.toUpperCase();}for(var i=0,l=checkSet.length,elem;i<l;i++){if((elem=checkSet[i])){while((elem=elem.previousSibling)&&elem.nodeType!==1){}checkSet[i]=isPartStrNotTag||elem&&elem.nodeName===part?elem||false:elem===part;}}if(isPartStrNotTag){Sizzle.filter(part,checkSet,true);}},">":function(checkSet,part,isXML){var isPartStr=typeof part==="string";if(isPartStr&&!/\W/.test(part)){part=isXML?part:part.toUpperCase();for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){var parent=elem.parentNode;checkSet[i]=parent.nodeName===part?parent:false;}}}else{for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){checkSet[i]=isPartStr?elem.parentNode:elem.parentNode===part;}}if(isPartStr){Sizzle.filter(part,checkSet,true);}}},"":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;if(!part.match(/\W/)){var nodeCheck=part=isXML?part:part.toUpperCase();
checkFn=dirNodeCheck;}checkFn("parentNode",part,doneName,checkSet,nodeCheck,isXML);},"~":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;if(typeof part==="string"&&!part.match(/\W/)){var nodeCheck=part=isXML?part:part.toUpperCase();checkFn=dirNodeCheck;}checkFn("previousSibling",part,doneName,checkSet,nodeCheck,isXML);}},find:{ID:function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?[m]:[];}},NAME:function(match,context,isXML){if(typeof context.getElementsByName!=="undefined"){var ret=[],results=context.getElementsByName(match[1]);for(var i=0,l=results.length;i<l;i++){if(results[i].getAttribute("name")===match[1]){ret.push(results[i]);}}return ret.length===0?null:ret;}},TAG:function(match,context){return context.getElementsByTagName(match[1]);}},preFilter:{CLASS:function(match,curLoop,inplace,result,not,isXML){match=" "+match[1].replace(/\\/g,"")+" ";if(isXML){return match;}for(var i=0,elem;
(elem=curLoop[i])!=null;i++){if(elem){if(not^(elem.className&&(" "+elem.className+" ").indexOf(match)>=0)){if(!inplace){result.push(elem);}}else{if(inplace){curLoop[i]=false;}}}}return false;},ID:function(match){return match[1].replace(/\\/g,"");},TAG:function(match,curLoop){for(var i=0;curLoop[i]===false;i++){}return curLoop[i]&&isXML(curLoop[i])?match[1]:match[1].toUpperCase();},CHILD:function(match){if(match[1]=="nth"){var test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(match[2]=="even"&&"2n"||match[2]=="odd"&&"2n+1"||!/\D/.test(match[2])&&"0n+"+match[2]||match[2]);match[2]=(test[1]+(test[2]||1))-0;match[3]=test[3]-0;}match[0]=done++;return match;},ATTR:function(match,curLoop,inplace,result,not,isXML){var name=match[1].replace(/\\/g,"");if(!isXML&&Expr.attrMap[name]){match[1]=Expr.attrMap[name];}if(match[2]==="~="){match[4]=" "+match[4]+" ";}return match;},PSEUDO:function(match,curLoop,inplace,result,not){if(match[1]==="not"){if(match[3].match(chunker).length>1||/^\w/.test(match[3])){match[3]=Sizzle(match[3],null,null,curLoop);
}else{var ret=Sizzle.filter(match[3],curLoop,inplace,true^not);if(!inplace){result.push.apply(result,ret);}return false;}}else{if(Expr.match.POS.test(match[0])||Expr.match.CHILD.test(match[0])){return true;}}return match;},POS:function(match){match.unshift(true);return match;}},filters:{enabled:function(elem){return elem.disabled===false&&elem.type!=="hidden";},disabled:function(elem){return elem.disabled===true;},checked:function(elem){return elem.checked===true;},selected:function(elem){elem.parentNode.selectedIndex;return elem.selected===true;},parent:function(elem){return !!elem.firstChild;},empty:function(elem){return !elem.firstChild;},has:function(elem,i,match){return !!Sizzle(match[3],elem).length;},header:function(elem){return/h\d/i.test(elem.nodeName);},text:function(elem){return"text"===elem.type;},radio:function(elem){return"radio"===elem.type;},checkbox:function(elem){return"checkbox"===elem.type;},file:function(elem){return"file"===elem.type;},password:function(elem){return"password"===elem.type;
},submit:function(elem){return"submit"===elem.type;},image:function(elem){return"image"===elem.type;},reset:function(elem){return"reset"===elem.type;},button:function(elem){return"button"===elem.type||elem.nodeName.toUpperCase()==="BUTTON";},input:function(elem){return/input|select|textarea|button/i.test(elem.nodeName);}},setFilters:{first:function(elem,i){return i===0;},last:function(elem,i,match,array){return i===array.length-1;},even:function(elem,i){return i%2===0;},odd:function(elem,i){return i%2===1;},lt:function(elem,i,match){return i<match[3]-0;},gt:function(elem,i,match){return i>match[3]-0;},nth:function(elem,i,match){return match[3]-0==i;},eq:function(elem,i,match){return match[3]-0==i;}},filter:{PSEUDO:function(elem,match,i,array){var name=match[1],filter=Expr.filters[name];if(filter){return filter(elem,i,match,array);}else{if(name==="contains"){return(elem.textContent||elem.innerText||"").indexOf(match[3])>=0;}else{if(name==="not"){var not=match[3];for(var i=0,l=not.length;
i<l;i++){if(not[i]===elem){return false;}}return true;}}}},CHILD:function(elem,match){var type=match[1],node=elem;switch(type){case"only":case"first":while(node=node.previousSibling){if(node.nodeType===1){return false;}}if(type=="first"){return true;}node=elem;case"last":while(node=node.nextSibling){if(node.nodeType===1){return false;}}return true;case"nth":var first=match[2],last=match[3];if(first==1&&last==0){return true;}var doneName=match[0],parent=elem.parentNode;if(parent&&(parent.sizcache!==doneName||!elem.nodeIndex)){var count=0;for(node=parent.firstChild;node;node=node.nextSibling){if(node.nodeType===1){node.nodeIndex=++count;}}parent.sizcache=doneName;}var diff=elem.nodeIndex-last;if(first==0){return diff==0;}else{return(diff%first==0&&diff/first>=0);}}},ID:function(elem,match){return elem.nodeType===1&&elem.getAttribute("id")===match;},TAG:function(elem,match){return(match==="*"&&elem.nodeType===1)||elem.nodeName===match;},CLASS:function(elem,match){return(" "+(elem.className||elem.getAttribute("class"))+" ").indexOf(match)>-1;
},ATTR:function(elem,match){var name=match[1],result=Expr.attrHandle[name]?Expr.attrHandle[name](elem):elem[name]!=null?elem[name]:elem.getAttribute(name),value=result+"",type=match[2],check=match[4];return result==null?type==="!=":type==="="?value===check:type==="*="?value.indexOf(check)>=0:type==="~="?(" "+value+" ").indexOf(check)>=0:!check?value&&result!==false:type==="!="?value!=check:type==="^="?value.indexOf(check)===0:type==="$="?value.substr(value.length-check.length)===check:type==="|="?value===check||value.substr(0,check.length+1)===check+"-":false;},POS:function(elem,match,i,array){var name=match[2],filter=Expr.setFilters[name];if(filter){return filter(elem,i,match,array);}}}};var origPOS=Expr.match.POS;for(var type in Expr.match){Expr.match[type]=RegExp(Expr.match[type].source+/(?![^\[]*\])(?![^\(]*\))/.source);}var makeArray=function(array,results){array=Array.prototype.slice.call(array);if(results){results.push.apply(results,array);return results;}return array;};try{Array.prototype.slice.call(document.documentElement.childNodes);
}catch(e){makeArray=function(array,results){var ret=results||[];if(toString.call(array)==="[object Array]"){Array.prototype.push.apply(ret,array);}else{if(typeof array.length==="number"){for(var i=0,l=array.length;i<l;i++){ret.push(array[i]);}}else{for(var i=0;array[i];i++){ret.push(array[i]);}}}return ret;};}var sortOrder;if(document.documentElement.compareDocumentPosition){sortOrder=function(a,b){var ret=a.compareDocumentPosition(b)&4?-1:a===b?0:1;if(ret===0){hasDuplicate=true;}return ret;};}else{if("sourceIndex" in document.documentElement){sortOrder=function(a,b){var ret=a.sourceIndex-b.sourceIndex;if(ret===0){hasDuplicate=true;}return ret;};}else{if(document.createRange){sortOrder=function(a,b){var aRange=a.ownerDocument.createRange(),bRange=b.ownerDocument.createRange();aRange.selectNode(a);aRange.collapse(true);bRange.selectNode(b);bRange.collapse(true);var ret=aRange.compareBoundaryPoints(Range.START_TO_END,bRange);if(ret===0){hasDuplicate=true;}return ret;};}}}(function(){var form=document.createElement("form"),id="script"+(new Date).getTime();
form.innerHTML="<input name='"+id+"'/>";var root=document.documentElement;root.insertBefore(form,root.firstChild);if(!!document.getElementById(id)){Expr.find.ID=function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?m.id===match[1]||typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id").nodeValue===match[1]?[m]:undefined:[];}};Expr.filter.ID=function(elem,match){var node=typeof elem.getAttributeNode!=="undefined"&&elem.getAttributeNode("id");return elem.nodeType===1&&node&&node.nodeValue===match;};}root.removeChild(form);})();(function(){var div=document.createElement("div");div.appendChild(document.createComment(""));if(div.getElementsByTagName("*").length>0){Expr.find.TAG=function(match,context){var results=context.getElementsByTagName(match[1]);if(match[1]==="*"){var tmp=[];for(var i=0;results[i];i++){if(results[i].nodeType===1){tmp.push(results[i]);}}results=tmp;}return results;};}div.innerHTML="<a href='#'></a>";
if(div.firstChild&&typeof div.firstChild.getAttribute!=="undefined"&&div.firstChild.getAttribute("href")!=="#"){Expr.attrHandle.href=function(elem){return elem.getAttribute("href",2);};}})();if(document.querySelectorAll){(function(){var oldSizzle=Sizzle,div=document.createElement("div");div.innerHTML="<p class='TEST'></p>";if(div.querySelectorAll&&div.querySelectorAll(".TEST").length===0){return;}Sizzle=function(query,context,extra,seed){context=context||document;if(!seed&&context.nodeType===9&&!isXML(context)){try{return makeArray(context.querySelectorAll(query),extra);}catch(e){}}return oldSizzle(query,context,extra,seed);};Sizzle.find=oldSizzle.find;Sizzle.filter=oldSizzle.filter;Sizzle.selectors=oldSizzle.selectors;Sizzle.matches=oldSizzle.matches;})();}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var div=document.createElement("div");div.innerHTML="<div class='test e'></div><div class='test'></div>";if(div.getElementsByClassName("e").length===0){return;
}div.lastChild.className="e";if(div.getElementsByClassName("e").length===1){return;}Expr.order.splice(1,0,"CLASS");Expr.find.CLASS=function(match,context,isXML){if(typeof context.getElementsByClassName!=="undefined"&&!isXML){return context.getElementsByClassName(match[1]);}};})();}function dirNodeCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){var sibDir=dir=="previousSibling"&&!isXML;for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){if(sibDir&&elem.nodeType===1){elem.sizcache=doneName;elem.sizset=i;}elem=elem[dir];var match=false;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break;}if(elem.nodeType===1&&!isXML){elem.sizcache=doneName;elem.sizset=i;}if(elem.nodeName===cur){match=elem;break;}elem=elem[dir];}checkSet[i]=match;}}}function dirCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){var sibDir=dir=="previousSibling"&&!isXML;for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){if(sibDir&&elem.nodeType===1){elem.sizcache=doneName;
elem.sizset=i;}elem=elem[dir];var match=false;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break;}if(elem.nodeType===1){if(!isXML){elem.sizcache=doneName;elem.sizset=i;}if(typeof cur!=="string"){if(elem===cur){match=true;break;}}else{if(Sizzle.filter(cur,[elem]).length>0){match=elem;break;}}}elem=elem[dir];}checkSet[i]=match;}}}var contains=document.compareDocumentPosition?function(a,b){return a.compareDocumentPosition(b)&16;}:function(a,b){return a!==b&&(a.contains?a.contains(b):true);};var isXML=function(elem){return elem.nodeType===9&&elem.documentElement.nodeName!=="HTML"||!!elem.ownerDocument&&isXML(elem.ownerDocument);};var posProcess=function(selector,context){var tmpSet=[],later="",match,root=context.nodeType?[context]:context;while((match=Expr.match.PSEUDO.exec(selector))){later+=match[0];selector=selector.replace(Expr.match.PSEUDO,"");}selector=Expr.relative[selector]?selector+"*":selector;for(var i=0,l=root.length;i<l;i++){Sizzle(selector,root[i],tmpSet);
}return Sizzle.filter(later,tmpSet);};jQuery.find=Sizzle;jQuery.filter=Sizzle.filter;jQuery.expr=Sizzle.selectors;jQuery.expr[":"]=jQuery.expr.filters;Sizzle.selectors.filters.hidden=function(elem){return elem.offsetWidth===0||elem.offsetHeight===0;};Sizzle.selectors.filters.visible=function(elem){return elem.offsetWidth>0||elem.offsetHeight>0;};Sizzle.selectors.filters.animated=function(elem){return jQuery.grep(jQuery.timers,function(fn){return elem===fn.elem;}).length;};jQuery.multiFilter=function(expr,elems,not){if(not){expr=":not("+expr+")";}return Sizzle.matches(expr,elems);};jQuery.dir=function(elem,dir){var matched=[],cur=elem[dir];while(cur&&cur!=document){if(cur.nodeType==1){matched.push(cur);}cur=cur[dir];}return matched;};jQuery.nth=function(cur,result,dir,elem){result=result||1;var num=0;for(;cur;cur=cur[dir]){if(cur.nodeType==1&&++num==result){break;}}return cur;};jQuery.sibling=function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&&n!=elem){r.push(n);}}return r;
};return;window.Sizzle=Sizzle;})();jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType==3||elem.nodeType==8){return;}if(elem.setInterval&&elem!=window){elem=window;}if(!handler.guid){handler.guid=this.guid++;}if(data!==undefined){var fn=handler;handler=this.proxy(fn);handler.data=data;}var events=jQuery.data(elem,"events")||jQuery.data(elem,"events",{}),handle=jQuery.data(elem,"handle")||jQuery.data(elem,"handle",function(){return typeof jQuery!=="undefined"&&!jQuery.event.triggered?jQuery.event.handle.apply(arguments.callee.elem,arguments):undefined;});handle.elem=elem;jQuery.each(types.split(/\s+/),function(index,type){var namespaces=type.split(".");type=namespaces.shift();handler.type=namespaces.slice().sort().join(".");var handlers=events[type];if(jQuery.event.specialAll[type]){jQuery.event.specialAll[type].setup.call(elem,data,namespaces);}if(!handlers){handlers=events[type]={};if(!jQuery.event.special[type]||jQuery.event.special[type].setup.call(elem,data,namespaces)===false){if(elem.addEventListener){elem.addEventListener(type,handle,false);
}else{if(elem.attachEvent){elem.attachEvent("on"+type,handle);}}}}handlers[handler.guid]=handler;jQuery.event.global[type]=true;});elem=null;},guid:1,global:{},remove:function(elem,types,handler){if(elem.nodeType==3||elem.nodeType==8){return;}var events=jQuery.data(elem,"events"),ret,index;if(events){if(types===undefined||(typeof types==="string"&&types.charAt(0)==".")){for(var type in events){this.remove(elem,type+(types||""));}}else{if(types.type){handler=types.handler;types=types.type;}jQuery.each(types.split(/\s+/),function(index,type){var namespaces=type.split(".");type=namespaces.shift();var namespace=RegExp("(^|\\.)"+namespaces.slice().sort().join(".*\\.")+"(\\.|$)");if(events[type]){if(handler){delete events[type][handler.guid];}else{for(var handle in events[type]){if(namespace.test(events[type][handle].type)){delete events[type][handle];}}}if(jQuery.event.specialAll[type]){jQuery.event.specialAll[type].teardown.call(elem,namespaces);}for(ret in events[type]){break;}if(!ret){if(!jQuery.event.special[type]||jQuery.event.special[type].teardown.call(elem,namespaces)===false){if(elem.removeEventListener){elem.removeEventListener(type,jQuery.data(elem,"handle"),false);
}else{if(elem.detachEvent){elem.detachEvent("on"+type,jQuery.data(elem,"handle"));}}}ret=null;delete events[type];}}});}for(ret in events){break;}if(!ret){var handle=jQuery.data(elem,"handle");if(handle){handle.elem=null;}jQuery.removeData(elem,"events");jQuery.removeData(elem,"handle");}}},trigger:function(event,data,elem,bubbling){var type=event.type||event;if(!bubbling){event=typeof event==="object"?event[expando]?event:jQuery.extend(jQuery.Event(type),event):jQuery.Event(type);if(type.indexOf("!")>=0){event.type=type=type.slice(0,-1);event.exclusive=true;}if(!elem){event.stopPropagation();if(this.global[type]){jQuery.each(jQuery.cache,function(){if(this.events&&this.events[type]){jQuery.event.trigger(event,data,this.handle.elem);}});}}if(!elem||elem.nodeType==3||elem.nodeType==8){return undefined;}event.result=undefined;event.target=elem;data=jQuery.makeArray(data);data.unshift(event);}event.currentTarget=elem;var handle=jQuery.data(elem,"handle");if(handle){handle.apply(elem,data);
}if((!elem[type]||(jQuery.nodeName(elem,"a")&&type=="click"))&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false){event.result=false;}if(!bubbling&&elem[type]&&!event.isDefaultPrevented()&&!(jQuery.nodeName(elem,"a")&&type=="click")){this.triggered=true;try{elem[type]();}catch(e){}}this.triggered=false;if(!event.isPropagationStopped()){var parent=elem.parentNode||elem.ownerDocument;if(parent){jQuery.event.trigger(event,data,parent,true);}}},handle:function(event){var all,handlers;event=arguments[0]=jQuery.event.fix(event||window.event);event.currentTarget=this;var namespaces=event.type.split(".");event.type=namespaces.shift();all=!namespaces.length&&!event.exclusive;var namespace=RegExp("(^|\\.)"+namespaces.slice().sort().join(".*\\.")+"(\\.|$)");handlers=(jQuery.data(this,"events")||{})[event.type];for(var j in handlers){var handler=handlers[j];if(all||namespace.test(handler.type)){event.handler=handler;event.data=handler.data;var ret=handler.apply(this,arguments);if(ret!==undefined){event.result=ret;
if(ret===false){event.preventDefault();event.stopPropagation();}}if(event.isImmediatePropagationStopped()){break;}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(event){if(event[expando]){return event;}var originalEvent=event;event=jQuery.Event(originalEvent);for(var i=this.props.length,prop;i;){prop=this.props[--i];event[prop]=originalEvent[prop];}if(!event.target){event.target=event.srcElement||document;}if(event.target.nodeType==3){event.target=event.target.parentNode;}if(!event.relatedTarget&&event.fromElement){event.relatedTarget=event.fromElement==event.target?event.toElement:event.fromElement;}if(event.pageX==null&&event.clientX!=null){var doc=document.documentElement,body=document.body;event.pageX=event.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc.clientLeft||0);
event.pageY=event.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc.clientTop||0);}if(!event.which&&((event.charCode||event.charCode===0)?event.charCode:event.keyCode)){event.which=event.charCode||event.keyCode;}if(!event.metaKey&&event.ctrlKey){event.metaKey=event.ctrlKey;}if(!event.which&&event.button){event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)));}return event;},proxy:function(fn,proxy){proxy=proxy||function(){return fn.apply(this,arguments);};proxy.guid=fn.guid=fn.guid||proxy.guid||this.guid++;return proxy;},special:{ready:{setup:bindReady,teardown:function(){}}},specialAll:{live:{setup:function(selector,namespaces){jQuery.event.add(this,namespaces[0],liveHandler);},teardown:function(namespaces){if(namespaces.length){var remove=0,name=RegExp("(^|\\.)"+namespaces[0]+"(\\.|$)");jQuery.each((jQuery.data(this,"events").live||{}),function(){if(name.test(this.type)){remove++;}});if(remove<1){jQuery.event.remove(this,namespaces[0],liveHandler);}}}}}};jQuery.Event=function(src){if(!this.preventDefault){return new jQuery.Event(src);
}if(src&&src.type){this.originalEvent=src;this.type=src.type;}else{this.type=src;}this.timeStamp=now();this[expando]=true;};function returnFalse(){return false;}function returnTrue(){return true;}jQuery.Event.prototype={preventDefault:function(){this.isDefaultPrevented=returnTrue;var e=this.originalEvent;if(!e){return;}if(e.preventDefault){e.preventDefault();}e.returnValue=false;},stopPropagation:function(){this.isPropagationStopped=returnTrue;var e=this.originalEvent;if(!e){return;}if(e.stopPropagation){e.stopPropagation();}e.cancelBubble=true;},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=returnTrue;this.stopPropagation();},isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse};var withinElement=function(event){var parent=event.relatedTarget;while(parent&&parent!=this){try{parent=parent.parentNode;}catch(e){parent=this;}}if(parent!=this){event.type=event.data;jQuery.event.handle.apply(this,arguments);}};jQuery.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(orig,fix){jQuery.event.special[fix]={setup:function(){jQuery.event.add(this,orig,withinElement,fix);
},teardown:function(){jQuery.event.remove(this,orig,withinElement);}};});jQuery.fn.extend({bind:function(type,data,fn){return type=="unload"?this.one(type,data,fn):this.each(function(){jQuery.event.add(this,type,fn||data,fn&&data);});},one:function(type,data,fn){var one=jQuery.event.proxy(fn||data,function(event){jQuery(this).unbind(event,one);return(fn||data).apply(this,arguments);});return this.each(function(){jQuery.event.add(this,type,one,fn&&data);});},unbind:function(type,fn){return this.each(function(){jQuery.event.remove(this,type,fn);});},trigger:function(type,data){return this.each(function(){jQuery.event.trigger(type,data,this);});},triggerHandler:function(type,data){if(this[0]){var event=jQuery.Event(type);event.preventDefault();event.stopPropagation();jQuery.event.trigger(event,data,this[0]);return event.result;}},toggle:function(fn){var args=arguments,i=1;while(i<args.length){jQuery.event.proxy(fn,args[i++]);}return this.click(jQuery.event.proxy(fn,function(event){this.lastToggle=(this.lastToggle||0)%i;
event.preventDefault();return args[this.lastToggle++].apply(this,arguments)||false;}));},hover:function(fnOver,fnOut){return this.mouseenter(fnOver).mouseleave(fnOut);},ready:function(fn){bindReady();if(jQuery.isReady){fn.call(document,jQuery);}else{jQuery.readyList.push(fn);}return this;},live:function(type,fn){var proxy=jQuery.event.proxy(fn);proxy.guid+=this.selector+type;jQuery(document).bind(liveConvert(type,this.selector),this.selector,proxy);return this;},die:function(type,fn){jQuery(document).unbind(liveConvert(type,this.selector),fn?{guid:fn.guid+this.selector+type}:null);return this;}});function liveHandler(event){var check=RegExp("(^|\\.)"+event.type+"(\\.|$)"),stop=true,elems=[];jQuery.each(jQuery.data(this,"events").live||[],function(i,fn){if(check.test(fn.type)){var elem=jQuery(event.target).closest(fn.data)[0];if(elem){elems.push({elem:elem,fn:fn});}}});elems.sort(function(a,b){return jQuery.data(a.elem,"closest")-jQuery.data(b.elem,"closest");});jQuery.each(elems,function(){if(this.fn.call(this.elem,event,this.fn.data)===false){return(stop=false);
}});return stop;}function liveConvert(type,selector){return["live",type,selector.replace(/\./g,"`").replace(/ /g,"|")].join(".");}jQuery.extend({isReady:false,readyList:[],ready:function(){if(!jQuery.isReady){jQuery.isReady=true;if(jQuery.readyList){jQuery.each(jQuery.readyList,function(){this.call(document,jQuery);});jQuery.readyList=null;}jQuery(document).triggerHandler("ready");}}});var readyBound=false;function bindReady(){if(readyBound){return;}readyBound=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);jQuery.ready();},false);}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);jQuery.ready();}});if(document.documentElement.doScroll&&window==window.top){(function(){if(jQuery.isReady){return;}try{document.documentElement.doScroll("left");}catch(error){setTimeout(arguments.callee,0);
return;}jQuery.ready();})();}}}jQuery.event.add(window,"load",jQuery.ready);}jQuery.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(i,name){jQuery.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name);};});jQuery(window).bind("unload",function(){for(var id in jQuery.cache){if(id!=1&&jQuery.cache[id].handle){jQuery.event.remove(jQuery.cache[id].handle.elem);}}});(function(){jQuery.support={};var root=document.documentElement,script=document.createElement("script"),div=document.createElement("div"),id="script"+(new Date).getTime();div.style.display="none";div.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var all=div.getElementsByTagName("*"),a=div.getElementsByTagName("a")[0];if(!all||!all.length||!a){return;}jQuery.support={leadingWhitespace:div.firstChild.nodeType==3,tbody:!div.getElementsByTagName("tbody").length,objectAll:!!div.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!div.getElementsByTagName("link").length,style:/red/.test(a.getAttribute("style")),hrefNormalized:a.getAttribute("href")==="/a",opacity:a.style.opacity==="0.5",cssFloat:!!a.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};
script.type="text/javascript";try{script.appendChild(document.createTextNode("window."+id+"=1;"));}catch(e){}root.insertBefore(script,root.firstChild);if(window[id]){jQuery.support.scriptEval=true;delete window[id];}root.removeChild(script);if(div.attachEvent&&div.fireEvent){div.attachEvent("onclick",function(){jQuery.support.noCloneEvent=false;div.detachEvent("onclick",arguments.callee);});div.cloneNode(true).fireEvent("onclick");}jQuery(function(){var div=document.createElement("div");div.style.width=div.style.paddingLeft="1px";document.body.appendChild(div);jQuery.boxModel=jQuery.support.boxModel=div.offsetWidth===2;document.body.removeChild(div).style.display="none";});})();var styleFloat=jQuery.support.cssFloat?"cssFloat":"styleFloat";jQuery.props={"for":"htmlFor","class":"className","float":styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};jQuery.fn.extend({_load:jQuery.fn.load,load:function(url,params,callback){if(typeof url!=="string"){return this._load(url);
}var off=url.indexOf(" ");if(off>=0){var selector=url.slice(off,url.length);url=url.slice(0,off);}var type="GET";if(params){if(jQuery.isFunction(params)){callback=params;params=null;}else{if(typeof params==="object"){params=jQuery.param(params);type="POST";}}}var self=this;jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status){if(status=="success"||status=="notmodified"){self.html(selector?jQuery("<div/>").append(res.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(selector):res.responseText);}if(callback){self.each(callback,[res.responseText,status,res]);}}});return this;},serialize:function(){return jQuery.param(this.serializeArray());},serializeArray:function(){return this.map(function(){return this.elements?jQuery.makeArray(this.elements):this;}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type));}).map(function(i,elem){var val=jQuery(this).val();
return val==null?null:jQuery.isArray(val)?jQuery.map(val,function(val,i){return{name:elem.name,value:val};}):{name:elem.name,value:val};}).get();}});jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f);};});var jsc=now();jQuery.extend({get:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data=null;}return jQuery.ajax({type:"GET",url:url,data:data,success:callback,dataType:type});},getScript:function(url,callback){return jQuery.get(url,null,callback,"script");},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json");},post:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data={};}return jQuery.ajax({type:"POST",url:url,data:data,success:callback,dataType:type});},ajaxSetup:function(settings){jQuery.extend(jQuery.ajaxSettings,settings);},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();
},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(s){s=jQuery.extend(true,s,jQuery.extend(true,{},jQuery.ajaxSettings,s));var jsonp,jsre=/=\?(&|$)/g,status,data,type=s.type.toUpperCase();if(s.data&&s.processData&&typeof s.data!=="string"){s.data=jQuery.param(s.data);}if(s.dataType=="jsonp"){if(type=="GET"){if(!s.url.match(jsre)){s.url+=(s.url.match(/\?/)?"&":"?")+(s.jsonp||"callback")+"=?";}}else{if(!s.data||!s.data.match(jsre)){s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?";}}s.dataType="json";}if(s.dataType=="json"&&(s.data&&s.data.match(jsre)||s.url.match(jsre))){jsonp="jsonp"+jsc++;if(s.data){s.data=(s.data+"").replace(jsre,"="+jsonp+"$1");}s.url=s.url.replace(jsre,"="+jsonp+"$1");s.dataType="script";window[jsonp]=function(tmp){data=tmp;success();complete();window[jsonp]=undefined;try{delete window[jsonp];}catch(e){}if(head){head.removeChild(script);
}};}if(s.dataType=="script"&&s.cache==null){s.cache=false;}if(s.cache===false&&type=="GET"){var ts=now();var ret=s.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+ts+"$2");s.url=ret+((ret==s.url)?(s.url.match(/\?/)?"&":"?")+"_="+ts:"");}if(s.data&&type=="GET"){s.url+=(s.url.match(/\?/)?"&":"?")+s.data;s.data=null;}if(s.global&&!jQuery.active++){jQuery.event.trigger("ajaxStart");}var parts=/^(\w+:)?\/\/([^\/?#]+)/.exec(s.url);if(s.dataType=="script"&&type=="GET"&&parts&&(parts[1]&&parts[1]!=location.protocol||parts[2]!=location.host)){var head=document.getElementsByTagName("head")[0];var script=document.createElement("script");script.src=s.url;if(s.scriptCharset){script.charset=s.scriptCharset;}if(!jsonp){var done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){done=true;success();complete();script.onload=script.onreadystatechange=null;head.removeChild(script);}};}head.appendChild(script);return undefined;
}var requestDone=false;var xhr=s.xhr();if(s.username){xhr.open(type,s.url,s.async,s.username,s.password);}else{xhr.open(type,s.url,s.async);}try{if(s.data){xhr.setRequestHeader("Content-Type",s.contentType);}if(s.ifModified){xhr.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT");}xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");xhr.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.dataType]+", */*":s.accepts._default);}catch(e){}if(s.beforeSend&&s.beforeSend(xhr,s)===false){if(s.global&&!--jQuery.active){jQuery.event.trigger("ajaxStop");}xhr.abort();return false;}if(s.global){jQuery.event.trigger("ajaxSend",[xhr,s]);}var onreadystatechange=function(isTimeout){if(xhr.readyState==0){if(ival){clearInterval(ival);ival=null;if(s.global&&!--jQuery.active){jQuery.event.trigger("ajaxStop");}}}else{if(!requestDone&&xhr&&(xhr.readyState==4||isTimeout=="timeout")){requestDone=true;if(ival){clearInterval(ival);ival=null;}status=isTimeout=="timeout"?"timeout":!jQuery.httpSuccess(xhr)?"error":s.ifModified&&jQuery.httpNotModified(xhr,s.url)?"notmodified":"success";
if(status=="success"){try{data=jQuery.httpData(xhr,s.dataType,s);}catch(e){status="parsererror";}}if(status=="success"){var modRes;try{modRes=xhr.getResponseHeader("Last-Modified");}catch(e){}if(s.ifModified&&modRes){jQuery.lastModified[s.url]=modRes;}if(!jsonp){success();}}else{jQuery.handleError(s,xhr,status);}complete();if(isTimeout){xhr.abort();}if(s.async){xhr=null;}}}};if(s.async){var ival=setInterval(onreadystatechange,13);if(s.timeout>0){setTimeout(function(){if(xhr&&!requestDone){onreadystatechange("timeout");}},s.timeout);}}try{xhr.send(s.data);}catch(e){jQuery.handleError(s,xhr,null,e);}if(!s.async){onreadystatechange();}function success(){if(s.success){s.success(data,status);}if(s.global){jQuery.event.trigger("ajaxSuccess",[xhr,s]);}}function complete(){if(s.complete){s.complete(xhr,status);}if(s.global){jQuery.event.trigger("ajaxComplete",[xhr,s]);}if(s.global&&!--jQuery.active){jQuery.event.trigger("ajaxStop");}}return xhr;},handleError:function(s,xhr,status,e){if(s.error){s.error(xhr,status,e);
}if(s.global){jQuery.event.trigger("ajaxError",[xhr,s,e]);}},active:0,httpSuccess:function(xhr){try{return !xhr.status&&location.protocol=="file:"||(xhr.status>=200&&xhr.status<300)||xhr.status==304||xhr.status==1223;}catch(e){}return false;},httpNotModified:function(xhr,url){try{var xhrRes=xhr.getResponseHeader("Last-Modified");return xhr.status==304||xhrRes==jQuery.lastModified[url];}catch(e){}return false;},httpData:function(xhr,type,s){var ct=xhr.getResponseHeader("content-type"),xml=type=="xml"||!type&&ct&&ct.indexOf("xml")>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.tagName=="parsererror"){throw"parsererror";}if(s&&s.dataFilter){data=s.dataFilter(data,type);}if(typeof data==="string"){if(type=="script"){jQuery.globalEval(data);}if(type=="json"){data=window["eval"]("("+data+")");}}return data;},param:function(a){var s=[];function add(key,value){s[s.length]=encodeURIComponent(key)+"="+encodeURIComponent(value);}if(jQuery.isArray(a)||a.jquery){jQuery.each(a,function(){add(this.name,this.value);
});}else{for(var j in a){if(jQuery.isArray(a[j])){jQuery.each(a[j],function(){add(j,this);});}else{add(j,jQuery.isFunction(a[j])?a[j]():a[j]);}}}return s.join("&").replace(/%20/g,"+");}});var elemdisplay={},timerId,fxAttrs=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function genFx(type,num){var obj={};jQuery.each(fxAttrs.concat.apply([],fxAttrs.slice(0,num)),function(){obj[this]=type;});return obj;}jQuery.fn.extend({show:function(speed,callback){if(speed){return this.animate(genFx("show",3),speed,callback);}else{for(var i=0,l=this.length;i<l;i++){var old=jQuery.data(this[i],"olddisplay");this[i].style.display=old||"";if(jQuery.css(this[i],"display")==="none"){var tagName=this[i].tagName,display;if(elemdisplay[tagName]){display=elemdisplay[tagName];}else{var elem=jQuery("<"+tagName+" />").appendTo("body");display=elem.css("display");if(display==="none"){display="block";}elem.remove();elemdisplay[tagName]=display;
}jQuery.data(this[i],"olddisplay",display);}}for(var i=0,l=this.length;i<l;i++){this[i].style.display=jQuery.data(this[i],"olddisplay")||"";}return this;}},hide:function(speed,callback){if(speed){return this.animate(genFx("hide",3),speed,callback);}else{for(var i=0,l=this.length;i<l;i++){var old=jQuery.data(this[i],"olddisplay");if(!old&&old!=="none"){jQuery.data(this[i],"olddisplay",jQuery.css(this[i],"display"));}}for(var i=0,l=this.length;i<l;i++){this[i].style.display="none";}return this;}},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){var bool=typeof fn==="boolean";return jQuery.isFunction(fn)&&jQuery.isFunction(fn2)?this._toggle.apply(this,arguments):fn==null||bool?this.each(function(){var state=bool?fn:jQuery(this).is(":hidden");jQuery(this)[state?"show":"hide"]();}):this.animate(genFx("toggle",3),fn,fn2);},fadeTo:function(speed,to,callback){return this.animate({opacity:to},speed,callback);},animate:function(prop,speed,easing,callback){var optall=jQuery.speed(speed,easing,callback);
return this[optall.queue===false?"each":"queue"](function(){var opt=jQuery.extend({},optall),p,hidden=this.nodeType==1&&jQuery(this).is(":hidden"),self=this;for(p in prop){if(prop[p]=="hide"&&hidden||prop[p]=="show"&&!hidden){return opt.complete.call(this);}if((p=="height"||p=="width")&&this.style){opt.display=jQuery.css(this,"display");opt.overflow=this.style.overflow;}}if(opt.overflow!=null){this.style.overflow="hidden";}opt.curAnim=jQuery.extend({},prop);jQuery.each(prop,function(name,val){var e=new jQuery.fx(self,opt,name);if(/toggle|show|hide/.test(val)){e[val=="toggle"?hidden?"show":"hide":val](prop);}else{var parts=val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),start=e.cur(true)||0;if(parts){var end=parseFloat(parts[2]),unit=parts[3]||"px";if(unit!="px"){self.style[name]=(end||1)+unit;start=((end||1)/e.cur(true))*start;self.style[name]=start+unit;}if(parts[1]){end=((parts[1]=="-="?-1:1)*end)+start;}e.custom(start,end,unit);}else{e.custom(start,val,"");}}});return true;});},stop:function(clearQueue,gotoEnd){var timers=jQuery.timers;
if(clearQueue){this.queue([]);}this.each(function(){for(var i=timers.length-1;i>=0;i--){if(timers[i].elem==this){if(gotoEnd){timers[i](true);}timers.splice(i,1);}}});if(!gotoEnd){this.dequeue();}return this;}});jQuery.each({slideDown:genFx("show",1),slideUp:genFx("hide",1),slideToggle:genFx("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(name,props){jQuery.fn[name]=function(speed,callback){return this.animate(props,speed,callback);};});jQuery.extend({speed:function(speed,easing,fn){var opt=typeof speed==="object"?speed:{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&!jQuery.isFunction(easing)&&easing};opt.duration=jQuery.fx.off?0:typeof opt.duration==="number"?opt.duration:jQuery.fx.speeds[opt.duration]||jQuery.fx.speeds._default;opt.old=opt.complete;opt.complete=function(){if(opt.queue!==false){jQuery(this).dequeue();}if(jQuery.isFunction(opt.old)){opt.old.call(this);}};return opt;},easing:{linear:function(p,n,firstNum,diff){return firstNum+diff*p;
},swing:function(p,n,firstNum,diff){return((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum;}},timers:[],fx:function(elem,options,prop){this.options=options;this.elem=elem;this.prop=prop;if(!options.orig){options.orig={};}}});jQuery.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this);}(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block";}},cur:function(force){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop];}var r=parseFloat(jQuery.css(this.elem,this.prop,force));return r&&r>-10000?r:parseFloat(jQuery.curCSS(this.elem,this.prop))||0;},custom:function(from,to,unit){this.startTime=now();this.start=from;this.end=to;this.unit=unit||this.unit||"px";this.now=this.start;this.pos=this.state=0;var self=this;function t(gotoEnd){return self.step(gotoEnd);}t.elem=this.elem;if(t()&&jQuery.timers.push(t)&&!timerId){timerId=setInterval(function(){var timers=jQuery.timers;
for(var i=0;i<timers.length;i++){if(!timers[i]()){timers.splice(i--,1);}}if(!timers.length){clearInterval(timerId);timerId=undefined;}},13);}},show:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());jQuery(this.elem).show();},hide:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0);},step:function(gotoEnd){var t=now();if(gotoEnd||t>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var done=true;for(var i in this.options.curAnim){if(this.options.curAnim[i]!==true){done=false;}}if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(jQuery.css(this.elem,"display")=="none"){this.elem.style.display="block";}}if(this.options.hide){jQuery(this.elem).hide();
}if(this.options.hide||this.options.show){for(var p in this.options.curAnim){jQuery.attr(this.elem.style,p,this.options.orig[p]);}}this.options.complete.call(this.elem);}return false;}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=jQuery.easing[this.options.easing||(jQuery.easing.swing?"swing":"linear")](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update();}return true;}};jQuery.extend(jQuery.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(fx){jQuery.attr(fx.elem.style,"opacity",fx.now);},_default:function(fx){if(fx.elem.style&&fx.elem.style[fx.prop]!=null){fx.elem.style[fx.prop]=fx.now+fx.unit;}else{fx.elem[fx.prop]=fx.now;}}}});if(document.documentElement.getBoundingClientRect){jQuery.fn.offset=function(){if(!this[0]){return{top:0,left:0};}if(this[0]===this[0].ownerDocument.body){return jQuery.offset.bodyOffset(this[0]);}var box=this[0].getBoundingClientRect(),doc=this[0].ownerDocument,body=doc.body,docElem=doc.documentElement,clientTop=docElem.clientTop||body.clientTop||0,clientLeft=docElem.clientLeft||body.clientLeft||0,top=box.top+(self.pageYOffset||jQuery.boxModel&&docElem.scrollTop||body.scrollTop)-clientTop,left=box.left+(self.pageXOffset||jQuery.boxModel&&docElem.scrollLeft||body.scrollLeft)-clientLeft;
return{top:top,left:left};};}else{jQuery.fn.offset=function(){if(!this[0]){return{top:0,left:0};}if(this[0]===this[0].ownerDocument.body){return jQuery.offset.bodyOffset(this[0]);}jQuery.offset.initialized||jQuery.offset.initialize();var elem=this[0],offsetParent=elem.offsetParent,prevOffsetParent=elem,doc=elem.ownerDocument,computedStyle,docElem=doc.documentElement,body=doc.body,defaultView=doc.defaultView,prevComputedStyle=defaultView.getComputedStyle(elem,null),top=elem.offsetTop,left=elem.offsetLeft;while((elem=elem.parentNode)&&elem!==body&&elem!==docElem){computedStyle=defaultView.getComputedStyle(elem,null);top-=elem.scrollTop,left-=elem.scrollLeft;if(elem===offsetParent){top+=elem.offsetTop,left+=elem.offsetLeft;if(jQuery.offset.doesNotAddBorder&&!(jQuery.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(elem.tagName))){top+=parseInt(computedStyle.borderTopWidth,10)||0,left+=parseInt(computedStyle.borderLeftWidth,10)||0;}prevOffsetParent=offsetParent,offsetParent=elem.offsetParent;
}if(jQuery.offset.subtractsBorderForOverflowNotVisible&&computedStyle.overflow!=="visible"){top+=parseInt(computedStyle.borderTopWidth,10)||0,left+=parseInt(computedStyle.borderLeftWidth,10)||0;}prevComputedStyle=computedStyle;}if(prevComputedStyle.position==="relative"||prevComputedStyle.position==="static"){top+=body.offsetTop,left+=body.offsetLeft;}if(prevComputedStyle.position==="fixed"){top+=Math.max(docElem.scrollTop,body.scrollTop),left+=Math.max(docElem.scrollLeft,body.scrollLeft);}return{top:top,left:left};};}jQuery.offset={initialize:function(){if(this.initialized){return;}var body=document.body,container=document.createElement("div"),innerDiv,checkDiv,table,td,rules,prop,bodyMarginTop=body.style.marginTop,html='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';
rules={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(prop in rules){container.style[prop]=rules[prop];}container.innerHTML=html;body.insertBefore(container,body.firstChild);innerDiv=container.firstChild,checkDiv=innerDiv.firstChild,td=innerDiv.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(checkDiv.offsetTop!==5);this.doesAddBorderForTableAndCells=(td.offsetTop===5);innerDiv.style.overflow="hidden",innerDiv.style.position="relative";this.subtractsBorderForOverflowNotVisible=(checkDiv.offsetTop===-5);body.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(body.offsetTop===0);body.style.marginTop=bodyMarginTop;body.removeChild(container);this.initialized=true;},bodyOffset:function(body){jQuery.offset.initialized||jQuery.offset.initialize();var top=body.offsetTop,left=body.offsetLeft;if(jQuery.offset.doesNotIncludeMarginInBodyOffset){top+=parseInt(jQuery.curCSS(body,"marginTop",true),10)||0,left+=parseInt(jQuery.curCSS(body,"marginLeft",true),10)||0;
}return{top:top,left:left};}};jQuery.fn.extend({position:function(){var left=0,top=0,results;if(this[0]){var offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=/^body|html$/i.test(offsetParent[0].tagName)?{top:0,left:0}:offsetParent.offset();offset.top-=num(this,"marginTop");offset.left-=num(this,"marginLeft");parentOffset.top+=num(offsetParent,"borderTopWidth");parentOffset.left+=num(offsetParent,"borderLeftWidth");results={top:offset.top-parentOffset.top,left:offset.left-parentOffset.left};}return results;},offsetParent:function(){var offsetParent=this[0].offsetParent||document.body;while(offsetParent&&(!/^body|html$/i.test(offsetParent.tagName)&&jQuery.css(offsetParent,"position")=="static")){offsetParent=offsetParent.offsetParent;}return jQuery(offsetParent);}});jQuery.each(["Left","Top"],function(i,name){var method="scroll"+name;jQuery.fn[method]=function(val){if(!this[0]){return null;}return val!==undefined?this.each(function(){this==window||this==document?window.scrollTo(!i?val:jQuery(window).scrollLeft(),i?val:jQuery(window).scrollTop()):this[method]=val;
}):this[0]==window||this[0]==document?self[i?"pageYOffset":"pageXOffset"]||jQuery.boxModel&&document.documentElement[method]||document.body[method]:this[0][method];};});jQuery.each(["Height","Width"],function(i,name){var tl=i?"Left":"Top",br=i?"Right":"Bottom",lower=name.toLowerCase();jQuery.fn["inner"+name]=function(){return this[0]?jQuery.css(this[0],lower,false,"padding"):null;};jQuery.fn["outer"+name]=function(margin){return this[0]?jQuery.css(this[0],lower,false,margin?"margin":"border"):null;};var type=name.toLowerCase();jQuery.fn[type]=function(size){return this[0]==window?document.compatMode=="CSS1Compat"&&document.documentElement["client"+name]||document.body["client"+name]:this[0]==document?Math.max(document.documentElement["client"+name],document.body["scroll"+name],document.documentElement["scroll"+name],document.body["offset"+name],document.documentElement["offset"+name]):size===undefined?(this.length?jQuery.css(this[0],type):null):this.css(type,typeof size==="string"?size:size+"px");
};});})();jQuery.ui||(function($){var _remove=$.fn.remove,isFF2=$.browser.mozilla&&(parseFloat($.browser.version)<1.9);$.ui={version:"1.7.1",plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]]);}},call:function(instance,name,args){var set=instance.plugins[name];if(!set||!instance.element[0].parentNode){return;}for(var i=0;i<set.length;i++){if(instance.options[set[i][0]]){set[i][1].apply(instance.element,args);}}}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b);},hasScroll:function(el,a){if($(el).css("overflow")=="hidden"){return false;}var scroll=(a&&a=="left")?"scrollLeft":"scrollTop",has=false;if(el[scroll]>0){return true;}el[scroll]=1;has=(el[scroll]>0);el[scroll]=0;return has;},isOverAxis:function(x,reference,size){return(x>reference)&&(x<(reference+size));},isOver:function(y,x,top,left,height,width){return $.ui.isOverAxis(y,top,height)&&$.ui.isOverAxis(x,left,width);
},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(isFF2){var attr=$.attr,removeAttr=$.fn.removeAttr,ariaNS="http://www.w3.org/2005/07/aaa",ariaState=/^aria-/,ariaRole=/^wairole:/;$.attr=function(elem,name,value){var set=value!==undefined;return(name=="role"?(set?attr.call(this,elem,name,"wairole:"+value):(attr.apply(this,arguments)||"").replace(ariaRole,"")):(ariaState.test(name)?(set?elem.setAttributeNS(ariaNS,name.replace(ariaState,"aaa:"),value):attr.call(this,elem,name.replace(ariaState,"aaa:"))):attr.apply(this,arguments)));};$.fn.removeAttr=function(name){return(ariaState.test(name)?this.each(function(){this.removeAttributeNS(ariaNS,name.replace(ariaState,""));}):removeAttr.call(this,name));};}$.fn.extend({remove:function(){$("*",this).add(this).each(function(){$(this).triggerHandler("remove");
});return _remove.apply(this,arguments);},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui");},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false;});},scrollParent:function(){var scrollParent;if(($.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){scrollParent=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test($.curCSS(this,"position",1))&&(/(auto|scroll)/).test($.curCSS(this,"overflow",1)+$.curCSS(this,"overflow-y",1)+$.curCSS(this,"overflow-x",1));}).eq(0);}else{scrollParent=this.parents().filter(function(){return(/(auto|scroll)/).test($.curCSS(this,"overflow",1)+$.curCSS(this,"overflow-y",1)+$.curCSS(this,"overflow-x",1));}).eq(0);}return(/fixed/).test(this.css("position"))||!scrollParent.length?$(document):scrollParent;}});$.extend($.expr[":"],{data:function(elem,i,match){return !!$.data(elem,match[3]);
},focusable:function(element){var nodeName=element.nodeName.toLowerCase(),tabIndex=$.attr(element,"tabindex");return(/input|select|textarea|button|object/.test(nodeName)?!element.disabled:"a"==nodeName||"area"==nodeName?element.href||!isNaN(tabIndex):!isNaN(tabIndex))&&!$(element)["area"==nodeName?"parents":"closest"](":hidden").length;},tabbable:function(element){var tabIndex=$.attr(element,"tabindex");return(isNaN(tabIndex)||tabIndex>=0)&&$(element).is(":focusable");}});function getter(namespace,plugin,method,args){function getMethods(type){var methods=$[namespace][plugin][type]||[];return(typeof methods=="string"?methods.split(/,?\s+/):methods);}var methods=getMethods("getter");if(args.length==1&&typeof args[0]=="string"){methods=methods.concat(getMethods("getterSetter"));}return($.inArray(method,methods)!=-1);}$.widget=function(name,prototype){var namespace=name.split(".")[0];name=name.split(".")[1];$.fn[name]=function(options){var isMethodCall=(typeof options=="string"),args=Array.prototype.slice.call(arguments,1);
if(isMethodCall&&options.substring(0,1)=="_"){return this;}if(isMethodCall&&getter(namespace,name,options,args)){var instance=$.data(this[0],name);return(instance?instance[options].apply(instance,args):undefined);}return this.each(function(){var instance=$.data(this,name);(!instance&&!isMethodCall&&$.data(this,name,new $[namespace][name](this,options))._init());(instance&&isMethodCall&&$.isFunction(instance[options])&&instance[options].apply(instance,args));});};$[namespace]=$[namespace]||{};$[namespace][name]=function(element,options){var self=this;this.namespace=namespace;this.widgetName=name;this.widgetEventPrefix=$[namespace][name].eventPrefix||name;this.widgetBaseClass=namespace+"-"+name;this.options=$.extend({},$.widget.defaults,$[namespace][name].defaults,$.metadata&&$.metadata.get(element)[name],options);this.element=$(element).bind("setData."+name,function(event,key,value){if(event.target==element){return self._setData(key,value);}}).bind("getData."+name,function(event,key){if(event.target==element){return self._getData(key);
}}).bind("remove",function(){return self.destroy();});};$[namespace][name].prototype=$.extend({},$.widget.prototype,prototype);$[namespace][name].getterSetter="option";};$.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled");},option:function(key,value){var options=key,self=this;if(typeof key=="string"){if(value===undefined){return this._getData(key);}options={};options[key]=value;}$.each(options,function(key,value){self._setData(key,value);});},_getData:function(key){return this.options[key];},_setData:function(key,value){this.options[key]=value;if(key=="disabled"){this.element[value?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",value);}},enable:function(){this._setData("disabled",false);},disable:function(){this._setData("disabled",true);},_trigger:function(type,event,data){var callback=this.options[type],eventName=(type==this.widgetEventPrefix?type:this.widgetEventPrefix+type);
event=$.Event(event);event.type=eventName;if(event.originalEvent){for(var i=$.event.props.length,prop;i;){prop=$.event.props[--i];event[prop]=event.originalEvent[prop];}}this.element.trigger(event,data);return !($.isFunction(callback)&&callback.call(this.element[0],event,data)===false||event.isDefaultPrevented());}};$.widget.defaults={disabled:false};$.ui.mouse={_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event);}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false;event.stopImmediatePropagation();return false;}});if($.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on");}this.started=false;},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);($.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable));},_mouseDown:function(event){event.originalEvent=event.originalEvent||{};
if(event.originalEvent.mouseHandled){return;}(this._mouseStarted&&this._mouseUp(event));this._mouseDownEvent=event;var self=this,btnIsLeft=(event.which==1),elIsCancel=(typeof this.options.cancel=="string"?$(event.target).parents().add(event.target).filter(this.options.cancel).length:false);if(!btnIsLeft||elIsCancel||!this._mouseCapture(event)){return true;}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){self.mouseDelayMet=true;},this.options.delay);}if(this._mouseDistanceMet(event)&&this._mouseDelayMet(event)){this._mouseStarted=(this._mouseStart(event)!==false);if(!this._mouseStarted){event.preventDefault();return true;}}this._mouseMoveDelegate=function(event){return self._mouseMove(event);};this._mouseUpDelegate=function(event){return self._mouseUp(event);};$(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);($.browser.safari||event.preventDefault());event.originalEvent.mouseHandled=true;
return true;},_mouseMove:function(event){if($.browser.msie&&!event.button){return this._mouseUp(event);}if(this._mouseStarted){this._mouseDrag(event);return event.preventDefault();}if(this._mouseDistanceMet(event)&&this._mouseDelayMet(event)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,event)!==false);(this._mouseStarted?this._mouseDrag(event):this._mouseUp(event));}return !this._mouseStarted;},_mouseUp:function(event){$(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(event.target==this._mouseDownEvent.target);this._mouseStop(event);}return false;},_mouseDistanceMet:function(event){return(Math.max(Math.abs(this._mouseDownEvent.pageX-event.pageX),Math.abs(this._mouseDownEvent.pageY-event.pageY))>=this.options.distance);},_mouseDelayMet:function(event){return this.mouseDelayMet;},_mouseStart:function(event){},_mouseDrag:function(event){},_mouseStop:function(event){},_mouseCapture:function(event){return true;
}};$.ui.mouse.defaults={cancel:null,distance:1,delay:0};})(jQuery);(function($){$.widget("ui.tabs",{_init:function(){if(this.options.deselectable!==undefined){this.options.collapsible=this.options.deselectable;}this._tabify(true);},_setData:function(key,value){if(key=="selected"){if(this.options.collapsible&&value==this.options.selected){return;}this.select(value);}else{this.options[key]=value;if(key=="deselectable"){this.options.collapsible=value;}this._tabify();}},_tabId:function(a){return a.title&&a.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+$.data(a);},_sanitizeSelector:function(hash){return hash.replace(/:/g,"\\:");},_cookie:function(){var cookie=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+$.data(this.list[0]));return $.cookie.apply(null,[cookie].concat($.makeArray(arguments)));},_ui:function(tab,panel){return{tab:tab,panel:panel,index:this.anchors.index(tab)};},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var el=$(this);
el.html(el.data("label.tabs")).removeData("label.tabs");});},_tabify:function(init){this.list=this.element.children("ul:first");this.lis=$("li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return $("a",this)[0];});this.panels=$([]);var self=this,o=this.options;var fragmentId=/^#.+/;this.anchors.each(function(i,a){var href=$(a).attr("href");var hrefBase=href.split("#")[0],baseEl;if(hrefBase&&(hrefBase===location.toString().split("#")[0]||(baseEl=$("base")[0])&&hrefBase===baseEl.href)){href=a.hash;a.href=href;}if(fragmentId.test(href)){self.panels=self.panels.add(self._sanitizeSelector(href));}else{if(href!="#"){$.data(a,"href.tabs",href);$.data(a,"load.tabs",href.replace(/#.*$/,""));var id=self._tabId(a);a.href="#"+id;var $panel=$("#"+id);if(!$panel.length){$panel=$(o.panelTemplate).attr("id",id).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(self.panels[i-1]||self.list);$panel.data("destroy.tabs",true);}self.panels=self.panels.add($panel);}else{o.disabled.push(i);
}}});if(init){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(o.selected===undefined){if(location.hash){this.anchors.each(function(i,a){if(a.hash==location.hash){o.selected=i;return false;}});}if(typeof o.selected!="number"&&o.cookie){o.selected=parseInt(self._cookie(),10);}if(typeof o.selected!="number"&&this.lis.filter(".ui-tabs-selected").length){o.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));}o.selected=o.selected||0;}else{if(o.selected===null){o.selected=-1;}}o.selected=((o.selected>=0&&this.anchors[o.selected])||o.selected<0)?o.selected:0;o.disabled=$.unique(o.disabled.concat($.map(this.lis.filter(".ui-state-disabled"),function(n,i){return self.lis.index(n);}))).sort();if($.inArray(o.selected,o.disabled)!=-1){o.disabled.splice($.inArray(o.selected,o.disabled),1);
}this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");if(o.selected>=0&&this.anchors.length){this.panels.eq(o.selected).removeClass("ui-tabs-hide");this.lis.eq(o.selected).addClass("ui-tabs-selected ui-state-active");self.element.queue("tabs",function(){self._trigger("show",null,self._ui(self.anchors[o.selected],self.panels[o.selected]));});this.load(o.selected);}$(window).bind("unload",function(){self.lis.add(self.anchors).unbind(".tabs");self.lis=self.anchors=self.panels=null;});}else{o.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));}this.element[o.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");if(o.cookie){this._cookie(o.selected,o.cookie);}for(var i=0,li;(li=this.lis[i]);i++){$(li)[$.inArray(i,o.disabled)!=-1&&!$(li).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");}if(o.cache===false){this.anchors.removeData("cache.tabs");}this.lis.add(this.anchors).unbind(".tabs");if(o.event!="mouseover"){var addState=function(state,el){if(el.is(":not(.ui-state-disabled)")){el.addClass("ui-state-"+state);
}};var removeState=function(state,el){el.removeClass("ui-state-"+state);};this.lis.bind("mouseover.tabs",function(){addState("hover",$(this));});this.lis.bind("mouseout.tabs",function(){removeState("hover",$(this));});this.anchors.bind("focus.tabs",function(){addState("focus",$(this).closest("li"));});this.anchors.bind("blur.tabs",function(){removeState("focus",$(this).closest("li"));});}var hideFx,showFx;if(o.fx){if($.isArray(o.fx)){hideFx=o.fx[0];showFx=o.fx[1];}else{hideFx=showFx=o.fx;}}function resetStyle($el,fx){$el.css({display:""});if($.browser.msie&&fx.opacity){$el[0].style.removeAttribute("filter");}}var showTab=showFx?function(clicked,$show){$(clicked).closest("li").removeClass("ui-state-default").addClass("ui-tabs-selected ui-state-active");$show.hide().removeClass("ui-tabs-hide").animate(showFx,showFx.duration||"normal",function(){resetStyle($show,showFx);self._trigger("show",null,self._ui(clicked,$show[0]));});}:function(clicked,$show){$(clicked).closest("li").removeClass("ui-state-default").addClass("ui-tabs-selected ui-state-active");
$show.removeClass("ui-tabs-hide");self._trigger("show",null,self._ui(clicked,$show[0]));};var hideTab=hideFx?function(clicked,$hide){$hide.animate(hideFx,hideFx.duration||"normal",function(){self.lis.removeClass("ui-tabs-selected ui-state-active").addClass("ui-state-default");$hide.addClass("ui-tabs-hide");resetStyle($hide,hideFx);self.element.dequeue("tabs");});}:function(clicked,$hide,$show){self.lis.removeClass("ui-tabs-selected ui-state-active").addClass("ui-state-default");$hide.addClass("ui-tabs-hide");self.element.dequeue("tabs");};this.anchors.bind(o.event+".tabs",function(){var el=this,$li=$(this).closest("li"),$hide=self.panels.filter(":not(.ui-tabs-hide)"),$show=$(self._sanitizeSelector(this.hash));if(($li.hasClass("ui-tabs-selected")&&!o.collapsible)||$li.hasClass("ui-state-disabled")||$li.hasClass("ui-state-processing")||self._trigger("select",null,self._ui(this,$show[0]))===false){this.blur();return false;}o.selected=self.anchors.index(this);self.abort();if(o.collapsible){if($li.hasClass("ui-tabs-selected")){o.selected=-1;
if(o.cookie){self._cookie(o.selected,o.cookie);}self.element.queue("tabs",function(){hideTab(el,$hide);}).dequeue("tabs");this.blur();return false;}else{if(!$hide.length){if(o.cookie){self._cookie(o.selected,o.cookie);}self.element.queue("tabs",function(){showTab(el,$show);});self.load(self.anchors.index(this));this.blur();return false;}}}if(o.cookie){self._cookie(o.selected,o.cookie);}if($show.length){if($hide.length){self.element.queue("tabs",function(){hideTab(el,$hide);});}self.element.queue("tabs",function(){showTab(el,$show);});self.load(self.anchors.index(this));}else{throw"jQuery UI Tabs: Mismatching fragment identifier.";}if($.browser.msie){this.blur();}});this.anchors.bind("click.tabs",function(){return false;});},destroy:function(){var o=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");
this.anchors.each(function(){var href=$.data(this,"href.tabs");if(href){this.href=href;}var $this=$(this).unbind(".tabs");$.each(["href","load","cache"],function(i,prefix){$this.removeData(prefix+".tabs");});});this.lis.unbind(".tabs").add(this.panels).each(function(){if($.data(this,"destroy.tabs")){$(this).remove();}else{$(this).removeClass(["ui-state-default","ui-corner-top","ui-tabs-selected","ui-state-active","ui-state-hover","ui-state-focus","ui-state-disabled","ui-tabs-panel","ui-widget-content","ui-corner-bottom","ui-tabs-hide"].join(" "));}});if(o.cookie){this._cookie(null,o.cookie);}},add:function(url,label,index){if(index===undefined){index=this.anchors.length;}var self=this,o=this.options,$li=$(o.tabTemplate.replace(/#\{href\}/g,url).replace(/#\{label\}/g,label)),id=!url.indexOf("#")?url.replace("#",""):this._tabId($("a",$li)[0]);$li.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var $panel=$("#"+id);if(!$panel.length){$panel=$(o.panelTemplate).attr("id",id).data("destroy.tabs",true);
}$panel.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(index>=this.lis.length){$li.appendTo(this.list);$panel.appendTo(this.list[0].parentNode);}else{$li.insertBefore(this.lis[index]);$panel.insertBefore(this.panels[index]);}o.disabled=$.map(o.disabled,function(n,i){return n>=index?++n:n;});this._tabify();if(this.anchors.length==1){$li.addClass("ui-tabs-selected ui-state-active");$panel.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){self._trigger("show",null,self._ui(self.anchors[0],self.panels[0]));});this.load(0);}this._trigger("add",null,this._ui(this.anchors[index],this.panels[index]));},remove:function(index){var o=this.options,$li=this.lis.eq(index).remove(),$panel=this.panels.eq(index).remove();if($li.hasClass("ui-tabs-selected")&&this.anchors.length>1){this.select(index+(index+1<this.anchors.length?1:-1));}o.disabled=$.map($.grep(o.disabled,function(n,i){return n!=index;}),function(n,i){return n>=index?--n:n;});this._tabify();this._trigger("remove",null,this._ui($li.find("a")[0],$panel[0]));
},enable:function(index){var o=this.options;if($.inArray(index,o.disabled)==-1){return;}this.lis.eq(index).removeClass("ui-state-disabled");o.disabled=$.grep(o.disabled,function(n,i){return n!=index;});this._trigger("enable",null,this._ui(this.anchors[index],this.panels[index]));},disable:function(index){var self=this,o=this.options;if(index!=o.selected){this.lis.eq(index).addClass("ui-state-disabled");o.disabled.push(index);o.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[index],this.panels[index]));}},select:function(index){if(typeof index=="string"){index=this.anchors.index(this.anchors.filter("[href$="+index+"]"));}else{if(index===null){index=-1;}}if(index==-1&&this.options.collapsible){index=this.options.selected;}this.anchors.eq(index).trigger(this.options.event+".tabs");},load:function(index){var self=this,o=this.options,a=this.anchors.eq(index)[0],url=$.data(a,"load.tabs");this.abort();if(!url||this.element.queue("tabs").length!==0&&$.data(a,"cache.tabs")){this.element.dequeue("tabs");
return;}this.lis.eq(index).addClass("ui-state-processing");if(o.spinner){var span=$("span",a);span.data("label.tabs",span.html()).html(o.spinner);}this.xhr=$.ajax($.extend({},o.ajaxOptions,{url:url,success:function(r,s){$(self._sanitizeSelector(a.hash)).html(r);self._cleanup();if(o.cache){$.data(a,"cache.tabs",true);}self._trigger("load",null,self._ui(self.anchors[index],self.panels[index]));try{o.ajaxOptions.success(r,s);}catch(e){}self.element.dequeue("tabs");}}));},abort:function(){this.element.queue([]);this.panels.stop(false,true);if(this.xhr){this.xhr.abort();delete this.xhr;}this._cleanup();},url:function(index,url){this.anchors.eq(index).removeData("cache.tabs").data("load.tabs",url);},length:function(){return this.anchors.length;}});$.extend($.ui.tabs,{version:"1.7.1",getter:"length",defaults:{ajaxOptions:null,cache:false,cookie:null,collapsible:false,disabled:[],event:"click",fx:null,idPrefix:"ui-tabs-",panelTemplate:"<div></div>",spinner:"<em>Loading&#8230;</em>",tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>'}});
$.extend($.ui.tabs.prototype,{rotation:null,rotate:function(ms,continuing){var self=this,o=this.options;var rotate=self._rotate||(self._rotate=function(e){clearTimeout(self.rotation);self.rotation=setTimeout(function(){var t=o.selected;self.select(++t<self.anchors.length?t:0);},ms);if(e){e.stopPropagation();}});var stop=self._unrotate||(self._unrotate=!continuing?function(e){if(e.clientX){self.rotate(null);}}:function(e){t=o.selected;rotate();});if(ms){this.element.bind("tabsshow",rotate);this.anchors.bind(o.event+".tabs",stop);rotate();}else{clearTimeout(self.rotation);this.element.unbind("tabsshow",rotate);this.anchors.unbind(o.event+".tabs",stop);delete this._rotate;delete this._unrotate;}}});})(jQuery);eval(function(p,a,c,k,e,r){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36));};if(!"".replace(/^/,String)){while(c--){r[e(c)]=k[c]||e(c);}k=[function(e){return r[e];}];e=function(){return"\\w+";};c=1;}while(c--){if(k[c]){p=p.replace(new RegExp("\\b"+e(c)+"\\b","g"),k[c]);
}}return p;}(';(4($){$.1l($.F,{E:4(b,c){l a=3.n(\'.\'+b);3.n(\'.\'+c).o(c).m(b);a.o(b).m(c);8 3},s:4(a,b){8 3.n(\'.\'+a).o(a).m(b).P()},1n:4(a){a=a||"1j";8 3.1j(4(){$(3).m(a)},4(){$(3).o(a)})},1h:4(b,a){b?3.1g({1e:"p"},b,a):3.x(4(){T(3)[T(3).1a(":U")?"H":"D"]();7(a)a.A(3,O)})},12:4(b,a){7(b){3.1g({1e:"D"},b,a)}1L{3.D();7(a)3.x(a)}},11:4(a){7(!a.1k){3.n(":r-1H:G(9)").m(k.r);3.n((a.1F?"":"."+k.X)+":G(."+k.W+")").6(">9").D()}8 3.n(":y(>9)")},S:4(b,c){3.n(":y(>9):G(:y(>a))").6(">1z").C(4(a){c.A($(3).19())}).w($("a",3)).1n();7(!b.1k){3.n(":y(>9:U)").m(k.q).s(k.r,k.t);3.G(":y(>9:U)").m(k.u).s(k.r,k.v);3.1r("<J 14=\\""+k.5+"\\"/>").6("J."+k.5).x(4(){l a="";$.x($(3).B().1o("14").13(" "),4(){a+=3+"-5 "});$(3).m(a)})}3.6("J."+k.5).C(c)},z:4(g){g=$.1l({N:"z"},g);7(g.w){8 3.1K("w",[g.w])}7(g.p){l d=g.p;g.p=4(){8 d.A($(3).B()[0],O)}}4 1m(b,c){4 L(a){8 4(){K.A($("J."+k.5,b).n(4(){8 a?$(3).B("."+a).1i:1I}));8 1G}}$("a:10(0)",c).C(L(k.u));$("a:10(1)",c).C(L(k.q));$("a:10(2)",c).C(L())}4 K(){$(3).B().6(">.5").E(k.Z,k.Y).E(k.I,k.M).P().E(k.u,k.q).E(k.v,k.t).6(">9").1h(g.1f,g.p);7(g.1E){$(3).B().1D().6(">.5").s(k.Z,k.Y).s(k.I,k.M).P().s(k.u,k.q).s(k.v,k.t).6(">9").12(g.1f,g.p)}}4 1d(){4 1C(a){8 a?1:0}l b=[];j.x(4(i,e){b[i]=$(e).1a(":y(>9:1B)")?1:0});$.V(g.N,b.1A(""))}4 1c(){l b=$.V(g.N);7(b){l a=b.13("");j.x(4(i,e){$(e).6(">9")[1y(a[i])?"H":"D"]()})}}3.m("z");l j=3.6("Q").11(g);1x(g.1w){18"V":l h=g.p;g.p=4(){1d();7(h){h.A(3,O)}};1c();17;18"1b":l f=3.6("a").n(4(){8 3.16.15()==1b.16.15()});7(f.1i){f.m("1v").1u("9, Q").w(f.19()).H()}17}j.S(g,K);7(g.R){1m(3,g.R);$(g.R).H()}8 3.1t("w",4(a,b){$(b).1s().o(k.r).o(k.v).o(k.t).6(">.5").o(k.I).o(k.M);$(b).6("Q").1q().11(g).S(g,K)})}});l k=$.F.z.1J={W:"W",X:"X",q:"q",Y:"q-5",M:"t-5",u:"u",Z:"u-5",I:"v-5",v:"v",t:"t",r:"r",5:"5"};$.F.1p=$.F.z})(T);',62,110,"|||this|function|hitarea|find|if|return|ul||||||||||||var|addClass|filter|removeClass|toggle|expandable|last|replaceClass|lastExpandable|collapsable|lastCollapsable|add|each|has|treeview|apply|parent|click|hide|swapClass|fn|not|show|lastCollapsableHitarea|div|toggler|handler|lastExpandableHitarea|cookieId|arguments|end|li|control|applyClasses|jQuery|hidden|cookie|open|closed|expandableHitarea|collapsableHitarea|eq|prepareBranches|heightHide|split|class|toLowerCase|href|break|case|next|is|location|deserialize|serialize|height|animated|animate|heightToggle|length|hover|prerendered|extend|treeController|hoverClass|attr|Treeview|andSelf|prepend|prev|bind|parents|selected|persist|switch|parseInt|span|join|visible|binary|siblings|unique|collapsed|false|child|true|classes|trigger|else".split("|"),0,{}));
(function($){$.fn.layout=function(opts){var prefix="ui-layout-",defaults={paneClass:prefix+"pane",resizerClass:prefix+"resizer",togglerClass:prefix+"toggler",togglerInnerClass:prefix+"",buttonClass:prefix+"button",contentSelector:"."+prefix+"content",contentIgnoreSelector:"."+prefix+"ignore"};var options={name:"",scrollToBookmarkOnLoad:true,defaults:{applyDefaultStyles:false,closable:true,resizable:true,slidable:true,contentSelector:defaults.contentSelector,contentIgnoreSelector:defaults.contentIgnoreSelector,paneClass:defaults.paneClass,resizerClass:defaults.resizerClass,togglerClass:defaults.togglerClass,buttonClass:defaults.buttonClass,resizerDragOpacity:1,maskIframesOnResize:true,minSize:0,maxSize:0,spacing_open:6,spacing_closed:6,togglerLength_open:50,togglerLength_closed:50,togglerAlign_open:"center",togglerAlign_closed:"center",togglerTip_open:"Close",togglerTip_closed:"Open",resizerTip:"Resize",sliderTip:"Slide Open",sliderCursor:"pointer",slideTrigger_open:"click",slideTrigger_close:"mouseout",hideTogglerOnSlide:false,togglerContent_open:"",togglerContent_closed:"",showOverflowOnHover:false,enableCursorHotkey:true,customHotkeyModifier:"SHIFT",fxName:"slide",fxSpeed:null,fxSettings:{},initClosed:false,initHidden:false},north:{paneSelector:"."+prefix+"north",size:"auto",resizerCursor:"n-resize"},south:{paneSelector:"."+prefix+"south",size:"auto",resizerCursor:"s-resize"},east:{paneSelector:"."+prefix+"east",size:200,resizerCursor:"e-resize"},west:{paneSelector:"."+prefix+"west",size:200,resizerCursor:"w-resize"},center:{paneSelector:"."+prefix+"center"}};
var effects={slide:{all:{duration:"fast"},north:{direction:"up"},south:{direction:"down"},east:{direction:"right"},west:{direction:"left"}},drop:{all:{duration:"slow"},north:{direction:"up"},south:{direction:"down"},east:{direction:"right"},west:{direction:"left"}},scale:{all:{duration:"fast"}}};var config={allPanes:"north,south,east,west,center",borderPanes:"north,south,east,west",zIndex:{resizer_normal:1,pane_normal:2,mask:4,sliding:100,resizing:10000,animation:10000},resizers:{cssReq:{position:"absolute",padding:0,margin:0,fontSize:"1px",textAlign:"left",overflow:"hidden",zIndex:1},cssDef:{background:"#DDD",border:"none"}},togglers:{cssReq:{position:"absolute",display:"block",padding:0,margin:0,overflow:"hidden",textAlign:"center",fontSize:"1px",cursor:"pointer",zIndex:1},cssDef:{background:"#AAA"}},content:{cssReq:{overflow:"auto"},cssDef:{}},defaults:{cssReq:{position:"absolute",margin:0,zIndex:2},cssDef:{padding:"10px",background:"#FFF",border:"1px solid #BBB",overflow:"auto"}},north:{edge:"top",sizeType:"height",dir:"horz",cssReq:{top:0,bottom:"auto",left:0,right:0,width:"auto"}},south:{edge:"bottom",sizeType:"height",dir:"horz",cssReq:{top:"auto",bottom:0,left:0,right:0,width:"auto"}},east:{edge:"right",sizeType:"width",dir:"vert",cssReq:{left:"auto",right:0,top:"auto",bottom:"auto",height:"auto"}},west:{edge:"left",sizeType:"width",dir:"vert",cssReq:{left:0,right:"auto",top:"auto",bottom:"auto",height:"auto"}},center:{dir:"center",cssReq:{left:"auto",right:"auto",top:"auto",bottom:"auto",height:"auto",width:"auto"}}};
var state={id:Math.floor(Math.random()*10000),container:{},north:{},south:{},east:{},west:{},center:{}};var altEdge={top:"bottom",bottom:"top",left:"right",right:"left"},altSide={north:"south",south:"north",east:"west",west:"east"};var isStr=function(o){if(typeof o=="string"){return true;}else{if(typeof o=="object"){try{var match=o.constructor.toString().match(/string/i);return(match!==null);}catch(e){}}}return false;};var str=function(o){if(typeof o=="string"||isStr(o)){return $.trim(o);}else{return o;}};var min=function(x,y){return Math.min(x,y);};var max=function(x,y){return Math.max(x,y);};var transformData=function(d){var json={defaults:{fxSettings:{}},north:{fxSettings:{}},south:{fxSettings:{}},east:{fxSettings:{}},west:{fxSettings:{}},center:{fxSettings:{}}};d=d||{};if(d.effects||d.defaults||d.north||d.south||d.west||d.east||d.center){json=$.extend(json,d);}else{$.each(d,function(key,val){a=key.split("__");json[a[1]?a[0]:"defaults"][a[1]?a[1]:a[0]]=val;});}return json;};var setFlowCallback=function(action,pane,param){var cb=action+","+pane+","+(param?1:0),cP,cbPane;
$.each(c.borderPanes.split(","),function(i,p){if(c[p].isMoving){bindCallback(p);return false;}});function bindCallback(p,test){cP=c[p];if(!cP.doCallback){cP.doCallback=true;cP.callback=cb;}else{cpPane=cP.callback.split(",")[1];if(cpPane!=p&&cpPane!=pane){bindCallback(cpPane,true);}}}};var execFlowCallback=function(pane){var cP=c[pane];c.isLayoutBusy=false;delete cP.isMoving;if(!cP.doCallback||!cP.callback){return;}cP.doCallback=false;var cb=cP.callback.split(","),param=(cb[2]>0?true:false);if(cb[0]=="open"){open(cb[1],param);}else{if(cb[0]=="close"){close(cb[1],param);}}if(!cP.doCallback){cP.callback=null;}};var execUserCallback=function(pane,v_fn){if(!v_fn){return;}var fn;try{if(typeof v_fn=="function"){fn=v_fn;}else{if(typeof v_fn!="string"){return;}else{if(v_fn.indexOf(",")>0){var args=v_fn.split(","),fn=eval(args[0]);if(typeof fn=="function"&&args.length>1){return fn(args[1]);}}else{fn=eval(v_fn);}}}if(typeof fn=="function"){return fn(pane,$Ps[pane],$.extend({},state[pane]),$.extend({},options[pane]),options.name);
}}catch(ex){}};var cssNum=function($E,prop){var val=0,hidden=false,visibility="";if(!$.browser.msie){if($.curCSS($E[0],"display",true)=="none"){hidden=true;visibility=$.curCSS($E[0],"visibility",true);$E.css({display:"block",visibility:"hidden"});}}val=parseInt($.curCSS($E[0],prop,true),10)||0;if(hidden){$E.css({display:"none"});if(visibility&&visibility!="hidden"){$E.css({visibility:visibility});}}return val;};var cssW=function(e,outerWidth){var $E;if(isStr(e)){e=str(e);$E=$Ps[e];}else{$E=$(e);}if(outerWidth<=0){return 0;}else{if(!(outerWidth>0)){outerWidth=isStr(e)?getPaneSize(e):$E.outerWidth();}}if(!$.boxModel){return outerWidth;}else{return outerWidth-cssNum($E,"paddingLeft")-cssNum($E,"paddingRight")-($.curCSS($E[0],"borderLeftStyle",true)=="none"?0:cssNum($E,"borderLeftWidth"))-($.curCSS($E[0],"borderRightStyle",true)=="none"?0:cssNum($E,"borderRightWidth"));}};var cssH=function(e,outerHeight){var $E;if(isStr(e)){e=str(e);$E=$Ps[e];}else{$E=$(e);}if(outerHeight<=0){return 0;}else{if(!(outerHeight>0)){outerHeight=(isStr(e))?getPaneSize(e):$E.outerHeight();
}}if(!$.boxModel){return outerHeight;}else{return outerHeight-cssNum($E,"paddingTop")-cssNum($E,"paddingBottom")-($.curCSS($E[0],"borderTopStyle",true)=="none"?0:cssNum($E,"borderTopWidth"))-($.curCSS($E[0],"borderBottomStyle",true)=="none"?0:cssNum($E,"borderBottomWidth"));}};var cssSize=function(pane,outerSize){if(c[pane].dir=="horz"){return cssH(pane,outerSize);}else{return cssW(pane,outerSize);}};var getPaneSize=function(pane,inclSpace){var $P=$Ps[pane],o=options[pane],s=state[pane],oSp=(inclSpace?o.spacing_open:0),cSp=(inclSpace?o.spacing_closed:0);if(!$P||s.isHidden){return 0;}else{if(s.isClosed||(s.isSliding&&inclSpace)){return cSp;}else{if(c[pane].dir=="horz"){return $P.outerHeight()+oSp;}else{return $P.outerWidth()+oSp;}}}};var setPaneMinMaxSizes=function(pane){var d=cDims,edge=c[pane].edge,dir=c[pane].dir,o=options[pane],s=state[pane],$P=$Ps[pane],$altPane=$Ps[altSide[pane]],paneSpacing=o.spacing_open,altPaneSpacing=options[altSide[pane]].spacing_open,altPaneSize=(!$altPane?0:(dir=="horz"?$altPane.outerHeight():$altPane.outerWidth())),containerSize=(dir=="horz"?d.innerHeight:d.innerWidth),limitSize=containerSize-paneSpacing-altPaneSize-altPaneSpacing,minSize=s.minSize||0,maxSize=Math.min(s.maxSize||9999,limitSize),minPos,maxPos;
switch(pane){case"north":minPos=d.offsetTop+minSize;maxPos=d.offsetTop+maxSize;break;case"west":minPos=d.offsetLeft+minSize;maxPos=d.offsetLeft+maxSize;break;case"south":minPos=d.offsetTop+d.innerHeight-maxSize;maxPos=d.offsetTop+d.innerHeight-minSize;break;case"east":minPos=d.offsetLeft+d.innerWidth-maxSize;maxPos=d.offsetLeft+d.innerWidth-minSize;break;}$.extend(s,{minSize:minSize,maxSize:maxSize,minPosition:minPos,maxPosition:maxPos});};var getPaneDims=function(){var d={top:getPaneSize("north",true),bottom:getPaneSize("south",true),left:getPaneSize("west",true),right:getPaneSize("east",true),width:0,height:0};with(d){width=cDims.innerWidth-left-right;height=cDims.innerHeight-bottom-top;top+=cDims.top;bottom+=cDims.bottom;left+=cDims.left;right+=cDims.right;}return d;};var getElemDims=function($E){var d={},e,b,p;$.each("Left,Right,Top,Bottom".split(","),function(){e=str(this);b=d["border"+e]=cssNum($E,"border"+e+"Width");p=d["padding"+e]=cssNum($E,"padding"+e);d["offset"+e]=b+p;if($E==$Container){d[e.toLowerCase()]=($.boxModel?p:0);
}});d.innerWidth=d.outerWidth=$E.outerWidth();d.innerHeight=d.outerHeight=$E.outerHeight();if($.boxModel){d.innerWidth-=(d.offsetLeft+d.offsetRight);d.innerHeight-=(d.offsetTop+d.offsetBottom);}return d;};var setTimer=function(pane,action,fn,ms){var Layout=window.layout=window.layout||{},Timers=Layout.timers=Layout.timers||{},name="layout_"+state.id+"_"+pane+"_"+action;if(Timers[name]){return;}else{Timers[name]=setTimeout(fn,ms);}};var clearTimer=function(pane,action){var Layout=window.layout=window.layout||{},Timers=Layout.timers=Layout.timers||{},name="layout_"+state.id+"_"+pane+"_"+action;if(Timers[name]){clearTimeout(Timers[name]);delete Timers[name];return true;}else{return false;}};var create=function(){initOptions();initContainer();initPanes();initHandles();initResizable();sizeContent("all");if(options.scrollToBookmarkOnLoad){with(self.location){if(hash){replace(hash);}}}initHotkeys();$(window).resize(function(){var timerID="timerLayout_"+state.id;if(window[timerID]){clearTimeout(window[timerID]);
}window[timerID]=null;if(true||$.browser.msie){window[timerID]=setTimeout(resizeAll,100);}else{resizeAll();}});};var initContainer=function(){try{if($Container[0].tagName=="BODY"){$("html").css({height:"100%",overflow:"hidden"});$("body").css({position:"relative",height:"100%",overflow:"hidden",margin:0,padding:0,border:"none"});}else{var CSS={overflow:"hidden"},p=$Container.css("position"),h=$Container.css("height");if(!$Container.hasClass("ui-layout-pane")){if(!p||"fixed,absolute,relative".indexOf(p)<0){CSS.position="relative";}if(!h||h=="auto"){CSS.height="100%";}}$Container.css(CSS);}}catch(ex){}cDims=state.container=getElemDims($Container);};var initHotkeys=function(){$.each(c.borderPanes.split(","),function(i,pane){var o=options[pane];if(o.enableCursorHotkey||o.customHotkey){$(document).keydown(keyDown);return false;}});};var initOptions=function(){opts=transformData(opts);if(opts.effects){$.extend(effects,opts.effects);delete opts.effects;}$.each("name,scrollToBookmarkOnLoad".split(","),function(idx,key){if(opts[key]!==undefined){options[key]=opts[key];
}else{if(opts.defaults[key]!==undefined){options[key]=opts.defaults[key];delete opts.defaults[key];}}});$.each("paneSelector,resizerCursor,customHotkey".split(","),function(idx,key){delete opts.defaults[key];});$.extend(options.defaults,opts.defaults);c.center=$.extend(true,{},c.defaults,c.center);$.extend(options.center,opts.center);var o_Center=$.extend(true,{},options.defaults,opts.defaults,options.center);$.each("paneClass,contentSelector,contentIgnoreSelector,applyDefaultStyles,showOverflowOnHover".split(","),function(idx,key){options.center[key]=o_Center[key];});var defs=options.defaults;$.each(c.borderPanes.split(","),function(i,pane){c[pane]=$.extend(true,{},c.defaults,c[pane]);o=options[pane]=$.extend(true,{},options.defaults,options[pane],opts.defaults,opts[pane]);if(!o.paneClass){o.paneClass=defaults.paneClass;}if(!o.resizerClass){o.resizerClass=defaults.resizerClass;}if(!o.togglerClass){o.togglerClass=defaults.togglerClass;}$.each(["_open","_close",""],function(i,n){var sName="fxName"+n,sSpeed="fxSpeed"+n,sSettings="fxSettings"+n;
o[sName]=opts[pane][sName]||opts[pane].fxName||opts.defaults[sName]||opts.defaults.fxName||o[sName]||o.fxName||defs[sName]||defs.fxName||"none";var fxName=o[sName];if(fxName=="none"||!$.effects||!$.effects[fxName]||(!effects[fxName]&&!o[sSettings]&&!o.fxSettings)){fxName=o[sName]="none";}var fx=effects[fxName]||{},fx_all=fx.all||{},fx_pane=fx[pane]||{};o[sSettings]=$.extend({},fx_all,fx_pane,defs.fxSettings||{},defs[sSettings]||{},o.fxSettings,o[sSettings],opts.defaults.fxSettings,opts.defaults[sSettings]||{},opts[pane].fxSettings,opts[pane][sSettings]||{});o[sSpeed]=opts[pane][sSpeed]||opts[pane].fxSpeed||opts.defaults[sSpeed]||opts.defaults.fxSpeed||o[sSpeed]||o[sSettings].duration||o.fxSpeed||o.fxSettings.duration||defs.fxSpeed||defs.fxSettings.duration||fx_pane.duration||fx_all.duration||"normal";});});};var initPanes=function(){$.each(c.allPanes.split(","),function(){var pane=str(this),o=options[pane],s=state[pane],fx=s.fx,dir=c[pane].dir,size=o.size=="auto"||isNaN(o.size)?0:o.size,minSize=o.minSize||1,maxSize=o.maxSize||9999,spacing=o.spacing_open||0,sel=o.paneSelector,isIE6=($.browser.msie&&$.browser.version<7),CSS={},$P,$C;
$Cs[pane]=false;if(sel.substr(0,1)==="#"){$P=$Ps[pane]=$Container.find(sel+":first");}else{$P=$Ps[pane]=$Container.children(sel+":first");if(!$P.length){$P=$Ps[pane]=$Container.children("form:first").children(sel+":first");}}if(!$P.length){$Ps[pane]=false;return true;}$P.attr("pane",pane).addClass(o.paneClass+" "+o.paneClass+"-"+pane);if(pane!="center"){s.isClosed=false;s.isSliding=false;s.isResizing=false;s.isHidden=false;s.noRoom=false;c[pane].pins=[];}CSS=$.extend({visibility:"visible",display:"block"},c.defaults.cssReq,c[pane].cssReq);if(o.applyDefaultStyles){$.extend(CSS,c.defaults.cssDef,c[pane].cssDef);}$P.css(CSS);CSS={};switch(pane){case"north":CSS.top=cDims.top;CSS.left=cDims.left;CSS.right=cDims.right;break;case"south":CSS.bottom=cDims.bottom;CSS.left=cDims.left;CSS.right=cDims.right;break;case"west":CSS.left=cDims.left;break;case"east":CSS.right=cDims.right;break;case"center":}if(dir=="horz"){if(size===0||size=="auto"){$P.css({height:"auto"});size=$P.outerHeight();}size=max(size,minSize);
size=min(size,maxSize);size=min(size,cDims.innerHeight-spacing);CSS.height=max(1,cssH(pane,size));s.size=size;s.maxSize=maxSize;s.minSize=max(minSize,size-CSS.height+1);$P.css(CSS);}else{if(dir=="vert"){if(size===0||size=="auto"){$P.css({width:"auto","float":"left"});size=$P.outerWidth();$P.css({"float":"none"});}size=max(size,minSize);size=min(size,maxSize);size=min(size,cDims.innerWidth-spacing);CSS.width=max(1,cssW(pane,size));s.size=size;s.maxSize=maxSize;s.minSize=max(minSize,size-CSS.width+1);$P.css(CSS);sizeMidPanes(pane,null,true);}else{if(pane=="center"){$P.css(CSS);sizeMidPanes("center",null,true);}}}if(o.initClosed&&o.closable){$P.hide().addClass("closed");s.isClosed=true;}else{if(o.initHidden||o.initClosed){hide(pane,true);s.isHidden=true;}else{$P.addClass("open");}}if(o.showOverflowOnHover){$P.hover(allowOverflow,resetOverflow);}if(o.contentSelector){$C=$Cs[pane]=$P.children(o.contentSelector+":first");if(!$C.length){$Cs[pane]=false;return true;}$C.css(c.content.cssReq);if(o.applyDefaultStyles){$C.css(c.content.cssDef);
}$P.css({overflow:"hidden"});}});};var initHandles=function(){$.each(c.borderPanes.split(","),function(){var pane=str(this),o=options[pane],s=state[pane],rClass=o.resizerClass,tClass=o.togglerClass,$P=$Ps[pane];$Rs[pane]=false;$Ts[pane]=false;if(!$P||(!o.closable&&!o.resizable)){return;}var edge=c[pane].edge,isOpen=$P.is(":visible"),spacing=(isOpen?o.spacing_open:o.spacing_closed),_pane="-"+pane,_state=(isOpen?"-open":"-closed"),$R,$T;$R=$Rs[pane]=$("<span></span>");if(isOpen&&o.resizable){}else{if(!isOpen&&o.slidable){$R.attr("title",o.sliderTip).css("cursor",o.sliderCursor);}}$R.attr("id",(o.paneSelector.substr(0,1)=="#"?o.paneSelector.substr(1)+"-resizer":"")).attr("resizer",pane).css(c.resizers.cssReq).css(edge,cDims[edge]+getPaneSize(pane)).addClass(rClass+" "+rClass+_pane+" "+rClass+_state+" "+rClass+_pane+_state).appendTo($Container);if(o.applyDefaultStyles){$R.css(c.resizers.cssDef);}if(o.closable){$T=$Ts[pane]=$("<div></div>");$T.attr("id",(o.paneSelector.substr(0,1)=="#"?o.paneSelector.substr(1)+"-toggler":"")).css(c.togglers.cssReq).attr("title",(isOpen?o.togglerTip_open:o.togglerTip_closed)).click(function(evt){toggle(pane);
evt.stopPropagation();}).mouseover(function(evt){evt.stopPropagation();}).addClass(tClass+" "+tClass+_pane+" "+tClass+_state+" "+tClass+_pane+_state).appendTo($R);if(o.togglerContent_open){$("<span>"+o.togglerContent_open+"</span>").addClass("content content-open").css("display",s.isClosed?"none":"block").appendTo($T);}if(o.togglerContent_closed){$("<span>"+o.togglerContent_closed+"</span>").addClass("content content-closed").css("display",s.isClosed?"block":"none").appendTo($T);}if(o.applyDefaultStyles){$T.css(c.togglers.cssDef);}if(!isOpen){bindStartSlidingEvent(pane,true);}}});sizeHandles("all",true);};var initResizable=function(){var draggingAvailable=(typeof $.fn.draggable=="function"),minPosition,maxPosition,edge;$.each(c.borderPanes.split(","),function(){var pane=str(this),o=options[pane],s=state[pane];if(!draggingAvailable||!$Ps[pane]||!o.resizable){o.resizable=false;return true;}var rClass=o.resizerClass,dragClass=rClass+"-drag",dragPaneClass=rClass+"-"+pane+"-drag",draggingClass=rClass+"-dragging",draggingPaneClass=rClass+"-"+pane+"-dragging",draggingClassSet=false,$P=$Ps[pane],$R=$Rs[pane];
if(!s.isClosed){$R.attr("title",o.resizerTip).css("cursor",o.resizerCursor);}$R.draggable({containment:$Container[0],axis:(c[pane].dir=="horz"?"y":"x"),delay:200,distance:1,helper:"clone",opacity:o.resizerDragOpacity,zIndex:c.zIndex.resizing,start:function(e,ui){if(false===execUserCallback(pane,o.onresize_start)){return false;}s.isResizing=true;clearTimer(pane,"closeSlider");$R.addClass(dragClass+" "+dragPaneClass);draggingClassSet=false;var resizerWidth=(pane=="east"||pane=="south"?o.spacing_open:0);setPaneMinMaxSizes(pane);s.minPosition-=resizerWidth;s.maxPosition-=resizerWidth;edge=(c[pane].dir=="horz"?"top":"left");$(o.maskIframesOnResize===true?"iframe":o.maskIframesOnResize).each(function(){$('<div class="ui-layout-mask"/>').css({background:"#fff",opacity:"0.001",zIndex:9,position:"absolute",width:this.offsetWidth+"px",height:this.offsetHeight+"px"}).css($(this).offset()).appendTo(this.parentNode);});},drag:function(e,ui){if(!draggingClassSet){$(".ui-draggable-dragging").addClass(draggingClass+" "+draggingPaneClass).children().css("visibility","hidden");
draggingClassSet=true;if(s.isSliding){$Ps[pane].css("zIndex",c.zIndex.sliding);}}if(ui.position[edge]<s.minPosition){ui.position[edge]=s.minPosition;}else{if(ui.position[edge]>s.maxPosition){ui.position[edge]=s.maxPosition;}}},stop:function(e,ui){var dragPos=ui.position,resizerPos,newSize;$R.removeClass(dragClass+" "+dragPaneClass);switch(pane){case"north":resizerPos=dragPos.top;break;case"west":resizerPos=dragPos.left;break;case"south":resizerPos=cDims.outerHeight-dragPos.top-$R.outerHeight();break;case"east":resizerPos=cDims.outerWidth-dragPos.left-$R.outerWidth();break;}newSize=resizerPos-cDims[c[pane].edge];sizePane(pane,newSize);$("div.ui-layout-mask").remove();s.isResizing=false;}});});};var hide=function(pane,onInit){var o=options[pane],s=state[pane],$P=$Ps[pane],$R=$Rs[pane];if(!$P||s.isHidden){return;}if(false===execUserCallback(pane,o.onhide_start)){return;}s.isSliding=false;if($R){$R.hide();}if(onInit||s.isClosed){s.isClosed=true;s.isHidden=true;$P.hide();sizeMidPanes(c[pane].dir=="horz"?"all":"center");
execUserCallback(pane,o.onhide_end||o.onhide);}else{s.isHiding=true;close(pane,false);}};var show=function(pane,openPane){var o=options[pane],s=state[pane],$P=$Ps[pane],$R=$Rs[pane];if(!$P||!s.isHidden){return;}if(false===execUserCallback(pane,o.onshow_start)){return;}s.isSliding=false;s.isShowing=true;if($R&&o.spacing_open>0){$R.show();}if(openPane===false){close(pane,true);}else{open(pane);}};var toggle=function(pane){var s=state[pane];if(s.isHidden){show(pane);}else{if(s.isClosed){open(pane);}else{close(pane);}}};var close=function(pane,force,noAnimation){var $P=$Ps[pane],$R=$Rs[pane],$T=$Ts[pane],o=options[pane],s=state[pane],doFX=!noAnimation&&!s.isClosed&&(o.fxName_close!="none"),edge=c[pane].edge,rClass=o.resizerClass,tClass=o.togglerClass,_pane="-"+pane,_open="-open",_sliding="-sliding",_closed="-closed",isShowing=s.isShowing,isHiding=s.isHiding;delete s.isShowing;delete s.isHiding;if(!$P||(!o.resizable&&!o.closable)){return;}else{if(!force&&s.isClosed&&!isShowing){return;}}if(c.isLayoutBusy){setFlowCallback("close",pane,force);
return;}if(!isShowing&&false===execUserCallback(pane,o.onclose_start)){return;}c[pane].isMoving=true;c.isLayoutBusy=true;s.isClosed=true;if(isHiding){s.isHidden=true;}else{if(isShowing){s.isHidden=false;}}syncPinBtns(pane,false);if(!s.isSliding){sizeMidPanes(c[pane].dir=="horz"?"all":"center");}if($R){$R.css(edge,cDims[edge]).removeClass(rClass+_open+" "+rClass+_pane+_open).removeClass(rClass+_sliding+" "+rClass+_pane+_sliding).addClass(rClass+_closed+" "+rClass+_pane+_closed);if(o.resizable){$R.draggable("disable").css("cursor","default").attr("title","");}if($T){$T.removeClass(tClass+_open+" "+tClass+_pane+_open).addClass(tClass+_closed+" "+tClass+_pane+_closed).attr("title",o.togglerTip_closed);}sizeHandles();}if(doFX){lockPaneForFX(pane,true);$P.hide(o.fxName_close,o.fxSettings_close,o.fxSpeed_close,function(){lockPaneForFX(pane,false);if(!s.isClosed){return;}close_2();});}else{$P.hide();close_2();}function close_2(){bindStartSlidingEvent(pane,true);if(!isShowing){execUserCallback(pane,o.onclose_end||o.onclose);
}if(isShowing){execUserCallback(pane,o.onshow_end||o.onshow);}if(isHiding){execUserCallback(pane,o.onhide_end||o.onhide);}execFlowCallback(pane);}};var open=function(pane,slide,noAnimation){var $P=$Ps[pane],$R=$Rs[pane],$T=$Ts[pane],o=options[pane],s=state[pane],doFX=!noAnimation&&s.isClosed&&(o.fxName_open!="none"),edge=c[pane].edge,rClass=o.resizerClass,tClass=o.togglerClass,_pane="-"+pane,_open="-open",_closed="-closed",_sliding="-sliding",isShowing=s.isShowing;delete s.isShowing;if(!$P||(!o.resizable&&!o.closable)){return;}else{if(!s.isClosed&&!s.isSliding){return;}}if(s.isHidden&&!isShowing){show(pane,true);return;}if(c.isLayoutBusy){setFlowCallback("open",pane,slide);return;}if(false===execUserCallback(pane,o.onopen_start)){return;}c[pane].isMoving=true;c.isLayoutBusy=true;if(s.isSliding&&!slide){bindStopSlidingEvents(pane,false);}s.isClosed=false;if(isShowing){s.isHidden=false;}setPaneMinMaxSizes(pane);if(s.size>s.maxSize){$P.css(c[pane].sizeType,max(1,cssSize(pane,s.maxSize)));}bindStartSlidingEvent(pane,false);
if(doFX){lockPaneForFX(pane,true);$P.show(o.fxName_open,o.fxSettings_open,o.fxSpeed_open,function(){lockPaneForFX(pane,false);if(s.isClosed){return;}open_2();});}else{$P.show();open_2();}function open_2(){if(!s.isSliding){sizeMidPanes(c[pane].dir=="vert"?"center":"all");}if($R){$R.css(edge,cDims[edge]+getPaneSize(pane)).removeClass(rClass+_closed+" "+rClass+_pane+_closed).addClass(rClass+_open+" "+rClass+_pane+_open).addClass(!s.isSliding?"":rClass+_sliding+" "+rClass+_pane+_sliding);if(o.resizable){$R.draggable("enable").css("cursor",o.resizerCursor).attr("title",o.resizerTip);}else{$R.css("cursor","default");}if($T){$T.removeClass(tClass+_closed+" "+tClass+_pane+_closed).addClass(tClass+_open+" "+tClass+_pane+_open).attr("title",o.togglerTip_open);}sizeHandles("all");}sizeContent(pane);syncPinBtns(pane,!s.isSliding);execUserCallback(pane,o.onopen_end||o.onopen);if(isShowing){execUserCallback(pane,o.onshow_end||o.onshow);}execFlowCallback(pane);}};var lockPaneForFX=function(pane,doLock){var $P=$Ps[pane];
if(doLock){$P.css({zIndex:c.zIndex.animation});if(pane=="south"){$P.css({top:cDims.top+cDims.innerHeight-$P.outerHeight()});}else{if(pane=="east"){$P.css({left:cDims.left+cDims.innerWidth-$P.outerWidth()});}}}else{if(!state[pane].isSliding){$P.css({zIndex:c.zIndex.pane_normal});}if(pane=="south"){$P.css({top:"auto"});}else{if(pane=="east"){$P.css({left:"auto"});}}}};var bindStartSlidingEvent=function(pane,enable){var o=options[pane],$R=$Rs[pane],trigger=o.slideTrigger_open;if(!$R||!o.slidable){return;}if(trigger!="click"&&trigger!="dblclick"&&trigger!="mouseover"){trigger="click";}$R[enable?"bind":"unbind"](trigger,slideOpen).css("cursor",(enable?o.sliderCursor:"default")).attr("title",(enable?o.sliderTip:""));};var bindStopSlidingEvents=function(pane,enable){var o=options[pane],s=state[pane],trigger=o.slideTrigger_close,action=(enable?"bind":"unbind"),$P=$Ps[pane],$R=$Rs[pane];s.isSliding=enable;clearTimer(pane,"closeSlider");$P.css({zIndex:(enable?c.zIndex.sliding:c.zIndex.pane_normal)});
$R.css({zIndex:(enable?c.zIndex.sliding:c.zIndex.resizer_normal)});if(trigger!="click"&&trigger!="mouseout"){trigger="mouseout";}if(enable){$P.bind(trigger,slideClosed);$R.bind(trigger,slideClosed);if(trigger="mouseout"){$P.bind("mouseover",cancelMouseOut);$R.bind("mouseover",cancelMouseOut);}}else{$P.unbind(trigger);$R.unbind(trigger);if(trigger="mouseout"){$P.unbind("mouseover");$R.unbind("mouseover");clearTimer(pane,"closeSlider");}}function cancelMouseOut(evt){clearTimer(pane,"closeSlider");evt.stopPropagation();}};var slideOpen=function(){var pane=$(this).attr("resizer");if(state[pane].isClosed){bindStopSlidingEvents(pane,true);open(pane,true);}};var slideClosed=function(){var $E=$(this),pane=$E.attr("pane")||$E.attr("resizer"),o=options[pane],s=state[pane];if(s.isClosed||s.isResizing){return;}else{if(o.slideTrigger_close=="click"){close_NOW();}else{setTimer(pane,"closeSlider",close_NOW,300);}}function close_NOW(){bindStopSlidingEvents(pane,false);if(!s.isClosed){close(pane);}}};var sizePane=function(pane,size){var edge=c[pane].edge,dir=c[pane].dir,o=options[pane],s=state[pane],$P=$Ps[pane],$R=$Rs[pane];
setPaneMinMaxSizes(pane);s.minSize=max(s.minSize,o.minSize);if(o.maxSize>0){s.maxSize=min(s.maxSize,o.maxSize);}size=max(size,s.minSize);size=min(size,s.maxSize);s.size=size;$R.css(edge,size+cDims[edge]);$P.css(c[pane].sizeType,max(1,cssSize(pane,size)));if(!s.isSliding){sizeMidPanes(dir=="horz"?"all":"center");}sizeHandles();sizeContent(pane);execUserCallback(pane,o.onresize_end||o.onresize);};var sizeMidPanes=function(panes,overrideDims,onInit){if(!panes||panes=="all"){panes="east,west,center";}var d=getPaneDims();if(overrideDims){$.extend(d,overrideDims);}$.each(panes.split(","),function(){if(!$Ps[this]){return;}var pane=str(this),o=options[pane],s=state[pane],$P=$Ps[pane],$R=$Rs[pane],hasRoom=true,CSS={};if(pane=="center"){d=getPaneDims();CSS=$.extend({},d);CSS.width=max(1,cssW(pane,CSS.width));CSS.height=max(1,cssH(pane,CSS.height));hasRoom=(CSS.width>1&&CSS.height>1);if($.browser.msie&&(!$.boxModel||$.browser.version<7)){if($Ps.north){$Ps.north.css({width:cssW($Ps.north,cDims.innerWidth)});
}if($Ps.south){$Ps.south.css({width:cssW($Ps.south,cDims.innerWidth)});}}}else{CSS.top=d.top;CSS.bottom=d.bottom;CSS.height=max(1,cssH(pane,d.height));hasRoom=(CSS.height>1);}if(hasRoom){$P.css(CSS);if(s.noRoom){s.noRoom=false;if(s.isHidden){return;}else{show(pane,!s.isClosed);}}if(!onInit){sizeContent(pane);execUserCallback(pane,o.onresize_end||o.onresize);}}else{if(!s.noRoom){s.noRoom=true;if(s.isHidden){return;}if(onInit){$P.hide();if($R){$R.hide();}}else{hide(pane);}}}});};var sizeContent=function(panes){if(!panes||panes=="all"){panes=c.allPanes;}$.each(panes.split(","),function(){if(!$Cs[this]){return;}var pane=str(this),ignore=options[pane].contentIgnoreSelector,$P=$Ps[pane],$C=$Cs[pane],e_C=$C[0],height=cssH($P);$P.children().each(function(){if(this==e_C){return;}var $E=$(this);if(!ignore||!$E.is(ignore)){height-=$E.outerHeight();}});if(height>0){height=cssH($C,height);}if(height<1){$C.hide();}else{$C.css({height:height}).show();}});};var sizeHandles=function(panes,onInit){if(!panes||panes=="all"){panes=c.borderPanes;
}$.each(panes.split(","),function(){var pane=str(this),o=options[pane],s=state[pane],$P=$Ps[pane],$R=$Rs[pane],$T=$Ts[pane];if(!$P||!$R||(!o.resizable&&!o.closable)){return;}var dir=c[pane].dir,_state=(s.isClosed?"_closed":"_open"),spacing=o["spacing"+_state],togAlign=o["togglerAlign"+_state],togLen=o["togglerLength"+_state],paneLen,offset,CSS={};if(spacing==0){$R.hide();return;}else{if(!s.noRoom&&!s.isHidden){$R.show();}}if(dir=="horz"){paneLen=$P.outerWidth();$R.css({width:max(1,cssW($R,paneLen)),height:max(1,cssH($R,spacing)),left:cssNum($P,"left")});}else{paneLen=$P.outerHeight();$R.css({height:max(1,cssH($R,paneLen)),width:max(1,cssW($R,spacing)),top:cDims.top+getPaneSize("north",true)});}if($T){if(togLen==0||(s.isSliding&&o.hideTogglerOnSlide)){$T.hide();return;}else{$T.show();}if(!(togLen>0)||togLen=="100%"||togLen>paneLen){togLen=paneLen;offset=0;}else{if(typeof togAlign=="string"){switch(togAlign){case"top":case"left":offset=0;break;case"bottom":case"right":offset=paneLen-togLen;
break;case"middle":case"center":default:offset=Math.floor((paneLen-togLen)/2);}}else{var x=parseInt(togAlign);if(togAlign>=0){offset=x;}else{offset=paneLen-togLen+x;}}}var $TC_o=(o.togglerContent_open?$T.children(".content-open"):false),$TC_c=(o.togglerContent_closed?$T.children(".content-closed"):false),$TC=(s.isClosed?$TC_c:$TC_o);if($TC_o){$TC_o.css("display",s.isClosed?"none":"block");}if($TC_c){$TC_c.css("display",s.isClosed?"block":"none");}if(dir=="horz"){var width=cssW($T,togLen);$T.css({width:max(0,width),height:max(1,cssH($T,spacing)),left:offset});if($TC){$TC.css("marginLeft",Math.floor((width-$TC.outerWidth())/2));}}else{var height=cssH($T,togLen);$T.css({height:max(0,height),width:max(1,cssW($T,spacing)),top:offset});if($TC){$TC.css("marginTop",Math.floor((height-$TC.outerHeight())/2));}}}if(onInit&&o.initHidden){$R.hide();if($T){$T.hide();}}});};var resizeAll=function(){var oldW=cDims.innerWidth,oldH=cDims.innerHeight;cDims=state.container=getElemDims($Container);var checkH=(cDims.innerHeight<oldH),checkW=(cDims.innerWidth<oldW),s,dir;
if(checkH||checkW){$.each(["south","north","east","west"],function(i,pane){s=state[pane];dir=c[pane].dir;if(!s.isClosed&&((checkH&&dir=="horz")||(checkW&&dir=="vert"))){setPaneMinMaxSizes(pane);if(s.size>s.maxSize){sizePane(pane,s.maxSize);}}});}sizeMidPanes("all");sizeHandles("all");};function keyDown(evt){if(!evt){return true;}var code=evt.keyCode;if(code<33){return true;}var PANE={38:"north",40:"south",37:"west",39:"east"},isCursorKey=(code>=37&&code<=40),ALT=evt.altKey,SHIFT=evt.shiftKey,CTRL=evt.ctrlKey,pane=false,s,o,k,m,el;if(!CTRL&&!SHIFT){return true;}else{if(isCursorKey&&options[PANE[code]].enableCursorHotkey){pane=PANE[code];}else{$.each(c.borderPanes.split(","),function(i,p){o=options[p];k=o.customHotkey;m=o.customHotkeyModifier;if((SHIFT&&m=="SHIFT")||(CTRL&&m=="CTRL")||(CTRL&&SHIFT)){if(k&&code==(isNaN(k)||k<=9?k.toUpperCase().charCodeAt(0):k)){pane=p;return false;}}});}}if(!pane){return true;}o=options[pane];s=state[pane];if(!o.enableCursorHotkey||s.isHidden||!$Ps[pane]){return true;
}el=evt.target||evt.srcElement;if(el&&SHIFT&&isCursorKey&&(el.tagName=="TEXTAREA"||(el.tagName=="INPUT"&&(code==37||code==39)))){return true;}toggle(pane);evt.stopPropagation();evt.returnValue=false;return false;}function allowOverflow(elem){if(this&&this.tagName){elem=this;}var $P;if(typeof elem=="string"){$P=$Ps[elem];}else{if($(elem).attr("pane")){$P=$(elem);}else{$P=$(elem).parents("div[pane]:first");}}if(!$P.length){return;}var pane=$P.attr("pane"),s=state[pane];if(s.cssSaved){resetOverflow(pane);}if(s.isSliding||s.isResizing||s.isClosed){s.cssSaved=false;return;}var newCSS={zIndex:(c.zIndex.pane_normal+1)},curCSS={},of=$P.css("overflow"),ofX=$P.css("overflowX"),ofY=$P.css("overflowY");if(of!="visible"){curCSS.overflow=of;newCSS.overflow="visible";}if(ofX&&ofX!="visible"&&ofX!="auto"){curCSS.overflowX=ofX;newCSS.overflowX="visible";}if(ofY&&ofY!="visible"&&ofY!="auto"){curCSS.overflowY=ofX;newCSS.overflowY="visible";}s.cssSaved=curCSS;$P.css(newCSS);$.each(c.allPanes.split(","),function(i,p){if(p!=pane){resetOverflow(p);
}});}function resetOverflow(elem){if(this&&this.tagName){elem=this;}var $P;if(typeof elem=="string"){$P=$Ps[elem];}else{if($(elem).hasClass("ui-layout-pane")){$P=$(elem);}else{$P=$(elem).parents("div[pane]:first");}}if(!$P.length){return;}var pane=$P.attr("pane"),s=state[pane],CSS=s.cssSaved||{};if(!s.isSliding&&!s.isResizing){$P.css("zIndex",c.zIndex.pane_normal);}$P.css(CSS);s.cssSaved=false;}function getBtn(selector,pane,action){var $E=$(selector),err="Error Adding Button \n\nInvalid ";if(!$E.length){alert(err+"selector: "+selector);}else{if(c.borderPanes.indexOf(pane)==-1){alert(err+"pane: "+pane);}else{var btn=options[pane].buttonClass+"-"+action;$E.addClass(btn+" "+btn+"-"+pane);return $E;}}return false;}function addToggleBtn(selector,pane){var $E=getBtn(selector,pane,"toggle");if($E){$E.attr("title",state[pane].isClosed?"Open":"Close").click(function(evt){toggle(pane);evt.stopPropagation();});}}function addOpenBtn(selector,pane){var $E=getBtn(selector,pane,"open");if($E){$E.attr("title","Open").click(function(evt){open(pane);
evt.stopPropagation();});}}function addCloseBtn(selector,pane){var $E=getBtn(selector,pane,"close");if($E){$E.attr("title","Close").click(function(evt){close(pane);evt.stopPropagation();});}}function addPinBtn(selector,pane){var $E=getBtn(selector,pane,"pin");if($E){var s=state[pane];$E.click(function(evt){setPinState($(this),pane,(s.isSliding||s.isClosed));if(s.isSliding||s.isClosed){open(pane);}else{close(pane);}evt.stopPropagation();});setPinState($E,pane,(!s.isClosed&&!s.isSliding));c[pane].pins.push(selector);}}function syncPinBtns(pane,doPin){$.each(c[pane].pins,function(i,selector){setPinState($(selector),pane,doPin);});}function setPinState($Pin,pane,doPin){var updown=$Pin.attr("pin");if(updown&&doPin==(updown=="down")){return;}var root=options[pane].buttonClass,class1=root+"-pin",class2=class1+"-"+pane,UP1=class1+"-up",UP2=class2+"-up",DN1=class1+"-down",DN2=class2+"-down";$Pin.attr("pin",doPin?"down":"up").attr("title",doPin?"Un-Pin":"Pin").removeClass(doPin?UP1:DN1).removeClass(doPin?UP2:DN2).addClass(doPin?DN1:UP1).addClass(doPin?DN2:UP2);
}var $Container=$(this).css({overflow:"hidden"}),$Ps={},$Cs={},$Rs={},$Ts={},c=config,cDims=state.container;create();return{options:options,state:state,panes:$Ps,toggle:toggle,open:open,close:close,hide:hide,show:show,resizeContent:sizeContent,sizePane:sizePane,resizeAll:resizeAll,addToggleBtn:addToggleBtn,addOpenBtn:addOpenBtn,addCloseBtn:addCloseBtn,addPinBtn:addPinBtn,allowOverflow:allowOverflow,resetOverflow:resetOverflow,cssWidth:cssW,cssHeight:cssH};};})(jQuery);(function($){var setDataSwitch={dragStart:"start.draggable",drag:"drag.draggable",dragStop:"stop.draggable",maxHeight:"maxHeight.resizable",minHeight:"minHeight.resizable",maxWidth:"maxWidth.resizable",minWidth:"minWidth.resizable",resizeStart:"start.resizable",resize:"drag.resizable",resizeStop:"stop.resizable"},uiDialogClasses="ui-dialog ui-widget ui-widget-content ui-corner-all ";$.widget("ui.dialog",{_init:function(){this.originalTitle=this.element.attr("title");var self=this,options=this.options,title=options.title||this.originalTitle||"&nbsp;",titleId=$.ui.dialog.getTitleId(this.element),uiDialog=(this.uiDialog=$("<div/>")).appendTo(document.body).hide().addClass(uiDialogClasses+options.dialogClass).css({position:"absolute",overflow:"hidden",zIndex:options.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(event){(options.closeOnEscape&&event.keyCode&&event.keyCode==$.ui.keyCode.ESCAPE&&self.close(event));
}).attr({role:"dialog","aria-labelledby":titleId}).mousedown(function(event){self.moveToTop(false,event);}),uiDialogContent=this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(uiDialog),uiDialogTitlebar=(this.uiDialogTitlebar=$("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(uiDialog),uiDialogTitlebarClose=$('<a href="#"/>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){uiDialogTitlebarClose.addClass("ui-state-hover");},function(){uiDialogTitlebarClose.removeClass("ui-state-hover");}).focus(function(){uiDialogTitlebarClose.addClass("ui-state-focus");}).blur(function(){uiDialogTitlebarClose.removeClass("ui-state-focus");}).mousedown(function(ev){ev.stopPropagation();}).click(function(event){self.close(event);return false;}).appendTo(uiDialogTitlebar),uiDialogTitlebarCloseText=(this.uiDialogTitlebarCloseText=$("<span/>")).addClass("ui-icon ui-icon-closethick").text(options.closeText).appendTo(uiDialogTitlebarClose),uiDialogTitle=$("<span/>").addClass("ui-dialog-title").attr("id",titleId).html(title).prependTo(uiDialogTitlebar);
uiDialogTitlebar.find("*").add(uiDialogTitlebar).disableSelection();(options.draggable&&$.fn.draggable&&this._makeDraggable());(options.resizable&&$.fn.resizable&&this._makeResizable());this._createButtons(options.buttons);this._isOpen=false;(options.bgiframe&&$.fn.bgiframe&&uiDialog.bgiframe());(options.autoOpen&&this.open());},destroy:function(){(this.overlay&&this.overlay.destroy());this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");this.uiDialog.remove();(this.originalTitle&&this.element.attr("title",this.originalTitle));},close:function(event){var self=this;if(false===self._trigger("beforeclose",event)){return;}(self.overlay&&self.overlay.destroy());self.uiDialog.unbind("keypress.ui-dialog");(self.options.hide?self.uiDialog.hide(self.options.hide,function(){self._trigger("close",event);}):self.uiDialog.hide()&&self._trigger("close",event));$.ui.dialog.overlay.resize();self._isOpen=false;
},isOpen:function(){return this._isOpen;},moveToTop:function(force,event){if((this.options.modal&&!force)||(!this.options.stack&&!this.options.modal)){return this._trigger("focus",event);}if(this.options.zIndex>$.ui.dialog.maxZ){$.ui.dialog.maxZ=this.options.zIndex;}(this.overlay&&this.overlay.$el.css("z-index",$.ui.dialog.overlay.maxZ=++$.ui.dialog.maxZ));var saveScroll={scrollTop:this.element.attr("scrollTop"),scrollLeft:this.element.attr("scrollLeft")};this.uiDialog.css("z-index",++$.ui.dialog.maxZ);this.element.attr(saveScroll);this._trigger("focus",event);},open:function(){if(this._isOpen){return;}var options=this.options,uiDialog=this.uiDialog;this.overlay=options.modal?new $.ui.dialog.overlay(this):null;(uiDialog.next().length&&uiDialog.appendTo("body"));this._size();this._position(options.position);uiDialog.show(options.show);this.moveToTop(true);(options.modal&&uiDialog.bind("keypress.ui-dialog",function(event){if(event.keyCode!=$.ui.keyCode.TAB){return;}var tabbables=$(":tabbable",this),first=tabbables.filter(":first")[0],last=tabbables.filter(":last")[0];
if(event.target==last&&!event.shiftKey){setTimeout(function(){first.focus();},1);}else{if(event.target==first&&event.shiftKey){setTimeout(function(){last.focus();},1);}}}));$([]).add(uiDialog.find(".ui-dialog-content :tabbable:first")).add(uiDialog.find(".ui-dialog-buttonpane :tabbable:first")).add(uiDialog).filter(":first").focus();this._trigger("open");this._isOpen=true;},_createButtons:function(buttons){var self=this,hasButtons=false,uiDialogButtonPane=$("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");this.uiDialog.find(".ui-dialog-buttonpane").remove();(typeof buttons=="object"&&buttons!==null&&$.each(buttons,function(){return !(hasButtons=true);}));if(hasButtons){$.each(buttons,function(name,fn){$('<button type="button"></button>').addClass("ui-state-default ui-corner-all").text(name).click(function(){fn.apply(self.element[0],arguments);}).hover(function(){$(this).addClass("ui-state-hover");},function(){$(this).removeClass("ui-state-hover");}).focus(function(){$(this).addClass("ui-state-focus");
}).blur(function(){$(this).removeClass("ui-state-focus");}).appendTo(uiDialogButtonPane);});uiDialogButtonPane.appendTo(this.uiDialog);}},_makeDraggable:function(){var self=this,options=this.options,heightBeforeDrag;this.uiDialog.draggable({cancel:".ui-dialog-content",handle:".ui-dialog-titlebar",containment:"document",start:function(){heightBeforeDrag=options.height;$(this).height($(this).height()).addClass("ui-dialog-dragging");(options.dragStart&&options.dragStart.apply(self.element[0],arguments));},drag:function(){(options.drag&&options.drag.apply(self.element[0],arguments));},stop:function(){$(this).removeClass("ui-dialog-dragging").height(heightBeforeDrag);(options.dragStop&&options.dragStop.apply(self.element[0],arguments));$.ui.dialog.overlay.resize();}});},_makeResizable:function(handles){handles=(handles===undefined?this.options.resizable:handles);var self=this,options=this.options,resizeHandles=typeof handles=="string"?handles:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",alsoResize:this.element,maxWidth:options.maxWidth,maxHeight:options.maxHeight,minWidth:options.minWidth,minHeight:options.minHeight,start:function(){$(this).addClass("ui-dialog-resizing");
(options.resizeStart&&options.resizeStart.apply(self.element[0],arguments));},resize:function(){(options.resize&&options.resize.apply(self.element[0],arguments));},handles:resizeHandles,stop:function(){$(this).removeClass("ui-dialog-resizing");options.height=$(this).height();options.width=$(this).width();(options.resizeStop&&options.resizeStop.apply(self.element[0],arguments));$.ui.dialog.overlay.resize();}}).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se");},_position:function(pos){var wnd=$(window),doc=$(document),pTop=doc.scrollTop(),pLeft=doc.scrollLeft(),minTop=pTop;if($.inArray(pos,["center","top","right","bottom","left"])>=0){pos=[pos=="right"||pos=="left"?pos:"center",pos=="top"||pos=="bottom"?pos:"middle"];}if(pos.constructor!=Array){pos=["center","middle"];}if(pos[0].constructor==Number){pLeft+=pos[0];}else{switch(pos[0]){case"left":pLeft+=0;break;case"right":pLeft+=wnd.width()-this.uiDialog.outerWidth();break;default:case"center":pLeft+=(wnd.width()-this.uiDialog.outerWidth())/2;
}}if(pos[1].constructor==Number){pTop+=pos[1];}else{switch(pos[1]){case"top":pTop+=0;break;case"bottom":pTop+=wnd.height()-this.uiDialog.outerHeight();break;default:case"middle":pTop+=(wnd.height()-this.uiDialog.outerHeight())/2;}}pTop=Math.max(pTop,minTop);this.uiDialog.css({top:pTop,left:pLeft});},_setData:function(key,value){(setDataSwitch[key]&&this.uiDialog.data(setDataSwitch[key],value));switch(key){case"buttons":this._createButtons(value);break;case"closeText":this.uiDialogTitlebarCloseText.text(value);break;case"dialogClass":this.uiDialog.removeClass(this.options.dialogClass).addClass(uiDialogClasses+value);break;case"draggable":(value?this._makeDraggable():this.uiDialog.draggable("destroy"));break;case"height":this.uiDialog.height(value);break;case"position":this._position(value);break;case"resizable":var uiDialog=this.uiDialog,isResizable=this.uiDialog.is(":data(resizable)");(isResizable&&!value&&uiDialog.resizable("destroy"));(isResizable&&typeof value=="string"&&uiDialog.resizable("option","handles",value));
(isResizable||this._makeResizable(value));break;case"title":$(".ui-dialog-title",this.uiDialogTitlebar).html(value||"&nbsp;");break;case"width":this.uiDialog.width(value);break;}$.widget.prototype._setData.apply(this,arguments);},_size:function(){var options=this.options;this.element.css({height:0,minHeight:0,width:"auto"});var nonContentHeight=this.uiDialog.css({height:"auto",width:options.width}).height();this.element.css({minHeight:Math.max(options.minHeight-nonContentHeight,0),height:options.height=="auto"?"auto":Math.max(options.height-nonContentHeight,0)});}});$.extend($.ui.dialog,{version:"1.7.1",defaults:{autoOpen:true,bgiframe:false,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:"center",resizable:true,show:null,stack:true,title:"",width:300,zIndex:1000},getter:"isOpen",uuid:0,maxZ:0,getTitleId:function($el){return"ui-dialog-title-"+($el.attr("id")||++this.uuid);
},overlay:function(dialog){this.$el=$.ui.dialog.overlay.create(dialog);}});$.extend($.ui.dialog.overlay,{instances:[],maxZ:0,events:$.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(event){return event+".dialog-overlay";}).join(" "),create:function(dialog){if(this.instances.length===0){setTimeout(function(){$(document).bind($.ui.dialog.overlay.events,function(event){var dialogZ=$(event.target).parents(".ui-dialog").css("zIndex")||0;return(dialogZ>$.ui.dialog.overlay.maxZ);});},1);$(document).bind("keydown.dialog-overlay",function(event){(dialog.options.closeOnEscape&&event.keyCode&&event.keyCode==$.ui.keyCode.ESCAPE&&dialog.close(event));});$(window).bind("resize.dialog-overlay",$.ui.dialog.overlay.resize);}var $el=$("<div></div>").appendTo(document.body).addClass("ui-widget-overlay").css({width:this.width(),height:this.height()});(dialog.options.bgiframe&&$.fn.bgiframe&&$el.bgiframe());this.instances.push($el);return $el;},destroy:function($el){this.instances.splice($.inArray(this.instances,$el),1);
if(this.instances.length===0){$([document,window]).unbind(".dialog-overlay");}$el.remove();},height:function(){if($.browser.msie&&$.browser.version<7){var scrollHeight=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);var offsetHeight=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(scrollHeight<offsetHeight){return $(window).height()+"px";}else{return scrollHeight+"px";}}else{return $(document).height()+"px";}},width:function(){if($.browser.msie&&$.browser.version<7){var scrollWidth=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);var offsetWidth=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(scrollWidth<offsetWidth){return $(window).width()+"px";}else{return scrollWidth+"px";}}else{return $(document).width()+"px";}},resize:function(){var $overlays=$([]);$.each($.ui.dialog.overlay.instances,function(){$overlays=$overlays.add(this);});$overlays.css({width:0,height:0}).css({width:$.ui.dialog.overlay.width(),height:$.ui.dialog.overlay.height()});
}});$.extend($.ui.dialog.overlay.prototype,{destroy:function(){$.ui.dialog.overlay.destroy(this.$el);}});})(jQuery);if(jQuery){(function(){$.extend($.fn,{rightClick:function(handler){$(this).each(function(){$(this).mousedown(function(e){var evt=e;$(this).mouseup(function(){$(this).unbind("mouseup");if(evt.button==2){handler.call($(this),evt);return false;}else{return true;}});});$(this)[0].oncontextmenu=function(){return false;};});return $(this);},rightMouseDown:function(handler){$(this).each(function(){$(this).mousedown(function(e){if(e.button==2){handler.call($(this),e);return false;}else{return true;}});$(this)[0].oncontextmenu=function(){return false;};});return $(this);},rightMouseUp:function(handler){$(this).each(function(){$(this).mouseup(function(e){if(e.button==2){handler.call($(this),e);return false;}else{return true;}});$(this)[0].oncontextmenu=function(){return false;};});return $(this);},noContext:function(){$(this).each(function(){$(this)[0].oncontextmenu=function(){return false;
};});return $(this);}});})(jQuery);}var HX_MSG_HOLDER={defaultOutline1:"课程章节",defaultOthers:"相关栏目",rteInitFail:"<span class='alert'>该课程需要学习平台的支持，目前无法建立与平台的连接！您将无法学习课程。</span>",securityInitFail:"<span class='alert'>课程认证和授权失败！</span>",outlineContent:"内容索引",initCourseFail:"课程加载过程中遇到问题，无法播放！",tracks:{knowListTitle:"知识点测评记录",knowQuizTitle:"知识点测评",knowLabel:"章节知识点",completeStatus:"完成情况",score:"得分",incomplete:"未完成",completed:"已完成",noTrackStatus:"系统处在不记录状态。",trackQuestionAlert:"请认真答题，答题结果将记入知识点测评的成绩！",noTrackQuestionAlert:"请认真答题，测试一下你对前面知识点的学习情况！",quizPassMsg:"<div class='green-alert'>恭喜你！当前知识点测试通过，请继续学习！</div>",quizFailMsg:"<div class='alert'>学员你好！当前测试未通过，华夏大地辅导专家建议你重新学习该知识点的内容，你也可以选择继续学习！</div>",timeTrackAlert:"<span>在进行知识点测评时您的时间将会不被计为听课时长。</span>",freeAlertTitle:"是否在计算机前确认",freeAlertContent:"亲爱的学员，你好！为了确认你是否在计算机前面特此弹出对话框询问，如果给你正常学习带来不便，请谅解！"},syncPartAlert:'点击视频下边的按钮<img border="0" align="absmiddle" src="__templates/htmlv1/images/default/sync_part.gif"/>同步讲义到当前界面。',contentIsNotReady:"内容没有准备好，请稍侯！",modules:{gotoAlert:"<div style='padding-top:100px;text-align:center;font-size:16px;color:red;'>跳转到其它学习模块会使当前学习中断，请确认是否继续该操作？</div>",gotoAlertTitle:"模块跳转提醒"},videos:{quizVideoPlayCompleted:"当前题目视频讲解完毕!"},copyrights:"<a href='http://www.edu-edu.com.cn' target='_blank'>华夏大地教育网</a> 服务热线：400-610-0480",syncContentLabel:"讲义同步滚动",commentsLabel:"我要评课",photoShotTitle:"照片采集",selectCourseTreeAlert:"点击“课程章节”标签学习其它章节内容",popupPlayVideoTitle:"视频演示",treeControlExpandAll:"展开目录",treeControlCollapseAll:"收缩目录",memberTypeMsg:{b2bAndB2c:"此版本仅限个人学习，不适用于课堂教学",minjiao:"欢迎加入全国自考精品课程公共平台"}};
var HX_SVR_HOLDER={rteService:"http://ilearning.edu-edu.com.cn/?r=teach/cwareservice/index",questionService:"http://member.edu-edu.com.cn/newpt/edu_examqaroom.php",quizFavorite:"http://acc.edu-edu.com.cn/notebook/add.php",commentsService:"http://www.edu-edu.com.cn/program/survey/cc_showvote38.php",defaultAuthService:"http://member.edu-edu.com.cn/CourseAuthV2_interface.php",imgShotInitService:"http://ilearning.edu-edu.com.cn/?r=teach/stustudyinfo/Shot4Random&source=cware",imgShotCheckService:"http://ilearning.edu-edu.com.cn/?r=teach/stustudyinfo/ShotAuthRandomAjax&target=cware",imgShotSaveService:"http://ilearning.edu-edu.com.cn/?r=teach/stustudyinfo/shothandle&src=1",memberTypeService:"http://www2.edu-edu.com.cn/incfile/member_interface.php"};var HX_CTX_MENU=[{label:"华夏大地教育网",type:"href",src:"http://www.edu-edu.com.cn"},{label:"帮助中心",type:"href",src:"http://sev.edu-edu.com.cn/help"}];var Debugger={isDebug:false,isInit:false,startDate:null,debug:function(msg){if(Debugger.isDebug){if(Debugger.isInit){if(Debugger.startDate==null){Debugger.startDate=(new Date()).getTime();
}$("#debuger_ui").prepend("<li>[DEBUG]:"+msg+"["+((new Date()).getTime()-Debugger.startDate)+"]</li>");}}}};function __HX_Debug(msg){Debugger.debug(msg);}(function($){if(window.DOMParser==undefined&&window.ActiveXObject){DOMParser=function(){};DOMParser.prototype.parseFromString=function(xmlString){var doc=new ActiveXObject("Microsoft.XMLDOM");doc.async="false";doc.loadXML(xmlString);return doc;};}$.xmlDOM=function(xml){try{var xmlDoc=(new DOMParser()).parseFromString(xml,"text/xml");if($.isXMLDoc(xmlDoc)){var err=$("parsererror",xmlDoc);if(err.length==1){throw ("Error: "+$(xmlDoc).text());}return $(xmlDoc);}}catch(e){}return $([]);};})(jQuery);var HX_C_RTE={cache:{},configs:{requiredRte:false,requiredAlertQuestion:false,defaultShowVideo:false,security:false,videoAuthInfo:"stream",authServiceUrl:HX_SVR_HOLDER.defaultAuthService,defaultVideoMode:"1",defaultVideoSync:true,outline1:{name:HX_MSG_HOLDER.defaultOutline1},outline2:null,others:{name:HX_MSG_HOLDER.defaultOthers},moduleCode:"",courseCode:"",courseName:"",mainMenuCategory:"",mainMenus:[],tools:[],otherLinks:[],manifest:null,requiredOutlineContent:false,recordPart:false},Init:function(callBack,cfgUrl){if(cfgUrl==null){cfgUrl="course_config.xml";
}HX_C_RTE.cache.initCallBack=callBack;$.get(cfgUrl,null,HX_C_RTE.OnLoadCfg,"xml");},OnLoadCfg:function(data,textStatus){if(textStatus=="success"){data=$(data);data=data.find("config");HX_C_RTE.configs.security=(data.attr("security")=="true")?true:false;HX_C_RTE.configs.requiredAlertQuestion=(data.attr("requiredAlertQuestion")=="true")?true:false;HX_C_RTE.configs.requiredRte=(data.attr("requiredRte")=="true")?true:false;HX_C_RTE.configs.requiredOutlineContent=(data.attr("requiredOutlineContent")=="true")?true:false;HX_C_RTE.configs.canQuestion=(data.attr("canQuestion")=="true")?true:false;HX_C_RTE.configs.useQuizItemFavorite=(data.attr("useQuizItemFavorite")=="true")?true:false;HX_C_RTE.configs.enableComments=(data.attr("enableComments")=="false")?false:true;var manifest=data.find("manifest");HX_C_RTE.configs.moduleCode=manifest.attr("module");HX_C_RTE.configs.courseCode=manifest.attr("code");HX_C_RTE.configs.recordPart=(manifest.attr("recordPart")=="true")?true:false;HX_C_FW.part.enabled=HX_C_RTE.configs.recordPart;
HX_C_RTE.configs.courseName=manifest.find("name").text();HX_C_RTE.configs.manifest=manifest;var outlines=data.find("outlines");var outline1=outlines.find("outline1");var outline2=outlines.find("outline2");var otherLinks=outlines.find("others");if(outline1.length==1){HX_C_RTE.configs.outline1={name:outline1.text()};}if(outline2.length==1){HX_C_RTE.configs.outline2={name:outline2.text()};}if(otherLinks.length==1){HX_C_RTE.configs.others={name:otherLinks.text()};}var video=data.find("video");if(video){HX_C_RTE.configs.defaultShowVideo=(video.attr("defaultShowVideo")=="true")?true:false;HX_C_RTE.configs.defaultVideoMode=video.attr("defaultVideoMode");HX_C_RTE.configs.defaultVideoSync=(video.attr("defaultVideoSync")=="true")?true:false;var vwidth=video.attr("videoWidth");var vheight=video.attr("videoHeight");if(vwidth!=null&&vwidth!=undefined){HX_C_FW.configs.player_width=parseInt(vwidth);}if(vheight!=null&&vheight!=undefined){HX_C_FW.configs.player_height=parseInt(vheight);}if(HX_C_RTE.configs.security){var videoAuthInfo=video.find("videoAuthInfo");
if(videoAuthInfo){HX_C_RTE.configs.videoAuthInfo=videoAuthInfo.attr("domain");}}}var mainMenus=data.find("mainMenus");HX_C_RTE.configs.mainMenus=mainMenus.find("item");var tools=data.find("tools");HX_C_RTE.configs.tools=tools.find("item");var links=data.find("otherLinks");HX_C_RTE.configs.otherLinks=links.find("group");var exts=data.find("extends");if(exts!=null&&exts.length>0){HX_C_RTE.configs.extendsEnabled=(exts.attr("enabled")=="true")?true:false;HX_C_RTE.configs.extendsService=exts.attr("service");}else{HX_C_RTE.configs.extendsEnabled=false;}HX_C_RTE.cache.initCallBack(true);}else{HX_C_RTE.cache.initCallBack(false);}if($.browser.msie){document.onselectstart=function(){return false;};}},RTE:{IsInit:true,currentScoId:null,IsEnabled:function(){return HX_C_RTE.configs.requiredRte;},SetCurrentScoId:function(id){HX_C_RTE.RTE.currentScoId=id;if(HX_C_RTE.configs.requiredRte){var engine=HX_C_RTE.GetRTEEngine();if(engine!=null){try{engine.SetLastAccess(id);}catch(error){}}}},GetCurrentScoId:function(){if(HX_C_RTE.configs.requiredRte){var engine=HX_C_RTE.GetRTEEngine();
if(engine!=null){try{return engine.GetLastAccess();}catch(error){}}}return HX_C_RTE.RTE.currentScoId;},GetValue:function(sco){if(HX_C_RTE.configs.requiredRte){var engine=HX_C_RTE.GetRTEEngine();if(engine!=null){try{return engine.GetValue(sco);}catch(error){}}}return null;},SetValue:function(sco,key,value){if(HX_C_RTE.configs.requiredRte){var engine=HX_C_RTE.GetRTEEngine();if(engine!=null){try{engine.SetValue(sco,key,value);}catch(error){}}}},Commit:function(){if(HX_C_RTE.configs.requiredRte){var engine=HX_C_RTE.GetRTEEngine();if(engine!=null){try{engine.Commit();}catch(error){}}}},ListHashTracks:function(){if(HX_C_RTE.configs.requiredRte){var engine=HX_C_RTE.GetRTEEngine();if(engine!=null){try{return engine.ListHashTracks();}catch(error){}}}return null;},GetPassScore:function(){if(HX_C_RTE.configs.requiredRte){var engine=HX_C_RTE.GetRTEEngine();if(engine!=null){try{return engine.GetPassScore();}catch(error){}}}return 60;},Pause:function(){if(HX_C_RTE.configs.requiredRte){var engine=HX_C_RTE.GetRTEEngine();
if(engine!=null){try{engine.PauseLearnSession();}catch(error){}}}HX_C_FW.player.Pause();},Resume:function(){if(HX_C_RTE.configs.requiredRte){var engine=HX_C_RTE.GetRTEEngine();if(engine!=null){try{engine.ResumeLearnSession();}catch(error){}}}HX_C_FW.player.Resume();}},GetRTEEngine:function(){var engine=HX_C_FW.player.findPlayer();return engine;}};function __HX_IsRequiredAuth(){return HX_C_RTE.configs.security;}function __HX_GetAuthServiceUrl(){return HX_C_RTE.configs.authServiceUrl;}function __HX_GetMainPageEntryUrl(){return window.location+"";}function __HX_GetCourseCode(){return HX_C_RTE.configs.courseCode;}function __HX_GetModuleCode(){return HX_C_RTE.configs.moduleCode;}function __HX_GetVideoAuthInfo(){return HX_C_RTE.configs.videoAuthInfo;}function __HX_GetDefaultVideoMode(){return HX_C_RTE.configs.defaultVideoMode;}function __HX_SetDefaultVideoMode(mode){HX_C_RTE.configs.defaultVideoMode=mode;}function __HX_GetRteServiceUrl(){return HX_SVR_HOLDER.rteService;}function __HX_IsRequiredRte(){return HX_C_RTE.configs.requiredRte;
}function __HX_OnRteInitFail(){HX_C_RTE.RTE.IsInit=false;HX_C_FW.caches[HX_C_FW.configs.ui_loadingId].html(HX_MSG_HOLDER.rteInitFail);HX_C_FW.caches[HX_C_FW.configs.ui_loadingId].show();}function __HX_OnSecurityInitFail(){HX_C_FW.caches[HX_C_FW.configs.ui_loadingId].html(HX_MSG_HOLDER.securityInitFail);HX_C_FW.caches[HX_C_FW.configs.ui_loadingId].show();}function __HX_GetMemberTypeService(){return HX_SVR_HOLDER.memberTypeService;}var __HX_PhotoShot_ID=-1;var __HX_PhotoAuth=3;function __HX_Is_PhotoShot_Required(){return __HX_IsRequiredRte();}function __HX_Check_PhotoShot_Interface(){return HX_SVR_HOLDER.imgShotCheckService;}function __HX_Init_PhotoShot_Interface(){return HX_SVR_HOLDER.imgShotInitService;}function __HX_Save_PhotoShot_Interface(){return HX_SVR_HOLDER.imgShotSaveService+"&id="+__HX_PhotoShot_ID+"&auth="+__HX_PhotoAuth;}function __HX_Save_PhotoShot_Success(){HX_C_RTE.RTE.Resume();var popup=HX_C_FW.caches[HX_C_FW.configs.ui_popupWindowId];popup.dialog("close");popup.html("");
}function __HX_PhotoShot_Required(auth,id){__HX_PhotoAuth=auth;__HX_PhotoShot_ID=id;HX_C_RTE.RTE.Pause();var popup=HX_C_FW.caches[HX_C_FW.configs.ui_popupWindowId];var html=AC_FL_RunContent("src","photoshot_template_index","width","444","height","251","align","middle","id","photoshot_template_index","quality","high","bgcolor","#4d4d4d","scale","exactfit","wmode","transparent","name","photoshot_template_index","allowScriptAccess","always","type","application/x-shockwave-flash","pluginspage","http://www.adobe.com/go/getflashplayer","allowFullScreen","false");popup.html("<center>"+html+"</center>");HX_C_FW.ShowPopupWindow(true,HX_MSG_HOLDER.photoShotTitle,{},function(){HX_C_RTE.RTE.Resume();},470,300);}var __HX_globalLayout;var __HX_leftLayout;var __HX_centerLayout;var __HX_leftMenuLayout;var HX_C_FW={caches:{hasInitExtends:false,currentSubTree:null,currentSco:null,isQuiz:false,currentSco2:null,currentUrl:null,chapters:null,knowledges:null,leaves:null,cuepoints:null,actions:null,alertWin:null},docIsReady:false,contentCallBack:null,hasStart:false,alertInterval:0,currentPartId:null,activeFlag:0,configs:{ui_loadingId:"ui-loading",ui_courseNameLabelId:"ui-course-name-label",ui_mainMenuId:"ui-main-menu-container",ui_currentTitleLabelId:"ui-current-title-label",ui_toolsBarId:"ui-tools-container",ui_playerId:"ui_flv_player",ui_centerContentContainerId:"ui-content-container",ui_playerContainerId:"ui-player-container",ui_leftMenuContainerId:"ui-left-menu-container",ui_leftMenuTabId:"ui-left-menu-tab",ui_courseTreeContainerId:"ui-course-tree-container",ui_currentTreeContainerId:"ui-current-tree-container",ui_otherLinkContainerId:"ui-other-link-container",ui_popupWindowId:"ui-popup-window",ui_printButtonId:"ui-print-btn",ui_contextMenu:"ui-context-menu",player_width:300,player_height:250,player_min_width:200,player_min_height:167,player_show_first:false,question_service_url:HX_SVR_HOLDER.questionService,quizitem_favorite_service_url:HX_SVR_HOLDER.quizFavorite},Init:function(){if($.browser.msie&&($.browser.version<7)){try{document.execCommand("BackgroundImageCache",false,true);
}catch(error){}}HX_C_FW.caches[HX_C_FW.configs.ui_popupWindowId]=$("#"+HX_C_FW.configs.ui_popupWindowId);HX_C_FW.caches[HX_C_FW.configs.ui_loadingId]=$("#"+HX_C_FW.configs.ui_loadingId);HX_C_FW.caches[HX_C_FW.configs.ui_courseNameLabelId]=$("#"+HX_C_FW.configs.ui_courseNameLabelId);HX_C_FW.caches[HX_C_FW.configs.ui_currentTitleLabelId]=$("#"+HX_C_FW.configs.ui_currentTitleLabelId);HX_C_FW.caches[HX_C_FW.configs.ui_mainMenuId]=$("#"+HX_C_FW.configs.ui_mainMenuId);HX_C_FW.caches[HX_C_FW.configs.ui_toolsBarId]=$("#"+HX_C_FW.configs.ui_toolsBarId);HX_C_FW.caches[HX_C_FW.configs.ui_centerContentContainerId]=$("#"+HX_C_FW.configs.ui_centerContentContainerId);HX_C_FW.caches[HX_C_FW.configs.ui_leftMenuContainerId]=$("#"+HX_C_FW.configs.ui_leftMenuContainerId);HX_C_FW.caches[HX_C_FW.configs.ui_leftMenuTabId]=$("#"+HX_C_FW.configs.ui_leftMenuTabId);HX_C_FW.caches[HX_C_FW.configs.ui_courseTreeContainerId]=$("#"+HX_C_FW.configs.ui_courseTreeContainerId);HX_C_FW.caches[HX_C_FW.configs.ui_currentTreeContainerId]=$("#"+HX_C_FW.configs.ui_currentTreeContainerId);
HX_C_FW.caches[HX_C_FW.configs.ui_otherLinkContainerId]=$("#"+HX_C_FW.configs.ui_otherLinkContainerId);HX_C_FW.caches[HX_C_FW.configs.ui_playerContainerId]=$("#"+HX_C_FW.configs.ui_playerContainerId);HX_C_FW.caches[HX_C_FW.configs.ui_printButtonId]=$("#"+HX_C_FW.configs.ui_printButtonId);HX_C_FW.caches[HX_C_FW.configs.ui_courseNameLabelId].text(HX_C_RTE.configs.courseName);document.title=HX_C_RTE.configs.courseName;HX_C_FW.GenerateMainMenu();HX_C_FW.GenerateToolsBar();HX_C_FW.GenerateOtherLinks();HX_C_FW.GenerateChapters();HX_C_FW.part.init();if(HX_C_RTE.configs.outline2==null){$("#ui-left-menu-header-container>li:eq(1)",HX_C_FW.caches[HX_C_FW.configs.ui_leftMenuContainerId]).remove();HX_C_FW.caches[HX_C_FW.configs.ui_currentTreeContainerId].remove();}else{$("a[href='#"+HX_C_FW.configs.ui_currentTreeContainerId+"']",HX_C_FW.caches[HX_C_FW.configs.ui_leftMenuContainerId]).text(HX_C_RTE.configs.outline2.name);}$("a[href='#"+HX_C_FW.configs.ui_courseTreeContainerId+"']",HX_C_FW.caches[HX_C_FW.configs.ui_leftMenuContainerId]).text(HX_C_RTE.configs.outline1.name);
$("a[href='#"+HX_C_FW.configs.ui_otherLinkContainerId+"']",HX_C_FW.caches[HX_C_FW.configs.ui_leftMenuContainerId]).text(HX_C_RTE.configs.others.name);var playerWidth=HX_C_FW.configs.player_width;var playerHeight=HX_C_FW.configs.player_height;if(window.screen){if(window.screen.width<=800){playerWidth=HX_C_FW.configs.player_min_width;playerHeight=HX_C_FW.configs.player_min_height;}}HX_C_FW.caches[HX_C_FW.configs.ui_leftMenuContainerId].tabs();__HX_globalLayout=$("body").layout({west:{size:playerWidth,minSize:playerWidth,resizable:false,paneSelector:"#ui-west-container"},center:{paneSelector:"#ui-center-container",onresize:"__HX_leftLayout.resizeAll",contentSelector:"#ui-content-container"},north:{paneSelector:"#ui-north-container",size:73,minSize:73,resizable:false,closable:true},defaults:{fxName:"slide",fxSpeed:"slow",applyDefaultStyles:false,togglerClass:"toggler",resizerClass:"resizer",togglerTip_open:"关闭",togglerTip_closed:"打开"}});__HX_leftLayout=$("#ui-west-container").layout({north:{paneSelector:("#"+HX_C_FW.configs.ui_playerContainerId),resizable:false,size:playerHeight,minSize:playerHeight,closable:!HX_C_RTE.configs.defaultShowVideo},center:{paneSelector:("#"+HX_C_FW.configs.ui_leftMenuContainerId),contentSelector:"#ui-left-menu-content-container"},defaults:{fxName:"slide",fxSpeed:"slow",applyDefaultStyles:false,togglerClass:"toggler",resizerClass:"resizer"}});
HX_C_FW.caches[HX_C_FW.configs.ui_popupWindowId].dialog({width:600,height:400,position:"center",autoOpen:false});HX_C_FW.caches[HX_C_FW.configs.ui_printButtonId].click(function(){HX_C_FW.PrintContent();});HX_C_FW.caches[HX_C_FW.configs.ui_printButtonId].css("cursor","pointer");HX_C_FW.docIsReady=true;if(Debugger.isDebug){if(!Debugger.isInit){$("body").append('<ul id="debuger_ui" style="border:solid 2px blue;position:absolute;z-index:200;background-color:#eee;width:800px;height:150px;overflow:auto;">Debugger...</ul>');Debugger.isInit=true;}}if(!$.browser.msie){HX_C_FW.caches[HX_C_FW.configs.ui_playerContainerId].html(__HX_WriteFlashObj());}HX_C_FW.Start();HX_C_FW.InitStatus();$(document).rightMouseUp(function(e){HX_C_FW.ShowContextMenu(e.pageX,e.pageY,true);});var ch=$("#ui-center-header-container");if(HX_C_RTE.configs.requiredOutlineContent){ch.append('<img style="cursor:pointer;" onclick="HX_C_FW.OutlineContent()" alt="'+HX_MSG_HOLDER.outlineContent+'" src="__templates/htmlv1/images/default/ic_1.gif" align="absmiddle"/>');
}ch.append('<input type="checkbox" onchange="__HX_Sync_Content_Toggle(this)" align="absmiddle"/><span style="color:#28b5ab;margin:0;padding:0;font-size:11px;">'+HX_MSG_HOLDER.syncContentLabel+"</span>");$(window).resize(function(){var alertWin=HX_C_FW.caches.alertWin;if(alertWin!=null){w=$(this);alertWin.css({top:(w.height()-alertWin.height()-3),left:(w.width()-alertWin.width()-3)});}});var statusBar=$("#ui-center-footer-container");var tmpHtml='<div class="msg" style="float:left;margin-left:120px;margin-right:100px;text-align:center;">';tmpHtml=tmpHtml+HX_MSG_HOLDER.copyrights+"</div>";if(HX_C_RTE.configs.enableComments){tmpHtml=tmpHtml+'<div style="width:100px;float:right;text-align:right;"><a href="'+HX_SVR_HOLDER.commentsService+"?course_code="+HX_C_RTE.configs.courseCode+"&module_id="+HX_C_RTE.configs.moduleCode+'" target="comments" style="color:blue;text-decoration:underline;cursor:pointer;">'+HX_MSG_HOLDER.commentsLabel+"</a></div>";}statusBar.html(tmpHtml);if(HX_C_RTE.configs.requiredRte){$(document).mousemove(HX_C_FW.UpdateActive);
$(document).keydown(HX_C_FW.UpdateActive);}else{}},Start:function(){if(Debugger.isDebug){Debugger.debug("Call Start...");}if(HX_C_FW.hasStart){return;}HX_C_FW.caches[HX_C_FW.configs.ui_loadingId].hide();if((HX_C_FW.docIsReady==true)&&(HX_C_FW.player.init==true)){if(!HX_C_RTE.configs.requiredRte){HX_C_FW.getMembetType();}if(HX_C_RTE.configs.recordPart){HX_C_FW.part.requestRecordedChapter();}HX_C_FW.hasStart=true;if(HX_C_FW.player.url!=null){HX_C_FW.player.Play(HX_C_FW.player.url);}else{var cscoid=HX_C_RTE.RTE.GetCurrentScoId();if(cscoid==null||cscoid==""||cscoid=="0"||cscoid=="'0'"){cscoid=HX_C_FW.caches.leaves[0].attr("id");var tmp=null;if(window.location.search.length>1){var chapterid=window.location.search.substring(1);var para="lci=";var chapIndex=chapterid.indexOf(para);if(chapIndex>-1){chapterid=chapterid.substring(chapIndex+para.length);var last=chapterid.indexOf("&");if(last>-1){chapterid=chapterid.substring(0,last);}}tmp=$(".leaf[code='"+chapterid+"']",HX_C_FW.caches[HX_C_FW.configs.ui_courseTreeContainerId]);
}if(tmp==null||tmp.length!=1){cscoid=HX_C_FW.caches.leaves[0].attr("id");tmp=$(".leaf[code='"+cscoid+"']",HX_C_FW.caches[HX_C_FW.configs.ui_courseTreeContainerId]);}HX_C_FW.GoItem(tmp);}else{var tmp=$(".leaf[code='"+cscoid+"']",HX_C_FW.caches[HX_C_FW.configs.ui_courseTreeContainerId]);if(tmp==null||tmp.length<1){cscoid=HX_C_FW.caches.leaves[0].attr("id");tmp=$(".leaf[code='"+cscoid+"']",HX_C_FW.caches[HX_C_FW.configs.ui_courseTreeContainerId]);}HX_C_FW.GoItem(tmp);}}if(HX_C_RTE.configs.extendsEnabled&&(!HX_C_FW.caches.hasInitExtends)){HX_C_FW.caches.hasInitExtends=true;HX_C_FW.SubmitFormData("loadExtendsCfg",HX_C_RTE.configs.extendsService,HX_C_FW.OnLoadExtendsCfg,{courseCode:HX_C_RTE.configs.courseCode,moduleCode:HX_C_RTE.configs.moduleCode});}}},part:{enabled:false,cache:{totalPartCount:-1,chapters:[],recordedChapter:[]},chapterIndex:0,passedScore:85,init:function(){if(!this.enabled){return false;}var leafArray=HX_C_FW.caches.leaves;for(var i=0;i<leafArray.length;i++){HX_C_FW.part.chapterIndex=i;
var leaf=leafArray[i];if(leaf.attr("assetType")=="video-sync"){HX_C_FW.part.getChapterPartCount(leaf);break;}}},getTotalPartCount:function(){if(!this.enabled){return 0;}if(HX_C_FW.part.cache.totalPartCount==-1){var count=0;var leafArray=HX_C_FW.caches.leaves;var chapters=HX_C_FW.part.cache.chapters;for(var i=0;i<leafArray.length;i++){var leaf=leafArray[i];if(leaf.attr("assetType")=="video-sync"){count+=chapters[leaf.attr("id")];}}HX_C_FW.part.cache.totalPartCount=count;return count;}else{return HX_C_FW.part.cache.totalPartCount;}},getChapterPartCount:function(leaf){if(!this.enabled){return false;}var leafid=leaf.attr("id");$.get(leaf.attr("href"),null,function(data,textStatus){if(textStatus=="success"){var data=$(data);data=data.find("FLVCoreCuePoints");var cuePoints=data.find("CuePoint");var count=0;cuePoints.each(function(){var na=$(this).find("Parameter").children("Name");if(na.text()=="part"){count++;}});HX_C_FW.part.cache.chapters[leafid]=count;HX_C_FW.part.chapterIndex++;for(var i=HX_C_FW.part.chapterIndex;
i<HX_C_FW.caches.leaves.length;i++){HX_C_FW.part.chapterIndex=i;var leaf=HX_C_FW.caches.leaves[i];if(leaf.attr("assetType")=="video-sync"){HX_C_FW.part.getChapterPartCount(leaf);break;}}}},"xml");},requestRecordedChapter:function(){if(!this.enabled){return false;}if(HX_C_FW.part.chapterIndex!=HX_C_FW.caches.leaves.length){setTimeout("HX_C_FW.part.requestRecordedChapter()",200);return;}var service="http://member.edu-edu.com.cn/interface_getprogress.php?courseCode="+HX_C_RTE.configs.courseCode+"&moduleCode="+HX_C_RTE.configs.moduleCode;var obj={};try{HX_C_FW.SubmitFormData("getRecordedChapterPart",service,function(status,data){var xml=$.xmlDOM(data+"");var response=$(xml).find("response");var chapters=response.children("chapter");chapters.each(function(){var c=$(this);var rc={chapterid:null,parts:[]};rc.chapterid=c.attr("id");rc.parts=c.text().split(",");HX_C_FW.part.cache.recordedChapter.push(rc);});HX_C_FW.part.signChapterComplete();},obj);}catch(e){}},signChapterComplete:function(){if(!this.enabled){return false;
}var rc=HX_C_FW.part.cache.recordedChapter;var cp=HX_C_FW.part.cache.chapters;for(var i=0;i<rc.length;i++){var chapterPartCount=parseFloat(cp[rc[i].chapterid]+"");if(chapterPartCount!=undefined){var recodePart=rc[i].parts.length;var percent=Math.round((recodePart/chapterPartCount)*100);if(percent>=this.passedScore){var signSpan=$("span[code='"+rc[i].chapterid+"']",HX_C_FW.caches[HX_C_FW.configs.ui_courseTreeContainerId]);var currSpan=$("span[code='"+rc[i].chapterid+"']",HX_C_FW.caches[HX_C_FW.configs.ui_currentTreeContainerId]);if(signSpan.text().indexOf(" √")==-1){signSpan.append(" √");currSpan.append(" √");}}}}},submitPart:function(partid){if(!this.enabled){return false;}var curSco=HX_C_FW.caches.currentSco;if(HX_C_FW.part.testRecoredPart(partid)){return false;}var xml='<?xml version="1.0" encoding="UTF-8" ?><request coursecode="'+HX_C_RTE.configs.courseCode+'" model="'+HX_C_RTE.configs.moduleCode+'" totalpartcount="'+HX_C_FW.part.getTotalPartCount()+'">';var chapter=HX_C_FW.part.cache.chapters;
var count=chapter[curSco.attr("code")];xml+='<chapter id="'+curSco.attr("code")+'" name="'+encodeURIComponent(curSco.attr("title"))+'" chapterpartcount="'+count+'">';xml+=partid;xml+="</chapter>";xml+="</request>";var service="http://member.edu-edu.com.cn/interface_saveprogress.php";try{HX_C_FW.SubmitFormData("submitRecordPart",service,function(status,data){var rc=HX_C_FW.part.cache.recordedChapter;var findChapter=false;for(var i=0;i<rc.length;i++){var cc=rc[i];if(cc.chapterid==curSco.attr("code")){findChapter=true;var find=false;for(var j=0;j<cc.parts.length;j++){if(cc.parts[j]==partid){find=true;break;}}if(!find){cc.parts.push(partid);HX_C_FW.part.signChapterComplete();}}}if(!findChapter){var rc={chapterid:null,parts:[]};rc.chapterid=curSco.attr("code");rc.parts=[partid];HX_C_FW.part.cache.recordedChapter.push(rc);HX_C_FW.part.signChapterComplete();}},xml,"xml");}catch(e){}},testRecoredPart:function(partid){var curSco=HX_C_FW.caches.currentSco;var rc=HX_C_FW.part.cache.recordedChapter;
for(var i=0;i<rc.length;i++){var cc=rc[i];if(cc.chapterid==curSco.attr("code")){findChapter=true;var find=false;for(var j=0;j<cc.parts.length;j++){if(cc.parts[j]==partid){find=true;break;}}if(find){return true;}else{return false;}}}return false;}},GenerateChapters:function(){var html="";var cm=HX_C_FW.caches[HX_C_FW.configs.ui_courseTreeContainerId];if(HX_C_FW.caches.chapters!=null){html=HX_C_FW.caches.chapters;}else{var m=HX_C_RTE.configs.manifest;HX_C_FW.caches.knowledges=[];HX_C_FW.caches.leaves=[];m.children("item").each(function(){html=html+HX_C_FW.PriGenerateChapters($(this),0,"");});html="<div id='tree_control'><a class='collapse-all' href='#'>"+HX_MSG_HOLDER.treeControlCollapseAll+"</a><a class='expand-all' href='#'>"+HX_MSG_HOLDER.treeControlExpandAll+"</a></div>"+html;HX_C_FW.caches.chapters=html;}cm.html(html);cm.treeview({collapsed:true,control:"#tree_control"});},PriGenerateChapters:function(p,parentId,pstr){var orderLabel=p.children("orderLabel").text();var itemTitle=p.children("title").text();
if(pstr==""){p.attr("title",orderLabel+" "+itemTitle);}else{p.attr("title",pstr+" >> "+orderLabel+" "+itemTitle);}var s=p;p=s.children("item");var html="";if(s.attr("href")){html=html+"<li><span class='file leaf' idx='"+HX_C_FW.caches.leaves.length+"' parentId='"+parentId+"' assetType='"+s.attr("assetType")+"' link='"+s.attr("href")+"' code='"+s.attr("id")+"' title=\""+s.attr("title")+'" onclick="HX_C_FW.GoItem(this)">'+orderLabel+" "+itemTitle+"</span>";HX_C_FW.caches.leaves.push(s);}else{html=html+"<li><span class='folder' code='"+s.attr("id")+"'>"+orderLabel+" "+itemTitle+"</span>";}if(s.attr("type")=="1"){parentId=s.attr("id");}else{if(s.attr("type")=="3"){HX_C_FW.caches.knowledges.push(s);}}if(p.length>0){var count=0;p.each(function(){if($(this).attr("type")!=3){count++;}});if(count>0){html=html+"<ul code='"+s.attr("id")+"'>";p.each(function(){html=html+HX_C_FW.PriGenerateChapters($(this),parentId,s.attr("title"));});html=html+"</ul>";}else{p.each(function(){HX_C_FW.PriGenerateChapters($(this),parentId,s.attr("title"));
});}}html=html+"</li>";return html;},PriGenerateSubTree:function(cp){return cp.clone(true);},GoItem:function(item){item=$(item);if(HX_C_FW.caches.currentSco!=null){HX_C_FW.caches.currentSco.removeClass("selected");}if(HX_C_FW.caches.currentSco2!=null){HX_C_FW.caches.currentSco2.removeClass("selected");}item.addClass("selected");HX_C_FW.caches.currentSco=item;var parentId=item.attr("parentId");if(HX_C_RTE.configs.outline2!=null&&parentId!=HX_C_FW.caches.currentSubTree){HX_C_FW.caches.currentSco2=HX_C_FW.caches.currentSco;HX_C_FW.caches.currentSubTree=parentId;var label=$("span[code='"+parentId+"']",HX_C_FW.caches[HX_C_FW.configs.ui_courseTreeContainerId]);var cp=$("ul[code='"+parentId+"']",HX_C_FW.caches[HX_C_FW.configs.ui_courseTreeContainerId]);var subtree=null;if(cp==null||cp.length<1){subtree=$("<li><span class='file leaf' style='color:red;'>"+item.text()+"</span></li>");}else{subtree=HX_C_FW.PriGenerateSubTree(cp);}var ci=HX_C_FW.caches[HX_C_FW.configs.ui_currentTreeContainerId];if(label){ci.html("<span style='padding:4px;margin-bottom:4px;color:red;border:1px dashed red;display:block;'>"+HX_MSG_HOLDER.selectCourseTreeAlert+"</span><li class='open'><span class='folder'>"+label.text()+"</span><ul>"+subtree.html()+"</ul></li>");
}else{ci.html("<span style='padding:4px;margin-bottom:4px;color:red;border:1px dashed red;display:block;'>"+HX_MSG_HOLDER.selectCourseTreeAlert+"</span>"+subtree.html());}var csco=$(".selected",ci);HX_C_FW.caches.currentSco=csco;ci.treeview({prerendered:true});}if(HX_C_RTE.configs.outline2!=null){HX_C_FW.caches[HX_C_FW.configs.ui_leftMenuContainerId].tabs("select",1);var c=item.attr("code");$("span.leaf",HX_C_FW.caches[HX_C_FW.configs.ui_courseTreeContainerId]).each(function(){var l=$(this);if(l.attr("code")==c){l.addClass("selected");}else{l.removeClass("selected");}});$("span.leaf",HX_C_FW.caches[HX_C_FW.configs.ui_currentTreeContainerId]).each(function(){var l=$(this);if(l.attr("code")==c){l.addClass("selected");}else{l.removeClass("selected");}});}var currentTitle=item.attr("title");if(currentTitle.length>50){currentTitle="..."+currentTitle.substr(currentTitle.length-50,50);}HX_C_FW.caches[HX_C_FW.configs.ui_currentTitleLabelId].text(currentTitle);var atype=item.attr("assetType");var href=item.attr("link");
if(atype=="link"){HX_C_FW.player.Clear();HX_C_FW.player.url=null;HX_C_FW.caches.currentUrl=href;HX_C_FW.contentCallBack=null;HX_C_FW.ShowLoading(HX_C_FW.caches[HX_C_FW.configs.ui_centerContentContainerId]);HX_C_FW.caches[HX_C_FW.configs.ui_centerContentContainerId].attr("src",href);HX_C_RTE.RTE.SetCurrentScoId(item.attr("code"));}else{if(atype=="video-sync"){HX_C_FW.player.Play(href);}}if(HX_C_RTE.configs.requiredOutlineContent){var ol=$("#ui-content-outline");ol.hide();}},GenerateMainMenu:function(){var mm=HX_C_RTE.configs.mainMenus;var html="";mm.each(function(){var m=$(this);var openMode=m.attr("openMode");var title=m.attr("title");var isSelf=(m.attr("target")=="_self");if(!title){title=m.attr("label");}if(openMode=="popup"){html=html+"<li class='"+m.attr("style")+"'><span title='"+title+"' onclick='window.open(\""+m.attr("url")+'","'+m.attr("target")+'","status=0,toolbar=0,location=0,menubar=0,width='+m.attr("width")+",height="+m.attr("height")+"\");'>"+m.attr("label")+"</span></li>";
}else{if(openMode=="innerpopup"){var script=m.attr("script");if(script){html=html+"<li class='"+m.attr("style")+"'><span title='"+title+"' class='leaf' onclick='eval("+script+")'>"+m.attr("label")+"</span></li>";}}else{if(isSelf){html=html+"<li class='"+m.attr("style")+"'><span class='leaf' title='"+title+"' url='"+m.attr("url")+"' onclick='HX_C_FW.ConfirmGoto(this)'>"+m.attr("label")+"</span></li>";}else{html=html+"<li class='"+m.attr("style")+"'><a title='"+title+"' href='"+m.attr("url")+"' target='"+m.attr("target")+"'>"+m.attr("label")+"</a></li>";}}}});if(html!=""){HX_C_FW.caches[HX_C_FW.configs.ui_mainMenuId].html(html);}},GenerateToolsBar:function(){var tools=HX_C_RTE.configs.tools;var html="";tools.each(function(){var m=$(this);var openMode=m.attr("openMode");var title=m.attr("title");var isSelf=(m.attr("target")=="_self");if(!title){title=m.attr("label");}if(openMode=="popup"){html=html+"<li class='"+m.attr("style")+"'><span title='"+title+"' class='leaf' onclick='window.open(\""+m.attr("url")+'","'+m.attr("target")+'","status=0,toolbar=0,location=0,menubar=0,width='+m.attr("width")+",height="+m.attr("height")+"\")'>"+m.attr("label")+"</span></li>";
}else{if(openMode=="innerpopup"){var script=m.attr("script");if(script){html=html+"<li class='"+m.attr("style")+"'><span title='"+title+"' class='leaf' onclick='eval("+script+")'>"+m.attr("label")+"</span></li>";}}else{if(isSelf){html=html+"<li class='"+m.attr("style")+"'><span class='leaf' title='"+title+"' url='"+m.attr("url")+"' onclick='HX_C_FW.ConfirmGoto(this)'>"+m.attr("label")+"</span></li>";}else{html=html+"<li class='"+m.attr("style")+"'><a title='"+title+"' href='"+m.attr("url")+"' target='"+m.attr("target")+"'>"+m.attr("label")+"</a></li>";}}}});if(html!=""){HX_C_FW.caches[HX_C_FW.configs.ui_toolsBarId].html(html);}},GenerateOtherLinks:function(){var otherLinks=HX_C_RTE.configs.otherLinks;var html="";otherLinks.each(function(){var t=$(this);html=html+"<ul><span class='label'>"+t.attr("name")+"</span>";t.find("item").each(function(){var tt=$(this);var openMode=tt.attr("openMode");var title=tt.attr("title");var isSelf=(tt.attr("target")=="_self");if(!title){title=tt.attr("label");
}if(openMode=="popup"){html=html+"<li><span title='"+title+"' class='leaf' onclick='window.open(\""+tt.attr("url")+'","'+tt.attr("target")+'","status=0,toolbar=0,location=0,menubar=0,width='+tt.attr("width")+",height="+tt.attr("height")+"\")'>"+tt.attr("label")+"</span></li>";}else{if(openMode=="innerpopup"){var script=tt.attr("script");if(script){html=html+"<li class='"+tt.attr("style")+"'><span title='"+title+"' class='leaf' onclick='eval("+script+")'>"+tt.attr("label")+"</span></li>";}}else{if(isSelf){html=html+"<li><span title='"+title+"' class='leaf' url='"+tt.attr("url")+"' onclick='HX_C_FW.ConfirmGoto(this)'>"+tt.attr("label")+"</span></li>";}else{html=html+"<li><a title='"+title+"' href='"+tt.attr("url")+"' target='"+tt.attr("target")+"'>"+tt.attr("label")+"</a></li>";}}}});html=html+"</ul>";});if(html!=""){HX_C_FW.caches[HX_C_FW.configs.ui_otherLinkContainerId].html(html);}else{$("#ui-left-menu-header-container>li:last",HX_C_FW.caches[HX_C_FW.configs.ui_leftMenuContainerId]).remove();
HX_C_FW.caches[HX_C_FW.configs.ui_otherLinkContainerId].remove();}},ShowFaultMessage:function(){Alert(HX_MSG_HOLDER.initCourseFail);},ShowLoading:function(target){var loading=HX_C_FW.caches[HX_C_FW.configs.ui_loadingId];if(loading){loading.width(target.width());loading.height(target.height());var offset=target.offset();loading.css({left:offset.left,top:offset.top});loading.show();}},HideLoading:function(){var loading=HX_C_FW.caches[HX_C_FW.configs.ui_loadingId];if(loading){loading.hide();}},ShowLearnTracks:function(){if(HX_C_RTE.configs.requiredRte){var html="<div class='learn-tracks'><table><tr><th>"+HX_MSG_HOLDER.tracks.knowLabel+"</th><th>"+HX_MSG_HOLDER.tracks.completeStatus+"</th><th>"+HX_MSG_HOLDER.tracks.score+"</th></tr>";var tracks=HX_C_RTE.RTE.ListHashTracks();var passScore=HX_C_RTE.RTE.GetPassScore();var knows=HX_C_FW.caches.knowledges;if(knows!=null){var len=knows.length;for(var i=0;i<len;i++){var know=knows[i];var status="uncomplete";var statusMsg=HX_MSG_HOLDER.tracks.incomplete;
var score=0;var scoid="sco_"+know.attr("id");if((tracks!=null)&&(tracks[scoid]!=undefined)){if(tracks[scoid].score>=passScore){score=tracks[scoid].score;status="completed";statusMsg=HX_MSG_HOLDER.tracks.completed;}}if(score<0){score=0;}if(score>100){score=100;}html=html+"<tr class='complete_status_"+status+"'><td>"+know.attr("title")+"</td><td>"+statusMsg+"</td><td>"+score+"</td></tr>";}}html=html+"</table></div>";var popup=HX_C_FW.caches[HX_C_FW.configs.ui_popupWindowId];popup.html(html);HX_C_FW.ShowPopupWindow(false,HX_MSG_HOLDER.tracks.knowListTitle,{"确定":function(){$(this).dialog("close");}},function(){});}else{alert(HX_MSG_HOLDER.tracks.noTrackStatus);}},ShowPopupWindow:function(modal,title,buttons,close,w,h){if(isNaN(w)||isNaN(h)){w=600;h=400;}var popup=HX_C_FW.caches[HX_C_FW.configs.ui_popupWindowId];popup.dialog("option","width",w);popup.dialog("option","height",h);popup.dialog("option","title",title);popup.dialog("option","modal",modal);popup.dialog("option","close",close);popup.dialog("option","buttons",buttons);
popup.dialog("open");},ShowAlertQuestion:function(obj,baseUrl){if(HX_C_RTE.configs.requiredAlertQuestion){var popup=HX_C_FW.caches[HX_C_FW.configs.ui_popupWindowId];popup.html(obj);var i=0;$(".question",popup).each(function(){var question=$(this);$(".options",question).each(function(){var item=$(this);item.attr("id","options_"+i);i++;$("li",item).each(function(){var li=$(this);li.attr("question-type",question.attr("type"));li.attr("options-id",item.attr("id"));li.click(function(){var li2=$(this);var optionsId=li2.attr("options-id");var type=li2.attr("question-type");if(type=="single_choice"||type=="true_false"){$("#"+optionsId,HX_C_FW.caches[HX_C_FW.configs.ui_popupWindowId]).each(function(){$("li",$(this)).each(function(){$(this).removeClass("selected");});});li2.addClass("selected");}else{li2.toggleClass("selected");}});});});});$(".answer",popup).each(function(){$(this).hide();});if((!$.browser.msie)||($.browser.msie&&$.browser.version>7)){$("img",popup).each(function(){var t=$(this);
var src=t.attr("src");src=src.replace(baseUrl,"");t.attr("src",baseUrl+"/"+src);});}var pt=$(".popup-questions-title",popup);if(HX_C_RTE.configs.requiredRte){pt.text(HX_MSG_HOLDER.tracks.trackQuestionAlert);}else{pt.text(HX_MSG_HOLDER.tracks.noTrackQuestionAlert);}HX_C_RTE.RTE.Pause();HX_C_FW.ShowPopupWindow(true,HX_MSG_HOLDER.tracks.knowQuizTitle,{"提交":function(){HX_C_FW.SubmitPopupQuestion();}},function(){HX_C_RTE.RTE.Resume();});}},SubmitPopupQuestion:function(){var popup=HX_C_FW.caches[HX_C_FW.configs.ui_popupWindowId];var score=0;$(".question",popup).each(function(){var t=$(this);var type=t.attr("type");if(type=="true_false"||type=="single_choice"){if(t.attr("answer").toLowerCase()==$(".options li.selected",t).attr("code").toLowerCase()){score=score+parseInt(t.attr("score"));}}else{if(type=="multi_choice"){var a="";$(".options li.selected",t).each(function(){a=a+$(this).attr("code");});if(t.attr("answer").toLowerCase()==a.toLowerCase()){score=score+parseInt(t.attr("score"));}}}});$(".answer",popup).each(function(){$(this).show();
});var questions=$(".popup-questions",popup);HX_C_RTE.RTE.SetValue(questions.attr("knowid"),"score",score+"");var passScore=HX_C_RTE.RTE.GetPassScore();var status="uncomplete";if(score>=passScore){status="completed";var tt=$(".popup-questions-title",questions);tt.after(HX_MSG_HOLDER.tracks.quizPassMsg);popup.dialog("option","buttons",{"继续学习":function(){$(this).dialog("close");HX_C_RTE.RTE.Resume();}});}else{var tt=$(".popup-questions-title",questions);tt.after(HX_MSG_HOLDER.tracks.quizFailMsg);popup.dialog("option","buttons",{"继续学习":function(){$(this).dialog("close");HX_C_RTE.RTE.Resume();},"重新学习":function(){var t=$(this);var questions=$(".popup-questions",t);HX_C_FW.player.SeekByPart(questions.attr("syncpart"));HX_C_RTE.RTE.Resume();t.dialog("close");}});}if(HX_C_FW.contentCallback!=null){HX_C_FW.contentCallback.UpdateKnowStatus(questions.attr("knowid"),status);}},SyncContent:function(type,name,value,base){if(type=="navigation"){var f=HX_C_FW.caches[HX_C_FW.configs.ui_centerContentContainerId];
var turl=base+value;HX_C_FW.caches.currentUrl=turl;HX_C_FW.contentCallback=null;HX_C_FW.caches.actions=[];HX_C_FW.ShowLoading(f);f.attr("src",turl);HX_C_RTE.RTE.SetCurrentScoId(HX_C_FW.caches.currentSco.attr("code"));return true;}else{if(type=="event"){if(HX_C_FW.contentCallback==null){HX_C_FW.caches.actions.push({name:name,value:value});return true;}if(name=="part"){HX_C_FW.currentPartId=value;HX_C_FW.contentCallback.SyncPart(value);if(__HX_Sync_Content_Flag){HX_C_FW.SyncPart(value);}else{}HX_C_FW.part.submitPart(value);}else{if(name=="ques"&&HX_C_RTE.configs.requiredAlertQuestion){if(HX_C_FW.contentCallback){HX_C_FW.contentCallback.SyncQuestion(value);}HX_C_FW.Status(HX_MSG_HOLDER.tracks.timeTrackAlert,true);}else{if(name=="flash"){if(Debugger.isDebug){Debugger.debug(name+":"+value+":"+base);}HX_C_FW.contentCallback.SyncFlash(value);}else{if(name=="video"){HX_C_FW.PopupPlayVideo(value);}}}}}}return true;},SyncPart:function(partId){var f=HX_C_FW.caches[HX_C_FW.configs.ui_centerContentContainerId];
if(HX_C_FW.contentCallback!=null){HX_C_FW.contentCallback.RollToPart(partId);}},OnContentReady:function(callback){HX_C_FW.HideLoading();HX_C_FW.contentCallback=callback;if(HX_C_FW.caches.actions!=null&&HX_C_FW.caches.actions.length>0){var len=HX_C_FW.caches.actions.length;for(var i=0;i<len;i++){try{var item=HX_C_FW.caches.actions[i];if(item.name=="part"){HX_C_FW.contentCallback.SyncPart(item.value);}else{if(item.name=="ques"&&HX_C_RTE.configs.requiredAlertQuestion){HX_C_FW.contentCallback.SyncQuestion(item.value);}else{if(item.name=="flash"){HX_C_FW.contentCallback.SyncFlash(item.value);}}}}catch(e){}}HX_C_FW.caches.actions=[];}},PrintContent:function(){if(HX_C_FW.contentCallback!=null){HX_C_FW.contentCallback.PrintContent();}else{alert(HX_MSG_HOLDER.contentIsNotReady);}},OutlineContent:function(){if(HX_C_RTE.configs.requiredOutlineContent){var ol=$("#ui-content-outline");if(ol.length<=0){var html='<ul class="content-outline" id="ui-content-outline"></ul>';$("body").append(html);ol=$("#ui-content-outline");
}if(HX_C_FW.contentCallback!=null){ol.html(HX_C_FW.contentCallback.GenerateOutline());}var target=HX_C_FW.caches[HX_C_FW.configs.ui_centerContentContainerId];var offset=target.offset();ol.css({left:(offset.left+target.width()-ol.width()-10),top:offset.top});ol.show();}},GotoOutlineItem:function(target){if(HX_C_RTE.configs.requiredOutlineContent){var ol=$("#ui-content-outline");if(HX_C_FW.contentCallback!=null){HX_C_FW.contentCallback.GotoOutlineItem($(target).attr("idx"));}ol.hide();}},ShowContextMenu:function(x,y,pop){return;var cm=$("#"+HX_C_FW.configs.ui_contextMenu);if(cm.length<=0){var html='<ul class="context-menu" id="'+HX_C_FW.configs.ui_contextMenu+'">';var tmpLen=HX_CTX_MENU.length;for(var i=0;i<tmpLen;i++){var tmp=HX_CTX_MENU[i];if(tmp.type=="click"){html=html+'<li><a href="#" onclick="'+tmp.src+'">'+tmp.label+"</a></li>";}else{html=html+'<li><a href="'+tmp.src+'" target="_blank">'+tmp.label+"</a></li>";}}html=html+"</ul>";$("body").append(html);cm=$("#"+HX_C_FW.configs.ui_contextMenu);
$(document).click(function(e){if(e.button!=2){HX_C_FW.HideContextMenu();}});}var doc=$(document);x=x-doc.scrollLeft();y=y-doc.scrollTop();if(!pop){var offset=HX_C_FW.caches[HX_C_FW.configs.ui_centerContentContainerId].offset();x=x+offset.left;y=y+offset.top;}cm.css({left:x,top:y});cm.show("normal");},HideContextMenu:function(){var cm=$("#"+HX_C_FW.configs.ui_contextMenu);if(cm.length>0){cm.hide();}},Question:function(code,content){var quesForm=$("#ui-quiestion-form");if(quesForm==null||quesForm.length<1){var b=$("body");b.append("<form id='ui-quiestion-form' style='position:absolute;z-index:0;visibility:hidden;' target='question' action='"+HX_C_FW.configs.question_service_url+"' method='post'><input name='course_code'/><input name='module_name'/><input name='exam_title'/><input name='question_id'/><textarea name='content'/></form>");quesForm=$("#ui-quiestion-form",b);}$("input[name=course_code]",quesForm).val(HX_C_RTE.configs.courseCode);$("input[name=module_name]",quesForm).val(HX_C_RTE.configs.moduleCode);
$("input[name=question_id]",quesForm).val(code);$("input[name=exam_title]",quesForm).val(encodeURIComponent(HX_C_FW.caches[HX_C_FW.configs.ui_currentTitleLabelId].text()));$("textarea[name=content]",quesForm).val(encodeURIComponent(content));quesForm.submit();},AddQuizItem2Favorite:function(obj){obj.title_source=HX_C_FW.caches[HX_C_FW.configs.ui_currentTitleLabelId].text();obj.module=HX_C_RTE.configs.moduleCode;obj.course_code=HX_C_RTE.configs.courseCode;HX_C_FW.SubmitFormData("addQuizItem2Favorite",HX_C_FW.configs.quizitem_favorite_service_url,HX_C_FW.OnAddQuizItem2FavoriteSuccess,obj);},OnAddQuizItem2FavoriteSuccess:function(status,data){__HX_Alert(data,7,true);},getMembetType:function(){var obj={};try{HX_C_FW.SubmitFormData("getMembetType",HX_SVR_HOLDER.memberTypeService,HX_C_FW.memberTypeHandle,obj);}catch(e){}},memberTypeHandle:function(status,data){var msg="";if(data=="minjiao"){msg=HX_MSG_HOLDER.memberTypeMsg.minjiao;}else{if(data=="b2b"||data=="b2c"){msg=HX_MSG_HOLDER.memberTypeMsg.b2bAndB2c;}else{msg=HX_MSG_HOLDER.copyrights;
}}HX_C_FW.Status(msg,false);},OnLoadExtendsCfg:function(status,data){if((status+"")=="true"){var xml=$.xmlDOM(data+"");xml=xml.find("response");if(xml&&xml.attr("success")=="true"){var mm=xml.find("mainMenus");if(mm!=null&&mm.length>0){mm=mm.find("item");var html="";mm.each(function(){var m=$(this);var openMode=m.attr("openMode");var title=m.attr("title");var isSelf=(m.attr("target")=="_self");if(!title){title=m.attr("label");}if(openMode=="popup"){html=html+"<li class='"+m.attr("styles")+"'><span title='"+title+"' onclick='window.open(\""+m.attr("url")+'","'+m.attr("target")+'","status=0,toolbar=0,location=0,menubar=0,width='+m.attr("width")+",height="+m.attr("height")+"\");'>"+m.attr("label")+"</span></li>";}else{if(openMode=="innerpopup"){var script=m.attr("script");if(script){html=html+"<li class='"+m.attr("styles")+"'><span title='"+title+"' class='leaf' onclick='eval("+script+")'>"+m.attr("label")+"</span></li>";}}else{if(isSelf){html=html+"<li class='"+m.attr("styles")+"'><span class='leaf' title='"+title+"' url='"+m.attr("url")+"' onclick='HX_C_FW.ConfirmGoto(this)'>"+m.attr("label")+"</span></li>";
}else{html=html+"<li class='"+m.attr("styles")+"'><a title='"+title+"' href='"+m.attr("url")+"' target='"+m.attr("target")+"'>"+m.attr("label")+"</a></li>";}}}});if(html!=""){HX_C_FW.caches[HX_C_FW.configs.ui_mainMenuId].append(html);}}var ols=xml.find("otherLinks");if(ols!=null&&ols.length>0){var html="";ols=ols.find("group");ols.each(function(){var t=$(this);html=html+"<ul><span class='label'>"+t.attr("name")+"</span>";var items=t.find("item");items.each(function(){var tt=$(this);var openMode=tt.attr("openMode");var title=tt.attr("title");isSelf=(tt.attr("target")=="_self");if(!title){title=tt.attr("label");}if(openMode=="popup"){html=html+"<li><span title='"+title+"' class='leaf' onclick='window.open(\""+tt.attr("url")+'","'+tt.attr("target")+'","status=0,toolbar=0,location=0,menubar=0,width='+tt.attr("width")+",height="+tt.attr("height")+"\")'>"+tt.attr("label")+"</span></li>";}else{if(openMode=="innerpopup"){var script=tt.attr("script");if(script){html=html+"<li><span title='"+title+"' class='leaf' onclick='eval("+script+")'>"+tt.attr("label")+"</span></li>";
}}else{if(isSelf){html=html+"<li><span class='leaf' title='"+title+"' url='"+tt.attr("url")+"' onclick='HX_C_FW.ConfirmGoto(this)'>"+tt.attr("label")+"</span></li>";}else{html=html+"<li><a title='"+title+"' href='"+tt.attr("url")+"' target='"+tt.attr("target")+"'>"+tt.attr("label")+"</a></li>";}}}});html=html+"</ul>";});if(html!=""){HX_C_FW.caches[HX_C_FW.configs.ui_otherLinkContainerId].append(html);}}}}},player:{cache:null,init:false,url:null,Play:function(cfgUrl){__HX_leftLayout.open("north");HX_C_FW.player.url=cfgUrl;var player=HX_C_FW.player.findPlayer();if(HX_C_FW.player.init){player.PlayVideo(cfgUrl);}},Pause:function(){var player=HX_C_FW.player.findPlayer();if(HX_C_FW.player.init){player.Pause();}},Resume:function(){var player=HX_C_FW.player.findPlayer();if(HX_C_FW.player.init){player.Resume();}},SeekByTime:function(time){var player=HX_C_FW.player.findPlayer();try{player.SeekByTime(time);}catch(e){}},SeekByPart:function(time){var player=HX_C_FW.player.findPlayer();try{player.SeekByPart(time);
}catch(e){}},Clear:function(){var player=HX_C_FW.player.findPlayer();HX_C_FW.player.url=null;if(!HX_C_RTE.configs.defaultShowVideo){if(HX_C_FW.configs.player_show_first){__HX_leftLayout.close("north");}HX_C_FW.configs.player_show_first=true;}try{player.Clear();}catch(e){}},findPlayer:function(){if(HX_C_FW.player.cache==null){if($.browser.msie){HX_C_FW.player.cache=window[HX_C_FW.configs.ui_playerId];}else{HX_C_FW.player.cache=document[HX_C_FW.configs.ui_playerId];}}return HX_C_FW.player.cache;},OnInit:function(){HX_C_FW.player.init=true;HX_C_FW.Start();}},InitStatus:function(){HX_C_FW.Status(HX_MSG_HOLDER.copyrights,false);},Status:function(msg,shot){var statusBar=$("#ui-center-footer-container");var msgDiv=$(".msg",statusBar);msgDiv.html(msg);if(shot){try{msgDiv.stop();msgDiv.animate({borderWidth:"1px"},12000,HX_C_FW.InitStatus).animate({borderWidth:"0"},1000);}catch(e){}}},Alert:function(msg,weight,isShow){var alertWin=HX_C_FW.caches.alertWin;if(!alertWin){alertWin=$("#ui-alert-window");
}if(alertWin==null||alertWin.length<1){$("body").append("<div style='position:absolute;z-index:800;' id='ui-alert-window'><div class='alert-head'><span><img src='__templates/htmlv1/images/default/window_close_btn.gif' onclick='__HX_ClearAlert()' style='cursor:pointer;'/></span>系统消息</div><div class='alert-content'></div></div>");alertWin=$("#ui-alert-window");}HX_C_FW.caches.alertWin=alertWin;$(".alert-content",alertWin).html(msg);var w=$(window);alertWin.css({top:(w.height()-alertWin.height()-3),left:(w.width()-alertWin.width()-3)});if(isShow){alertWin.show(500,function(){clearTimeout(HX_C_FW.caches.alertInterval);HX_C_FW.caches.alertInterval=setTimeout("__HX_ClearAlert()",weight*1000);});}},ClearAlert:function(){var alertWin=HX_C_FW.caches.alertWin;clearTimeout(HX_C_FW.caches.alertInterval);alertWin.hide();},ShowAlert:function(weight){var alertWin=HX_C_FW.caches.alertWin;alertWin.show(500,function(){clearTimeout(HX_C_FW.caches.alertInterval);HX_C_FW.caches.alertInterval=setTimeout("__HX_ClearAlert()",weight*1000);
});},SubmitFormData:function(key,url,callback,data,dataType){var agent=HX_C_FW.player.findPlayer();if(agent!=null){if(!HX_C_FW.caches.requests){HX_C_FW.caches.requests={};}HX_C_FW.caches.requests[key]={key:key,url:url,callback:callback};agent.HXSubmitForm(key,url,data,dataType);}},ConfirmGoto:function(target){var t=$(target);var url=t.attr("url");HX_C_FW.caches.gotoUrl=url;var popup=HX_C_FW.caches[HX_C_FW.configs.ui_popupWindowId];popup.html(HX_MSG_HOLDER.modules.gotoAlert);HX_C_FW.ShowPopupWindow(true,HX_MSG_HOLDER.modules.gotoAlertTitle,{"确定":function(){window.location=HX_C_FW.caches.gotoUrl;$(this).dialog("close");},"取消":function(){$(this).dialog("close");}},function(){});},UpdateActive:function(){var now=new Date();var tmp=now.getTime()-HX_C_FW.activeFlag;if(tmp>1000){HX_C_FW.activeFlag=now.getTime();try{if(HX_C_RTE.configs.requiredRte){var engine=HX_C_RTE.GetRTEEngine();if(engine!=null){try{engine.UpdateActive();}catch(error){}}}}catch(err){}}},ShowFreeAlert:function(){if(HX_C_RTE.configs.requiredRte){HX_C_RTE.RTE.Pause();
var popup=HX_C_FW.caches[HX_C_FW.configs.ui_popupWindowId];popup.html("<div class='alert'>"+HX_MSG_HOLDER.tracks.freeAlertContent+"</div>");HX_C_FW.ShowPopupWindow(true,HX_MSG_HOLDER.tracks.freeAlertTitle,{"确认":function(){HX_C_RTE.RTE.Resume();$(this).dialog("close");}},function(){HX_C_RTE.RTE.Resume();},500,150);}},PopupPlayVideo:function(v){var args=v.split(",");if(args.length==3){var src=args[0];var w=parseInt(args[1]);var h=parseInt(args[2]);HX_C_RTE.RTE.Pause();var popup=HX_C_FW.caches[HX_C_FW.configs.ui_popupWindowId];var html=AC_FL_RunContent("src","singleplayer_template_index","width",w,"height",h,"align","middle","id","singleplayer_template_index","quality","high","bgcolor","#4d4d4d","scale","exactfit","wmode","transparent","name","singleplayer_template_index","allowScriptAccess","always","type","application/x-shockwave-flash","pluginspage","http://www.adobe.com/go/getflashplayer","allowFullScreen","true","flashvars","src="+src);popup.html("<table class='single-player'><tr><td>"+html+"</td></tr></table>");
HX_C_FW.ShowPopupWindow(true,HX_MSG_HOLDER.popupPlayVideoTitle,{},function(){var popup=HX_C_FW.caches[HX_C_FW.configs.ui_popupWindowId];popup.empty();HX_C_RTE.RTE.Resume();},w+30,h+40);}}};function __HX_OnSinglePlayerPlayComplete(){var popup=HX_C_FW.caches[HX_C_FW.configs.ui_popupWindowId];popup.empty();popup.dialog("close");HX_C_RTE.RTE.Resume();}function __HX_Free_Alert(){HX_C_FW.ShowFreeAlert();}function __HXFormSubmitCallback(key,status,data){var c=HX_C_FW.caches.requests[key];if(c!=null){if(c.callback!=null){c.callback(status,data);}else{__HX_Alert(data,3,true);}}}function __HX_DocIsReady(){return HX_C_FW.docIsReady+"";}function __HX_PlayerOnReady(){HX_C_FW.player.OnInit();}function __HX_SyncContent(type,name,value,base){HX_C_FW.SyncContent(type,name,value,base);}function __HX_SyncPart(partId){HX_C_FW.SyncPart(partId);}function __HX_Status(msg){HX_C_FW.Status(msg,true);}function __HX_Alert(msg,weight,isShow){HX_C_FW.Alert(msg,weight,isShow);}function __HX_ClearAlert(){HX_C_FW.ClearAlert();
}function __HX_SeekSyncVideoItem(cuepoint,time){if(HX_C_FW.caches.isQuiz){HX_C_FW.Status(HX_MSG_HOLDER.videos.quizVideoPlayCompleted,true);HX_C_FW.player.Clear();}else{if(HX_C_FW.caches.cuepoints==null){HX_C_FW.caches.cuepoints=[];if(HX_C_FW.caches.leaves!=null){var leaves=HX_C_FW.caches.leaves;var len=leaves.length;for(var i=0;i<len;i++){var leaf=leaves[i];if(leaf.attr("assetType")=="video-sync"){var href=leaf.attr("href");var startTime=0;var endTime=-1;var idx=href.lastIndexOf("?");if(idx!=-1){var parasStr=href.substring(idx+1,href.length);href=href.substring(0,idx);var paras=parasStr.split("&");if(paras.length>0){startTime=parseInt(paras[0]);if(paras.length>1){endTime=parseInt(paras[1]);}}}HX_C_FW.caches.cuepoints.push({href:href,startTime:startTime,endTime:endTime,idx:i});}}}}var cuepoints=HX_C_FW.caches.cuepoints;var clen=cuepoints.length;for(var i=0;i<clen;i++){var cp=cuepoints[i];if(cp.href==cuepoint){if(time>=cp.startTime&&((cp.endTime<0)||(time<=cp.endTime))){var item=HX_C_FW.caches.leaves[cp.idx];
HX_C_FW.caches.currentSubTree=null;HX_C_FW.GoItem($("span[code='"+item.attr("id")+"']",HX_C_FW.caches[HX_C_FW.configs.ui_courseTreeContainerId]));break;}}}}}var __HX_Sync_Content_Flag=false;function __HX_Sync_Content_Toggle(t){var target=$(t);__HX_Sync_Content_Flag=target.attr("checked");if(__HX_Sync_Content_Flag&&HX_C_FW.currentPartId!=null){HX_C_FW.SyncPart(HX_C_FW.currentPartId);}}function __HX_WriteFlashObj(){var src="htmlv1player_template_index";var html=AC_FL_RunContent("src",src,"width","100%","height","100%","align","middle","id","ui_flv_player","quality","high","bgcolor","#4d4d4d","scale","exactfit","wmode","transparent","name","ui_flv_player","allowScriptAccess","always","type","application/x-shockwave-flash","pluginspage","http://www.adobe.com/go/getflashplayer","allowFullScreen","true");return html;}$(window).unload(function(){__HX_ExitCourse();});var __HX_Has_Call_Exit=false;function __HX_ExitCourse(){if(!__HX_Has_Call_Exit){__HX_Has_Call_Exit=true;if(HX_C_RTE.configs.requiredRte&&HX_C_RTE.RTE.IsInit){var tracks=HX_C_RTE.RTE.ListHashTracks();
var passScore=HX_C_RTE.RTE.GetPassScore();var knows=HX_C_FW.caches.knowledges;var completed=0;var total=0;if(knows!=null){var len=knows.length;total=len;for(var i=0;i<len;i++){var know=knows[i];var scoid="sco_"+know.attr("id");if((tracks!=null)&&(tracks[scoid]!=undefined)){if(tracks[scoid].score>=passScore){completed++;}}}}HX_C_RTE.RTE.Commit();if(total>0){var rate=parseInt((completed/total)*100);if(rate>=100){alert("恭喜你，你已经完成了所有的知识点测评题！");}else{if(rate>70){alert("你已经完成了"+rate+"%的知识点测评题，请再接再厉！");}else{if(rate>50){alert("你已经完成了"+rate+"%的知识点测评题，需要继续加油啊！");}else{alert("你只完成"+rate+"%的知识点测评题，还需多多努力啊！");}}}}else{alert("本次课程结束，请再接再厉！");}try{}catch(err){}}}}
