// jQuery JavaScript Library 1.4.2 (function(window,undefined){var bmQuery=function(selector,context){return new bmQuery.fn.init(selector,context);},_bmQuery=window.bmQuery,document=window.document,rootbmQuery,quickExpr=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,isSimple=/^.[^:#\[\.,]*$/,rnotwhite=/\S/,rtrim=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,rsingleTag=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,userAgent=navigator.userAgent,browserMatch,readyBound=false,readyList=[],DOMContentLoaded,toString=Object.prototype.toString,hasOwnProperty=Object.prototype.hasOwnProperty,push=Array.prototype.push,slice=Array.prototype.slice,indexOf=Array.prototype.indexOf;bmQuery.fn=bmQuery.prototype={init:function(selector,context){var match,elem,ret,doc;if(!selector){return this;}if(selector.nodeType){this.context=this[0]=selector;this.length=1;return this;}if(selector==="body"&&!context){this.context=document;this[0]=document.body;this.selector="body";this.length=1;return this;}if(typeof selector==="string"){match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1]){doc=(context?context.ownerDocument||context:document);ret=rsingleTag.exec(selector);if(ret){if(bmQuery.isPlainObject(context)){selector=[document.createElement(ret[1])];bmQuery.fn.attr.call(selector,context,true);}else{selector=[doc.createElement(ret[1])];}}else{ret=buildFragment([match[1]],[doc]);selector=(ret.cacheable?ret.fragment.cloneNode(true):ret.fragment).childNodes;}return bmQuery.merge(this,selector);}else{elem=document.getElementById(match[2]);if(elem){if(elem.id!==match[2]){return rootbmQuery.find(selector);}this.length=1;this[0]=elem;}this.context=document;this.selector=selector;return this;}}else if(!context&&/^\w+$/.test(selector)){this.selector=selector;this.context=document;selector=document.getElementsByTagName(selector);return bmQuery.merge(this,selector);}else if(!context||context.bmQuery){return(context||rootbmQuery).find(selector);}else{return bmQuery(context).find(selector);}}else if(bmQuery.isFunction(selector)){return rootbmQuery.ready(selector);}if(selector.selector!==undefined){this.selector=selector.selector;this.context=selector.context;}return bmQuery.makeArray(selector,this);},selector:"",bmQuery:"1.4.2",length:0,size:function(){return this.length;},toArray:function(){return slice.call(this,0);},get:function(num){return num==null?this.toArray():(num<0?this.slice(num)[0]:this[num]);},pushStack:function(elems,name,selector){var ret=bmQuery();if(bmQuery.isArray(elems)){push.apply(ret,elems);}else{bmQuery.merge(ret,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;},each:function(callback,args){return bmQuery.each(this,callback,args);},ready:function(fn){bmQuery.bindReady();if(bmQuery.isReady){fn.call(document,bmQuery);}else if(readyList){readyList.push(fn);}return this;},eq:function(i){return i===-1?this.slice(i):this.slice(i,+i+1);},first:function(){return this.eq(0);},last:function(){return this.eq(-1);},slice:function(){return this.pushStack(slice.apply(this,arguments),"slice",slice.call(arguments).join(","));},map:function(callback){return this.pushStack(bmQuery.map(this,function(elem,i){return callback.call(elem,i,elem);}));},end:function(){return this.prevObject||bmQuery(null);},push:push,sort:[].sort,splice:[].splice};bmQuery.fn.init.prototype=bmQuery.fn;bmQuery.extend=bmQuery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options,name,src,copy;if(typeof target==="boolean"){deep=target;target=arguments[1]||{};i=2;}if(typeof target!=="object"&&!bmQuery.isFunction(target)){target={};}if(length===i){target=this;--i;}for(;i
a";var all=div.getElementsByTagName("*"),a=div.getElementsByTagName("a")[0];if(!all||!all.length||!a){return;}bmQuery.support={leadingWhitespace:div.firstChild.nodeType===3,tbody:!div.getElementsByTagName("tbody").length,htmlSerialize:!!div.getElementsByTagName("link").length,style:/red/.test(a.getAttribute("style")),hrefNormalized:a.getAttribute("href")==="/a",opacity:/^0.55$/.test(a.style.opacity),cssFloat:!!a.style.cssFloat,checkOn:div.getElementsByTagName("input")[0].value==="on",optSelected:document.createElement("select").appendChild(document.createElement("option")).selected,parentNode:div.removeChild(div.appendChild(document.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,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]){bmQuery.support.scriptEval=true;delete window[id];}try{delete script.test;}catch(e){bmQuery.support.deleteExpando=false;}root.removeChild(script);if(div.attachEvent&&div.fireEvent){div.attachEvent("onclick",function click(){bmQuery.support.noCloneEvent=false;div.detachEvent("onclick",click);});div.cloneNode(true).fireEvent("onclick");}div=document.createElement("div");div.innerHTML="";var fragment=document.createDocumentFragment();fragment.appendChild(div.firstChild);bmQuery.support.checkClone=fragment.cloneNode(true).cloneNode(true).lastChild.checked;bmQuery(function(){var div=document.createElement("div");div.style.width=div.style.paddingLeft="1px";document.body.appendChild(div);bmQuery.boxModel=bmQuery.support.boxModel=div.offsetWidth===2;document.body.removeChild(div).style.display='none';div=null;});var eventSupported=function(eventName){var el=document.createElement("div");eventName="on"+eventName;var isSupported=(eventName in el);if(!isSupported){el.setAttribute(eventName,"return;");isSupported=typeof el[eventName]==="function";}el=null;return isSupported;};bmQuery.support.submitBubbles=eventSupported("submit");bmQuery.support.changeBubbles=eventSupported("change");root=script=div=all=a=null;})();bmQuery.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var expando="bmQuery"+now(),uuid=0,windowData={};bmQuery.extend({cache:{},expando:expando,noData:{"embed":true,"object":true,"applet":true},data:function(elem,name,data){if(elem.nodeName&&bmQuery.noData[elem.nodeName.toLowerCase()]){return;}elem=elem==window?windowData:elem;var id=elem[expando],cache=bmQuery.cache,thisCache;if(!id&&typeof name==="string"&&data===undefined){return null;}if(!id){id=++uuid;}if(typeof name==="object"){elem[expando]=id;thisCache=cache[id]=bmQuery.extend(true,{},name);}else if(!cache[id]){elem[expando]=id;cache[id]={};}thisCache=cache[id];if(data!==undefined){thisCache[name]=data;}return typeof name==="string"?thisCache[name]:thisCache;},removeData:function(elem,name){if(elem.nodeName&&bmQuery.noData[elem.nodeName.toLowerCase()]){return;}elem=elem==window?windowData:elem;var id=elem[expando],cache=bmQuery.cache,thisCache=cache[id];if(name){if(thisCache){delete thisCache[name];if(bmQuery.isEmptyObject(thisCache)){bmQuery.removeData(elem);}}}else{if(bmQuery.support.deleteExpando){delete elem[bmQuery.expando];}else if(elem.removeAttribute){elem.removeAttribute(bmQuery.expando);}delete cache[id];}}});bmQuery.fn.extend({data:function(key,value){if(typeof key==="undefined"&&this.length){return bmQuery.data(this[0]);}else if(typeof key==="object"){return this.each(function(){bmQuery.data(this,key);});}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=bmQuery.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(){bmQuery.data(this,key,value);});}},removeData:function(key){return this.each(function(){bmQuery.removeData(this,key);});}});bmQuery.extend({queue:function(elem,type,data){if(!elem){return;}type=(type||"fx")+"queue";var q=bmQuery.data(elem,type);if(!data){return q||[];}if(!q||bmQuery.isArray(data)){q=bmQuery.data(elem,type,bmQuery.makeArray(data));}else{q.push(data);}return q;},dequeue:function(elem,type){type=type||"fx";var queue=bmQuery.queue(elem,type),fn=queue.shift();if(fn==="inprogress"){fn=queue.shift();}if(fn){if(type==="fx"){queue.unshift("inprogress");}fn.call(elem,function(){bmQuery.dequeue(elem,type);});}}});bmQuery.fn.extend({queue:function(type,data){if(typeof type!=="string"){data=type;type="fx";}if(data===undefined){return bmQuery.queue(this[0],type);}return this.each(function(i,elem){var queue=bmQuery.queue(this,type,data);if(type==="fx"&&queue[0]!=="inprogress"){bmQuery.dequeue(this,type);}});},dequeue:function(type){return this.each(function(){bmQuery.dequeue(this,type);});},delay:function(time,type){time=bmQuery.fx?bmQuery.fx.speeds[time]||time:time;type=type||"fx";return this.queue(type,function(){var elem=this;setTimeout(function(){bmQuery.dequeue(elem,type);},time);});},clearQueue:function(type){return this.queue(type||"fx",[]);}});var rclass=/[\n\t]/g,rspace=/\s+/,rreturn=/\r/g,rspecialurl=/href|src|style/,rtype=/(button|input)/i,rfocusable=/(button|input|object|select|textarea)/i,rclickable=/^(a|area)$/i,rradiocheck=/radio|checkbox/;bmQuery.fn.extend({attr:function(name,value){return access(this,name,value,true,bmQuery.attr);},removeAttr:function(name,fn){return this.each(function(){bmQuery.attr(this,name,"");if(this.nodeType===1){this.removeAttribute(name);}});},addClass:function(value){if(bmQuery.isFunction(value)){return this.each(function(i){var self=bmQuery(this);self.addClass(value.call(this,i,self.attr("class")));});}if(value&&typeof value==="string"){var classNames=(value||"").split(rspace);for(var i=0,l=this.length;i-1){return true;}}return false;},val:function(value){if(value===undefined){var elem=this[0];if(elem){if(bmQuery.nodeName(elem,"option")){return(elem.attributes.value||{}).specified?elem.value:elem.text;}if(bmQuery.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=0;}else if(bmQuery.nodeName(this,"select")){var values=bmQuery.makeArray(val);bmQuery("option",this).each(function(){this.selected=bmQuery.inArray(bmQuery(this).val(),values)>=0;});if(!values.length){this.selectedIndex=-1;}}else{this.value=val;}});}});bmQuery.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(elem,name,value,pass){if(!elem||elem.nodeType===3||elem.nodeType===8){return undefined;}if(pass&&name in bmQuery.attrFn){return bmQuery(elem)[name](value);}var notxml=elem.nodeType!==1||!bmQuery.isXMLDoc(elem),set=value!==undefined;name=notxml&&bmQuery.props[name]||name;if(elem.nodeType===1){var special=rspecialurl.test(name);if(name==="selected"&&!bmQuery.support.optSelected){var parent=elem.parentNode;if(parent){parent.selectedIndex;if(parent.parentNode){parent.parentNode.selectedIndex;}}}if(name in elem&¬xml&&!special){if(set){if(name==="type"&&rtype.test(elem.nodeName)&&elem.parentNode){bmQuery.error("type property can't be changed");}elem[name]=value;}if(bmQuery.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:rfocusable.test(elem.nodeName)||rclickable.test(elem.nodeName)&&elem.href?0:undefined;}return elem[name];}if(!bmQuery.support.style&¬xml&&name==="style"){if(set){elem.style.cssText=""+value;}return elem.style.cssText;}if(set){elem.setAttribute(name,""+value);}var attr=!bmQuery.support.hrefNormalized&¬xml&&special?elem.getAttribute(name,2):elem.getAttribute(name);return attr===null?undefined:attr;}return bmQuery.style(elem,name,value);}});var rnamespaces=/\.(.*)$/,fcleanup=function(nm){return nm.replace(/[^\w\s\.\|`]/g,function(ch){return"\\"+ch;});};bmQuery.event={add:function(elem,types,handler,data){if(elem.nodeType===3||elem.nodeType===8){return;}if(elem.setInterval&&(elem!==window&&!elem.frameElement)){elem=window;}var handleObjIn,handleObj;if(handler.handler){handleObjIn=handler;handler=handleObjIn.handler;}if(!handler.guid){handler.guid=bmQuery.guid++;}var elemData=bmQuery.data(elem);if(!elemData){return;}var events=elemData.events=elemData.events||{},eventHandle=elemData.handle,eventHandle;if(!eventHandle){elemData.handle=eventHandle=function(){return typeof bmQuery!=="undefined"&&!bmQuery.event.triggered?bmQuery.event.handle.apply(eventHandle.elem,arguments):undefined;};}eventHandle.elem=elem;types=types.split(" ");var type,i=0,namespaces;while((type=types[i++])){handleObj=handleObjIn?bmQuery.extend({},handleObjIn):{handler:handler,data:data};if(type.indexOf(".")>-1){namespaces=type.split(".");type=namespaces.shift();handleObj.namespace=namespaces.slice(0).sort().join(".");}else{namespaces=[];handleObj.namespace="";}handleObj.type=type;handleObj.guid=handler.guid;var handlers=events[type],special=bmQuery.event.special[type]||{};if(!handlers){handlers=events[type]=[];if(!special.setup||special.setup.call(elem,data,namespaces,eventHandle)===false){if(elem.addEventListener){elem.addEventListener(type,eventHandle,false);}else if(elem.attachEvent){elem.attachEvent("on"+type,eventHandle);}}}if(special.add){special.add.call(elem,handleObj);if(!handleObj.handler.guid){handleObj.handler.guid=handler.guid;}}handlers.push(handleObj);bmQuery.event.global[type]=true;}elem=null;},global:{},remove:function(elem,types,handler,pos){if(elem.nodeType===3||elem.nodeType===8){return;}var ret,type,fn,i=0,all,namespaces,namespace,special,eventType,handleObj,origType,elemData=bmQuery.data(elem),events=elemData&&elemData.events;if(!elemData||!events){return;}if(types&&types.type){handler=types.handler;types=types.type;}if(!types||typeof types==="string"&&types.charAt(0)==="."){types=types||"";for(type in events){bmQuery.event.remove(elem,type+types);}return;}types=types.split(" ");while((type=types[i++])){origType=type;handleObj=null;all=type.indexOf(".")<0;namespaces=[];if(!all){namespaces=type.split(".");type=namespaces.shift();namespace=new RegExp("(^|\\.)"+bmQuery.map(namespaces.slice(0).sort(),fcleanup).join("\\.(?:.*\\.)?")+"(\\.|$)")}eventType=events[type];if(!eventType){continue;}if(!handler){for(var j=0;j=0){event.type=type=type.slice(0,-1);event.exclusive=true;}if(!elem){event.stopPropagation();if(bmQuery.event.global[type]){bmQuery.each(bmQuery.cache,function(){if(this.events&&this.events[type]){bmQuery.event.trigger(event,data,this.handle.elem);}});}}if(!elem||elem.nodeType===3||elem.nodeType===8){return undefined;}event.result=undefined;event.target=elem;data=bmQuery.makeArray(data);data.unshift(event);}event.currentTarget=elem;var handle=bmQuery.data(elem,"handle");if(handle){handle.apply(elem,data);}var parent=elem.parentNode||elem.ownerDocument;try{if(!(elem&&elem.nodeName&&bmQuery.noData[elem.nodeName.toLowerCase()])){if(elem["on"+type]&&elem["on"+type].apply(elem,data)===false){event.result=false;}}}catch(e){}if(!event.isPropagationStopped()&&parent){bmQuery.event.trigger(event,data,parent,true);}else if(!event.isDefaultPrevented()){var target=event.target,old,isClick=bmQuery.nodeName(target,"a")&&type==="click",special=bmQuery.event.special[type]||{};if((!special._default||special._default.call(elem,event)===false)&&!isClick&&!(target&&target.nodeName&&bmQuery.noData[target.nodeName.toLowerCase()])){try{if(target[type]){old=target["on"+type];if(old){target["on"+type]=null;}bmQuery.event.triggered=true;target[type]();}}catch(e){}if(old){target["on"+type]=old;}bmQuery.event.triggered=false;}}},handle:function(event){var all,handlers,namespaces,namespace,events;event=arguments[0]=bmQuery.event.fix(event||window.event);event.currentTarget=this;all=event.type.indexOf(".")<0&&!event.exclusive;if(!all){namespaces=event.type.split(".");event.type=namespaces.shift();namespace=new RegExp("(^|\\.)"+namespaces.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)");}var events=bmQuery.data(this,"events"),handlers=events[event.type];if(events&&handlers){handlers=handlers.slice(0);for(var j=0,l=handlers.length;j-1?bmQuery.map(elem.options,function(elem){return elem.selected;}).join("-"):"";}else if(elem.nodeName.toLowerCase()==="select"){val=elem.selectedIndex;}return val;},testChange=function testChange(e){var elem=e.target,data,val;if(!formElems.test(elem.nodeName)||elem.readOnly){return;}data=bmQuery.data(elem,"_change_data");val=getVal(elem);if(e.type!=="focusout"||elem.type!=="radio"){bmQuery.data(elem,"_change_data",val);}if(data===undefined||val===data){return;}if(data!=null||val){e.type="change";return bmQuery.event.trigger(e,arguments[1],elem);}};bmQuery.event.special.change={filters:{focusout:testChange,click:function(e){var elem=e.target,type=elem.type;if(type==="radio"||type==="checkbox"||elem.nodeName.toLowerCase()==="select"){return testChange.call(this,e);}},keydown:function(e){var elem=e.target,type=elem.type;if((e.keyCode===13&&elem.nodeName.toLowerCase()!=="textarea")||(e.keyCode===32&&(type==="checkbox"||type==="radio"))||type==="select-multiple"){return testChange.call(this,e);}},beforeactivate:function(e){var elem=e.target;bmQuery.data(elem,"_change_data",getVal(elem));}},setup:function(data,namespaces){if(this.type==="file"){return false;}for(var type in changeFilters){bmQuery.event.add(this,type+".specialChange",changeFilters[type]);}return formElems.test(this.nodeName);},teardown:function(namespaces){bmQuery.event.remove(this,".specialChange");return formElems.test(this.nodeName);}};changeFilters=bmQuery.event.special.change.filters;}function trigger(type,elem,args){args[0].type=type;return bmQuery.event.handle.apply(elem,args);}if(document.addEventListener){bmQuery.each({focus:"focusin",blur:"focusout"},function(orig,fix){bmQuery.event.special[fix]={setup:function(){this.addEventListener(orig,handler,true);},teardown:function(){this.removeEventListener(orig,handler,true);}};function handler(e){e=bmQuery.event.fix(e);e.type=fix;return bmQuery.event.handle.call(this,e);}});}bmQuery.each(["bind","one"],function(i,name){bmQuery.fn[name]=function(type,data,fn){if(typeof type==="object"){for(var key in type){this[name](key,data,type[key],fn);}return this;}if(bmQuery.isFunction(data)){fn=data;data=undefined;}var handler=name==="one"?bmQuery.proxy(fn,function(event){bmQuery(this).unbind(event,handler);return fn.apply(this,arguments);}):fn;if(type==="unload"&&name!=="one"){this.one(type,data,fn);}else{for(var i=0,l=this.length;i+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true;[0,0].sort(function(){baseHasDuplicate=false;return 0;});var Sizzle=function(selector,context,results,seed){results=results||[];var origContext=context=context||document;if(context.nodeType!==1&&context.nodeType!==9){return[];}if(!selector||typeof selector!=="string"){return results;}var parts=[],m,set,checkSet,extra,prune=true,contextXML=isXML(context),soFar=selector;while((chunker.exec(""),m=chunker.exec(soFar))!==null){soFar=m[3];parts.push(m[1]);if(m[2]){extra=m[3];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{if(!seed&&parts.length>1&&context.nodeType===9&&!contextXML&&Expr.match.ID.test(parts[0])&&!Expr.match.ID.test(parts[parts.length-1])){var ret=Sizzle.find(parts.shift(),context,contextXML);context=ret.expr?Sizzle.filter(ret.expr,ret.set)[0]:ret.set[0];}if(context){var ret=seed?{expr:parts.pop(),set:makeArray(seed)}:Sizzle.find(parts.pop(),parts.length===1&&(parts[0]==="~"||parts[0]==="+")&&context.parentNode?context.parentNode:context,contextXML);set=ret.expr?Sizzle.filter(ret.expr,ret.set):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,contextXML);}}else{checkSet=parts=[];}}if(!checkSet){checkSet=set;}if(!checkSet){Sizzle.error(cur||selector);}if(toString.call(checkSet)==="[object Array]"){if(!prune){results.push.apply(results,checkSet);}else if(context&&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,origContext,results,seed);Sizzle.uniqueSort(results);}return results;};Sizzle.uniqueSort=function(results){if(sortOrder){hasDuplicate=baseHasDuplicate;results.sort(sortOrder);if(hasDuplicate){for(var i=1;i":function(checkSet,part){var isPartStr=typeof part==="string";if(isPartStr&&!/\W/.test(part)){part=part.toLowerCase();for(var i=0,l=checkSet.length;i=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){return match[1].toLowerCase();},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((chunker.exec(match[3])||"").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.toLowerCase()==="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 imatch[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||getText([elem])||"").indexOf(match[3])>=0;}else if(name==="not"){var not=match[3];for(var i=0,l=not.length;i=0);}}},ID:function(elem,match){return elem.nodeType===1&&elem.getAttribute("id")===match;},TAG:function(elem,match){return(match==="*"&&elem.nodeType===1)||elem.nodeName.toLowerCase()===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]=new RegExp(Expr.match[type].source+/(?![^\[]*\])(?![^\(]*\))/.source);Expr.leftMatch[type]=new RegExp(/(^(?:.|\r|\n)*?)/.source+Expr.match[type].source.replace(/\\(\d+)/g,function(all,num){return"\\"+(num-0+1);}));}var makeArray=function(array,results){array=Array.prototype.slice.call(array,0);if(results){results.push.apply(results,array);return results;}return array;};try{Array.prototype.slice.call(document.documentElement.childNodes,0)[0].nodeType;}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";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);root=form=null;})();(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="";if(div.firstChild&&typeof div.firstChild.getAttribute!=="undefined"&&div.firstChild.getAttribute("href")!=="#"){Expr.attrHandle.href=function(elem){return elem.getAttribute("href",2);};}div=null;})();if(document.querySelectorAll){(function(){var oldSizzle=Sizzle,div=document.createElement("div");div.innerHTML="

