
if(typeof wpUIOpts=='object'&&wpUIOpts.docWriteFix=='on'){var docWriteTxt="";jQuery(function(){document.write=function(dWT){docWriteTxt+=dWT;}
jQuery(docWriteTxt).appendTo('body');});}
tabSet=0;function getNextSet(){return++tabSet;}
var tabNames=[];jQuery.fn.wptabs=function(options){var linkAttrs;var o=jQuery.extend({},jQuery.fn.wptabs.defaults,options);this.each(function(){uid=getNextSet();base=this;var $this=jQuery(this);base.jqui=false;if($this.hasClass('jqui-styles')){base.jqui=true;}
$this.prepend('<ul class="ui-tabs-nav" />');var wrapper=$this.children(o.h3Class).wrap('<div class="ui-tabs-panel"></div>');$this.find('div.ui-tabs-panel:last-child').after('<p id="jqtemp">');if(o.wpuiautop){$this.find('p, br').not('div.wp-tab-content br, div.wp-tab-content p ').filter(function(){return jQuery.trim(jQuery(this).html())===''}).remove();}
wrapper.each(function(){jQuery(this).parent().append(jQuery(this).parent().nextUntil("div.ui-tabs-panel"));});$this.find('.ui-tabs-panel').children(o.h3Class).each(function(index){dup=getNextSet();if(jQuery(this).children(o.linkAjaxClass).length!=0){linkAttrs=' href="'+jQuery(this).children(o.linkAjaxClass).attr('href')+'" title="'+jQuery(this).text()+'"';parID=jQuery(this).text().replace(/\s{1,}/gm,'_');parID=parID.replace(/[^\-A-Za-z0-9\s_]/mg,'');if(jQuery.inArray(parID,tabNames)!='-1')
parID=parID+'_'+dup;jQuery(this).parent().parent().children('ul.ui-tabs-nav').append('<li><a '+linkAttrs+'>'+jQuery(this).text()+'</a></li>');jQuery(this).parent().attr('id',parID);}else{parID=jQuery(this).text().replace(/[^\-A-Za-z0-9\s_]/mg,'').replace(/\s{1,}/gm,'_').toLowerCase();if(jQuery.inArray(parID,tabNames)!='-1')
parID=parID+'_'+dup;linkAttrs=' href="#'+parID+'"';jQuery(this).parent().parent().children('ul.ui-tabs-nav').append('<li><a '+linkAttrs+'>'+jQuery(this).text()+'</a></li>');jQuery(this).parent().attr('id',parID);}
panelWidth=jQuery(this).width()-20;jQuery(this).find('img').css({width:panelWidth});jQuery(this).find('iframe').css({width:'600px'});tabNames=tabNames.concat(parID);}).hide();if($this.find('div.ui-tabs').length==0){$this.find('ul').before("<div class='ui-tabs'>");$this.find('.ui-tabs').each(function(){jQuery(this).append(jQuery(this).nextUntil('p#jqtemp'));});}
tabsobj={};if(o.effect=='slideDown'){tabsobj.fx={height:'toggle',speed:o.effectSpeed};}else if(o.effect=='fadeIn'){tabsobj.fx={opacity:'toggle',speed:o.effectSpeed};}
if(o.cookies){tabsobj.cookie={expires:30};}
if(o.tabsEvent){tabsobj.event=o.tabsEvent;}
if(o.collapsibleTabs){tabsobj.collapsible=true;}
var $tabs=$this.children('.ui-tabs').tabs(tabsobj);if(o.collapsibleTabs){base.selColl=$tabs.tabs('option','selected');$tabs.find('ul.ui-tabs-nav li a').eq(base.selColl).click();}
jQuery('ul.ui-tabs-nav').each(function(){jQuery('li:first',this).addClass('first-li');jQuery('li:last',this).addClass('last-li');});if(o.alwaysRotate!='disable'){jQuery(this+'[class*=tab-rotate]').each(function(){rotateSpeed=jQuery(this).attr('class').match(/tab-rotate-(.*)/,"$1");if(rotateSpeed!=null){if(rotateSpeed[1].match(/(\d){1,2}s/,"$1"))rotateSpeed[1]=rotateSpeed[1].replace(/s$/,'')*1000;rotateSpeed=rotateSpeed[1];alwaysRotate=(o.alwaysRotate=='always')?true:false;}
jQuery(this).find('.ui-tabs').tabs('rotate',rotateSpeed,alwaysRotate);});}
if(o.followNav==true||$this.hasClass('tab-nav-follows')){o.topNav=o.bottomNav=false;$tabs.append('<a href="#" class="ui-button tab-nav-follows prev-follow"><span></span>Previous</a>  <a href="#" class="ui-button tab-nav-follows next-follow"><span></span>Next</a>');jQuery('.tab-nav-follows').css({position:'absolute'});wptabsHgt=$this.height()/2;wptabsNavWdt=$tabs.children('.tab-nav-follows').outerWidth();$tabs.parent().css({position:'relative'});maxPH=0;$tabs.children('.ui-tabs-panel').each(function(){if(jQuery(this).height()>maxPH){maxPH=jQuery(this).height();}});$tabs.children('div.ui-tabs-panel').innerHeight(maxPH+50);jQuery('.next-follow').css({right:wptabsNavWdt*-1+"px",top:"150px"}).click(function(){wpuiTabsMover('forward');return false;});jQuery('.prev-follow').css({left:wptabsNavWdt*-1+"px",top:"150px"}).click(function(){wpuiTabsMover('backward');return false;});$fNavs=$this.find('a.tab-nav-follows');$fNavs.wpuiScroller({container:$tabs.get(0)});}
if(o.topNav||o.bottomNav){$this.find('div.ui-tabs-panel').each(function(i){base.navClass=' ui-button ui-widget ui-state-default ui-corner-all';base.navPrevSpan='<span class="ui-icon ui-icon-circle-triangle-w"></span>';base.navNextSpan='<span class="ui-icon ui-icon-circle-triangle-e"></span>';!o.topNav||jQuery(this).prepend('<div class="tab-top-nav" />');!o.bottomNav||jQuery(this).append('<div style="clear: both;"></div><div class="tab-bottom-nav" />');var totalLength=jQuery(this).parent().children('.ui-tabs-panel').length-1;if(i!=0){!o.topNav||jQuery(this).children('.tab-top-nav').prepend('<a href="#" class="backward prev-tab '+base.navClass+'">'+base.navPrevSpan+o.tabPrevText+'</a>');!o.bottomNav||jQuery(this).children('.tab-bottom-nav').append('<a href="#" class="backward prev-tab '+base.navClass+'">'+base.navPrevSpan+o.tabPrevText+'</a>');}
if(i!=totalLength){!o.topNav||jQuery(this).children('.tab-top-nav').append('<a href="#" class="forward next-tab '+base.navClass+'">'+o.tabNextText+base.navNextSpan+'</a>');!o.bottomNav||jQuery(this).children('.tab-bottom-nav').append('<a href="#" class="forward next-tab '+base.navClass+'">'+o.tabNextText+base.navNextSpan+'</a>');}});jQuery('a.forward, a.backward').hover(function(){if(base.jqui)
jQuery(this).addClass('ui-state-hover');},function(){if(base.jqui)
jQuery(this).removeClass('ui-state-hover');}).focus(function(){if(base.jqui)
jQuery(this).addClass('ui-state-focus ui-state-active');}).blur(function(){if(base.jqui)
jQuery(this).removeClass('ui-state-focus ui-state-active');});}
$tabs.tabs('option','disabled',false);if(o.position=='bottom'||jQuery(this).hasClass('tabs-bottom')){jQuery('ul.ui-tabs-nav',this).each(function(){jQuery(this).appendTo(jQuery(this).parent()).addClass('ul-bottom');});$this.children('.ui-tabs').addClass('bottom-tabs').children('.ui-tabs-panel').each(function(){jQuery(this).addClass('bottom-tabs');});}
if($this.hasClass('wpui-tabs-vertical')){$tabs.addClass('ui-tabs-vertical ui-helper-clearfix');$tabs.find('li').removeClass('ui-corner-top').addClass('ui-corner-left');$tabs.find('ul.ui-tabs-nav').css({position:'absolute'}).removeClass('ui-corner-all').addClass('ui-corner-left').children().css({float:'left',clear:'left'});getListWidth=jQuery(this).attr('class').match(/listwidth-(\d{2,4})/,"$1");if(getListWidth!=null){ulWidth=getListWidth[1];}else{ulWidth=$tabs.find('ul.ui-tabs-nav').outerWidth();}
ulHeight=$tabs.find('ul.ui-tabs-nav').outerHeight();$tabs.find('ul.ui-tabs-nav').outerWidth(ulWidth+4);$tabs.find('div.ui-tabs-panel').css({float:'right'});parWidth=$tabs.innerWidth()-(parseInt($tabs.css('paddingLeft'))+parseInt($tabs.css('paddingRight')));PaneWidth=parWidth-ulWidth;maxPane=0;paneCount=$tabs.find('.ui-tabs-panel').length;$tabs.find('.ui-tabs-panel').innerWidth(PaneWidth).css({marginLeft:ulWidth});$tabs.find('.ui-tabs-panel').each(function(){if(jQuery(this).outerHeight()>maxPane){maxPane=jQuery(this).outerHeight();}});if(o.effect=='slideDown')
$this.find('.ui-tabs').tabs({fx:null});if(maxPane!=0){(maxPane>ulHeight)?$tabs.children().innerHeight(maxPane+40):$tabs.children().innerHeight(ulHeight+40);}}
if(typeof WPUIOpts!='undefined')
$this.append('<a class="thickbox cap-icon-link" title="" href="http://kav.in"><img src="'+wpUIOpts.pluginUrl+'/images/cquest.png" alt="Cap" /></a>');if(jQuery.event.special.mousewheel!=="undefined"&&o.mouseWheel!='false'){if(o.mouseWheel&&o.mouseWheel=="panels"){scrollEl='div.ui-tabs-panel';}else{scrollEl='ul.ui-tabs-nav';}
$this.panelength=$tabs.find('.ui-tabs-panel').length;$tabs.find(scrollEl).mousewheel(function(event,delta){if(delta<0)
dir="forward";else if(delta>0)
dir="backward";wpuiTabsMover(dir);return false;});}
$this.find('a.next-tab, a.prev-tab').hover(function(){jQuery(this).addClass('ui-state-hover');},function(){jQuery(this).removeClass('ui-state-hover');});$this.find('a.next-tab, a.prev-tab').click(function(){if(jQuery(this).is('a.next-tab'))
wpuiTabsMover("forward");else
wpuiTabsMover("backward");return false;});if($this.hasClass('wpui-no-background')){$this.find('ul.ui-tabs-nav > li').removeClass('ui-corner-top').addClass('ui-corner-all');}
var wpuiTabsMover=function(dir){dir=dir||'forward';mrel=$this.find('.ui-tabs').tabs('option','selected');mrel=(dir=='backward')?mrel-1:mrel+1;if(dir=="forward"&&mrel==$this.panelength)mrel=0;if(dir=="backward"&&mrel<0)mrel=$this.panelength-1;$tabs.tabs("select",mrel);};});if(o.hashChange&&typeof jQuery.event.special.hashchange!="undefined"){jQuery(window).hashchange(function(){if(jQuery(window.location.hash).length!=1)
return false;hashed=jQuery(window.location.hash).prevAll().length-1;jQuery(window.location.hash).parent().tabs({selected:hashed});return false;});jQuery(window).hashchange();}
return this;};jQuery.fn.wptabs.defaults={h3Class:'h3.wp-tab-title',linkAjaxClass:'a.wp-tab-load',topNav:(typeof wpUIOpts!="undefined"&&wpUIOpts.topNav=='on')?true:false,bottomNav:(typeof wpUIOpts!="undefined"&&wpUIOpts.bottomNav=='on')?true:false,position:'top',navStyle:(typeof wpUIOpts!="undefined")?wpUIOpts.tabsLinkClass:'',effect:(typeof wpUIOpts!="undefined")?wpUIOpts.tabsEffect:'',effectSpeed:(typeof wpUIOpts!="undefined")?wpUIOpts.effectSpeed:'',alwaysRotate:(typeof wpUIOpts!="undefined")?wpUIOpts.alwaysRotate:'',tabsEvent:(typeof wpUIOpts!="undefined")?wpUIOpts.tabsEvent:'',collapsibleTabs:(typeof wpUIOpts!="undefined"&&wpUIOpts.collapsibleTabs=='on')?true:false,tabPrevText:(typeof wpUIOpts!="undefined"&&wpUIOpts.tabPrevText!='')?wpUIOpts.tabPrevText:'&laquo; Previous',tabNextText:(typeof wpUIOpts!="undefined"&&wpUIOpts.tabNextText!='')?wpUIOpts.tabNextText:'Next &raquo;',cookies:(typeof wpUIOpts!="undefined"&&wpUIOpts.cookies=='on')?true:false,hashChange:(typeof wpUIOpts!="undefined"&&wpUIOpts.hashChange=='on')?true:false,hashChange:(typeof wpUIOpts!="undefined"&&wpUIOpts.hashChange=='on')?true:false,mouseWheel:(typeof wpUIOpts!="undefined")?wpUIOpts.mouseWheelTabs:'',wpuiautop:true,followNav:false};jQuery.fn.wpuiScroller=function(options){var base=this;base.$el=jQuery(this);base.opts=jQuery.extend({},jQuery.fn.wpuiScroller.defaults,options);base.startTop=parseInt(base.$el.css('top'));if(base.opts.limiter){base.limiter=jQuery(base.opts.limiter);}else{base.limiter=base.$el.parent().parent();}
base.startAt=parseInt(base.limiter.offset().top);jQuery(window).scroll(function(){base.endAt=parseInt(base.limiter.height()+jQuery(window).height()/2);base.moveTo=base.startTop;if(jQuery(document).scrollTop()>=base.startAt){base.moveTo=base.startTop+(jQuery(window).scrollTop()-base.startAt);if((jQuery(window).scrollTop()+jQuery(window).height()/2)>=(base.limiter.height()+base.limiter.offset().top-base.startTop)){base.moveTo=base.limiter.height()-base.startTop;}}
base.$el.css('top',base.moveTo);});return this;};jQuery.fn.wpuiScroller.defaults={limiter:false,adJust:50};jQuery.fn.wpuiPager=function(options){var base=this;base.$el=jQuery(base);o=jQuery.extend({},jQuery.fn.wpuiPager.defaults,options);base.$el.each(function(){base.pages=jQuery(this).children(o.pageClass);base.pages.hide();base.pages.eq(0).show();base.pageNum=jQuery(this).children(o.pageClass).length;jQuery(this).append('<div class="wpui-pager">'+base.pageNum+' Pages  </div>');base.pager=jQuery(this).find('.wpui-pager');base.wpuiHeight=0;base.pages.each(function(){tisHgt=parseInt(jQuery(this).css('height'));if(tisHgt>base.wpuiHeight)
base.wpuiHeight=tisHgt;});base.wpuiHeight<=0||base.pages.height(base.wpuiHeight);pageStr='';for(i=0;i<base.pageNum;i++){pageNum=i+1;pageStr+='<a class="wpui-page-number" href="#" rel="'+i+'">'+pageNum+'</a>';}
base.pager.append(pageStr);base.pager.append('<a class="wpui-next-page" href="#">Next &raquo;</a>');base.pager.each(function(){jQuery(this).find('a').eq(0).addClass('wpui-page-active');});base.browsePages=function(pageN,el){bPage=jQuery(el).parent().parent().find(o.pageClass);if(o.effect=='fade'){bPage.eq(pageN).fadeIn(o.speed).siblings('.wpui-page').hide();}else if(o.effect=='slide'){bPage.eq(pageN).slideDown(o.speed).siblings('.wpui-page').hide();}else{bPage.eq(pageN).show().siblings('.wpui-page').hide();}
jQuery(el).siblings().removeClass('wpui-page-active');jQuery(el).addClass('wpui-page-active');};base.pager.children('a').click(function(){pagess=jQuery(this).parent().parent().find(o.pageClass);pagessCount=jQuery(this).siblings().length;if(jQuery(this).hasClass('wpui-next-page')){currEl=jQuery(this).siblings('.wpui-page-active');if(currEl.attr("rel")==(pagessCount-1))
nextEl=jQuery(this).siblings().eq(0);else
nextEl=currEl.next();relEL=nextEl.attr('rel');activeEl=nextEl.get(0);}else{relEL=jQuery(this).attr('rel');activeEl=this;}
base.browsePages(relEL,activeEl);return false;});});return this;};jQuery.fn.wpuiPager.defaults={position:'bottom',pageClass:'.wpui-page',speed:600,effect:'fade'};jQuery.fn.wpaccord=function(options){var wrapper,loadLinks,getAjaxUrl,o=jQuery.extend({},jQuery.fn.wpaccord.defaults,options);this.each(function(){var $this=jQuery(this);$this.append('<p id="jqtemp" />');if(o.wpuiautop){$this.find('p, br').not('div.wp-tab-content br, div.wp-tab-content p ').filter(function(){return jQuery.trim(jQuery(this).html())===''}).remove();}
wrapper=$this.find('h3:first').wrap('<div class="accordion">');if(o.wpuiautop){$this.find('p, br').not('div.wp-tab-content br, div.wp-tab-content p ').filter(function(){return jQuery.trim(jQuery(this).html())===''}).remove();}
wrapper.each(function(){jQuery(this).parent().append(jQuery(this).parent().nextUntil('p#jqtemp'));});$this.find(o.h3Class).each(function(){loadLinks=jQuery(this).children(o.linkAjaxClass);if(loadLinks.length!=0){getAjaxUrl=loadLinks.attr("href");loadLinks.parent().after('<div></div>');jQuery(this).next().load(wpUIOpts.wpUrl+"/"+getAjaxUrl);jQuery(this).text(jQuery(this).children().text());}});accordOpts={};if(o.autoHeight){accordOpts.autoHeight=true;}else{accordOpts.autoHeight=false;}
if(o.collapse){accordOpts.collapsible=true;accordOpts.active=false;}
accordOpts.animated=o.easing;accordOpts.event=o.accordEvent;$wpAccord=jQuery('.accordion').accordion(accordOpts);accClass=$this.attr('class');if(activePanel=accClass.match(/acc-active-(\d){1}/im)){$wpAccord.accordion('activate',parseInt(activePanel[1]));}
jQuery('.accordion h3.ui-accordion-header:last').addClass('last-child');});};jQuery.fn.wpaccord.defaults={h3Class:'h3.wp-tab-title',linkAjaxClass:'a.wp-tab-load',effect:(typeof wpUIOpts!="undefined")?wpUIOpts.accordEffect:'',autoHeight:(typeof wpUIOpts!="undefined"&&wpUIOpts.accordAutoHeight=='on')?true:false,collapse:(typeof wpUIOpts!="undefined"&&wpUIOpts.accordCollapsible=='on')?true:false,easing:(typeof wpUIOpts!="undefined")?wpUIOpts.accordEasing:'',accordEvent:(typeof wpUIOpts!="undefined")?wpUIOpts.accordEvent:'',wpuiautop:true};jQuery.fn.wpspoiler=function(options){var o,defaults,holder,hideText,showText,currText,hideSpan;o=jQuery.extend({},jQuery.fn.wpspoiler.defaults,options);this.each(function(){var base=this,$this=jQuery(this);if(typeof convertEntities=='function'){hideText=convertEntities(o.hideText);showText=convertEntities(o.showText);}else{hideText=o.hideText;showText=o.showText;}
$this.addClass('ui-widget ui-collapsible');$header=$this.children(o.headerClass);$header.each(function(){jQuery(this).addClass('ui-state-default ui-corner-all ui-helper-reset').find('span.ui-icon',this).addClass(o.openIconClass);jQuery(this).append('<span class="'+o.spanClass.replace(/\./,'')+'" style="float:right"></span>').find(o.spanClass).html(showText);base.aniOpts={};if(o.fade)base.aniOpts['opacity']='toggle';if(o.slide)base.aniOpts['height']='toggle';if(o.slide||o.fade){if(jQuery(this+'[class*=speed-]').length){animSpeed=jQuery(this).attr('class').match(/speed-(.*)\s|\"/,"$1");if(animSpeed){speed=animSpeed[1];}else{speed=o.speed;}}}}).next('div.ui-collapsible-content').addClass('ui-widget-content ui-corner-bottom').find('.close-spoiler').addClass('ui-state-default ui-widget ui-corner-all ui-button-text-only').end().hide();$header.hover(function(){jQuery(this).addClass('ui-state-hover').css({cursor:'pointer'});},function(){jQuery(this).removeClass('ui-state-hover');});$header.click(function(){base.headerToggle(this);});$this.find('a.close-spoiler').click(function(e){e.stopPropagation();e.preventDefault();heads=jQuery(this).parent().siblings(o.headerClass).get(0);base.headerToggle(heads);return false;});base.headerToggle=function(hel){spanText=jQuery(hel).find(o.spanClass).html();jQuery(hel).toggleClass('ui-state-active ui-corner-all ui-corner-top').children('span.ui-icon').toggleClass(o.closeIconClass).siblings(o.spanClass).html((spanText==hideText)?showText:hideText).parent().next('div.ui-collapsible-content').animate(base.aniOpts,500).addClass('ui-widget-content');};if($this.find(o.headerClass).hasClass('open-true')){h3=$this.children(o.headerClass).get(0);base.headerToggle(h3);}});return this;};jQuery.fn.wpspoiler.defaults={hideText:(typeof wpUIOpts!="undefined")?wpUIOpts.spoilerHideText:'',showText:(typeof wpUIOpts!="undefined")?wpUIOpts.spoilerShowText:'',fade:true,slide:true,speed:600,spanClass:'.toggle_text',headerClass:'h3.ui-collapsible-header',openIconClass:'ui-icon-triangle-1-e',closeIconClass:'ui-icon-triangle-1-s'};jQuery.fn.wpDialog=function(options){var o=jQuery.extend({},jQuery.fn.wpDialog.defaults,options);return this.each(function(){var base=this;$base=jQuery(base);dialogArgs=$base.find('h4.wp-dialog-title').toggleClass('wp-dialog-title').attr('class').split(' ');$base.find('h4:first').remove();kel={};for(i=0;i<dialogArgs.length;i++){dialogArgs[i]=dialogArgs[i].replace(/wpui-(.*)-arg/mg,'$1');key=dialogArgs[i].replace(/([\w\d\S]*):([\w\d\S]*)/mg,'$1');value=dialogArgs[i].replace(/(.*):(.*)/mg,'$2').replace(/%/mg,' ');if(value=="true")value=true;if(value=="false")value=false;kel[key]=value;}
dialogCloseFn=function(){$(this).dialog("close");};if(kel.position=='bottomleft'){kel.position=['left','bottom'];}else if(kel.position=='bottomright'){kel.position=['right','bottom'];}else if(kel.position=='topleft'){kel.position=['left','top'];}else if(kel.position=='topright'){kel.position=['right','top'];}
kel.width=parseInt(kel.width)+"px";if(kel.button){buttonLabel=kel.button;delete kel.button;kel.buttons={};kel.buttons[buttonLabel]=dialogCloseFn}
if(kel.dialogClass&&kel.dialogClass!=''){kel['dialogClass']=kel.dialogClass.replace(/_/gm,' ');}
$base.dialog(kel);jQuery('[class*=dialog-opener]').button({icons:{primary:'ui-icon-newwin'}});jQuery('[class*=dialog-opener]').click(function(){openerClass=jQuery(this).attr('class').match(/dialog\-opener\-(\d{1,2})/);dNum=openerClass[1];jQuery('.wp-dialog-'+dNum).dialog('open');return false;});});};jQuery.fn.wpDialog.defaults={title:'Information'};jQuery.cookie=function(key,value,options){if(arguments.length>1&&(value===null||typeof value!=="object")){options=jQuery.extend({},options);if(value===null){options.expires=-1;}
if(typeof options.expires==='number'){var days=options.expires,t=options.expires=new Date();t.setDate(t.getDate()+days);}
return(document.cookie=[encodeURIComponent(key),'=',options.raw?String(value):encodeURIComponent(String(value)),options.expires?'; expires='+options.expires.toUTCString():'',options.path?'; path='+options.path:'',options.domain?'; domain='+options.domain:'',options.secure?'; secure':''].join(''));}
options=value||{};var result,decode=options.raw?function(s){return s;}:decodeURIComponent;return(result=new RegExp('(?:^|; )'+encodeURIComponent(key)+'=([^;]*)').exec(document.cookie))?decode(result[1]):null;};(function($,e,b){var c="hashchange",h=document,f,g=$.event.special,i=h.documentMode,d="on"+c in e&&(i===b||i>7);function a(j){j=j||location.href;return"#"+j.replace(/^[^#]*#?(.*)$/,"$1")}$.fn[c]=function(j){return j?this.bind(c,j):this.trigger(c)};$.fn[c].delay=50;g[c]=$.extend(g[c],{setup:function(){if(d){return false}$(f.start)},teardown:function(){if(d){return false}$(f.stop)}});f=(function(){var j={},p,m=a(),k=function(q){return q},l=k,o=k;j.start=function(){p||n()};j.stop=function(){p&&clearTimeout(p);p=b};function n(){var r=a(),q=o(m);if(r!==m){l(m=r,q);$(e).trigger(c)}else{if(q!==m){location.href=location.href.replace(/#.*/,"")+q}}p=setTimeout(n,$.fn[c].delay)}$.browser.msie&&!d&&(function(){var q,r;j.start=function(){if(!q){r=$.fn[c].src;r=r&&r+a();q=$('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){r||l(a());n()}).attr("src",r||"javascript:0").insertAfter("body")[0].contentWindow;h.onpropertychange=function(){try{if(event.propertyName==="title"){q.document.title=h.title}}catch(s){}}}};j.stop=k;o=function(){return a(q.location.href)};l=function(v,s){var u=q.document,t=$.fn[c].domain;if(v!==s){u.title=h.title;u.open();t&&u.write('<script>document.domain="'+t+'"<\/script>');u.close();q.location.hash=v}}})();return j})()})(jQuery,this);var JSON;if(!JSON){JSON={};}
(function(){"use strict";function f(n){return n<10?'0'+n:n;}
if(typeof Date.prototype.toJSON!=='function'){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+'-'+
f(this.getUTCMonth()+1)+'-'+
f(this.getUTCDate())+'T'+
f(this.getUTCHours())+':'+
f(this.getUTCMinutes())+':'+
f(this.getUTCSeconds())+'Z':null;};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf();};}
var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==='string'?c:'\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4);})+'"':'"'+string+'"';}
function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==='object'&&typeof value.toJSON==='function'){value=value.toJSON(key);}
if(typeof rep==='function'){value=rep.call(holder,key,value);}
switch(typeof value){case'string':return quote(value);case'number':return isFinite(value)?String(value):'null';case'boolean':case'null':return String(value);case'object':if(!value){return'null';}
gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==='[object Array]'){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||'null';}
v=partial.length===0?'[]':gap?'[\n'+gap+partial.join(',\n'+gap)+'\n'+mind+']':'['+partial.join(',')+']';gap=mind;return v;}
if(rep&&typeof rep==='object'){length=rep.length;for(i=0;i<length;i+=1){if(typeof rep[i]==='string'){k=rep[i];v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}else{for(k in value){if(Object.prototype.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}
v=partial.length===0?'{}':gap?'{\n'+gap+partial.join(',\n'+gap)+'\n'+mind+'}':'{'+partial.join(',')+'}';gap=mind;return v;}}
if(typeof JSON.stringify!=='function'){JSON.stringify=function(value,replacer,space){var i;gap='';indent='';if(typeof space==='number'){for(i=0;i<space;i+=1){indent+=' ';}}else if(typeof space==='string'){indent=space;}
rep=replacer;if(replacer&&typeof replacer!=='function'&&(typeof replacer!=='object'||typeof replacer.length!=='number')){throw new Error('JSON.stringify');}
return str('',{'':value});};}
if(typeof JSON.parse!=='function'){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==='object'){for(k in value){if(Object.prototype.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v;}else{delete value[k];}}}}
return reviver.call(holder,key,value);}
text=String(text);cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return'\\u'+
('0000'+a.charCodeAt(0).toString(16)).slice(-4);});}
if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']').replace(/(?:^|:|,)(?:\s*\[)+/g,''))){j=eval('('+text+')');return typeof reviver==='function'?walk({'':j},''):j;}
throw new SyntaxError('JSON.parse');};}}());(function($,e,b){var c="hashchange",h=document,f,g=$.event.special,i=h.documentMode,d="on"+c in e&&(i===b||i>7);function a(j){j=j||location.href;return"#"+j.replace(/^[^#]*#?(.*)$/,"$1")}$.fn[c]=function(j){return j?this.bind(c,j):this.trigger(c)};$.fn[c].delay=50;g[c]=$.extend(g[c],{setup:function(){if(d){return false}$(f.start)},teardown:function(){if(d){return false}$(f.stop)}});f=(function(){var j={},p,m=a(),k=function(q){return q},l=k,o=k;j.start=function(){p||n()};j.stop=function(){p&&clearTimeout(p);p=b};function n(){var r=a(),q=o(m);if(r!==m){l(m=r,q);$(e).trigger(c)}else{if(q!==m){location.href=location.href.replace(/#.*/,"")+q}}p=setTimeout(n,$.fn[c].delay)}$.browser.msie&&!d&&(function(){var q,r;j.start=function(){if(!q){r=$.fn[c].src;r=r&&r+a();q=$('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){r||l(a());n()}).attr("src",r||"javascript:0").insertAfter("body")[0].contentWindow;h.onpropertychange=function(){try{if(event.propertyName==="title"){q.document.title=h.title}}catch(s){}}}};j.stop=k;o=function(){return a(q.location.href)};l=function(v,s){var u=q.document,t=$.fn[c].domain;if(v!==s){u.title=h.title;u.open();t&&u.write('<script>document.domain="'+t+'"<\/script>');u.close();q.location.hash=v}}})();return j})()})(jQuery,this);(function(c){var a=["DOMMouseScroll","mousewheel"];c.event.special.mousewheel={setup:function(){if(this.addEventListener){for(var d=a.length;d;){this.addEventListener(a[--d],b,false)}}else{this.onmousewheel=b}},teardown:function(){if(this.removeEventListener){for(var d=a.length;d;){this.removeEventListener(a[--d],b,false)}}else{this.onmousewheel=null}}};c.fn.extend({mousewheel:function(d){return d?this.bind("mousewheel",d):this.trigger("mousewheel")},unmousewheel:function(d){return this.unbind("mousewheel",d)}});function b(f){var d=[].slice.call(arguments,1),g=0,e=true;f=c.event.fix(f||window.event);f.type="mousewheel";if(f.wheelDelta){g=f.wheelDelta/120}if(f.detail){g=-f.detail/3}d.unshift(f,g);return c.event.handle.apply(this,d)}})(jQuery);
