function setCookie(n,t,i){var r=new Date,u;r.setDate(r.getDate()+i),u=escape(t)+(i==null?"":"; expires="+r.toUTCString()+"; path=/"),document.cookie=n+"="+u}function getCookie(n){for(var r,u,i=document.cookie.split(";"),t=0;t<i.length;t++)if(r=i[t].substr(0,i[t].indexOf("=")),u=i[t].substr(i[t].indexOf("=")+1),r=r.replace(/^\s+|\s+$/g,""),r==n)return unescape(u)}function getDomain(n){var t;return t=n.indexOf("://")>-1?n.split("/")[2]:n.split("/")[0],t=t.split(":")[0]}function getDomain(n){var t;return t=n.indexOf("://")>-1?n.split("/")[2]:n.split("/")[0],t=t.split(":")[0]}var updateAssetLog,getNewUserGUID,logSolrUserAction;(function(n){n.fn.slides=function(t){return t=n.extend({},n.fn.slides.option,t),this.each(function(){function c(f,c,l){if(!h&&k){h=!0,t.animationStart(o+1);switch(f){case"next":s=o,u=o+1,u=a===u?0:u,p=e*2,f=-e*2,o=u;break;case"prev":s=o,u=o-1,u=u===-1?a-1:u,p=0,f=0,o=u;break;case"pagination":u=parseInt(l,10),s=n("."+t.paginationClass+" li."+t.currentClass+" a",r).attr("href").match("[^#/]+$"),u>s?(p=e*2,f=-e*2):(p=0,f=0),o=u}c==="fade"?t.crossfade?i.children(":eq("+u+")",r).css({zIndex:10}).fadeIn(t.fadeSpeed,t.fadeEasing,function(){t.autoHeight?i.animate({height:i.children(":eq("+u+")",r).outerHeight()},t.autoHeightSpeed,function(){i.children(":eq("+s+")",r).css({display:"none",zIndex:0}),i.children(":eq("+u+")",r).css({zIndex:0}),t.animationComplete(u+1),h=!1}):(i.children(":eq("+s+")",r).css({display:"none",zIndex:0}),i.children(":eq("+u+")",r).css({zIndex:0}),t.animationComplete(u+1),h=!1)}):i.children(":eq("+s+")",r).fadeOut(t.fadeSpeed,t.fadeEasing,function(){t.autoHeight?i.animate({height:i.children(":eq("+u+")",r).outerHeight()},t.autoHeightSpeed,function(){i.children(":eq("+u+")",r).fadeIn(t.fadeSpeed,t.fadeEasing)}):i.children(":eq("+u+")",r).fadeIn(t.fadeSpeed,t.fadeEasing,function(){n.browser.msie&&n(this).get(0).style.removeAttribute("filter")}),t.animationComplete(u+1),h=!1}):(i.children(":eq("+u+")").css({left:p,display:"block"}),t.autoHeight?i.animate({left:f,height:i.children(":eq("+u+")").outerHeight()},t.slideSpeed,t.slideEasing,function(){i.css({left:-e}),i.children(":eq("+u+")").css({left:e,zIndex:5}),i.children(":eq("+s+")").css({left:e,display:"none",zIndex:0}),t.animationComplete(u+1),h=!1}):i.animate({left:f},t.slideSpeed,t.slideEasing,function(){i.css({left:-e}),i.children(":eq("+u+")").css({left:e,zIndex:5}),i.children(":eq("+s+")").css({left:e,display:"none",zIndex:0}),t.animationComplete(u+1),h=!1})),t.pagination&&(n("."+t.paginationClass+" li."+t.currentClass,r).removeClass(t.currentClass),n("."+t.paginationClass+" li:eq("+u+")",r).addClass(t.currentClass))}}function it(){clearInterval(r.data("interval"))}function y(){t.pause?(clearTimeout(r.data("pause")),clearInterval(r.data("interval")),g=setTimeout(function(){clearTimeout(r.data("pause")),b=setInterval(function(){c("next",v)},t.play),r.data("interval",b)},t.pause),r.data("pause",g)):it()}var nt;n("."+t.container,n(this)).children().wrapAll('<div class="slides_control"/>');var r=n(this),i=n(".slides_control",r),a=i.children().size(),e=i.children().outerWidth(),rt=i.children().outerHeight(),f=t.start-1,v=t.effect.indexOf(",")<0?t.effect:t.effect.replace(" ","").split(",")[0],tt=t.effect.indexOf(",")<0?v:t.effect.replace(" ","").split(",")[1],u=0,s=0,w=0,o=0,k,h,l,p,ut,d,g,b;if(a<2)return n("."+t.container,n(this)).fadeIn(t.fadeSpeed,t.fadeEasing,function(){k=!0,t.slidesLoaded()}),n("."+t.next+", ."+t.prev).fadeOut(0),!1;a<2||(f<0&&(f=0),f>a&&(f=a-1),t.start&&(o=f),t.randomize&&i.randomize(),n("."+t.container,r).css({overflow:"hidden",position:"relative"}),i.children().css({position:"absolute",top:0,left:i.children().outerWidth(),zIndex:0,display:"none"}),i.css({position:"relative",width:e*3,height:rt,left:-e}),n("."+t.container,r).css({display:"block"}),t.autoHeight&&(i.children().css({height:"auto"}),i.animate({height:i.children(":eq("+f+")").outerHeight()},t.autoHeightSpeed)),t.preload&&i.find("img:eq("+f+")").length?(n("."+t.container,r).css({background:"url("+t.preloadImage+") no-repeat 50% 50%"}),nt=i.find("img:eq("+f+")").attr("src")+"?"+ +new Date,d=n("img",r).parent().attr("class")!="slides_control"?i.children(":eq(0)")[0].tagName.toLowerCase():i.find("img:eq("+f+")"),i.find("img:eq("+f+")").attr("src",nt).load(function(){i.find(d+":eq("+f+")").fadeIn(t.fadeSpeed,t.fadeEasing,function(){n(this).css({zIndex:5}),n("."+t.container,r).css({background:""}),k=!0,t.slidesLoaded()})})):i.children(":eq("+f+")").fadeIn(t.fadeSpeed,t.fadeEasing,function(){k=!0,t.slidesLoaded()}),t.bigTarget&&(i.children().css({cursor:"pointer"}),i.children().click(function(){return c("next",v),!1})),t.hoverPause&&t.play&&(i.bind("mouseover",function(){it()}),i.bind("mouseleave",function(){y()})),t.generateNextPrev&&(n("."+t.container,r).after('<a href="#" class="'+t.prev+'">Prev</a>'),n("."+t.prev,r).after('<a href="#" class="'+t.next+'">Next</a>')),n("."+t.next,r).click(function(n){n.preventDefault(),t.play&&y(),c("next",v)}),n("."+t.prev,r).click(function(n){n.preventDefault(),t.play&&y(),c("prev",v)}),t.generatePagination?(t.prependPagination?r.prepend("<ul class="+t.paginationClass+"></ul>"):r.append("<ul class="+t.paginationClass+"></ul>"),i.children().each(function(){n("."+t.paginationClass,r).append('<li><a href="#'+w+'">'+(w+1)+"</a></li>"),w++})):n("."+t.paginationClass+" li a",r).each(function(){n(this).attr("href","#"+w),w++}),n("."+t.paginationClass+" li:eq("+f+")",r).addClass(t.currentClass),n("."+t.paginationClass+" li a",r).click(function(){return t.play&&y(),l=n(this).attr("href").match("[^#/]+$"),o!=l&&c("pagination",tt,l),!1}),n("a.link",r).click(function(){return t.play&&y(),l=n(this).attr("href").match("[^#/]+$")-1,o!=l&&c("pagination",tt,l),!1}),t.play&&(b=setInterval(function(){c("next",v)},t.play),r.data("interval",b)))})},n.fn.slides.option={preload:!1,preloadImage:"/images/loading.gif",container:"slides_container",generateNextPrev:!1,next:"next",prev:"prev",pagination:!0,generatePagination:!0,prependPagination:!1,paginationClass:"pagination",currentClass:"current",fadeSpeed:350,fadeEasing:"",slideSpeed:350,slideEasing:"",start:1,effect:"slide",crossfade:!1,randomize:!1,play:0,pause:0,hoverPause:!1,autoHeight:!1,autoHeightSpeed:350,bigTarget:!1,animationStart:function(){},animationComplete:function(){},slidesLoaded:function(){}},n.fn.randomize=function(t){function r(){return Math.round(Math.random())-.5}return n(this).each(function(){var e=n(this),f=e.children(),o=f.length,u;if(o>1){for(f.hide(),u=[],i=0;i<o;i++)u[u.length]=i;u=u.sort(r),n.each(u,function(n,i){var r=f.eq(i),u=r.clone(!0);u.show().appendTo(e),t!==undefined&&t(r,u),r.remove()})}})}})(jQuery),jQuery.fn.carousel=function(n,t){var u=jQuery(this).children()[0];if(u){var o=jQuery(u).children().outerWidth("true"),h=jQuery(u).children(),s=h.length,c=o,l=Math.round(jQuery(this).width()/c),f=1,e=!1;for(i=0;i<l;i++)jQuery(u).css("width",(s+l)*o+o+"px"),jQuery(u).append(jQuery(h[i]).clone());jQuery(n).click(function(){e||(f==1?(jQuery(u).css("left","-"+s*c+"px"),f=s):f--,jQuery(u).animate({left:"+="+o,y:0,queue:!0},"swing",function(){e=!1}),e=!0)}),jQuery(t).click(function(){e||(f>s?(f=2,jQuery(u).css("left","0px")):f++,jQuery(u).animate({left:"-="+o,y:0,queue:!0},"swing",function(){e=!1}),e=!0)})}},function(n){function y(i,e,o){var h=this;h.id=o,h.options=e,h.status={animated:!1,rendered:!1,disabled:!1,focused:!1},h.elements={target:i.addClass(h.options.style.classes.target),tooltip:null,wrapper:null,content:null,contentWrapper:null,title:null,button:null,tip:null,bgiframe:null},h.cache={mouse:{},position:{},toggle:0},h.timers={},n.extend(h,h.options.api,{show:function(t){function i(){h.options.position.type!=="static"&&h.focus(),h.onShow.call(h,t),n.browser.msie&&h.elements.tooltip.get(0).style.removeAttribute("filter")}var u,r;if(!h.status.rendered)return n.fn.qtip.log.error.call(h,2,n.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"show");if(h.elements.tooltip.css("display")!=="none"||(h.elements.tooltip.stop(!0,!1),u=h.beforeShow.call(h,t),u===!1))return h;if(h.cache.toggle=1,h.options.position.type!=="static"&&h.updatePosition(t,h.options.show.effect.length>0),typeof h.options.show.solo=="object"?r=n(h.options.show.solo):h.options.show.solo===!0&&(r=n("div.qtip").not(h.elements.tooltip)),r&&r.each(function(){n(this).qtip("api").status.rendered===!0&&n(this).qtip("api").hide()}),typeof h.options.show.effect.type=="function")h.options.show.effect.type.call(h.elements.tooltip,h.options.show.effect.length),h.elements.tooltip.queue(function(){i(),n(this).dequeue()});else{switch(h.options.show.effect.type.toLowerCase()){case"fade":h.elements.tooltip.fadeIn(h.options.show.effect.length,i);break;case"slide":h.elements.tooltip.slideDown(h.options.show.effect.length,function(){i(),h.options.position.type!=="static"&&h.updatePosition(t,!0)});break;case"grow":h.elements.tooltip.show(h.options.show.effect.length,i);break;default:h.elements.tooltip.show(null,i)}h.elements.tooltip.addClass(h.options.style.classes.active)}return n.fn.qtip.log.error.call(h,1,n.fn.qtip.constants.EVENT_SHOWN,"show")},hide:function(t){function i(){h.onHide.call(h,t)}var r;if(h.status.rendered){if(h.elements.tooltip.css("display")==="none")return h}else return n.fn.qtip.log.error.call(h,2,n.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"hide");if(clearTimeout(h.timers.show),h.elements.tooltip.stop(!0,!1),r=h.beforeHide.call(h,t),r===!1)return h;if(h.cache.toggle=0,typeof h.options.hide.effect.type=="function")h.options.hide.effect.type.call(h.elements.tooltip,h.options.hide.effect.length),h.elements.tooltip.queue(function(){i(),n(this).dequeue()});else{switch(h.options.hide.effect.type.toLowerCase()){case"fade":h.elements.tooltip.fadeOut(h.options.hide.effect.length,i);break;case"slide":h.elements.tooltip.slideUp(h.options.hide.effect.length,i);break;case"grow":h.elements.tooltip.hide(h.options.hide.effect.length,i);break;default:h.elements.tooltip.hide(null,i)}h.elements.tooltip.removeClass(h.options.style.classes.active)}return n.fn.qtip.log.error.call(h,1,n.fn.qtip.constants.EVENT_HIDDEN,"hide")},updatePosition:function(t,i){var o,r,e,f,p,c,u,l,k,d,v,s,y,b;if(h.status.rendered){if(h.options.position.type=="static")return n.fn.qtip.log.error.call(h,1,n.fn.qtip.constants.CANNOT_POSITION_STATIC,"updatePosition")}else return n.fn.qtip.log.error.call(h,2,n.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updatePosition");if(r={position:{left:0,top:0},dimensions:{height:0,width:0},corner:h.options.position.corner.target},e={position:h.getPosition(),dimensions:h.getDimensions(),corner:h.options.position.corner.tooltip},h.options.position.target!=="mouse"){if(h.options.position.target.get(0).nodeName.toLowerCase()=="area"){for(f=h.options.position.target.attr("coords").split(","),o=0;o<f.length;o++)f[o]=parseInt(f[o]);p=h.options.position.target.parent("map").attr("name"),c=n('img[usemap="#'+p+'"]:first').offset(),r.position={left:Math.floor(c.left+f[0]),top:Math.floor(c.top+f[1])};switch(h.options.position.target.attr("shape").toLowerCase()){case"rect":r.dimensions={width:Math.ceil(Math.abs(f[2]-f[0])),height:Math.ceil(Math.abs(f[3]-f[1]))};break;case"circle":r.dimensions={width:f[2]+1,height:f[2]+1};break;case"poly":for(r.dimensions={width:f[0],height:f[1]},o=0;o<f.length;o++)o%2==0?(f[o]>r.dimensions.width&&(r.dimensions.width=f[o]),f[o]<f[0]&&(r.position.left=Math.floor(c.left+f[o]))):(f[o]>r.dimensions.height&&(r.dimensions.height=f[o]),f[o]<f[1]&&(r.position.top=Math.floor(c.top+f[o])));r.dimensions.width=r.dimensions.width-(r.position.left-c.left),r.dimensions.height=r.dimensions.height-(r.position.top-c.top);break;default:return n.fn.qtip.log.error.call(h,4,n.fn.qtip.constants.INVALID_AREA_SHAPE,"updatePosition")}r.dimensions.width-=2,r.dimensions.height-=2}else h.options.position.target.add(document.body).length===1?(r.position={left:n(document).scrollLeft(),top:n(document).scrollTop()},r.dimensions={height:n(window).height(),width:n(window).width()}):(r.position=typeof h.options.position.target.attr("qtip")!="undefined"?h.options.position.target.qtip("api").cache.position:h.options.position.target.offset(),r.dimensions={height:h.options.position.target.outerHeight(),width:h.options.position.target.outerWidth()});u=n.extend({},r.position),r.corner.search(/right/i)!==-1&&(u.left+=r.dimensions.width),r.corner.search(/bottom/i)!==-1&&(u.top+=r.dimensions.height),r.corner.search(/((top|bottom)Middle)|center/)!==-1&&(u.left+=r.dimensions.width/2),r.corner.search(/((left|right)Middle)|center/)!==-1&&(u.top+=r.dimensions.height/2)}else r.position=u={left:h.cache.mouse.x,top:h.cache.mouse.y},r.dimensions={height:1,width:1};if(e.corner.search(/right/i)!==-1&&(u.left-=e.dimensions.width),e.corner.search(/bottom/i)!==-1&&(u.top-=e.dimensions.height),e.corner.search(/((top|bottom)Middle)|center/)!==-1&&(u.left-=e.dimensions.width/2),e.corner.search(/((left|right)Middle)|center/)!==-1&&(u.top-=e.dimensions.height/2),l=n.browser.msie?1:0,k=n.browser.msie&&parseInt(n.browser.version.charAt(0))===6?1:0,h.options.style.border.radius>0&&(e.corner.search(/Left/)!==-1?u.left-=h.options.style.border.radius:e.corner.search(/Right/)!==-1&&(u.left+=h.options.style.border.radius),e.corner.search(/Top/)!==-1?u.top-=h.options.style.border.radius:e.corner.search(/Bottom/)!==-1&&(u.top+=h.options.style.border.radius)),l&&(e.corner.search(/top/)!==-1?u.top-=l:e.corner.search(/bottom/)!==-1&&(u.top+=l),e.corner.search(/left/)!==-1?u.left-=l:e.corner.search(/right/)!==-1&&(u.left+=l),e.corner.search(/leftMiddle|rightMiddle/)!==-1&&(u.top-=1)),h.options.position.adjust.screen===!0&&(u=w.call(h,u,r,e)),h.options.position.target==="mouse"&&h.options.position.adjust.mouse===!0&&(v=h.options.position.adjust.screen===!0&&h.elements.tip?h.elements.tip.attr("rel"):h.options.position.corner.tooltip,u.left+=v.search(/right/i)!==-1?-6:6,u.top+=v.search(/bottom/i)!==-1?-6:6),!h.elements.bgiframe&&n.browser.msie&&parseInt(n.browser.version.charAt(0))==6&&n("select, object").each(function(){s=n(this).offset(),s.bottom=s.top+n(this).height(),s.right=s.left+n(this).width(),u.top+e.dimensions.height>=s.top&&u.left+e.dimensions.width>=s.left&&a.call(h)}),u.left+=h.options.position.adjust.x,u.top+=h.options.position.adjust.y,y=h.getPosition(),u.left!=y.left||u.top!=y.top){if(b=h.beforePositionUpdate.call(h,t),b===!1)return h;h.cache.position=u,i===!0?(h.status.animated=!0,h.elements.tooltip.animate(u,200,"swing",function(){h.status.animated=!1})):h.elements.tooltip.css(u),h.onPositionUpdate.call(h,t),typeof t!="undefined"&&t.type&&t.type!=="mousemove"&&n.fn.qtip.log.error.call(h,1,n.fn.qtip.constants.EVENT_POSITION_UPDATED,"updatePosition")}return h},updateWidth:function(t){var i;if(h.status.rendered){if(t&&typeof t!="number")return n.fn.qtip.log.error.call(h,2,"newWidth must be of type number","updateWidth")}else return n.fn.qtip.log.error.call(h,2,n.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateWidth");return i=h.elements.contentWrapper.siblings().add(h.elements.tip).add(h.elements.button),t||(typeof h.options.style.width.value=="number"?t=h.options.style.width.value:(h.elements.tooltip.css({width:"auto"}),i.hide(),n.browser.msie&&h.elements.wrapper.add(h.elements.contentWrapper.children()).css({zoom:"normal"}),t=h.getDimensions().width+1,h.options.style.width.value||(t>h.options.style.width.max&&(t=h.options.style.width.max),t<h.options.style.width.min&&(t=h.options.style.width.min)))),t%2!=0&&(t-=1),h.elements.tooltip.width(t),i.show(),h.options.style.border.radius&&h.elements.tooltip.find(".qtip-betweenCorners").each(function(){n(this).width(t-h.options.style.border.radius*2)}),n.browser.msie&&(h.elements.wrapper.add(h.elements.contentWrapper.children()).css({zoom:"1"}),h.elements.wrapper.width(t),h.elements.bgiframe&&h.elements.bgiframe.width(t).height(h.getDimensions.height)),n.fn.qtip.log.error.call(h,1,n.fn.qtip.constants.EVENT_WIDTH_UPDATED,"updateWidth")},updateStyle:function(i){var u,v,e,o,a;if(h.status.rendered){if(typeof i!="string"||!n.fn.qtip.styles[i])return n.fn.qtip.log.error.call(h,2,n.fn.qtip.constants.STYLE_NOT_DEFINED,"updateStyle")}else return n.fn.qtip.log.error.call(h,2,n.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateStyle");return h.options.style=f.call(h,n.fn.qtip.styles[i],h.options.user.style),h.elements.content.css(t(h.options.style)),h.options.content.title.text!==!1&&h.elements.title.css(t(h.options.style.title,!0)),h.elements.contentWrapper.css({borderColor:h.options.style.border.color}),h.options.style.tip.corner!==!1&&(n("<canvas>").get(0).getContext?(u=h.elements.tooltip.find(".qtip-tip canvas:first"),e=u.get(0).getContext("2d"),e.clearRect(0,0,300,300),o=u.parent("div[rel]:first").attr("rel"),a=r(o,h.options.style.tip.size.width,h.options.style.tip.size.height),l.call(h,u,a,h.options.style.tip.color||h.options.style.border.color)):n.browser.msie&&(u=h.elements.tooltip.find('.qtip-tip [nodeName="shape"]'),u.attr("fillcolor",h.options.style.tip.color||h.options.style.border.color))),h.options.style.border.radius>0&&(h.elements.tooltip.find(".qtip-betweenCorners").css({backgroundColor:h.options.style.border.color}),n("<canvas>").get(0).getContext?(v=s(h.options.style.border.radius),h.elements.tooltip.find(".qtip-wrapper canvas").each(function(){e=n(this).get(0).getContext("2d"),e.clearRect(0,0,300,300),o=n(this).parent("div[rel]:first").attr("rel"),c.call(h,n(this),v[o],h.options.style.border.radius,h.options.style.border.color)})):n.browser.msie&&h.elements.tooltip.find('.qtip-wrapper [nodeName="arc"]').each(function(){n(this).attr("fillcolor",h.options.style.border.color)})),n.fn.qtip.log.error.call(h,1,n.fn.qtip.constants.EVENT_STYLE_UPDATED,"updateStyle")},updateContent:function(t,i){function e(){h.updateWidth(),i!==!1&&(h.options.position.type!=="static"&&h.updatePosition(h.elements.tooltip.is(":visible"),!0),h.options.style.tip.corner!==!1&&u.call(h))}var f,r,o;if(h.status.rendered){if(!t)return n.fn.qtip.log.error.call(h,2,n.fn.qtip.constants.NO_CONTENT_PROVIDED,"updateContent")}else return n.fn.qtip.log.error.call(h,2,n.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateContent");if(f=h.beforeContentUpdate.call(h,t),typeof f=="string")t=f;else if(f===!1)return;return n.browser.msie&&h.elements.contentWrapper.children().css({zoom:"normal"}),t.jquery&&t.length>0?t.clone(!0).appendTo(h.elements.content).show():h.elements.content.html(t),r=h.elements.content.find("img[complete=false]"),r.length>0?(o=0,r.each(function(){n('<img src="'+n(this).attr("src")+'" />').load(function(){++o==r.length&&e()})})):e(),h.onContentUpdate.call(h),n.fn.qtip.log.error.call(h,1,n.fn.qtip.constants.EVENT_CONTENT_UPDATED,"loadContent")},loadContent:function(t,i,r){function u(t){h.onContentLoad.call(h),n.fn.qtip.log.error.call(h,1,n.fn.qtip.constants.EVENT_CONTENT_LOADED,"loadContent"),h.updateContent(t)}var f;return h.status.rendered?(f=h.beforeContentLoad.call(h),f===!1)?h:(r=="post"?n.post(t,i,u):n.get(t,i,u),h):n.fn.qtip.log.error.call(h,2,n.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"loadContent")},updateTitle:function(t){if(h.status.rendered){if(!t)return n.fn.qtip.log.error.call(h,2,n.fn.qtip.constants.NO_CONTENT_PROVIDED,"updateTitle")}else return n.fn.qtip.log.error.call(h,2,n.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateTitle");return(returned=h.beforeTitleUpdate.call(h),returned===!1)?h:(h.elements.button&&(h.elements.button=h.elements.button.clone(!0)),h.elements.title.html(t),h.elements.button&&h.elements.title.prepend(h.elements.button),h.onTitleUpdate.call(h),n.fn.qtip.log.error.call(h,1,n.fn.qtip.constants.EVENT_TITLE_UPDATED,"updateTitle"))},focus:function(t){var f,r,i,u;if(h.status.rendered){if(h.options.position.type=="static")return n.fn.qtip.log.error.call(h,1,n.fn.qtip.constants.CANNOT_FOCUS_STATIC,"focus")}else return n.fn.qtip.log.error.call(h,2,n.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"focus");if(f=parseInt(h.elements.tooltip.css("z-index")),r=6e3+n("div.qtip[qtip]").length-1,!h.status.focused&&f!==r){if(u=h.beforeFocus.call(h,t),u===!1)return h;n("div.qtip[qtip]").not(h.elements.tooltip).each(function(){n(this).qtip("api").status.rendered===!0&&(i=parseInt(n(this).css("z-index")),typeof i=="number"&&i>-1&&n(this).css({zIndex:parseInt(n(this).css("z-index"))-1}),n(this).qtip("api").status.focused=!1)}),h.elements.tooltip.css({zIndex:r}),h.status.focused=!0,h.onFocus.call(h,t),n.fn.qtip.log.error.call(h,1,n.fn.qtip.constants.EVENT_FOCUSED,"focus")}return h},disable:function(t){return h.status.rendered?(t?h.status.disabled?n.fn.qtip.log.error.call(h,1,n.fn.qtip.constants.TOOLTIP_ALREADY_DISABLED,"disable"):(h.status.disabled=!0,n.fn.qtip.log.error.call(h,1,n.fn.qtip.constants.EVENT_DISABLED,"disable")):h.status.disabled?(h.status.disabled=!1,n.fn.qtip.log.error.call(h,1,n.fn.qtip.constants.EVENT_ENABLED,"disable")):n.fn.qtip.log.error.call(h,1,n.fn.qtip.constants.TOOLTIP_ALREADY_ENABLED,"disable"),h):n.fn.qtip.log.error.call(h,2,n.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"disable")},destroy:function(){var i,r,t;if(r=h.beforeDestroy.call(h),r===!1)return h;if(h.status.rendered?(h.options.show.when.target.unbind("mousemove.qtip",h.updatePosition),h.options.show.when.target.unbind("mouseout.qtip",h.hide),h.options.show.when.target.unbind(h.options.show.when.event+".qtip"),h.options.hide.when.target.unbind(h.options.hide.when.event+".qtip"),h.elements.tooltip.unbind(h.options.hide.when.event+".qtip"),h.elements.tooltip.unbind("mouseover.qtip",h.focus),h.elements.tooltip.remove()):h.options.show.when.target.unbind(h.options.show.when.event+".qtip-create"),typeof h.elements.target.data("qtip")=="object"&&(t=h.elements.target.data("qtip").interfaces,typeof t=="object"&&t.length>0))for(i=0;i<t.length-1;i++)t[i].id==h.id&&t.splice(i,1);return delete n.fn.qtip.interfaces[h.id],typeof t=="object"&&t.length>0?h.elements.target.data("qtip").current=t.length-1:h.elements.target.removeData("qtip"),h.onDestroy.call(h),n.fn.qtip.log.error.call(h,1,n.fn.qtip.constants.EVENT_DESTROYED,"destroy"),h.elements.target},getPosition:function(){var t,i;return h.status.rendered?(t=h.elements.tooltip.css("display")!=="none"?!1:!0,t&&h.elements.tooltip.css({visiblity:"hidden"}).show(),i=h.elements.tooltip.offset(),t&&h.elements.tooltip.css({visiblity:"visible"}).hide(),i):n.fn.qtip.log.error.call(h,2,n.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"getPosition")},getDimensions:function(){var t,i;return h.status.rendered?(t=h.elements.tooltip.is(":visible")?!1:!0,t&&h.elements.tooltip.css({visiblity:"hidden"}).show(),i={height:h.elements.tooltip.outerHeight(),width:h.elements.tooltip.outerWidth()},t&&h.elements.tooltip.css({visiblity:"visible"}).hide(),i):n.fn.qtip.log.error.call(h,2,n.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"getDimensions")}})}function h(){var i,h,r,o,u,f,s;i=this,i.beforeRender.call(i),i.status.rendered=!0,i.elements.tooltip='<div qtip="'+i.id+'" class="qtip '+(i.options.style.classes.tooltip||i.options.style)+'"style="display:none; -moz-border-radius:0; -webkit-border-radius:0; border-radius:0;position:'+i.options.position.type+';">  <div class="qtip-wrapper" style="position:relative; overflow:hidden; text-align:left;">    <div class="qtip-contentWrapper" style="overflow:hidden;">       <div class="qtip-content '+i.options.style.classes.content+'"></div></div></div></div>',i.elements.tooltip=n(i.elements.tooltip),i.elements.tooltip.appendTo(i.options.position.container),i.elements.tooltip.data("qtip",{current:0,interfaces:[i]}),i.elements.wrapper=i.elements.tooltip.children("div:first"),i.elements.contentWrapper=i.elements.wrapper.children("div:first").css({background:i.options.style.background}),i.elements.content=i.elements.contentWrapper.children("div:first").css(t(i.options.style)),n.browser.msie&&i.elements.wrapper.add(i.elements.content).css({zoom:1}),i.options.hide.when.event=="unfocus"&&i.elements.tooltip.attr("unfocus",!0),typeof i.options.style.width.value=="number"&&i.updateWidth(),n("<canvas>").get(0).getContext||n.browser.msie?(i.options.style.border.radius>0?v.call(i):i.elements.contentWrapper.css({border:i.options.style.border.width+"px solid "+i.options.style.border.color}),i.options.style.tip.corner!==!1&&e.call(i)):(i.elements.contentWrapper.css({border:i.options.style.border.width+"px solid "+i.options.style.border.color}),i.options.style.border.radius=0,i.options.style.tip.corner=!1,n.fn.qtip.log.error.call(i,2,n.fn.qtip.constants.CANVAS_VML_NOT_SUPPORTED,"render")),typeof i.options.content.text=="string"&&i.options.content.text.length>0||i.options.content.text.jquery&&i.options.content.text.length>0?r=i.options.content.text:typeof i.elements.target.attr("title")=="string"&&i.elements.target.attr("title").length>0?(r=i.elements.target.attr("title").replace("\\n","<br />"),i.elements.target.attr("title","")):typeof i.elements.target.attr("alt")=="string"&&i.elements.target.attr("alt").length>0?(r=i.elements.target.attr("alt").replace("\\n","<br />"),i.elements.target.attr("alt","")):(r=" ",n.fn.qtip.log.error.call(i,1,n.fn.qtip.constants.NO_VALID_CONTENT,"render")),i.options.content.title.text!==!1&&p.call(i),i.updateContent(r),b.call(i),i.options.show.ready===!0&&i.show(),i.options.content.url!==!1&&(o=i.options.content.url,u=i.options.content.data,f=i.options.content.method||"get",i.loadContent(o,u,f)),i.onRender.call(i),n.fn.qtip.log.error.call(i,1,n.fn.qtip.constants.EVENT_RENDERED,"render")}function v(){var i,r,o,t,e,f,u,l,p,h,w,b,a,v,y;i=this,i.elements.wrapper.find(".qtip-borderBottom, .qtip-borderTop").remove(),o=i.options.style.border.width,t=i.options.style.border.radius,e=i.options.style.border.color||i.options.style.tip.color,f=s(t),u={};for(r in f)u[r]='<div rel="'+r+'" style="'+(r.search(/Left/)!==-1?"left":"right")+":0; position:absolute; height:"+t+"px; width:"+t+'px; overflow:hidden; line-height:0.1px; font-size:1px">',n("<canvas>").get(0).getContext?u[r]+='<canvas height="'+t+'" width="'+t+'" style="vertical-align: top"></canvas>':n.browser.msie&&(l=t*2+3,u[r]+='<v:arc stroked="false" fillcolor="'+e+'" startangle="'+f[r][0]+'" endangle="'+f[r][1]+'" style="width:'+l+"px; height:"+l+"px; margin-top:"+(r.search(/bottom/)!==-1?-2:-1)+"px; margin-left:"+(r.search(/Right/)!==-1?f[r][2]-3.5:-1)+'px; vertical-align:top; display:inline-block; behavior:url(#default#VML)"></v:arc>'),u[r]+="</div>";p=i.getDimensions().width-Math.max(o,t)*2,h='<div class="qtip-betweenCorners" style="height:'+t+"px; width:"+p+"px; overflow:hidden; background-color:"+e+'; line-height:0.1px; font-size:1px;">',w='<div class="qtip-borderTop" dir="ltr" style="height:'+t+"px; margin-left:"+t+'px; line-height:0.1px; font-size:1px; padding:0;">'+u.topLeft+u.topRight+h,i.elements.wrapper.prepend(w),b='<div class="qtip-borderBottom" dir="ltr" style="height:'+t+"px; margin-left:"+t+'px; line-height:0.1px; font-size:1px; padding:0;">'+u.bottomLeft+u.bottomRight+h,i.elements.wrapper.append(b),n("<canvas>").get(0).getContext?i.elements.wrapper.find("canvas").each(function(){a=f[n(this).parent("[rel]:first").attr("rel")],c.call(i,n(this),a,t,e)}):n.browser.msie&&i.elements.tooltip.append('<v:image style="behavior:url(#default#VML);"></v:image>'),v=Math.max(t,t+(o-t)),y=Math.max(o-t,0),i.elements.contentWrapper.css({border:"0px solid "+e,borderWidth:y+"px "+v+"px"})}function c(n,t,i,r){var u=n.get(0).getContext("2d");u.fillStyle=r,u.beginPath(),u.arc(t[0],t[1],i,0,Math.PI*2,!1),u.fill()}function e(t){var i,o,f,s,e;(i=this,i.elements.tip!==null&&i.elements.tip.remove(),o=i.options.style.tip.color||i.options.style.border.color,i.options.style.tip.corner!==!1)&&(t||(t=i.options.style.tip.corner),f=r(t,i.options.style.tip.size.width,i.options.style.tip.size.height),i.elements.tip='<div class="'+i.options.style.classes.tip+'" dir="ltr" rel="'+t+'" style="position:absolute; height:'+i.options.style.tip.size.height+"px; width:"+i.options.style.tip.size.width+'px; margin:0 auto; line-height:0.1px; font-size:1px;">',n("<canvas>").get(0).getContext?i.elements.tip+='<canvas height="'+i.options.style.tip.size.height+'" width="'+i.options.style.tip.size.width+'"></canvas>':n.browser.msie&&(s=i.options.style.tip.size.width+","+i.options.style.tip.size.height,e="m"+f[0][0]+","+f[0][1],e+=" l"+f[1][0]+","+f[1][1],e+=" "+f[2][0]+","+f[2][1],e+=" xe",i.elements.tip+='<v:shape fillcolor="'+o+'" stroked="false" filled="true" path="'+e+'" coordsize="'+s+'" style="width:'+i.options.style.tip.size.width+"px; height:"+i.options.style.tip.size.height+"px; line-height:0.1px; display:inline-block; behavior:url(#default#VML); vertical-align:"+(t.search(/top/)!==-1?"bottom":"top")+'"></v:shape>',i.elements.tip+='<v:image style="behavior:url(#default#VML);"></v:image>',i.elements.contentWrapper.css("position","relative")),i.elements.tooltip.prepend(i.elements.tip+"</div>"),i.elements.tip=i.elements.tooltip.find("."+i.options.style.classes.tip).eq(0),n("<canvas>").get(0).getContext&&l.call(i,i.elements.tip.find("canvas:first"),f,o),t.search(/top/)!==-1&&n.browser.msie&&parseInt(n.browser.version.charAt(0))===6&&i.elements.tip.css({marginTop:-4}),u.call(i,t))}function l(n,t,i){var r=n.get(0).getContext("2d");r.fillStyle=i,r.beginPath(),r.moveTo(t[0][0],t[0][1]),r.lineTo(t[1][0],t[1][1]),r.lineTo(t[2][0],t[2][1]),r.fill()}function u(t){var i,r,f,e,u;(i=this,i.options.style.tip.corner!==!1&&i.elements.tip)&&(t||(t=i.elements.tip.attr("rel")),r=positionAdjust=n.browser.msie?1:0,i.elements.tip.css(t.match(/left|right|top|bottom/)[0],0),t.search(/top|bottom/)!==-1?(n.browser.msie&&(positionAdjust=parseInt(n.browser.version.charAt(0))===6?t.search(/top/)!==-1?-3:1:t.search(/top/)!==-1?1:2),t.search(/Middle/)!==-1?i.elements.tip.css({left:"50%",marginLeft:-(i.options.style.tip.size.width/2)}):t.search(/Left/)!==-1?i.elements.tip.css({left:i.options.style.border.radius-r}):t.search(/Right/)!==-1&&i.elements.tip.css({right:i.options.style.border.radius+r}),t.search(/top/)!==-1?i.elements.tip.css({top:-positionAdjust}):i.elements.tip.css({bottom:positionAdjust})):t.search(/left|right/)!==-1&&(n.browser.msie&&(positionAdjust=parseInt(n.browser.version.charAt(0))===6?1:t.search(/left/)!==-1?1:2),t.search(/Middle/)!==-1?i.elements.tip.css({top:"50%",marginTop:-(i.options.style.tip.size.height/2)}):t.search(/Top/)!==-1?i.elements.tip.css({top:i.options.style.border.radius-r}):t.search(/Bottom/)!==-1&&i.elements.tip.css({bottom:i.options.style.border.radius+r}),t.search(/left/)!==-1?i.elements.tip.css({left:-positionAdjust}):i.elements.tip.css({right:positionAdjust})),f="padding-"+t.match(/left|right|top|bottom/)[0],e=i.options.style.tip.size[f.search(/left|right/)!==-1?"width":"height"],i.elements.tooltip.css("padding",0),i.elements.tooltip.css(f,e),n.browser.msie&&parseInt(n.browser.version.charAt(0))==6&&(u=parseInt(i.elements.tip.css("margin-top"))||0,u+=parseInt(i.elements.content.css("margin-top"))||0,i.elements.tip.css({marginTop:u})))}function p(){var i=this;i.elements.title!==null&&i.elements.title.remove(),i.elements.title=n('<div class="'+i.options.style.classes.title+'">').css(t(i.options.style.title,!0)).css({zoom:n.browser.msie?1:0}).prependTo(i.elements.contentWrapper),i.options.content.title.text&&i.updateTitle.call(i,i.options.content.title.text),i.options.content.title.button!==!1&&typeof i.options.content.title.button=="string"&&(i.elements.button=n('<a class="'+i.options.style.classes.button+'" style="float:right; position: relative"></a>').css(t(i.options.style.button,!0)).html(i.options.content.title.button).prependTo(i.elements.title).click(function(n){i.status.disabled||i.hide(n)}))}function b(){function o(r){t.status.disabled!==!0&&(t.options.hide.when.event=="inactive"&&(n(f).each(function(){i.bind(this+".qtip-inactive",u),t.elements.content.bind(this+".qtip-inactive",u)}),u()),clearTimeout(t.timers.show),clearTimeout(t.timers.hide),t.timers.show=setTimeout(function(){t.show(r)},t.options.show.delay))}function e(i){if(t.status.disabled!==!0){if(t.options.hide.fixed===!0&&t.options.hide.when.event.search(/mouse(out|leave)/i)!==-1&&n(i.relatedTarget).parents("div.qtip[qtip]").length>0)return i.stopPropagation(),i.preventDefault(),clearTimeout(t.timers.hide),!1;clearTimeout(t.timers.show),clearTimeout(t.timers.hide),t.elements.tooltip.stop(!0,!0),t.timers.hide=setTimeout(function(){t.hide(i)},t.options.hide.delay)}}var t,r,i,f;if(t=this,r=t.options.show.when.target,i=t.options.hide.when.target,t.options.hide.fixed&&(i=i.add(t.elements.tooltip)),t.options.hide.when.event=="inactive"){f=["click","dblclick","mousedown","mouseup","mousemove","mouseout","mouseenter","mouseleave","mouseover"];function u(r){t.status.disabled!==!0&&(clearTimeout(t.timers.inactive),t.timers.inactive=setTimeout(function(){n(f).each(function(){i.unbind(this+".qtip-inactive"),t.elements.content.unbind(this+".qtip-inactive")}),t.hide(r)},t.options.hide.delay))}}else t.options.hide.fixed===!0&&t.elements.tooltip.bind("mouseover.qtip",function(){t.status.disabled!==!0&&clearTimeout(t.timers.hide)});t.options.show.when.target.add(t.options.hide.when.target).length===1&&t.options.show.when.event==t.options.hide.when.event&&t.options.hide.when.event!=="inactive"||t.options.hide.when.event=="unfocus"?(t.cache.toggle=0,r.bind(t.options.show.when.event+".qtip",function(n){t.cache.toggle==0?o(n):e(n)})):(r.bind(t.options.show.when.event+".qtip",o),t.options.hide.when.event!=="inactive"&&i.bind(t.options.hide.when.event+".qtip",e)),t.options.position.type.search(/(fixed|absolute)/)!==-1&&t.elements.tooltip.bind("mouseover.qtip",t.focus),t.options.position.target==="mouse"&&t.options.position.type!=="static"&&r.bind("mousemove.qtip",function(n){t.cache.mouse={x:n.pageX,y:n.pageY},t.status.disabled===!1&&t.options.position.adjust.mouse===!0&&t.options.position.type!=="static"&&t.elements.tooltip.css("display")!=="none"&&t.updatePosition(n)})}function w(t,i,r){var f,u,h,o,s,c;return(f=this,r.corner=="center")?i.position:(u=n.extend({},t),o={x:!1,y:!1},s={left:u.left<n.fn.qtip.cache.screen.scroll.left,right:u.left+r.dimensions.width+2>=n.fn.qtip.cache.screen.width+n.fn.qtip.cache.screen.scroll.left,top:u.top<n.fn.qtip.cache.screen.scroll.top,bottom:u.top+r.dimensions.height+2>=n.fn.qtip.cache.screen.height+n.fn.qtip.cache.screen.scroll.top},h={left:s.left&&(r.corner.search(/right/i)!=-1||r.corner.search(/right/i)==-1&&!s.right),right:s.right&&(r.corner.search(/left/i)!=-1||r.corner.search(/left/i)==-1&&!s.left),top:s.top&&r.corner.search(/top/i)==-1,bottom:s.bottom&&r.corner.search(/bottom/i)==-1},h.left?(u.left=f.options.position.target!=="mouse"?i.position.left+i.dimensions.width:f.cache.mouse.x,o.x="Left"):h.right&&(u.left=f.options.position.target!=="mouse"?i.position.left-r.dimensions.width:f.cache.mouse.x-r.dimensions.width,o.x="Right"),h.top?(u.top=f.options.position.target!=="mouse"?i.position.top+i.dimensions.height:f.cache.mouse.y,o.y="top"):h.bottom&&(u.top=f.options.position.target!=="mouse"?i.position.top-r.dimensions.height:f.cache.mouse.y-r.dimensions.height,o.y="bottom"),u.left<0&&(u.left=t.left,o.x=!1),u.top<0&&(u.top=t.top,o.y=!1),f.options.style.tip.corner!==!1&&(u.corner=new String(r.corner),o.x!==!1&&(u.corner=u.corner.replace(/Left|Right|Middle/,o.x)),o.y!==!1&&(u.corner=u.corner.replace(/top|bottom/,o.y)),u.corner!==f.elements.tip.attr("rel")&&e.call(f,u.corner)),u)}function t(t,i){var u,r;u=n.extend(!0,{},t);for(r in u)i===!0&&r.search(/(tip|classes)/i)!==-1?delete u[r]:i||r.search(/(width|border|tip|title|classes|user)/i)===-1||delete u[r];return u}function o(n){return typeof n.tip!="object"&&(n.tip={corner:n.tip}),typeof n.tip.size!="object"&&(n.tip.size={width:n.tip.size,height:n.tip.size}),typeof n.border!="object"&&(n.border={width:n.border}),typeof n.width!="object"&&(n.width={value:n.width}),typeof n.width.max=="string"&&(n.width.max=parseInt(n.width.max.replace(/([0-9]+)/i,"$1"))),typeof n.width.min=="string"&&(n.width.min=parseInt(n.width.min.replace(/([0-9]+)/i,"$1"))),typeof n.tip.size.x=="number"&&(n.tip.size.width=n.tip.size.x,delete n.tip.size.x),typeof n.tip.size.y=="number"&&(n.tip.size.height=n.tip.size.y,delete n.tip.size.y),n}function f(){for(var i,t,u,f=this,e=[!0,{}],r=0;r<arguments.length;r++)e.push(arguments[r]);for(i=[n.extend.apply(n,e)];typeof i[0].name=="string";)i.unshift(o(n.fn.qtip.styles[i[0].name]));return i.unshift(!0,{classes:{tooltip:"qtip-"+(arguments[0].name||"defaults")}},n.fn.qtip.styles.defaults),t=n.extend.apply(n,i),u=n.browser.msie?1:0,t.tip.size.width+=u,t.tip.size.height+=u,t.tip.size.width%2>0&&(t.tip.size.width+=1),t.tip.size.height%2>0&&(t.tip.size.height+=1),t.tip.corner===!0&&(t.tip.corner=f.options.position.corner.tooltip==="center"?!1:f.options.position.corner.tooltip),t}function r(n,t,i){var r={bottomRight:[[0,0],[t,i],[t,0]],bottomLeft:[[0,0],[t,0],[0,i]],topRight:[[0,i],[t,0],[t,i]],topLeft:[[0,0],[0,i],[t,i]],topMiddle:[[0,i],[t/2,0],[t,i]],bottomMiddle:[[0,0],[t,0],[t/2,i]],rightMiddle:[[0,0],[t,i/2],[0,i]],leftMiddle:[[t,0],[t,i],[0,i/2]]};return r.leftTop=r.bottomRight,r.rightTop=r.bottomLeft,r.leftBottom=r.topRight,r.rightBottom=r.topLeft,r[n]}function s(t){var i;return n("<canvas>").get(0).getContext?i={topLeft:[t,t],topRight:[0,t],bottomLeft:[t,0],bottomRight:[0,0]}:n.browser.msie&&(i={topLeft:[-90,90,0],topRight:[-90,90,-t],bottomLeft:[90,270,0],bottomRight:[90,270,-t]}),i}function a(){var n,i,t;n=this,t=n.getDimensions(),i='<iframe class="qtip-bgiframe" frameborder="0" tabindex="-1" src="javascript:false" style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=\'0\'); border: 1px solid red; height:'+t.height+"px; width:"+t.width+'px" />',n.elements.bgiframe=n.elements.wrapper.prepend(i).children(".qtip-bgiframe:first")}n.fn.qtip=function(t,i){var u,l,e,c,v,s,r,a;if(typeof t=="string"){if(typeof n(this).data("qtip")!="object"&&n.fn.qtip.log.error.call(self,1,n.fn.qtip.constants.NO_TOOLTIP_PRESENT,!1),t=="api")return n(this).data("qtip").interfaces[n(this).data("qtip").current];if(t=="interfaces")return n(this).data("qtip").interfaces}else t||(t={}),(typeof t.content!="object"||t.content.jquery&&t.content.length>0)&&(t.content={text:t.content}),typeof t.content.title!="object"&&(t.content.title={text:t.content.title}),typeof t.position!="object"&&(t.position={corner:t.position}),typeof t.position.corner!="object"&&(t.position.corner={target:t.position.corner,tooltip:t.position.corner}),typeof t.show!="object"&&(t.show={when:t.show}),typeof t.show.when!="object"&&(t.show.when={event:t.show.when}),typeof t.show.effect!="object"&&(t.show.effect={type:t.show.effect}),typeof t.hide!="object"&&(t.hide={when:t.hide}),typeof t.hide.when!="object"&&(t.hide.when={event:t.hide.when}),typeof t.hide.effect!="object"&&(t.hide.effect={type:t.hide.effect}),typeof t.style!="object"&&(t.style={name:t.style}),t.style=o(t.style),c=n.extend(!0,{},n.fn.qtip.defaults,t),c.style=f.call({options:c},c.style),c.user=n.extend(!0,{},t);return n(this).each(function(){if(typeof t=="string"){if(s=t.toLowerCase(),e=n(this).qtip("interfaces"),typeof e=="object")if(i===!0&&s=="destroy")while(e.length>0)e[e.length-1].destroy();else for(i!==!0&&(e=[n(this).qtip("api")]),u=0;u<e.length;u++)s=="destroy"?e[u].destroy():e[u].status.rendered===!0&&(s=="show"?e[u].show():s=="hide"?e[u].hide():s=="focus"?e[u].focus():s=="disable"?e[u].disable(!0):s=="enable"&&e[u].disable(!1))}else{for(r=n.extend(!0,{},c),r.hide.effect.length=c.hide.effect.length,r.show.effect.length=c.show.effect.length,r.position.container===!1&&(r.position.container=n(document.body)),r.position.target===!1&&(r.position.target=n(this)),r.show.when.target===!1&&(r.show.when.target=n(this)),r.hide.when.target===!1&&(r.hide.when.target=n(this)),l=n.fn.qtip.interfaces.length,u=0;u<l;u++)if(typeof n.fn.qtip.interfaces[u]=="undefined"){l=u;break}v=new y(n(this),r,l),n.fn.qtip.interfaces[l]=v,typeof n(this).data("qtip")=="object"?(typeof n(this).attr("qtip")=="undefined"&&(n(this).data("qtip").current=n(this).data("qtip").interfaces.length),n(this).data("qtip").interfaces.push(v)):n(this).data("qtip",{current:0,interfaces:[v]}),r.content.prerender===!1&&r.show.when.event!==!1&&r.show.ready!==!0?r.show.when.target.bind(r.show.when.event+".qtip-"+l+"-create",{qtip:l},function(t){a=n.fn.qtip.interfaces[t.data.qtip],a.options.show.when.target.unbind(a.options.show.when.event+".qtip-"+t.data.qtip+"-create"),a.cache.mouse={x:t.pageX,y:t.pageY},h.call(a),a.options.show.when.target.trigger(a.options.show.when.event)}):(v.cache.mouse={x:r.show.when.target.offset().left,y:r.show.when.target.offset().top},h.call(v))}})},n(document).ready(function(){n.fn.qtip.cache={screen:{scroll:{left:n(window).scrollLeft(),top:n(window).scrollTop()},width:n(window).width(),height:n(window).height()}};var t;n(window).bind("resize scroll",function(r){clearTimeout(t),t=setTimeout(function(){for(r.type==="scroll"?n.fn.qtip.cache.screen.scroll={left:n(window).scrollLeft(),top:n(window).scrollTop()}:(n.fn.qtip.cache.screen.width=n(window).width(),n.fn.qtip.cache.screen.height=n(window).height()),i=0;i<n.fn.qtip.interfaces.length;i++){var t=n.fn.qtip.interfaces[i];t.status.rendered===!0&&(t.options.position.type!=="static"||t.options.position.adjust.scroll&&r.type==="scroll"||t.options.position.adjust.resize&&r.type==="resize")&&t.updatePosition(r,!0)}},100)}),n(document).bind("mousedown.qtip",function(t){n(t.target).parents("div.qtip").length===0&&n(".qtip[unfocus]").each(function(){var i=n(this).qtip("api");n(this).is(":visible")&&!i.status.disabled&&n(t.target).add(i.elements.target).length>1&&i.hide(t)})})}),n.fn.qtip.interfaces=[],n.fn.qtip.log={error:function(){return this}},n.fn.qtip.constants={},n.fn.qtip.defaults={content:{prerender:!1,text:!1,url:!1,data:null,title:{text:!1,button:!1}},position:{target:!1,corner:{target:"bottomRight",tooltip:"topLeft"},adjust:{x:0,y:0,mouse:!0,screen:!1,scroll:!0,resize:!0},type:"absolute",container:!1},show:{when:{target:!1,event:"mouseover"},effect:{type:"fade",length:100},delay:140,solo:!1,ready:!1},hide:{when:{target:!1,event:"mouseout"},effect:{type:"fade",length:100},delay:0,fixed:!1},api:{beforeRender:function(){},onRender:function(){},beforePositionUpdate:function(){},onPositionUpdate:function(){},beforeShow:function(){},onShow:function(){},beforeHide:function(){},onHide:function(){},beforeContentUpdate:function(){},onContentUpdate:function(){},beforeContentLoad:function(){},onContentLoad:function(){},beforeTitleUpdate:function(){},onTitleUpdate:function(){},beforeDestroy:function(){},onDestroy:function(){},beforeFocus:function(){},onFocus:function(){}}},n.fn.qtip.styles={defaults:{background:"white",color:"#111",overflow:"hidden",textAlign:"left",width:{min:0,max:250},padding:"5px 9px",border:{width:1,radius:0,color:"#d3d3d3"},tip:{corner:!1,color:!1,size:{width:13,height:13},opacity:1},title:{background:"#e1e1e1",fontWeight:"bold",padding:"7px 12px"},button:{cursor:"pointer"},classes:{target:"",tip:"qtip-tip",title:"qtip-title",button:"qtip-button",content:"qtip-content",active:"qtip-active"}},cream:{border:{width:3,radius:0,color:"#F9E98E"},title:{background:"#F0DE7D",color:"#A27D35"},background:"#FBF7AA",color:"#A27D35",classes:{tooltip:"qtip-cream"}},light:{border:{width:3,radius:0,color:"#E2E2E2"},title:{background:"#f1f1f1",color:"#454545"},background:"white",color:"#454545",classes:{tooltip:"qtip-light"}},dark:{border:{width:3,radius:0,color:"#303030"},title:{background:"#404040",color:"#f3f3f3"},background:"#505050",color:"#f3f3f3",classes:{tooltip:"qtip-dark"}},red:{border:{width:3,radius:0,color:"#CE6F6F"},title:{background:"#f28279",color:"#9C2F2F"},background:"#F79992",color:"#9C2F2F",classes:{tooltip:"qtip-red"}},green:{border:{width:3,radius:0,color:"#A9DB66"},title:{background:"#b9db8c",color:"#58792E"},background:"#CDE6AC",color:"#58792E",classes:{tooltip:"qtip-green"}},blue:{border:{width:3,radius:0,color:"#ADD9ED"},title:{background:"#D0E9F5",color:"#5E99BD"},background:"#E5F6FE",color:"#4D9FBF",classes:{tooltip:"qtip-blue"}}}}(jQuery),$(document).ready(function(){function t(n,t,i){$.ajax({url:t,dataType:"html",async:!0,error:function(){},success:function(t){n.html(t),i&&innerPanel.slideDown(500)}})}function n(){var t=location.pathname.substring(1),n=t.split("/");t&&$('#navigation li a[href="'+n[n.length-1]+'"]').addClass("menuItemHrefSelected")}n(),$("html").click(function(){$("div.detailPanel:visible").slideUp(500),$("#navigation li").removeClass("menuItemHrefSelected"),$("#navigation li a").removeClass("menuItemHrefSelected"),n()}),$(".btnDetailPanel").click(function(){var u,i,r;return liElm=$(this).parents("li"),innerPanel=$(this).parents("li").find("div.detailPanel"),elmHref=$(this).parents("li").find("div a"),u=innerPanel.is(":visible"),u?(innerPanel.hide(0),liElm.removeClass("menuItemHrefSelected"),elmHref.removeClass("menuItemHrefSelected")):($("div.detailPanel").hide(0),$("#navigation li").removeClass("menuItemHrefSelected"),$("#navigation li a").removeClass("menuItemHrefSelected"),i=innerPanel.attr("srcFile"),r=innerPanel.html().toString(),$.trim(r)==""?i!=null&&(t(innerPanel,i,!0),liElm.addClass("menuItemHrefSelected"),elmHref.addClass("menuItemHrefSelected")):(innerPanel.slideDown(500),liElm.addClass("menuItemHrefSelected"),elmHref.addClass("menuItemHrefSelected"))),n(),!1})});var myGuidCookieName="myGuid",uGuidCookieName="uGuid",myGuid="",uGuid="";updateAssetLog=function(n){myGuid=getCookie(myGuidCookieName),uGuid="",(myGuid==null||myGuid=="")&&(myGuid="",uGuid=getCookie(uGuidCookieName),(uGuid==null||uGuid==""||uGuid=="undefined")&&(getNewUserGUID(),uGuid!=""&&setCookie(uGuidCookieName,uGuid,30))),n!=""&&(uGuid!=""||myGuid!="")&&logSolrUserAction(n,"ASSET",myGuid,uGuid)},getNewUserGUID=function(){var n="/WebServices/wsUsersActivity.asmx/GetNewGUID";return $.ajax({type:"GET",url:n,data:"",cache:!1,async:!1,contentType:"application/json; charset=utf-8",success:function(n){uGuid=n.d},error:function(){}}),""},logSolrUserAction=function(n,t,i,r){var u="/WebServices/wsUsersActivity.asmx/AddEntityLog";return $.ajax({type:"GET",url:u,data:{entityid:"'"+n+"'",entitytype:"'"+t+"'",myGuid:"'"+i+"'",uGuid:"'"+r+"'",referDomain:"'"+getDomain(document.referrer)+"'",referUrl:"'"+document.referrer+"'"},dataType:"json",cache:!1,contentType:"application/json; charset=utf-8"}),""}