";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);};for(var prop in oldSizzle){Sizzle[prop]=oldSizzle[prop];}div=null;})();}(function(){var div=document.createElement("div");div.innerHTML="
";if(!div.getElementsByClassName||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]);}};div=null;})();function dirNodeCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){for(var i=0,l=checkSet.length;i0){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){var documentElement=(elem?elem.ownerDocument||elem:0).documentElement;return documentElement?documentElement.nodeName!=="HTML":false;};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=0)===keep;});};bmQuery.fn.extend({find:function(selector){var ret=this.pushStack("","find",selector),length=0;for(var i=0,l=this.length;i0){for(var n=length;n0;},closest:function(selectors,context){if(bmQuery.isArray(selectors)){var ret=[],cur=this[0],match,matches={},selector;if(cur&&selectors.length){for(var i=0,l=selectors.length;i-1:bmQuery(cur).is(match)){ret.push({selector:selector,elem:cur});delete matches[selector];}}cur=cur.parentNode;}}return ret;}var pos=bmQuery.expr.match.POS.test(selectors)?bmQuery(selectors,context||this.context):null;return this.map(function(i,cur){while(cur&&cur.ownerDocument&&cur!==context){if(pos?pos.index(cur)>-1:bmQuery(cur).is(selectors)){return cur;}cur=cur.parentNode;}return null;});},index:function(elem){if(!elem||typeof elem==="string"){return bmQuery.inArray(this[0],elem?bmQuery(elem):this.parent().children());}return bmQuery.inArray(elem.bmQuery?elem[0]:elem,this);},add:function(selector,context){var set=typeof selector==="string"?bmQuery(selector,context||this.context):bmQuery.makeArray(selector),all=bmQuery.merge(this.get(),set);return this.pushStack(isDisconnected(set[0])||isDisconnected(all[0])?all:bmQuery.unique(all));},andSelf:function(){return this.add(this.prevObject);}});function isDisconnected(node){return!node||!node.parentNode||node.parentNode.nodeType===11;}bmQuery.each({parent:function(elem){var parent=elem.parentNode;return parent&&parent.nodeType!==11?parent:null;},parents:function(elem){return bmQuery.dir(elem,"parentNode");},parentsUntil:function(elem,i,until){return bmQuery.dir(elem,"parentNode",until);},next:function(elem){return bmQuery.nth(elem,2,"nextSibling");},prev:function(elem){return bmQuery.nth(elem,2,"previousSibling");},nextAll:function(elem){return bmQuery.dir(elem,"nextSibling");},prevAll:function(elem){return bmQuery.dir(elem,"previousSibling");},nextUntil:function(elem,i,until){return bmQuery.dir(elem,"nextSibling",until);},prevUntil:function(elem,i,until){return bmQuery.dir(elem,"previousSibling",until);},siblings:function(elem){return bmQuery.sibling(elem.parentNode.firstChild,elem);},children:function(elem){return bmQuery.sibling(elem.firstChild);},contents:function(elem){return bmQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:bmQuery.makeArray(elem.childNodes);}},function(name,fn){bmQuery.fn[name]=function(until,selector){var ret=bmQuery.map(this,fn,until);if(!runtil.test(name)){selector=until;}if(selector&&typeof selector==="string"){ret=bmQuery.filter(selector,ret);}ret=this.length>1?bmQuery.unique(ret):ret;if((this.length>1||rmultiselector.test(selector))&&rparentsprev.test(name)){ret=ret.reverse();}return this.pushStack(ret,name,slice.call(arguments).join(","));};});bmQuery.extend({filter:function(expr,elems,not){if(not){expr=":not("+expr+")";}return bmQuery.find.matches(expr,elems);},dir:function(elem,dir,until){var matched=[],cur=elem[dir];while(cur&&cur.nodeType!==9&&(until===undefined||cur.nodeType!==1||!bmQuery(cur).is(until))){if(cur.nodeType===1){matched.push(cur);}cur=cur[dir];}return matched;},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;},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType===1&&n!==elem){r.push(n);}}return r;}});var rinlinebmQuery=/ bmQuery\d+="(?:\d+|null)"/g,rleadingWhitespace=/^\s+/,rxhtmlTag=/(<([\w:]+)[^>]*?)\/>/g,rselfClosing=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,rtagName=/<([\w:]+)/,rtbody=/";},wrapMap={option:[1,""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]};wrapMap.optgroup=wrapMap.option;wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead;wrapMap.th=wrapMap.td;if(!bmQuery.support.htmlSerialize){wrapMap._default=[1,"div
","
"];}bmQuery.fn.extend({text:function(text){if(bmQuery.isFunction(text)){return this.each(function(i){var self=bmQuery(this);self.text(text.call(this,i,self.text()));});}if(typeof text!=="object"&&text!==undefined){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text));}return bmQuery.text(this);},wrapAll:function(html){if(bmQuery.isFunction(html)){return this.each(function(i){bmQuery(this).wrapAll(html.call(this,i));});}if(this[0]){var wrap=bmQuery(html,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){wrap.insertBefore(this[0]);}wrap.map(function(){var elem=this;while(elem.firstChild&&elem.firstChild.nodeType===1){elem=elem.firstChild;}return elem;}).append(this);}return this;},wrapInner:function(html){if(bmQuery.isFunction(html)){return this.each(function(i){bmQuery(this).wrapInner(html.call(this,i));});}return this.each(function(){var self=bmQuery(this),contents=self.contents();if(contents.length){contents.wrapAll(html);}else{self.append(html);}});},wrap:function(html){return this.each(function(){bmQuery(this).wrapAll(html);});},unwrap:function(){return this.parent().each(function(){if(!bmQuery.nodeName(this,"body")){bmQuery(this).replaceWith(this.childNodes);}}).end();},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(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(elem){this.parentNode.insertBefore(elem,this);});}else if(arguments.length){var set=bmQuery(arguments[0]);set.push.apply(set,this.toArray());return this.pushStack(set,"before",arguments);}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(elem){this.parentNode.insertBefore(elem,this.nextSibling);});}else if(arguments.length){var set=this.pushStack(this,"after",arguments);set.push.apply(set,bmQuery(arguments[0]).toArray());return set;}},remove:function(selector,keepData){for(var i=0,elem;(elem=this[i])!=null;i++){if(!selector||bmQuery.filter(selector,[elem]).length){if(!keepData&&elem.nodeType===1){bmQuery.cleanData(elem.getElementsByTagName("*"));bmQuery.cleanData([elem]);}if(elem.parentNode){elem.parentNode.removeChild(elem);}}}return this;},empty:function(){for(var i=0,elem;(elem=this[i])!=null;i++){if(elem.nodeType===1){bmQuery.cleanData(elem.getElementsByTagName("*"));}while(elem.firstChild){elem.removeChild(elem.firstChild);}}return this;},clone:function(events){var ret=this.map(function(){if(!bmQuery.support.noCloneEvent&&!bmQuery.isXMLDoc(this)){var html=this.outerHTML,ownerDocument=this.ownerDocument;if(!html){var div=ownerDocument.createElement("div");div.appendChild(this.cloneNode(true));html=div.innerHTML;}return bmQuery.clean([html.replace(rinlinebmQuery,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(rleadingWhitespace,"")],ownerDocument)[0];}else{return this.cloneNode(true);}});if(events===true){cloneCopyEvent(this,ret);cloneCopyEvent(this.find("*"),ret.find("*"));}return ret;},html:function(value){if(value===undefined){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(rinlinebmQuery,""):null;}else if(typeof value==="string"&&!rnocache.test(value)&&(bmQuery.support.leadingWhitespace||!rleadingWhitespace.test(value))&&!wrapMap[(rtagName.exec(value)||["",""])[1].toLowerCase()]){value=value.replace(rxhtmlTag,fcloseTag);try{for(var i=0,l=this.length;i0||results.cacheable||this.length>1?fragment.cloneNode(true):fragment);}}if(scripts.length){bmQuery.each(scripts,evalScript);}}return this;function root(elem,cur){return bmQuery.nodeName(elem,"table")?(elem.getElementsByTagName("tbody")[0]||elem.appendChild(elem.ownerDocument.createElement("tbody"))):elem;}}});function cloneCopyEvent(orig,ret){var i=0;ret.each(function(){if(this.nodeName!==(orig[i]&&orig[i].nodeName)){return;}var oldData=bmQuery.data(orig[i++]),curData=bmQuery.data(this,oldData),events=oldData&&oldData.events;if(events){delete curData.handle;curData.events={};for(var type in events){for(var handler in events[type]){bmQuery.event.add(this,type,events[type][handler],events[type][handler].data);}}}});}function buildFragment(args,nodes,scripts){var fragment,cacheable,cacheresults,doc=(nodes&&nodes[0]?nodes[0].ownerDocument||nodes[0]:document);if(args.length===1&&typeof args[0]==="string"&&args[0].length<512&&doc===document&&!rnocache.test(args[0])&&(bmQuery.support.checkClone||!rchecked.test(args[0]))){cacheable=true;cacheresults=bmQuery.fragments[args[0]];if(cacheresults){if(cacheresults!==1){fragment=cacheresults;}}}if(!fragment){fragment=doc.createDocumentFragment();bmQuery.clean(args,doc,fragment,scripts);}if(cacheable){bmQuery.fragments[args[0]]=cacheresults?fragment:1;}return{fragment:fragment,cacheable:cacheable};}bmQuery.fragments={};bmQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){bmQuery.fn[name]=function(selector){var ret=[],insert=bmQuery(selector),parent=this.length===1&&this[0].parentNode;if(parent&&parent.nodeType===11&&parent.childNodes.length===1&&insert.length===1){insert[original](this[0]);return this;}else{for(var i=0,l=insert.length;i0?this.clone(true):this).get();bmQuery.fn[original].apply(bmQuery(insert[i]),elems);ret=ret.concat(elems);}return this.pushStack(ret,name,insert.selector);}};});bmQuery.extend({clean:function(elems,context,fragment,scripts){context=context||document;if(typeof context.createElement==="undefined"){context=context.ownerDocument||context[0]&&context[0].ownerDocument||document;}var ret=[];for(var i=0,elem;(elem=elems[i])!=null;i++){if(typeof elem==="number"){elem+="";}if(!elem){continue;}if(typeof elem==="string"&&!rhtml.test(elem)){elem=context.createTextNode(elem);}else if(typeof elem==="string"){elem=elem.replace(rxhtmlTag,fcloseTag);var tag=(rtagName.exec(elem)||["",""])[1].toLowerCase(),wrap=wrapMap[tag]||wrapMap._default,depth=wrap[0],div=context.createElement("div");div.innerHTML=wrap[1]+elem+wrap[2];while(depth--){div=div.lastChild;}if(!bmQuery.support.tbody){var hasBody=rtbody.test(elem),tbody=tag==="table"&&!hasBody?div.firstChild&&div.firstChild.childNodes:wrap[1]===""&&!hasBody?div.childNodes:[];for(var j=tbody.length-1;j>=0;--j){if(bmQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length){tbody[j].parentNode.removeChild(tbody[j]);}}}if(!bmQuery.support.leadingWhitespace&&rleadingWhitespace.test(elem)){div.insertBefore(context.createTextNode(rleadingWhitespace.exec(elem)[0]),div.firstChild);}elem=div.childNodes;}if(elem.nodeType){ret.push(elem);}else{ret=bmQuery.merge(ret,elem);}}if(fragment){for(var i=0;ret[i];i++){if(scripts&&bmQuery.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(bmQuery.makeArray(ret[i].getElementsByTagName("script"))));}fragment.appendChild(ret[i]);}}}return ret;},cleanData:function(elems){var data,id,cache=bmQuery.cache,special=bmQuery.event.special,deleteExpando=bmQuery.support.deleteExpando;for(var i=0,elem;(elem=elems[i])!=null;i++){id=elem[bmQuery.expando];if(id){data=cache[id];if(data.events){for(var type in data.events){if(special[type]){bmQuery.event.remove(elem,type);}else{removeEvent(elem,type,data.handle);}}}if(deleteExpando){delete elem[bmQuery.expando];}else if(elem.removeAttribute){elem.removeAttribute(bmQuery.expando);}delete cache[id];}}}});var rexclude=/z-?index|font-?weight|opacity|zoom|line-?height/i,ralpha=/alpha\([^)]*\)/,ropacity=/opacity=([^)]*)/,rfloat=/float/i,rdashAlpha=/-([a-z])/ig,rupper=/([A-Z])/g,rnumpx=/^-?\d+(?:px)?$/i,rnum=/^-?\d/,cssShow={position:"absolute",visibility:"hidden",display:"block"},cssWidth=["Left","Right"],cssHeight=["Top","Bottom"],getComputedStyle=document.defaultView&&document.defaultView.getComputedStyle,styleFloat=bmQuery.support.cssFloat?"cssFloat":"styleFloat",fcamelCase=function(all,letter){return letter.toUpperCase();};bmQuery.fn.css=function(name,value){return access(this,name,value,true,function(elem,name,value){if(value===undefined){return bmQuery.curCSS(elem,name);}if(typeof value==="number"&&!rexclude.test(name)){value+="px";}bmQuery.style(elem,name,value);});};bmQuery.extend({style:function(elem,name,value){if(!elem||elem.nodeType===3||elem.nodeType===8){return undefined;}if((name==="width"||name==="height")&&parseFloat(value)<0){value=undefined;}var style=elem.style||elem,set=value!==undefined;if(!bmQuery.support.opacity&&name==="opacity"){if(set){style.zoom=1;var opacity=parseInt(value,10)+""==="NaN"?"":"alpha(opacity="+value*100+")";var filter=style.filter||bmQuery.curCSS(elem,"filter")||"";style.filter=ralpha.test(filter)?filter.replace(ralpha,opacity):opacity;}return style.filter&&style.filter.indexOf("opacity=")>=0?(parseFloat(ropacity.exec(style.filter)[1])/100)+"":"";}if(rfloat.test(name)){name=styleFloat;}name=name.replace(rdashAlpha,fcamelCase);if(set){style[name]=value;}return style[name];},css:function(elem,name,force,extra){if(name==="width"||name==="height"){var val,props=cssShow,which=name==="width"?cssWidth:cssHeight;function getWH(){val=name==="width"?elem.offsetWidth:elem.offsetHeight;if(extra==="border"){return;}bmQuery.each(which,function(){if(!extra){val-=parseFloat(bmQuery.curCSS(elem,"padding"+this,true))||0;}if(extra==="margin"){val+=parseFloat(bmQuery.curCSS(elem,"margin"+this,true))||0;}else{val-=parseFloat(bmQuery.curCSS(elem,"border"+this+"Width",true))||0;}});}if(elem.offsetWidth!==0){getWH();}else{bmQuery.swap(elem,props,getWH);}return Math.max(0,Math.round(val));}return bmQuery.curCSS(elem,name,force);},curCSS:function(elem,name,force){var ret,style=elem.style,filter;if(!bmQuery.support.opacity&&name==="opacity"&&elem.currentStyle){ret=ropacity.test(elem.currentStyle.filter||"")?(parseFloat(RegExp.$1)/100)+"":"";return ret===""?"1":ret;}if(rfloat.test(name)){name=styleFloat;}if(!force&&style&&style[name]){ret=style[name];}else if(getComputedStyle){if(rfloat.test(name)){name="float";}name=name.replace(rupper,"-$1").toLowerCase();var defaultView=elem.ownerDocument.defaultView;if(!defaultView){return null;}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(rdashAlpha,fcamelCase);ret=elem.currentStyle[name]||elem.currentStyle[camelCase];if(!rnumpx.test(ret)&&rnum.test(ret)){var left=style.left,rsLeft=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;style.left=camelCase==="fontSize"?"1em":(ret||0);ret=style.pixelLeft+"px";style.left=left;elem.runtimeStyle.left=rsLeft;}}return ret;},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];}}});if(bmQuery.expr&&bmQuery.expr.filters){bmQuery.expr.filters.hidden=function(elem){var width=elem.offsetWidth,height=elem.offsetHeight,skip=elem.nodeName.toLowerCase()==="tr";return width===0&&height===0&&!skip?true:width>0&&height>0&&!skip?false:bmQuery.curCSS(elem,"display")==="none";};bmQuery.expr.filters.visible=function(elem){return!bmQuery.expr.filters.hidden(elem);};}var jsc=now(),rscript=//gi,rselectTextarea=/select|textarea/i,rinput=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,jsre=/=\?(&|$)/,rquery=/\?/,rts=/(\?|&)_=.*?(&|$)/,rurl=/^(\w+:)?\/\/([^\/?#]+)/,r20=/%20/g,_load=bmQuery.fn.load;bmQuery.fn.extend({load:function(url,params,callback){if(typeof url!=="string"){return _load.call(this,url);}else if(!this.length){return this;}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(bmQuery.isFunction(params)){callback=params;params=null;}else if(typeof params==="object"){params=bmQuery.param(params,bmQuery.ajaxSettings.traditional);type="POST";}}var self=this;bmQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status){if(status==="success"||status==="notmodified"){self.html(selector?bmQuery("
").append(res.responseText.replace(rscript,"")).find(selector):res.responseText);}if(callback){self.each(callback,[res.responseText,status,res]);}}});return this;},serialize:function(){return bmQuery.param(this.serializeArray());},serializeArray:function(){return this.map(function(){return this.elements?bmQuery.makeArray(this.elements):this;}).filter(function(){return this.name&&!this.disabled&&(this.checked||rselectTextarea.test(this.nodeName)||rinput.test(this.type));}).map(function(i,elem){var val=bmQuery(this).val();return val==null?null:bmQuery.isArray(val)?bmQuery.map(val,function(val,i){return{name:elem.name,value:val};}):{name:elem.name,value:val};}).get();}});bmQuery.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(i,o){bmQuery.fn[o]=function(f){return this.bind(o,f);};});bmQuery.extend({get:function(url,data,callback,type){if(bmQuery.isFunction(data)){type=type||callback;callback=data;data=null;}return bmQuery.ajax({type:"GET",url:url,data:data,success:callback,dataType:type});},getScript:function(url,callback){return bmQuery.get(url,null,callback,"script");},getJSON:function(url,data,callback){return bmQuery.get(url,data,callback,"json");},post:function(url,data,callback,type){if(bmQuery.isFunction(data)){type=type||callback;callback=data;data={};}return bmQuery.ajax({type:"POST",url:url,data:data,success:callback,dataType:type});},ajaxSetup:function(settings){bmQuery.extend(bmQuery.ajaxSettings,settings);},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:window.XMLHttpRequest&&(window.location.protocol!=="file:"||!window.ActiveXObject)?function(){return new window.XMLHttpRequest();}:function(){try{return new window.ActiveXObject("Microsoft.XMLHTTP");}catch(e){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(origSettings){var s=bmQuery.extend(true,{},bmQuery.ajaxSettings,origSettings);var jsonp,status,data,callbackContext=origSettings&&origSettings.context||s,type=s.type.toUpperCase();if(s.data&&s.processData&&typeof s.data!=="string"){s.data=bmQuery.param(s.data,s.traditional);}if(s.dataType==="jsonp"){if(type==="GET"){if(!jsre.test(s.url)){s.url+=(rquery.test(s.url)?"&":"?")+(s.jsonp||"callback")+"=?";}}else if(!s.data||!jsre.test(s.data)){s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?";}s.dataType="json";}if(s.dataType==="json"&&(s.data&&jsre.test(s.data)||jsre.test(s.url))){jsonp=s.jsonpCallback||("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]=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(rts,"$1_="+ts+"$2");s.url=ret+((ret===s.url)?(rquery.test(s.url)?"&":"?")+"_="+ts:"");}if(s.data&&type==="GET"){s.url+=(rquery.test(s.url)?"&":"?")+s.data;}if(s.global&&!bmQuery.active++){bmQuery.event.trigger("ajaxStart");}var parts=rurl.exec(s.url),remote=parts&&(parts[1]&&parts[1]!==location.protocol||parts[2]!==location.host);if(s.dataType==="script"&&type==="GET"&&remote){var head=document.getElementsByTagName("head")[0]||document.documentElement;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;if(head&&script.parentNode){head.removeChild(script);}}};}head.insertBefore(script,head.firstChild);return undefined;}var requestDone=false;var xhr=s.xhr();if(!xhr){return;}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||origSettings&&origSettings.contentType){xhr.setRequestHeader("Content-Type",s.contentType);}if(s.ifModified){if(bmQuery.lastModified[s.url]){xhr.setRequestHeader("If-Modified-Since",bmQuery.lastModified[s.url]);}if(bmQuery.etag[s.url]){xhr.setRequestHeader("If-None-Match",bmQuery.etag[s.url]);}}if(!remote){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.call(callbackContext,xhr,s)===false){if(s.global&&!--bmQuery.active){bmQuery.event.trigger("ajaxStop");}xhr.abort();return false;}if(s.global){trigger("ajaxSend",[xhr,s]);}var onreadystatechange=xhr.onreadystatechange=function(isTimeout){if(!xhr||xhr.readyState===0||isTimeout==="abort"){if(!requestDone){complete();}requestDone=true;if(xhr){xhr.onreadystatechange=bmQuery.noop;}}else if(!requestDone&&xhr&&(xhr.readyState===4||isTimeout==="timeout")){requestDone=true;xhr.onreadystatechange=bmQuery.noop;status=isTimeout==="timeout"?"timeout":!bmQuery.httpSuccess(xhr)?"error":s.ifModified&&bmQuery.httpNotModified(xhr,s.url)?"notmodified":"success";var errMsg;if(status==="success"){try{data=bmQuery.httpData(xhr,s.dataType,s);}catch(err){status="parsererror";errMsg=err;}}if(status==="success"||status==="notmodified"){if(!jsonp){success();}}else{bmQuery.handleError(s,xhr,status,errMsg);}complete();if(isTimeout==="timeout"){xhr.abort();}if(s.async){xhr=null;}}};try{var oldAbort=xhr.abort;xhr.abort=function(){if(xhr){oldAbort.call(xhr);}onreadystatechange("abort");};}catch(e){}if(s.async&&s.timeout>0){setTimeout(function(){if(xhr&&!requestDone){onreadystatechange("timeout");}},s.timeout);}try{xhr.send(type==="POST"||type==="PUT"||type==="DELETE"?s.data:null);}catch(e){bmQuery.handleError(s,xhr,null,e);complete();}if(!s.async){onreadystatechange();}function success(){if(s.success){s.success.call(callbackContext,data,status,xhr);}if(s.global){trigger("ajaxSuccess",[xhr,s]);}}function complete(){if(s.complete){s.complete.call(callbackContext,xhr,status);}if(s.global){trigger("ajaxComplete",[xhr,s]);}if(s.global&&!--bmQuery.active){bmQuery.event.trigger("ajaxStop");}}function trigger(type,args){(s.context?bmQuery(s.context):bmQuery.event).trigger(type,args);}return xhr;},handleError:function(s,xhr,status,e){if(s.error){s.error.call(s.context||s,xhr,status,e);}if(s.global){(s.context?bmQuery(s.context):bmQuery.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||xhr.status===0;}catch(e){}return false;},httpNotModified:function(xhr,url){var lastModified=xhr.getResponseHeader("Last-Modified"),etag=xhr.getResponseHeader("Etag");if(lastModified){bmQuery.lastModified[url]=lastModified;}if(etag){bmQuery.etag[url]=etag;}return xhr.status===304||xhr.status===0;},httpData:function(xhr,type,s){var ct=xhr.getResponseHeader("content-type")||"",xml=type==="xml"||!type&&ct.indexOf("xml")>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.nodeName==="parsererror"){bmQuery.error("parsererror");}if(s&&s.dataFilter){data=s.dataFilter(data,type);}if(typeof data==="string"){if(type==="json"||!type&&ct.indexOf("json")>=0){data=bmQuery.parseJSON(data);}else if(type==="script"||!type&&ct.indexOf("javascript")>=0){bmQuery.globalEval(data);}}return data;},param:function(a,traditional){var s=[];if(traditional===undefined){traditional=bmQuery.ajaxSettings.traditional;}if(bmQuery.isArray(a)||a.bmQuery){bmQuery.each(a,function(){add(this.name,this.value);});}else{for(var prefix in a){buildParams(prefix,a[prefix]);}}return s.join("&").replace(r20,"+");function buildParams(prefix,obj){if(bmQuery.isArray(obj)){bmQuery.each(obj,function(i,v){if(traditional||/\[\]$/.test(prefix)){add(prefix,v);}else{buildParams(prefix+"["+(typeof v==="object"||bmQuery.isArray(v)?i:"")+"]",v);}});}else if(!traditional&&obj!=null&&typeof obj==="object"){bmQuery.each(obj,function(k,v){buildParams(prefix+"["+k+"]",v);});}else{add(prefix,obj);}}function add(key,value){value=bmQuery.isFunction(value)?value():value;s[s.length]=encodeURIComponent(key)+"="+encodeURIComponent(value);}}});var elemdisplay={},rfxtypes=/toggle|show|hide/,rfxnum=/^([+-]=)?([\d+-.]+)(.*)$/,timerId,fxAttrs=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];bmQuery.fn.extend({show:function(speed,callback){if(speed||speed===0){return this.animate(genFx("show",3),speed,callback);}else{for(var i=0,l=this.length;i").appendTo("body");display=elem.css("display");if(display==="none"){display="block";}elem.remove();elemdisplay[nodeName]=display;}bmQuery.data(this[i],"olddisplay",display);}}for(var j=0,k=this.length;j=0;i--){if(timers[i].elem===this){if(gotoEnd){timers[i](true);}timers.splice(i,1);}}});if(!gotoEnd){this.dequeue();}return this;}});bmQuery.each({slideDown:genFx("show",1),slideUp:genFx("hide",1),slideToggle:genFx("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(name,props){bmQuery.fn[name]=function(speed,callback){return this.animate(props,speed,callback);};});bmQuery.extend({speed:function(speed,easing,fn){var opt=speed&&typeof speed==="object"?speed:{complete:fn||!fn&&easing||bmQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&!bmQuery.isFunction(easing)&&easing};opt.duration=bmQuery.fx.off?0:typeof opt.duration==="number"?opt.duration:bmQuery.fx.speeds[opt.duration]||bmQuery.fx.speeds._default;opt.old=opt.complete;opt.complete=function(){if(opt.queue!==false){bmQuery(this).dequeue();}if(bmQuery.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={};}}});bmQuery.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this);}(bmQuery.fx.step[this.prop]||bmQuery.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(bmQuery.css(this.elem,this.prop,force));return r&&r>-10000?r:parseFloat(bmQuery.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()&&bmQuery.timers.push(t)&&!timerId){timerId=setInterval(bmQuery.fx.tick,13);}},show:function(){this.options.orig[this.prop]=bmQuery.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());bmQuery(this.elem).show();},hide:function(){this.options.orig[this.prop]=bmQuery.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0);},step:function(gotoEnd){var t=now(),done=true;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;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;var old=bmQuery.data(this.elem,"olddisplay");this.elem.style.display=old?old:this.options.display;if(bmQuery.css(this.elem,"display")==="none"){this.elem.style.display="block";}}if(this.options.hide){bmQuery(this.elem).hide();}if(this.options.hide||this.options.show){for(var p in this.options.curAnim){bmQuery.style(this.elem,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;var specialEasing=this.options.specialEasing&&this.options.specialEasing[this.prop];var defaultEasing=this.options.easing||(bmQuery.easing.swing?"swing":"linear");this.pos=bmQuery.easing[specialEasing||defaultEasing](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update();}return true;}};bmQuery.extend(bmQuery.fx,{tick:function(){var timers=bmQuery.timers;for(var i=0;i
";bmQuery.extend(container.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});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);checkDiv.style.position="fixed",checkDiv.style.top="20px";this.supportsFixedPosition=(checkDiv.offsetTop===20||checkDiv.offsetTop===15);checkDiv.style.position=checkDiv.style.top="";innerDiv.style.overflow="hidden",innerDiv.style.position="relative";this.subtractsBorderForOverflowNotVisible=(checkDiv.offsetTop===-5);this.doesNotIncludeMarginInBodyOffset=(body.offsetTop!==bodyMarginTop);body.removeChild(container);body=container=innerDiv=checkDiv=table=td=null;bmQuery.offset.initialize=bmQuery.noop;},bodyOffset:function(body){var top=body.offsetTop,left=body.offsetLeft;bmQuery.offset.initialize();if(bmQuery.offset.doesNotIncludeMarginInBodyOffset){top+=parseFloat(bmQuery.curCSS(body,"marginTop",true))||0;left+=parseFloat(bmQuery.curCSS(body,"marginLeft",true))||0;}return{top:top,left:left};},setOffset:function(elem,options,i){if(/static/.test(bmQuery.curCSS(elem,"position"))){elem.style.position="relative";}var curElem=bmQuery(elem),curOffset=curElem.offset(),curTop=parseInt(bmQuery.curCSS(elem,"top",true),10)||0,curLeft=parseInt(bmQuery.curCSS(elem,"left",true),10)||0;if(bmQuery.isFunction(options)){options=options.call(elem,i,curOffset);}var props={top:(options.top-curOffset.top)+curTop,left:(options.left-curOffset.left)+curLeft};if("using"in options){options.using.call(elem,props);}else{curElem.css(props);}}};bmQuery.fn.extend({position:function(){if(!this[0]){return null;}var elem=this[0],offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=/^body|html$/i.test(offsetParent[0].nodeName)?{top:0,left:0}:offsetParent.offset();offset.top-=parseFloat(bmQuery.curCSS(elem,"marginTop",true))||0;offset.left-=parseFloat(bmQuery.curCSS(elem,"marginLeft",true))||0;parentOffset.top+=parseFloat(bmQuery.curCSS(offsetParent[0],"borderTopWidth",true))||0;parentOffset.left+=parseFloat(bmQuery.curCSS(offsetParent[0],"borderLeftWidth",true))||0;return{top:offset.top-parentOffset.top,left:offset.left-parentOffset.left};},offsetParent:function(){return this.map(function(){var offsetParent=this.offsetParent||document.body;while(offsetParent&&(!/^body|html$/i.test(offsetParent.nodeName)&&bmQuery.css(offsetParent,"position")==="static")){offsetParent=offsetParent.offsetParent;}return offsetParent;});}});bmQuery.each(["Left","Top"],function(i,name){var method="scroll"+name;bmQuery.fn[method]=function(val){var elem=this[0],win;if(!elem){return null;}if(val!==undefined){return this.each(function(){win=getWindow(this);if(win){win.scrollTo(!i?val:bmQuery(win).scrollLeft(),i?val:bmQuery(win).scrollTop());}else{this[method]=val;}});}else{win=getWindow(elem);return win?("pageXOffset"in win)?win[i?"pageYOffset":"pageXOffset"]:bmQuery.support.boxModel&&win.document.documentElement[method]||win.document.body[method]:elem[method];}};});function getWindow(elem){return("scrollTo"in elem&&elem.document)?elem:elem.nodeType===9?elem.defaultView||elem.parentWindow:false;}bmQuery.each(["Height","Width"],function(i,name){var type=name.toLowerCase();bmQuery.fn["inner"+name]=function(){return this[0]?bmQuery.css(this[0],type,false,"padding"):null;};bmQuery.fn["outer"+name]=function(margin){return this[0]?bmQuery.css(this[0],type,false,margin?"margin":"border"):null;};bmQuery.fn[type]=function(size){var elem=this[0];if(!elem){return size==null?null:this;}if(bmQuery.isFunction(size)){return this.each(function(i){var self=bmQuery(this);self[type](size.call(this,i,self[type]()));});}return("scrollTo"in elem&&elem.document)?elem.document.compatMode==="CSS1Compat"&&elem.document.documentElement["client"+name]||elem.document.body["client"+name]:(elem.nodeType===9)?Math.max(elem.documentElement["client"+name],elem.body["scroll"+name],elem.documentElement["scroll"+name],elem.body["offset"+name],elem.documentElement["offset"+name]):size===undefined?bmQuery.css(elem,type):this.css(type,typeof size==="string"?size:size+"px");};});window.bmQuery=bmQuery;})(window); // jQuery onPath Plugin 1.1.0 by JT (function($){$.onPath=function(paths){paths=paths.split(',');var path=location.pathname.toString();var on=false;for(var i=0;i1&&paths[i].indexOf('/')==0&&path.indexOf(paths[i])==0){on=true;}else if(paths[i].length>1&&!paths[i].indexOf('/')==0&&path.indexOf(paths[i])!=-1){on=true;}else if(paths[i]==path){on=true;}}return on;};})(bmQuery); // jQuery getQueryParam Plugin 1.0.0 by JT (function($){$.getQueryParam=function(param){var pairs=location.search.substring(1).split('&');for(var i=0;i=2){var prefix=encodeURIComponent('prev_slotnames')+'=';var pars=urlparts[1].split(/[&;]/g);for(var i=pars.length;i-->0;){if(pars[i].lastIndexOf(prefix,0)!==-1){pars.splice(i,1)}}s=urlparts[0]+'?'+pars.join('&')}}state.out+=s}function replacementWriteln(s){state.out+=s+'\n'}function makeTemp(id){var t=global.document.createElement('div');t.id=id;t.contentWindow={document:{open:function(){},html:'',write:function(str){this.html=str},close:function(){}}};state.tempEls.push({id:id,el:t});return t}function getReplacmentEl(id){var result=state.getEl.call(global.document,id);return result||makeTemp(id)}return state}function uncapture(state){if(self.proxyGetElementById){global.document.getElementById=state.getEl}return state.out}function clean(code){return code&&code.replace(/^\s*\s*$/,'')}function ignore(){}function doLog(code,error){console.error("Error",error,"executing code:",code)}var logError=isFunction(global.console&&console.error)?doLog:ignore;function captureWrite(code){var state=capture();try{doEvil(clean(code))}catch(e){logError(code,e)}finally{uncapture(state)}return state}function isXDomain(src){var parts=/^(\w+:)?\/\/([^\/?#]+)/.exec(src);return parts&&(parts[1]&&parts[1]!=location.protocol||parts[2]!=location.host)}function attrPattern(name){return new RegExp(name+'=(?:(["\'])(.*?)\\1|([^\\s>]+))','i')}function matchAttr(name){var regex=attrPattern(name);return function(tag){var match=regex.exec(tag)||[];return match[2]||match[3]}}var SCRIPT_TAGS=/()([\s\S]*?)<\/script>/ig,SRC_REGEX=attrPattern('src'),SRC_ATTR=matchAttr('src'),TYPE_ATTR=matchAttr('type'),LANG_ATTR=matchAttr('language'),GLOBAL="__document_write_ajax_callbacks__",DIV_PREFIX="__document_write_ajax_div-",TEMPLATE="window['"+GLOBAL+"']['%d']();",callbacks=global[GLOBAL]={},global_id=0;function nextId(){return(++global_id).toString()}function normalizeOptions(options,callback){var done;if(isFunction(options)){done=options;options=null}options=options||{};done=done||options&&options.done;options.done=callback?function(){callback(done)}:done;return options}var GLOBAL_Q=new Q();function sanitize(html,options,parentQ){var queue=parentQ&&new Q(parentQ)||GLOBAL_Q;options=normalizeOptions(options);var done=options.done;var doneHtml='';if(isFunction(done)){var doneId=nextId();callbacks[doneId]=function(){queue.push(done);delete callbacks[doneId]};doneHtml=''}return html.replace(SCRIPT_TAGS,proxyTag)+doneHtml;function proxyTag(element,openTag,code){var src=SRC_ATTR(openTag),type=TYPE_ATTR(openTag)||'',lang=LANG_ATTR(openTag)||'',isJs=(!type&&!lang)||type.toLowerCase().indexOf('javascript')!==-1||lang.toLowerCase().indexOf('javascript')!==-1;var id=nextId(),divId=DIV_PREFIX+id;var run;if(!isJs){return element}if(src&&isFunction(self.fixUrls)){src=self.fixUrls(src)}callbacks[id]=queueScript;function queueScript(){queue.push(run);delete callbacks[id]}if(src){openTag=openTag.replace(SRC_REGEX,'');if(isXDomain(src)){run=loadXDomain}else{if(options.asyncAll){run=loadAsync()}else{run=loadSync}}}else{run=runInline}function runInline(){captureHtml(code)}function loadSync(){$.ajax({url:src,type:'GET',async:false,success:captureHtml})}function logAjaxError(xhr,status,error){logError("",error);queue.resume()}function loadAsync(){var ready,scriptText;function captureAndResume(script,status){if(!ready){scriptText=script;return}try{captureHtml(script)}catch(e){logError(script,e)}finally{queue.resume()}}$.ajax({url:src,type:'GET',async:true,success:captureAndResume,error:logAjaxError});return function(){ready=true;if(scriptText){captureHtml(scriptText)}else{queue.pause()}}}function loadXDomain(cb){var state=capture();queue.pause();$.ajax({url:src,type:'GET',dataType:"script",success:captureAndResume,error:logAjaxError});function captureAndResume(xhr,st,error){html(uncapture(state));state.finish();queue.resume()}}function captureHtml(script){var state=captureWrite(script);html(state.out);state.finish()}function html(markup){$.replaceWith('#'+divId,sanitize(markup,null,queue))}return openTag+TEMPLATE.replace(/%d/,id)+'
'}}function sanitizeSerial(fragments,done){var queue=GLOBAL_Q;each(fragments,function(f){queue.push(run);function run(){f.action(sanitize(f.html,f.options,queue),f)}});if(done){queue.push(done)}}var name='writeCapture';var self=global[name]={_original:global[name],fixUrls:function(src){return src.replace(/&/g,'&')},noConflict:function(){global[name]=this._original;return this},proxyGetElementById:false,_forTest:{Q:Q,$:$,matchAttr:matchAttr,slice:slice,capture:capture,uncapture:uncapture,captureWrite:captureWrite},replaceWith:function(selector,content,options){$.replaceWith(selector,sanitize(content,options))},html:function(selector,content,options){var el=$.$(selector);el.innerHTML='';$.replaceWith(el.firstChild,sanitize(content,options))},load:function(selector,url,options){$.ajax({url:url,type:"GET",success:function(content){self.html(selector,content,options)}})},sanitize:sanitize,sanitizeSerial:sanitizeSerial}})(this.writeCaptureSupport,this,eval);(function($,wc,noop){var methods={html:html};$.each(['append','prepend','after','before','wrap','wrapAll','replaceWith','wrapInner'],function(){methods[this]=makeMethod(this)});function isString(s){return Object.prototype.toString.call(s)=="[object String]"}function executeMethod(method,content,options,cb){if(arguments.length==0)return proxyMethods.call(this);var m=methods[method];if(method=='load'){return load.call(this,content,options,cb)}if(!m)error(method);return doEach.call(this,content,options,m)}$.fn.writeCapture=executeMethod;var PROXIED='__writeCaptureJsProxied-fghebd__';function proxyMethods(){if(this[PROXIED])return this;var jq=this;function F(){var _this=this,sanitizing=false;this[PROXIED]=true;$.each(methods,function(method){var _super=jq[method];if(!_super)return;_this[method]=function(content,options,cb){if(!sanitizing&&isString(content)){try{sanitizing=true;return executeMethod.call(_this,method,content,options,cb)}finally{sanitizing=false}}return _super.apply(_this,arguments)}});this.pushStack=function(){return proxyMethods.call(jq.pushStack.apply(_this,arguments))};this.endCapture=function(){return jq}}F.prototype=jq;return new F()}function doEach(content,options,action){var done,self=this;if(options&&options.done){done=options.done;delete options.done}else if($.isFunction(options)){done=options;options=null}wc.sanitizeSerial($.map(this,function(el){return{html:content,options:options,action:function(text){action.call(el,text)}}}),done&&function(){done.call(self)}||done);return this}function html(safe){$(this).html(safe)}function makeMethod(method){return function(safe){$(this)[method](safe)}}function load(url,options,callback){var self=this,selector,off=url.indexOf(' ');if(off>=0){selector=url.slice(off,url.length);url=url.slice(0,off)}if($.isFunction(callback)){options=options||{};options.done=callback}return $.ajax({url:url,type:options&&options.type||"GET",dataType:"html",data:options&&options.params,complete:loadCallback(self,options,selector)})}function loadCallback(self,options,selector){return function(res,status){if(status=="success"||status=="notmodified"){var text=getText(res.responseText,selector);doEach.call(self,text,options,html)}}}var PLACEHOLDER=/jquery-writeCapture-script-placeholder-(\d+)-wc/g;function getText(text,selector){if(!selector||!text)return text;var id=0,scripts={};return $('
').append(text.replace(//g,function(s){scripts[id]=s;return"jquery-writeCapture-script-placeholder-"+(id++)+'-wc'})).find(selector).html().replace(PLACEHOLDER,function(all,id){return scripts[id]})}function error(method){throw"invalid method parameter "+method;}$.writeCapture=wc})(bmQuery,writeCapture.noConflict()); // Buzzmedia geoLocation Plugin 1.0.0 by JT (requires $.cookie, $.getQueryParam, MaxMind GeoIP) (function($){$.bmLib=$.bmLib||{};$.bmLib.geoLocation=$.cookie('GEOIP_COUNTRY_CODE');if($.getQueryParam('geoLocation')!=undefined){$.bmLib.geoLocation=$.getQueryParam('geoLocation').toUpperCase();}})(bmQuery); // Buzzworthy Module Event Tracking 1.0.1 by JT (function($){var getSiteName=function(hostname){var sites=[['Buzznet','www.buzznet.com'],['Celebuzz','www.celebuzz.com'],['Go Fug Yourself','gofugyourself.celebuzz.com'],['Idolator','idolator.com'],['Khloe Kardashian','khloekardashian.celebuzz.com'],['Kim Kardashian','kimkardashian.celebuzz.com'],['Kourtney Kardashian','officialkourtneyk.celebuzz.com'],['OK Magazine','www.okmagazine.com'],['Stereogum','stereogum.com'],['Socialite Life','socialitelife.celebuzz.com'],['The Superficial','www.thesuperficial.com'],['Videogum','videogum.com'],['WWTDD','www.wwtdd.com']];for(var i=0;i'); } else { // HM Campaign Output - Sat, 04 Dec 10 18:01:01 -0800 // (function(config){$.bmLib=$.bmLib||{};$.bmLib.iab=$.bmLib.iab||{};$.bmLib.iab.adHide=$.bmLib.iab.adHide||{};if(typeof config=='undefined'){config={};} var positionCache=[];var queue=[];var queueInterval;var running=false;var siteToken='HM';var tile=0;var preAdConfigHook=function(adConfig){};if(config.preAdConfigHook!=undefined){preAdConfigHook=config.preAdConfigHook;} var overrideConfigs={};var keywords=[];keywords[0]={keywords:'',keyvalues:'page=testflash',paths:'/10',positions:'all'};var gamLocations={};$.bmLib.iab.write=function(adConfig){var adTag=getAdTag(adConfig);if(adTag.length){document.write(adTag);}} $.bmLib.iab.writeAjax=function(divsAndConfigs){ajaxWriteWrapper(divsAndConfigs,false);} $.bmLib.iab.writeAjaxByPosition=function(divsAndPositions){ajaxWriteWrapper(divsAndPositions,true);} function ajaxWriteWrapper(adCallConfigs,usePositionCache){var delayTime=0;$.each(adCallConfigs,function(index,obj){var adTag='';try{var adTag='';if(usePositionCache){adTag=positionCache[obj.position];}else{adTag=getAdTag(obj.adConfig);} if(isDartTag()){var adTagSub=adTag.substring(0,adTag.indexOf("ord="));var ord=Math.floor(Math.random()*10000000000000000);adTagSub+='ord='+ord+'?">';adTag=adTagSub;} queue.push(function(){callAjaxAd(obj.div,adTag);});}catch(e){}});queueInterval=setInterval(function(){execAdQueue();},10);} function execAdQueue(){if(queue.length===0){clearInterval(queueInterval);return;} if(running===false){if(next=queue.shift()){running=true;next();}}} function callAjaxAd(theDiv,adTag){if($.writeCapture===undefined){return;} $('#'+theDiv).html('');if(siteToken!=='HM'){$.writeCapture.proxyGetElementById=true;} $('#'+theDiv).writeCapture().html(adTag,function(){setTimeout(function(){running=false;},100);});} function getAdTag(adConfig){if(overrideConfigs[adConfig.position]!==undefined){$.each(overrideConfigs[adConfig.position],function(key,value){if(value!==''){adConfig[key]=value;}});} preAdConfigHook(adConfig);var adTag="";if(isDartTag()){adTag=buildDartAdCall(adConfig);}else{adTag=buildGoogleAdCall(adConfig);} positionCache[adConfig.position]=adTag;return adTag;} function buildGoogleAdCall(adConfig){var id='ad_'+adConfig.position;var width='';var height='';var positionName='';if(adConfig.sizes.length>0){var size=adConfig.sizes[0];var splitString=adConfig.sizes[0].split('x');width=splitString[0];height=splitString[1];} var size=adConfig.sizes[0];size=size.toUpperCase() positionName='international_'+'HM'+'_ros_'+size;var outputString='';}else{outputString='<\/scr'+'ipt>';} return outputString;} function buildDartScriptSrc(adConfig){if(typeof window.ord=='undefined'){window.ord=Math.floor(Math.random()*10000000000000000);} var outputString="";var siteIdentifer='';if(siteIdentifer!==''){outputString+=siteIdentifer+'/';}else{outputString+=adConfig.siteIdentifier+'/';} outputString+=adConfig.zone+';';outputString+='pos='+adConfig.position+';';tile++;outputString+='tile='+tile+';';outputString+='sz=' $.each(adConfig.sizes,function(index,size){outputString+=size;if((index+1)=0){segs_beg=document.cookie.indexOf('=',segs_beg)+1;if(segs_beg>0){var segs_end=document.cookie.indexOf(';',segs_beg);if(segs_end==-1)segs_end=document.cookie.length;rsi_segs=document.cookie.substring(segs_beg,segs_end).split('|');}} var segLen=20;var segQS="";if(rsi_segs.length