var cosmosHost="cosmos.uwhealth.org";jQuery.url=function(){var segments={};var parsed={};var options={url:window.location,strictMode:false,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};var parseUri=function(){str=decodeURI(options.url);var m=options.parser[options.strictMode?"strict":"loose"].exec(str);var uri={};var i=14;while(i--){uri[options.key[i]]=m[i]||""}uri[options.q.name]={};uri[options.key[12]].replace(options.q.parser,function($0,$1,$2){if($1){uri[options.q.name][$1]=$2}});return uri};var key=function(key){if(!parsed.length){setUp()}if(key=="base"){if(parsed.port!==null&&parsed.port!==""){return parsed.protocol+"://"+parsed.host+":"+parsed.port+"/"}else{return parsed.protocol+"://"+parsed.host+"/"}}return(parsed[key]==="")?null:parsed[key]};var param=function(item){if(!parsed.length){setUp()}return(parsed.queryKey[item]===null)?null:parsed.queryKey[item]};var setUp=function(){parsed=parseUri();getSegments()};var getSegments=function(){var p=parsed.path;segments=[];segments=parsed.path.length==1?{}:(p.charAt(p.length-1)=="/"?p.substring(1,p.length-1):path=p.substring(1)).split("/")};return{setMode:function(mode){strictMode=mode=="strict"?true:false;return this},setUrl:function(newUri){options.url=newUri===undefined?window.location:newUri;setUp();return this},segment:function(pos){if(!parsed.length){setUp()}if(pos===undefined){return segments.length}return(segments[pos]===""||segments[pos]===undefined)?null:segments[pos]},attr:key,param:param}}();var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y<X;Y++){U[Y]()}}function K(X){if(J){X()}else{U[U.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false)}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false)}else{if(typeof O.attachEvent!=D){i(O,"onload",Y)}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y()}}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value")}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return!a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312)}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310"}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac}else{ab.flashvars=ac}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}u(aa,ab,X)}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(g(Y),Y)}}function g(ab){var aa=C("div");if(M.win&&M.ie){aa.innerHTML=ab.innerHTML}else{var Y=ab.getElementsByTagName(r)[0];if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z<X;Z++){if(!(ad[Z].nodeType==1&&ad[Z].nodeName=="PARAM")&&!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true))}}}}}return aa}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&&M.wk<312){return X}if(aa){if(typeof ai.id==D){ai.id=Y}if(M.ie&&M.win){var ah="";for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){ag.movie=ai[ae]}else{if(ae.toLowerCase()=="styleclass"){ah+=' class="'+ai[ae]+'"'}else{if(ae.toLowerCase()!="classid"){ah+=" "+ae+'="'+ai[ae]+'"'}}}}}var af="";for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='<param name="'+ad+'" value="'+ag[ad]+'" />'}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+">"+af+"</object>";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab<ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2])}var Z=N.length;for(var aa=0;aa<Z;aa++){y(N[aa])}for(var Y in M){M[Y]=null}M=null;for(var X in swfobject){swfobject[X]=null}swfobject=null})}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&&ab&&X){var Y={};Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y;w(ab,false)}else{if(Z){Z({success:false,id:ab})}}},getObjectById:function(X){if(M.w3){return z(X)}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah};if(M.w3&&!(M.wk&&M.wk<312)&&ab&&ah&&ae&&ag&&Y){w(ah,false);K(function(){ae+="";ag+="";var aj={};if(af&&typeof af===r){for(var al in af){aj[al]=af[al]}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak]}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&"+ai+"="+Z[ai]}else{am.flashvars=ai+"="+Z[ai]}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true)}X.success=true;X.ref=an}else{if(aa&&A()){aj.data=aa;P(aj,am,ah,ac);return}else{w(ah,true)}}if(ac){ac(X)}})}else{if(ac){ac(X)}}},switchOffAutoHideShow:function(){m=false},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]}},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X)}else{return undefined}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&&A()){P(Z,aa,X,Y)}},removeSWF:function(X){if(M.w3){y(X)}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X)}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash;if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1]}if(aa==null){return L(Z)}var Y=Z.split("&");for(var X=0;X<Y.length;X++){if(Y[X].substring(0,Y[X].indexOf("="))==aa){return L(Y[X].substring((Y[X].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(a){var X=c(R);if(X&&l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&&M.win){l.style.display="block"}}if(E){E(B)}}a=false}}}}();(function($){$.fn.jcaption=function(settings){settings=$.extend({wrapperElement:'div',wrapperClass:'caption',captionElement:'p',imageAttr:'alt',requireText:true,copyStyle:false,removeStyle:true,removeAlign:true,copyAlignmentToClass:false,copyFloatToClass:true,autoWidth:true,animate:false,show:{opacity:'show'},showDuration:200,hide:{opacity:'hide'},hideDuration:200},settings);$(this).each(function(){$(this).bind('load',function(){if($(this).data('loaded'))return false;$(this).data('loaded',true);var image=$(this);if(image.attr(settings.imageAttr).length>0||!settings.requireText){image.wrap("<"+settings.wrapperElement+" class='"+settings.wrapperClass+"'></"+settings.wrapperElement+">");var imageFloat=image.css('float')
var imageStyle=image.attr('style');if(settings.removeStyle)image.removeAttr('style');var imageAlign=image.attr('align');if(settings.removeAlign)image.removeAttr('align');var div=$(this).parent().append('<'+settings.captionElement+'>'+image.attr(settings.imageAttr)+'</'+settings.captionElement+'>');if(settings.animate){$(this).next().hide();$(this).parent().hover(function(){$(this).find('p').animate(settings.show,settings.showDuration);},function(){$(this).find('p').animate(settings.hide,settings.hideDuration);});}
if(settings.copyStyle)div.attr('style',imageStyle);if(settings.copyAlignmentToClass)div.addClass(imageAlign);if(settings.copyFloatToClass)div.addClass(imageFloat);if(settings.autoWidth)div.width(image.width());}});if(this.complete||this.naturalWidth>0){$(this).trigger('load');}});}})(jQuery);<!--
var WM_acceptsCookies=false;if(document.cookie==''){document.cookie='WM_acceptsCookies=yes';if(document.cookie.indexOf('WM_acceptsCookies=yes')!=-1){WM_acceptsCookies=true;}}else{WM_acceptsCookies=true;}
function WM_setCookie(name,value,hours,path,domain,secure){if(WM_acceptsCookies){var not_NN2=(navigator&&navigator.appName&&(navigator.appName=='Netscape')&&navigator.appVersion&&(parseInt(navigator.appVersion)==2))?false:true;if(hours&&not_NN2){if((typeof(hours)=='string')&&Date.parse(hours)){var numHours=hours;}else if(typeof(hours)=='number'){var numHours=(new Date((new Date()).getTime()+hours*3600000)).toGMTString();}}
document.cookie=name+'='+escape(value)+((numHours)?(';expires='+numHours):'')+((path)?';path='+path:'')+((domain)?';domain='+domain:'')+((secure&&(secure==true))?'; secure':'');}}
function WM_readCookie(name){if(document.cookie==''){return false;}else{var firstChar,lastChar;var theBigCookie=unescape(document.cookie);firstChar=theBigCookie.indexOf(name);var NN2Hack=firstChar+name.length;if((firstChar!=-1)&&(theBigCookie.charAt(NN2Hack)=='=')){firstChar+=name.length+1;lastChar=theBigCookie.indexOf(';',firstChar);if(lastChar==-1)lastChar=theBigCookie.length;return unescape(theBigCookie.substring(firstChar,lastChar));}else{return false;}}}
function WM_killCookie(name,path,domain){var theValue=WM_readCookie(name);if(theValue){document.cookie=name+'='+theValue+'; expires=Fri, 13-Apr-1970 00:00:00 GMT'+((path)?';path='+path:'')+((domain)?';domain='+domain:'');}}
(function($){function checkUrl(anchor){var url=$(anchor).attr("href");var obj=$(anchor);var cssClass=$(anchor).attr("class");replaceAnchor(obj,url,cssClass);return true;}
function replaceAnchor(obj,url,cssClass){$(obj).replaceWith("<iframe class=\""+cssClass+"\" frameborder=\"0\" scrolling=\"no\" align=\"left\" src=\""+url+"\" allowtransparency=\"true\"></iframe>");}
function loadVideo(src,alt,title,longdesc,width,height,id,styleclass){if(styleclass.split("-").length==2)
styleclass=styleclass.split("-")[1];var attributes={styleclass:styleclass};var params={quality:"best",wmode:"opaque",allowfullscreen:"true",allowscriptaccess:"always",allownetworking:"all"};var flashvars={image:src,controlbar:"over",frontcolor:"#CCCCCC",lightcolor:"#FFFFFF",smoothing:"true",title:alt,description:title,skin:"//"+cosmosHost+"/global/video/uwhealth.swf","sharing.link":window.location.href};if(longdesc.indexOf("rtmp://")==0){var indexLastSlash=longdesc.lastIndexOf("/");flashvars.type="rtmp";flashvars.streamer=longdesc.substring(0,indexLastSlash);flashvars.file=longdesc.substring((indexLastSlash+1),longdesc.length);}else{flashvars.file=longdesc;}
if(width>=275){flashvars.plugins=flashvars.plugins+",sharing-1";}
swfobject.embedSWF("//"+cosmosHost+"/global/video/player-licensed.swf",id,width,height,"8.0.0","//"+cosmosHost+"/global/video/expressInstall.swf",flashvars,params,attributes);}
$(document).ready(function(){$("a[class='video_small']").each(function(){checkUrl($(this));});$("a[class='video_medium']").each(function(){checkUrl($(this));});$("a[class='video_large']").each(function(){checkUrl($(this));});var embedVideoCounter=0
$("img[class*=embeddedVideo]").each(function(){$(this).attr("id","embeddedVideo_"+embedVideoCounter);loadVideo($(this).attr("src"),$(this).attr("alt"),$(this).attr("title"),$(this).attr("longdesc"),$(this).attr("width"),$(this).attr("height"),"embeddedVideo_"+embedVideoCounter,$(this).attr("class"));embedVideoCounter=embedVideoCounter+1;});});})(jQuery);<!--
var provider=null,e=null,src=null,doc_id=0,provs={};function providerFeed(data){provider=data;if(provider.provider_id==doc_id){provs[provider.provider_id]=provider;if((provider.photo_web.indexOf("null")<0)&&(provider.bioSnippet.length>0))
setBubbleContent();}}
function setBubbleContent(){menucontents=$("<div></div>").addClass("doctorrollover").html("<img src='"+provider.photo_web+"' />"+"<span style='font-weight:bold;'>"+provider.fullName+"</span>"+"<span>"+provider.bioSnippet+"</span>");if(!document.getElementById("bubble")){var bubble=$("<div />").html("&nbsp;").attr("id","bubble").addClass("bubble");$("body").append(bubble)}
$("#bubble").removeClass("bubbleLeft");var position=calculatePos($(src));$("#bubble").css({"left":position.left,"right":position.right,"top":($(src).offset().top-94)})
$("#bubble").html(menucontents).show();}
function calculatePos(src){var srcSize={width:$(src).width(),height:$(src).height()};var srcEdge={left:$(src).offset().left,right:($(document.body).width()-$(src).offset().left)-srcSize.width,top:$(src).offset().top};var completeWidth=(srcEdge.left+srcSize.width)+$("#bubble").width();var bbl=$("#bubble");var offset={right:"auto",left:srcEdge.left+srcSize.width,top:0};if(completeWidth>$(document.body).width()){if(e.clientX<=((srcEdge.left+srcSize.width)-(completeWidth-$(document.body).width()))){offset.left-=(completeWidth-$(document.body).width());}else if((srcEdge.left-$(bbl).width())>0){offset.right=srcEdge.right+srcSize.width;offset.left="auto";}else offset.left=srcEdge.left+srcSize.width;}
if(offset.right!="auto")$(bbl).addClass("bubbleLeft");return offset;}
function showBubble(ev){e=ev;src=(ev.target)?ev.target:ev.srcElement;doc_id=$.url.setUrl($(src).attr("href")).param("id");if(!doc_id)
doc_id=$.url.setUrl($(src).attr("href")).param("provider");if(doc_id){if(provs[doc_id]){provider=provs[doc_id];if((provider.photo_web.indexOf("null")<0)&&(provider.bioSnippet.length>0))
setBubbleContent();}else{$.getJSON("http://apps.uwhealth.org/providerfeeds/Provider.action?fadid="+doc_id+"&callback=?",function(data){providerFeed(data);});}}}
function hideBubble(){$("#bubble").hide();}
$(document).ready(function(){$("a[href^='http://findadoctor.uwhealth.org/']").hover(showBubble,hideBubble);});<!--
var defaultFontSize=62;var globalFontSize;var globalFontSizeMax=110;var globalFontSizeMin=56;function setFont(){if(WM_acceptsCookies&&WM_readCookie('fontSize')&&!isNaN(WM_readCookie('fontSize'))){setFontSize(WM_readCookie('fontSize'));}else{setFontSize(defaultFontSize);}}
function changeFontSize(pct){globalFontSize=parseInt(globalFontSize)+parseInt(pct);setFontSize(globalFontSize);}
function setFontSize(pct){if(pct>=globalFontSizeMin&&pct<=globalFontSizeMax){var bod=document.getElementsByTagName('body')[0];bod.style.fontSize=pct+"%";globalFontSize=pct;WM_killCookie("fontSize","/",".med.wisc.edu");WM_setCookie("fontSize",pct,8760,"/",".med.wisc.edu",false);}}<!--
$(document).ready(function(){var $pods=$("div.primaryPod243:not(:has(div.podTop243))");var $pods203=$("div.primaryPod203:not(:has(div.podTop203))");if($pods.length){$pods.each(function(){$(this).children("*:not(h1)").wrapAll("<div class=\"podMid243\">");$(this).prepend("<div class=\"podTop243\">&nbsp;</div>");$(this).append("<div class=\"podBottom243\">&nbsp;</div>");});}
if($pods203.length){$pods203.each(function(){$(this).children("*:not(h1)").wrapAll("<div class=\"podMid203\">");$(this).prepend("<div class=\"podTop203\">&nbsp;</div>");$(this).append("<div class=\"podBottom203\">&nbsp;</div>");});}
$(".searchText").focus(function(){if($(this).attr("value").toLowerCase()=="search smph")
$(this).attr("value","");$(this).css("color","rgb(0, 0, 0)");}).blur(function(){if($(this).attr("value").toLowerCase()==""){$(this).attr("value","Search SMPH");$(this).css("color","rgb(128, 128, 128)");}});var $kids=$("#leftNav").children().children();if($kids.length!=0){var firstNav=$("#leftNav").children().children().children(":eq(0)");var first=$("#leftNav").children().children().children(":eq(0)").attr("href");var fLink=first.indexOf('/',7);first=first.substring(fLink);var foundMe=false;var foundParent=false;var foundRoot=false;var parent;var me;var meta=$("meta[name=parentId]").attr("content");var page=$("meta[name=pageId]").attr("content");var root;$.get("/smph/Page.action?get_root",{"childId":page,"topNav":first},function(data){if(data!=''||data!=null){root=data;}else{root='';}
$.each($kids,function(n,val){var link=$(this).children().attr("href");var myself;var rootLink;var parentLink;if(link!=undefined){var iLink=link.indexOf('/',7);link=link.substring(iLink);if(page.length!=0){myself=link.match(page);rootLink=link.match(root);parentLink=link.match(meta);if(myself!=null&&myself!=""){foundMe=true;me=$(this);}else if(rootLink!=null&&rootLink!=""){foundRoot=true;parent=$(this);}else if(parentLink!=null&&parentLink!=""){foundParent=true;parent=$(this);}}}});if(foundMe){$(me).css("background-color","#f4eedd");$(me).addClass("hlnav");}else if(!foundMe&&foundParent){$(parent).css("background-color","#f4eedd");$(parent).addClass("hlnav");}else if(foundRoot){$(parent).css("background-color","#f4eedd");$(parent).addClass("hlnav");}else{$(firstNav).css("background-color","#f4eedd");$(firstNav).addClass("hlnav");}});}});<!--
function checkGoogleUrl(anchor){var url=$(anchor).attr("href")+"&amp;output=embed";var obj=$(anchor);var cssClass=$(anchor).attr("class");$(obj).replaceWith("<iframe class=\""+cssClass+"\" frameborder=\"0\" scrolling=\"no\" align=\"left\" src=\""+url+"\" allowtransparency=\"true\"></iframe>");return true;}
$(document).ready(function(){$("a[class='map_small']").each(function(){checkGoogleUrl($(this));});$("a[class='map_medium']").each(function(){checkGoogleUrl($(this));});$("a[class='map_large']").each(function(){checkGoogleUrl($(this));});});var FLIR={version:'1.2',options:{path:'',classnameIgnore:false,findEmbededFonts:false,ignoredElements:'BR,HR,IMG,INPUT,SELECT'},onreplacing:null,onreplaced:null,onreplacingchild:null,onreplacedchild:null,flirElements:{},flirPlugins:[],isCraptastic:true,isIE:true,defaultStyle:null,classStyles:{},embededFonts:{},dpi:96,init:function(options,fstyle){if(this.isFStyle(options)){this.defaultStyle=options;}else{if(typeof options!='undefined')
this.loadOptions(options);if(typeof fstyle=='undefined'){this.defaultStyle=new FLIRStyle();}else{if(this.isFStyle(fstyle))
this.defaultStyle=fstyle;else
this.defaultStyle=new FLIRStyle(fstyle);}}
this.calcDPI();if(this.options.findEmbededFonts)
this.discoverEmbededFonts();this.isIE=(navigator.userAgent.toLowerCase().indexOf('msie')>-1&&navigator.userAgent.toLowerCase().indexOf('opera')<0);this.isCraptastic=(typeof document.body.style.maxHeight=='undefined');if(this.isIE){this.flirIERepObj=[];this.flirIEHovEls=[];this.flirIEHovStyles=[];}
FLIR._call_plugin('init',arguments);},loadOptions:function(options){for(var i in options)
this.options[i]=options[i];},installPlugin:function(plugin){this.flirPlugins.push(plugin);},_call_plugin:function(func,call){var ret=call;for(var i=0;i<this.flirPlugins.length;i++){if(typeof this.flirPlugins[i][func]=='function'){var pluginret=this.flirPlugins[i][func](ret);if(typeof pluginret=='undefined'){continue;}
if(typeof pluginret=='boolean'&&pluginret==false){return false;}
if(typeof pluginret!='boolean')
ret=call;}}
var ret=typeof ret!='object'?[ret]:ret;if(ret.length&&ret[0]&&ret[0].callee)
return ret[0];else
return ret;},auto:function(els){if(!(args=FLIR._call_plugin('auto',arguments)))return;els=args[0];var tags=typeof els=='undefined'?['h1','h2','h3','h4','h5']:(els.indexOf&&els.indexOf(',')>-1?els.split(','):els);var elements;for(var i=0;i<tags.length;i++){elements=this.getElements(tags[i]);if(elements.length>0)
this.replace(elements);}},hover:function(e){var o=FLIR.evsrc(e);var targ=o;var targDescHover=o.flirHasHover;var hoverTree=o;var on=(e.type=='mouseover');while(o!=document.body&&!o.flirMainObj){o=FLIR.getParentNode(o);if(!targDescHover){targDescHover=o.flirHasHover;hoverTree=o;}}
if(o==document.body)return;var FStyle=FLIR.getFStyle(o);if(on&&FStyle!=FStyle.hoverStyle)
FStyle=FStyle.hoverStyle;if(!(args=FLIR._call_plugin('hover',[on,targ,o,hoverTree])))return;on=args[0];targ=args[1];o=args[2];hoverTree=args[3];var objs=FLIR.getChildren(hoverTree);if(objs.length==0||(objs.length==1&&(objs[0].flirImage||objs[0].flirHasHover))){objs=[hoverTree];}else if(objs.length==1&&!FLIR.isIgnoredElement(objs[0])){var subobjs=FLIR.getChildren(objs[0]);if(subobjs.length>0)
if((subobjs.length==1&&!subobjs[0].flirImage)||subobjs.length>1)
objs=subobjs;}
var rep_obj;for(var i=0;i<objs.length;i++){rep_obj=objs[i];if(rep_obj.nodeName=='IMG')continue;if(!rep_obj.innerHTML)continue;if(FLIR.isIE){var idx=FLIR.flirIEHovEls.length;FLIR.flirIERepObj[idx]=rep_obj;FLIR.flirIEHovStyles[idx]=FStyle;if(!FLIR.isCraptastic){if(FStyle.useBackgroundMethod&&FLIR.getStyle(rep_obj,'display')=='block'){FLIR.flirIEHovEls[idx]=rep_obj;setTimeout('FLIR.flirIERepObj['+idx+'].style.background = "url("+('+on+' ? FLIR.flirIEHovStyles['+idx+'].generateURL(FLIR.flirIERepObj['+idx+']) : FLIR.flirIERepObj['+idx+'].flirOrig)+") no-repeat";',0);}else{FLIR.flirIEHovEls[idx]=rep_obj.flirImage?rep_obj:FLIR.getChildren(rep_obj)[0];if(!FLIR.flirIEHovEls[idx].flirOrigWidth){FLIR.flirIEHovEls[idx].flirOrigWidth=FLIR.flirIEHovEls[idx].width;FLIR.flirIEHovEls[idx].flirOrigHeight=FLIR.flirIEHovEls[idx].height;}
var ie_js='FLIR.flirIEHovEls['+idx+'].src = '+on+' ? FLIR.flirIEHovStyles['+idx+'].generateURL(FLIR.flirIERepObj['+idx+'], FLIR.flirIEHovEls['+idx+'].alt) : FLIR.flirIERepObj['+idx+'].flirOrig;'
ie_js+='FLIR.flirIEHovEls['+idx+'].onload = function() { ';if(on&&!FLIR.flirIEHovEls[idx].flirHoverWidth){ie_js+='        FLIR.flirIEHovEls['+idx+'].flirHoverWidth = this.width; ';ie_js+='        FLIR.flirIEHovEls['+idx+'].flirHoverHeight = this.height; ';}
ie_js+='    this.style.width = FLIR.flirIEHovEls['+idx+'].'+(on?'flirHoverWidth':'flirOrigWidth')+'+"px"; ';ie_js+='    this.style.height = FLIR.flirIEHovEls['+idx+'].'+(on?'flirHoverHeight':'flirOrigHeight')+'+"px"; ';ie_js+='}; ';setTimeout(ie_js,0);}}else{FLIR.flirIEHovEls[idx]=rep_obj.flirImage?rep_obj:FLIR.getChildren(rep_obj)[0];setTimeout('  FLIR.flirIEHovEls['+idx+'].style.filter = \'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="\'+FLIR.flirIEHovStyles['+idx+'].generateURL(FLIR.flirIERepObj['+idx+'], FLIR.flirIEHovEls['+idx+'].alt)+\'", sizingMethod="image")\';  ',0);}}else{if(FStyle.useBackgroundMethod&&FLIR.getStyle(rep_obj,'display')=='block'){var hovURL=rep_obj.flirHoverURL?rep_obj.flirHoverURL:FStyle.generateURL(rep_obj);rep_obj.style.background='url('+(on?hovURL:rep_obj.flirOrig)+') no-repeat';}else{var img=rep_obj.flirImage?rep_obj:FLIR.getChildren(rep_obj)[0];var hovURL=rep_obj.flirHoverURL?rep_obj.flirHoverURL:FStyle.generateURL(rep_obj,img.alt);img.src=on?hovURL:rep_obj.flirOrig;}}}},addHover:function(obj){if(!(args=FLIR._call_plugin('addHover',arguments)))return;obj=args[0];obj.flirHasHover=true;if(obj.addEventListener){obj.addEventListener('mouseover',FLIR.hover,false);obj.addEventListener('mouseout',FLIR.hover,false);}else if(obj.attachEvent){obj.attachEvent('onmouseover',function(){FLIR.hover(window.event);});obj.attachEvent('onmouseout',function(){FLIR.hover(window.event);});}},prepare:function(n){if(!(args=FLIR._call_plugin('prepare',arguments)))return;n=args[0];if(n&&n.hasChildNodes()&&n.childNodes.length>1){for(var i in n.childNodes){var node=n.childNodes[i];if(node&&node.nodeType==3){var span=document.createElement('SPAN');span.style.margin=span.style.padding=span.style.border='0px';span.className='flir-span';span.flirSpan=true;var txt=node.nodeValue.replace(/[\t\n\r]/g,' ').replace(/\s\s+/g,' ');span.innerHTML=!FLIR.isIE?txt:node.nodeValue.replace(/^\s+|\s+$/g,'&nbsp;');n.replaceChild(span,node);}}}},replace:function(o,FStyle){if(!(args=FLIR._call_plugin('replace',arguments)))return;o=args[0];FStyle=args[1];if(!o||o.flirReplaced)
return;if(!this.isFStyle(FStyle))
FStyle=this.getFStyle(o);if(typeof o=='string')
o=this.getElements(o);if(typeof o.length!='undefined'){if(o.length==0)return;for(var i=0;i<o.length;i++)
this.replace(o[i],FStyle);return;}
if(typeof FLIR.onreplacing=='function')o=FLIR.onreplacing(o,FStyle);o.flirMainObj=true;this.setFStyle(o,FStyle);this.saveObject(o);if(this.options.findEmbededFonts&&typeof this.embededFonts[FStyle.getFont(o)]!='undefined')
return;FLIR.prepare(o);this._replace_tree(o,FStyle);if(typeof FLIR.onreplaced=='function')FLIR.onreplaced(o,FStyle);},_replace_tree:function(o,FStyle){if(typeof __flir_replacetree_recurse=='undefined')__flir_replacetree_recurse=1;else __flir_replacetree_recurse++;if(__flir_replacetree_recurse>1000){console.error('Facelift: Too much recursion.');return;}
var objs=!o.hasChildNodes()||(o.hasChildNodes()&&o.childNodes.length==1&&o.childNodes[0].nodeType==3)?[o]:o.childNodes;var rep_obj;for(var i=0;i<objs.length;i++){rep_obj=objs[i];if(typeof FLIR.onreplacingchild=='function')rep_obj=FLIR.onreplacingchild(rep_obj,FStyle);if(!rep_obj.innerHTML||rep_obj.nodeType!=1)continue;if(FLIR.isIgnoredElement(rep_obj))continue;if(rep_obj.flirReplaced)continue;if(rep_obj.nodeName=='A'&&!rep_obj.flirHasHover)
FLIR.addHover(rep_obj);if(rep_obj.hasChildNodes()&&(rep_obj.childNodes.length>1||rep_obj.childNodes[0].nodeType!=3)){FLIR.prepare(rep_obj);FLIR._replace_tree(rep_obj,FStyle);continue;}
if(rep_obj.innerHTML=='')continue;if(!FLIR.isCraptastic)
if(FStyle.useBackgroundMethod)
FLIR.replaceMethodBackground(rep_obj,FStyle);else
FLIR.replaceMethodOverlay(rep_obj,FStyle);else
FLIR.replaceMethodCraptastic(rep_obj,FStyle);rep_obj.className+=' flir-replaced';rep_obj.flirReplaced=true;if(typeof FLIR.onreplacedchild=='function')FLIR.onreplacedchild(o,FStyle);}},replaceMethodBackground:function(o,FStyle){if(!(args=FLIR._call_plugin('replaceMethodBackground',arguments)))return;o=args[0];FStyle=args[1];var oid=this.saveObject(o);var url=FStyle.generateURL(o);if(FLIR.getStyle(o,'display')!='block')
o.style.display='block';var tmp=new Image();tmp.onload=function(){FLIR.flirElements[oid].style.width=this.width+'px';FLIR.flirElements[oid].style.height=this.height+'px';if(FStyle!=FStyle.hoverStyle){var h_img=new Image();o.flirHoverURL=h_img.src=FStyle.hoverStyle.generateURL(o);}};tmp.src=url;o.style.background='url("'+url.replace(/ /g,'%20')+'") no-repeat';o.flirOrig=url;o.oldTextIndent=o.style.textIndent;o.style.textIndent='-9999px';},replaceMethodOverlay:function(o,FStyle){if(!(args=FLIR._call_plugin('replaceMethodOverlay',arguments)))return;o=args[0];FStyle=args[1];var oid=this.saveObject(o);var img=document.createElement('IMG');img.alt=this.sanitizeHTML(o.innerHTML);if(FStyle!=FStyle.hoverStyle){img.onload=function(){var h_img=new Image();o.flirHoverURL=h_img.src=FStyle.hoverStyle.generateURL(o,img.alt);};}
if(img.onerror){img.onerror=function(){var span=document.createElement('SPAN');span.innerHTML=img.alt;try{o.replaceChild(span,img)}catch(err){}};}
img.flirImage=true;img.className='flir-image';img.src=FStyle.generateURL(o);img.style.border='none';o.flirOrig=img.src;o.innerHTML='';o.appendChild(img);},replaceMethodCraptastic:function(o,FStyle){if(!(args=FLIR._call_plugin('replaceMethodCraptastic',arguments)))return;o=args[0];FStyle=args[1];var oid=this.saveObject(o);var url=FStyle.generateURL(o);var img=document.createElement('IMG');img.alt=this.sanitizeHTML(o.innerHTML);if(FStyle!=FStyle.hoverStyle){img.onload=function(){var h_img=new Image();o.flirHoverURL=h_img.src=FStyle.hoverStyle.generateURL(o,img.alt);};}
img.flirImage=true;img.className='flir-image';img.src=this.options.path+'spacer.png';img.style.width=o.offsetWidth+'px';img.style.height=o.offsetHeight+'px';img.style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+url+'", sizingMethod="image")';o.flirOrig=url;o.innerHTML='';o.appendChild(img);},saveObject:function(o){if(typeof o.flirId=='undefined'){o.flirId=this.getUID();this.flirElements[o.flirId]=o;}
return o.flirId;},getUID:function(){var prefix='flir-';var id=prefix+Math.random().toString().split('.')[1];var i=0;while(typeof this.flirElements[id]!='undefined'){if(i>100000){console.error('Facelift: Unable to generate unique id.');}
id=prefix+Math.random().toString().split('.')[1];i++;}
return id;},getElements:function(tag){if(!(args=FLIR._call_plugin('getElements',arguments)))return;switch(args.length){case 1:tag=args[0];break;case 2:return args[0];break;}
var found=[];if(document.querySelectorAll){var qsa=false;try{found=document.querySelectorAll(tag);qsa=true;}catch(err){qsa=false;}
if(qsa)
return found;}
var objs,subels,cn,childs,tag,el,matches,subel,rep_el;el=tag;subel=false;if(el.indexOf(' ')>-1){var parts=el.split(' ');el=parts[0];subel=parts[1];}else if(el[0]=='#'){return document.getElementById(el.substr(1));}
var grain_id=false;if(el.indexOf('#')>-1){grain_id=el.split('#')[1];tag=el.split('#')[0];}
var grain_cn=false;if(el.indexOf('.')>-1){grain_cn=el.split('.')[1];tag=el.split('.')[0];}
objs=document.getElementsByTagName(tag);for(var p=0;p<objs.length;p++){if(objs[p].nodeType!=1)continue;matches=false;cn=objs[p].className?objs[p].className:'';if(grain_id&&objs[p].id&&objs[p].id==grain_id)
matches=true;if(grain_cn&&FLIR.hasClass(objs[p],grain_cn))
matches=true;if(!grain_id&&!grain_cn)
matches=true;if(!matches)continue;if(this.options.classnameIgnore&&cn.indexOf(this.options.classnameIgnore)>-1)continue;subels=false!=subel?objs[p].getElementsByTagName(subel):[objs[p]];for(var pp=0;pp<subels.length;pp++){rep_el=subels[pp];if(this.options.classnameIgnore&&rep_el.className&&rep_el.className.indexOf(this.options.classnameIgnore)>-1)continue;found.push(rep_el);}}
return found;},discoverEmbededFonts:function(){this.embededFonts={};for(var i in document.styleSheets){if(!document.styleSheets[i].cssRules)continue;for(var ii in document.styleSheets[i].cssRules){if(!document.styleSheets[0].cssRules[ii])continue;var node=document.styleSheets[0].cssRules[ii];if(node.type&&node.type==node.FONT_FACE_RULE){var nodesrc=node.style.getPropertyValue('src').match(/url\("?([^"\)]+\.[ot]tf)"?\)/i)[1];var font=node.style.getPropertyValue('font-family');if(font.indexOf(',')){font=font.split(',')[0];}
font=font.replace(/['"]/g,'').toLowerCase();if(font!=''&&nodesrc!='')
this.embededFonts[font]=nodesrc;}}}},getStyle:function(el,prop){if(el.currentStyle){if(prop.indexOf('-')>-1)
prop=prop.split('-')[0]+prop.split('-')[1].substr(0,1).toUpperCase()+prop.split('-')[1].substr(1);var y=el.currentStyle[prop];}else if(window.getComputedStyle){var y=document.defaultView.getComputedStyle(el,'').getPropertyValue(prop);}
return y;},getChildren:function(n){var children=[];if(n&&n.hasChildNodes())
for(var i in n.childNodes)
if(n.childNodes[i]&&n.childNodes[i].nodeType==1)
children[children.length]=n.childNodes[i];return children;},getParentNode:function(n){var o=n.parentNode;while(o!=document&&o.nodeType!=1)
o=o.parentNode;return o;},hasClass:function(o,cn){return(o&&o.className&&o.className.indexOf(cn)>-1);},evsrc:function(e){var o;if(e.target)o=e.target;else if(e.srcElement)o=e.srcElement;if(o.nodeType==3)
o=o.parentNode;return o;},calcDPI:function(){if(screen.logicalXDPI){var dpi=screen.logicalXDPI;}else{var id='flir-dpi-div-test';if(document.getElementById(id)){var test=document.getElementById(id);}else{var test=document.createElement('DIV');test.id=id;test.style.position='absolute';test.style.visibility='hidden';test.style.border=test.style.padding=test.style.margin='0';test.style.left=test.style.top='-1000px';test.style.height=test.style.width='1in';document.body.appendChild(test);}
var dpi=test.offsetHeight;}
this.dpi=parseInt(dpi);},isIgnoredElement:function(el,breakIgnored){return((','+this.options.ignoredElements).indexOf(','+el.nodeName)>-1);},sanitizeHTML:function(html){return html.replace(/<[^>]+>/g,'');},getFStyle:function(o,fstyle){var cStyle=this.getClassStyle(o);if(this.isFStyle(cStyle))
fstyle=cStyle;if(this.isFStyle(fstyle)){return fstyle;}else if(this.isFStyle(o.flirStyle)){return o.flirStyle;}else{return this.defaultStyle;}},setFStyle:function(o,FStyle){o.flirStyle=FStyle;},isFStyle:function(o){if(!o)return false;return(o.toString()=='[FLIRStyle Object]');},addClassStyle:function(classname,FStyle){if(this.isFStyle(FStyle))
this.classStyles[classname]=FStyle;},getClassStyle:function(o){if(!(args=FLIR._call_plugin('getClassStyle',arguments)))return;switch(args.length){case 1:o=args[0];break;case 2:return args[0];break;}
var cn=o.className;if(this.classStyles.length==0||typeof cn=='undefined'||cn=='')return false;var classes=cn.split(' ');for(var i in this.classStyles){for(var ii=0;ii<classes.length;ii++){if(classes[ii]==i){return this.classStyles[i];}}}
return false;}};function FLIRStyle(options){this.useBackgroundMethod=false;this.inheritStyle=true;this.useExtendedStyles=false;this.hoverStyle=(arguments[1]&&FLIR.isFStyle(arguments[1]))?arguments[1]:this;this.options={mode:'',output:'auto',cSize:null,cColor:null,cFont:null,realFontHeight:false,dpi:96};this.cssStyles={'background-color':'Background','color':'Color','font-family':'Font','font-size':'Size','letter-spacing':'Spacing','line-height':'Line','text-align':'Align','text-transform':'Transform'};this.extendedStyles={'font-stretch':'Stretch','font-style':'FontStyle','font-variant':'Variant','font-weight':'Weight','opacity':'Opacity','text-decoration':'Decoration'}
for(var i in options){if(i.indexOf('css')==0)
i='c'+i.substr(3);if(typeof this[i]!='undefined'){this[i]=options[i];}else{this.options[i]=options[i];}}
this.options.dpi=FLIR.dpi;if(this.useExtendedStyles)
for(var i in this.extendedStyles)
this.cssStyles[i]=this.extendedStyles[i];for(var i=0;i<FLIR.flirPlugins.length;i++)
if(FLIR.flirPlugins[i].FLIRStyleExtend&&typeof FLIR.flirPlugins[i].FLIRStyleExtend.init)
FLIR.flirPlugins[i].FLIRStyleExtend.init.call(this);}
FLIRStyle.prototype.generateURL=function(o){var enc_text=(arguments[1]?arguments[1]:o.innerHTML);var transform=this.options.cTransform;if(transform==null)
transform=FLIR.getStyle(o,'text-transform');switch(transform){case'capitalize':enc_text=enc_text.replace(/\w+/g,function(w){return w.charAt(0).toUpperCase()+w.substr(1).toLowerCase();});break;case'lowercase':enc_text=enc_text.toLowerCase();break;case'uppercase':enc_text=enc_text.toUpperCase().replace(/&[a-z0-9]+;/gi,function(m){return m.toLowerCase();});break;}
enc_text=encodeURIComponent(enc_text.replace(/ /gi,'    ').replace(/&nbsp;/gi,'    ').replace(/&/g,'{amp}').replace(/\+/g,'{plus}'));enc_text=enc_text.replace(/%C2%A0/gi,'%20%20%20%20');return FLIR.options.path+'generate.php?text='+enc_text+'&h='+o.offsetHeight+'&w='+o.offsetWidth+'&fstyle='+this.serialize(o);};FLIRStyle.prototype.buildURL=function(text,o,maxwidth,maxheight){var enc_text=encodeURIComponent(text.replace(/ /gi,'    ').replace(/&nbsp;/gi,'    ').replace(/&/g,'{amp}').replace(/\+/g,'{plus}'));enc_text=enc_text.replace(/%C2%A0/gi,'%20%20%20%20');return FLIR.options.path+'generate.php?text='+enc_text+'&h='+(maxheight?maxheight:'200')+'&w='+(maxwidth?maxwidth:'800')+'&fstyle='+(o?this.serialize(o):this.serialize());};FLIRStyle.prototype.serialize=function(o){var sdata='';var options=this.copyObject(this.options);if(o&&this.inheritStyle){for(var i in this.cssStyles){var name=this.cssStyles[i];if(this.options['c'+name]==null||name=='Size')
this.options['c'+name]=this.get(o,i,name);}}
for(var i in this.options){if(this.options[i]==null||typeof this.options[i]=='undefined'||this.options[i]=='NaN')
continue;sdata+=',"'+i+'":"'+this.options[i].toString().replace(/"/g,"'")+'"';}
sdata='{'+sdata.substr(1)+'}';this.options=options;return escape(sdata);};FLIRStyle.prototype.get=function(o,css_property,flirstyle_name){var func='get'+flirstyle_name;while(o.flirSpan&&o!=document.body)
o=FLIR.getParentNode(o);return typeof this[func]=='function'?this[func](o):FLIR.getStyle(o,css_property);};FLIRStyle.prototype.getFontStyle=function(o){return o.nodeName=='EM'||FLIR.getParentNode(o).nodeName=='EM'?'italic':FLIR.getStyle(o,'font-style');};FLIRStyle.prototype.getWeight=function(o){var fontweight=o.nodeName=='STRONG'||FLIR.getParentNode(o).nodeName=='STRONG'?'bold':FLIR.getStyle(o,'font-weight');switch(fontweight.toString()){case'100':case'200':case'300':case'lighter':return'lighter';case'400':case'normal':return'';case'500':case'600':case'700':case'bold':return'bold';case'800':case'900':case'bolder':return'bolder';}};FLIRStyle.prototype.getFont=function(o){var font=FLIR.getStyle(o,'font-family');if(font.indexOf(',')){font=font.split(',')[0];}
return font.replace(/['"]/g,'').toLowerCase();};FLIRStyle.prototype.getColor=function(o){var color=FLIR.getStyle(o,'color');if(color.substr(0,1)=='#')
color=color.substr(1);return color.replace(/['"]/g,'').toLowerCase();};FLIRStyle.prototype.getSize=function(o){if(this.options.cSize!=null&&'*/+-'.indexOf(this.options.cSize[0])<0)
return this.options.cSize;var raw=FLIR.getStyle(o,'font-size');var pix;if(raw.indexOf('px')>-1){pix=Math.round(parseFloat(raw));}else{if(raw.indexOf('pt')>-1){var pts=parseFloat(raw);pix=pts/(72/this.options.dpi);}else if(raw.indexOf('em')>-1||raw.indexOf('%')>-1){pix=this.calcFontSize(o);}}
if(this.options.cSize&&'*/+-'.indexOf(this.options.cSize[0])>-1){try{pix=this.roundFloat(parseFloat(eval(pix.toString().concat(this.options.cSize))));}catch(err){}}
o.flirFontSize=pix;return pix;};FLIRStyle.prototype.getSpacing=function(o){var spacing=FLIR.getStyle(o,'letter-spacing');var ret;if(spacing!='normal'){if(spacing.indexOf('em')>-1){var fontsize=o.flirFontSize?o.flirFontSize:this.getSize(o);ret=(parseFloat(spacing)*fontsize);}else if(spacing.indexOf('px')>-1){ret=parseFloat(spacing);}else if(spacing.indexOf('pt')>-1){var pts=parseFloat(spacing);ret=pts/(72/this.options.dpi);}
return this.roundFloat(ret);}
return'';};FLIRStyle.prototype.getLine=function(o){var spacing=FLIR.getStyle(o,'line-height');var val=parseFloat(spacing);var fontsize=o.flirFontSize?o.flirFontSize:this.getSize(o);if(spacing.indexOf('em')>-1){ret=(val*fontsize)/fontsize;}else if(spacing.indexOf('px')>-1){ret=val/fontsize;}else if(spacing.indexOf('pt')>-1){var pts=val;ret=(pts/(72/this.options.dpi))/fontsize;}else if(spacing.indexOf('%')>-1){return 1.0;}else{ret=val;}
return this.roundFloat(ret);};FLIRStyle.prototype.roundFloat=function(val){return Math.round(val*10000)/10000;};FLIRStyle.prototype.calcFontSize=function(o){var test=document.createElement('DIV');test.style.border='0';test.style.padding='0';test.style.position='absolute';test.style.visibility='hidden';test.style.left=test.style.top='-1000px';test.style.left=test.style.top='10px';test.style.lineHeight='100%';test.innerHTML='Flir_Test';o.appendChild(test);var size=test.offsetHeight;o.removeChild(test);return size;};FLIRStyle.prototype.copyObject=function(obj){var copy={};for(var i in obj){copy[i]=obj[i];}
return copy;};FLIRStyle.prototype.getBackground=function(o){var color=FLIR.getStyle(o,'background-color');if(color.substr(0,1)=='#')
color=color.substr(1);return color.replace(/['"]/g,'').toLowerCase();};FLIRStyle.prototype.toString=function(){return'[FLIRStyle Object]';};(function(d){d.tools=d.tools||{};d.tools.tabs={version:"1.0.4",conf:{tabs:"a",current:"current",onBeforeClick:null,onClick:null,effect:"default",initialIndex:0,event:"click",api:false,rotate:false},addEffect:function(e,f){c[e]=f}};var c={"default":function(f,e){this.getPanes().hide().eq(f).show();e.call()},fade:function(g,e){var f=this.getConf(),j=f.fadeOutSpeed,h=this.getPanes();if(j){h.fadeOut(j)}else{h.hide()}h.eq(g).fadeIn(f.fadeInSpeed,e)},slide:function(f,e){this.getPanes().slideUp(200);this.getPanes().eq(f).slideDown(400,e)},ajax:function(f,e){this.getPanes().eq(0).load(this.getTabs().eq(f).attr("href"),e)}};var b;d.tools.tabs.addEffect("horizontal",function(f,e){if(!b){b=this.getPanes().eq(0).width()}this.getCurrentPane().animate({width:0},function(){d(this).hide()});this.getPanes().eq(f).animate({width:b},function(){d(this).show();e.call()})});function a(g,h,f){var e=this,j=d(this),i;d.each(f,function(k,l){if(d.isFunction(l)){j.bind(k,l)}});d.extend(this,{click:function(k,n){var o=e.getCurrentPane();var l=g.eq(k);if(typeof k=="string"&&k.replace("#","")){l=g.filter("[href*="+k.replace("#","")+"]");k=Math.max(g.index(l),0)}if(f.rotate){var m=g.length-1;if(k<0){return e.click(m,n)}if(k>m){return e.click(0,n)}}if(!l.length){if(i>=0){return e}k=f.initialIndex;l=g.eq(k)}if(k===i){return e}n=n||d.Event();n.type="onBeforeClick";j.trigger(n,[k]);if(n.isDefaultPrevented()){return}c[f.effect].call(e,k,function(){n.type="onClick";j.trigger(n,[k])});n.type="onStart";j.trigger(n,[k]);if(n.isDefaultPrevented()){return}i=k;g.removeClass(f.current);l.addClass(f.current);return e},getConf:function(){return f},getTabs:function(){return g},getPanes:function(){return h},getCurrentPane:function(){return h.eq(i)},getCurrentTab:function(){return g.eq(i)},getIndex:function(){return i},next:function(){return e.click(i+1)},prev:function(){return e.click(i-1)},bind:function(k,l){j.bind(k,l);return e},onBeforeClick:function(k){return this.bind("onBeforeClick",k)},onClick:function(k){return this.bind("onClick",k)},unbind:function(k){j.unbind(k);return e}});g.each(function(k){d(this).bind(f.event,function(l){e.click(k,l);return false})});if(location.hash){e.click(location.hash)}else{if(f.initialIndex===0||f.initialIndex>0){e.click(f.initialIndex)}}h.find("a[href^=#]").click(function(k){e.click(d(this).attr("href"),k)})}d.fn.tabs=function(i,f){var g=this.eq(typeof f=="number"?f:0).data("tabs");if(g){return g}if(d.isFunction(f)){f={onBeforeClick:f}}var h=d.extend({},d.tools.tabs.conf),e=this.length;f=d.extend(h,f);this.each(function(l){var j=d(this);var k=j.find(f.tabs);if(!k.length){k=j.children()}var m=i.jquery?i:j.children(i);if(!m.length){m=e==1?d(i):j.parent().find(i)}g=new a(k,m,f);j.data("tabs",g)});return f.api?g:this}})(jQuery);(function(b){var a=b.tools.tabs;a.plugins=a.plugins||{};a.plugins.slideshow={version:"1.0.2",conf:{next:".forward",prev:".backward",disabledClass:"disabled",autoplay:false,autopause:true,interval:3000,clickable:true,api:false}};b.prototype.slideshow=function(e){var f=b.extend({},a.plugins.slideshow.conf),c=this.length,d;e=b.extend(f,e);this.each(function(){var p=b(this),m=p.tabs(),i=b(m),o=m;b.each(e,function(t,u){if(b.isFunction(u)){m.bind(t,u)}});function n(t){return c==1?b(t):p.parent().find(t)}var s=n(e.next).click(function(){m.next()});var q=n(e.prev).click(function(){m.prev()});var h,j,l,g=false;b.extend(m,{play:function(){if(h){return}var t=b.Event("onBeforePlay");i.trigger(t);if(t.isDefaultPrevented()){return m}g=false;h=setInterval(m.next,e.interval);i.trigger("onPlay");m.next()},pause:function(){if(!h){return m}var t=b.Event("onBeforePause");i.trigger(t);if(t.isDefaultPrevented()){return m}h=clearInterval(h);l=clearInterval(l);i.trigger("onPause")},stop:function(){m.pause();g=true;clearTimeout(l);},onBeforePlay:function(t){return m.bind("onBeforePlay",t)},onPlay:function(t){return m.bind("onPlay",t)},onBeforePause:function(t){return m.bind("onBeforePause",t)},onPause:function(t){return m.bind("onPause",t)}});if(e.autopause){var k=m.getTabs().add(s).add(q).add(m.getPanes());k.hover(function(){m.pause();j=clearInterval(j);clearTimeout(l);},function(){if(!g){j=setTimeout(m.play,e.interval)}})}if(e.autoplay){l=setTimeout(m.play,e.interval)}else{m.stop()}if(e.clickable){m.getPanes().click(function(){m.next()})}if(!m.getConf().rotate){var r=e.disabledClass;if(!m.getIndex()){q.addClass(r)}m.onBeforeClick(function(u,t){if(!t){q.addClass(r)}else{q.removeClass(r);if(t==m.getTabs().length-1){s.addClass(r)}else{s.removeClass(r)}}})}});return e.api?d:this}})(jQuery);(function(d){var a=d.tools.tabs;a.plugins=a.plugins||{};a.plugins.history={version:"1.0.2",conf:{api:false}};var e,b;function c(f){if(f){var g=b.contentWindow.document;g.open().close();g.location.hash=f}}d.fn.onHash=function(g){var f=this;if(d.browser.msie&&d.browser.version<"8"){if(!b){b=d("<iframe/>").attr("src","javascript:false;").hide().get(0);d("body").append(b);setInterval(function(){var i=b.contentWindow.document,j=i.location.hash;if(e!==j){d.event.trigger("hash",j);e=j}},100);c(location.hash||"#")}f.bind("click.hash",function(h){c(d(this).attr("href"))})}else{setInterval(function(){var j=location.hash;var i=f.filter("[href$="+j+"]");if(!i.length){j=j.replace("#","");i=f.filter("[href$="+j+"]")}if(i.length&&j!==e){e=j;d.event.trigger("hash",j)}},100)}d(window).bind("hash",g);return this};d.fn.history=function(g){var h=d.extend({},a.plugins.history.conf),f;g=d.extend(h,g);this.each(function(){var j=d(this).tabs(),i=j.getTabs();if(j){f=j}i.onHash(function(k,l){if(!l||l=="#"){l=j.getConf().initialIndex}j.click(l)});i.click(function(k){location.hash=d(this).attr("href").replace("#","")})});return g.api?f:this}})(jQuery);(function(b){b.tools=b.tools||{};b.tools.scrollable={version:"1.1.2",conf:{size:5,vertical:false,speed:400,keyboard:true,keyboardSteps:null,disabledClass:"disabled",hoverClass:null,clickable:true,activeClass:"active",easing:"swing",loop:false,items:".items",item:null,prev:".prev",next:".next",prevPage:".prevPage",nextPage:".nextPage",api:false}};var c;function a(o,m){var r=this,p=b(this),d=!m.vertical,e=o.children(),k=0,i;if(!c){c=r}b.each(m,function(s,t){if(b.isFunction(t)){p.bind(s,t)}});if(e.length>1){e=b(m.items,o)}function l(t){var s=b(t);return m.globalNav?s:o.parent().find(t)}o.data("finder",l);var f=l(m.prev),h=l(m.next),g=l(m.prevPage),n=l(m.nextPage);b.extend(r,{getIndex:function(){return k},getClickIndex:function(){var s=r.getItems();return s.index(s.filter("."+m.activeClass))},getConf:function(){return m},getSize:function(){return r.getItems().size()},getPageAmount:function(){return Math.ceil(this.getSize()/m.size)},getPageIndex:function(){return Math.ceil(k/m.size)},getNaviButtons:function(){return f.add(h).add(g).add(n)},getRoot:function(){return o},getItemWrap:function(){return e},getItems:function(){return e.children(m.item)},getVisibleItems:function(){return r.getItems().slice(k,k+m.size)},seekTo:function(s,w,t){if(s<0){s=0}if(k===s){return r}if(b.isFunction(w)){t=w}if(s>r.getSize()-m.size){return m.loop?r.begin():this.end()}var u=r.getItems().eq(s);if(!u.length){return r}var v=b.Event("onBeforeSeek");p.trigger(v,[s]);if(v.isDefaultPrevented()){return r}if(w===undefined||b.isFunction(w)){w=m.speed}function x(){if(t){t.call(r,s)}p.trigger("onSeek",[s])}if(d){e.animate({left:-u.position().left},w,m.easing,x)}else{e.animate({top:-u.position().top},w,m.easing,x)}c=r;k=s;v=b.Event("onStart");p.trigger(v,[s]);if(v.isDefaultPrevented()){return r}f.add(g).toggleClass(m.disabledClass,s===0);h.add(n).toggleClass(m.disabledClass,s>=r.getSize()-m.size);return r},move:function(u,t,s){i=u>0;return this.seekTo(k+u,t,s)},next:function(t,s){return this.move(1,t,s)},prev:function(t,s){return this.move(-1,t,s)},movePage:function(w,v,u){i=w>0;var s=m.size*w;var t=k%m.size;if(t>0){s+=(w>0?-t:m.size-t)}return this.move(s,v,u)},prevPage:function(t,s){return this.movePage(-1,t,s)},nextPage:function(t,s){return this.movePage(1,t,s)},setPage:function(t,u,s){return this.seekTo(t*m.size,u,s)},begin:function(t,s){i=false;return this.seekTo(0,t,s)},end:function(t,s){i=true;var u=this.getSize()-m.size;return u>0?this.seekTo(u,t,s):r},reload:function(){p.trigger("onReload");return r},focus:function(){c=r;return r},click:function(u){var v=r.getItems().eq(u),s=m.activeClass,t=m.size;if(u<0||u>=r.getSize()){return r}if(t==1){if(m.loop){return r.next()}if(u===0||u==r.getSize()-1){i=(i===undefined)?true:!i}return i===false?r.prev():r.next()}if(t==2){if(u==k){u--}r.getItems().removeClass(s);v.addClass(s);return r.seekTo(u,time,fn)}if(!v.hasClass(s)){r.getItems().removeClass(s);v.addClass(s);var x=Math.floor(t/2);var w=u-x;if(w>r.getSize()-t){w=r.getSize()-t}if(w!==u){return r.seekTo(w)}}return r},bind:function(s,t){p.bind(s,t);return r},unbind:function(s){p.unbind(s);return r}});b.each("onBeforeSeek,onStart,onSeek,onReload".split(","),function(s,t){r[t]=function(u){return r.bind(t,u)}});f.addClass(m.disabledClass).click(function(){r.prev()});h.click(function(){r.next()});n.click(function(){r.nextPage()});if(r.getSize()<m.size){h.add(n).addClass(m.disabledClass)}g.addClass(m.disabledClass).click(function(){r.prevPage()});var j=m.hoverClass,q="keydown."+Math.random().toString().substring(10);r.onReload(function(){if(j){r.getItems().hover(function(){b(this).addClass(j)},function(){b(this).removeClass(j)})}if(m.clickable){r.getItems().each(function(s){b(this).unbind("click.scrollable").bind("click.scrollable",function(t){if(b(t.target).is("a")){return}return r.click(s)})})}if(m.keyboard){b(document).unbind(q).bind(q,function(t){if(t.altKey||t.ctrlKey){return}if(m.keyboard!="static"&&c!=r){return}var u=m.keyboardSteps;if(d&&(t.keyCode==37||t.keyCode==39)){r.move(t.keyCode==37?-u:u);return t.preventDefault()}if(!d&&(t.keyCode==38||t.keyCode==40)){r.move(t.keyCode==38?-u:u);return t.preventDefault()}return true})}else{b(document).unbind(q)}});r.reload()}b.fn.scrollable=function(d){var e=this.eq(typeof d=="number"?d:0).data("scrollable");if(e){return e}var f=b.extend({},b.tools.scrollable.conf);d=b.extend(f,d);d.keyboardSteps=d.keyboardSteps||d.size;this.each(function(){e=new a(b(this),d);b(this).data("scrollable",e)});return d.api?e:this}})(jQuery);(function(b){var a=b.tools.scrollable;a.plugins=a.plugins||{};a.plugins.circular={version:"0.5.1",conf:{api:false,clonedClass:"cloned"}};b.fn.circular=function(e){var d=b.extend({},a.plugins.circular.conf),c;b.extend(d,e);this.each(function(){var i=b(this).scrollable(),n=i.getItems(),k=i.getConf(),f=i.getItemWrap(),j=0;if(i){c=i}if(n.length<k.size){return false}n.slice(0,k.size).each(function(o){b(this).clone().appendTo(f).click(function(){i.click(n.length+o)}).addClass(d.clonedClass)});var l=b.makeArray(n.slice(-k.size)).reverse();b(l).each(function(o){b(this).clone().prependTo(f).click(function(){i.click(-o-1)}).addClass(d.clonedClass)});var m=f.children(k.item);var h=k.hoverClass;if(h){m.hover(function(){b(this).addClass(h)},function(){b(this).removeClass(h)})}function g(o){var p=m.eq(o);if(k.vertical){f.css({top:-p.position().top})}else{f.css({left:-p.position().left})}}g(k.size);b.extend(i,{move:function(s,r,p,q){var u=j+s+k.size;var t=u>i.getSize()-k.size;if(u<=0||t){var o=j+k.size+(t?-n.length:n.length);g(o);u=o+s}if(q){m.removeClass(k.activeClass).eq(u+Math.floor(k.size/2)).addClass(k.activeClass)}if(u===j+k.size){return self}return i.seekTo(u,r,p)},begin:function(p,o){return this.seekTo(k.size,p,o)},end:function(p,o){return this.seekTo(n.length,p,o)},click:function(p,r,q){if(!k.clickable){return self}if(k.size==1){return this.next()}var s=p-j,o=k.activeClass;s-=Math.floor(k.size/2);return this.move(s,r,q,true)},getIndex:function(){return j},setPage:function(p,q,o){return this.seekTo(p*k.size+k.size,q,o)},getPageAmount:function(){return Math.ceil(n.length/k.size)},getPageIndex:function(){if(j<0){return this.getPageAmount()-1}if(j>=n.length){return 0}var o=(j+k.size)/k.size-1;return o},getVisibleItems:function(){var o=j+k.size;return m.slice(o,o+k.size)}});i.onStart(function(p,o){j=o-k.size;return false});i.getNaviButtons().removeClass(k.disabledClass)});return d.api?c:this}})(jQuery);(function(b){var a=b.tools.scrollable;a.plugins=a.plugins||{};a.plugins.autoscroll={version:"1.0.1",conf:{autoplay:true,interval:3000,autopause:true,steps:1,api:false}};b.fn.autoscroll=function(d){if(typeof d=="number"){d={interval:d}}var e=b.extend({},a.plugins.autoscroll.conf),c;b.extend(e,d);this.each(function(){var g=b(this).scrollable();if(g){c=g}var i,f,h=true;g.play=function(){if(i){return}h=false;i=setInterval(function(){g.move(e.steps)},e.interval);g.move(e.steps)};g.pause=function(){i=clearInterval(i)};g.stop=function(){g.pause();h=true};if(e.autopause){g.getRoot().add(g.getNaviButtons()).hover(function(){g.pause();clearInterval(f)},function(){if(!h){f=setTimeout(g.play,e.interval)}})}if(e.autoplay){setTimeout(g.play,e.interval)}});return e.api?c:this}})(jQuery);(function(b){var a=b.tools.scrollable;a.plugins=a.plugins||{};a.plugins.navigator={version:"1.0.2",conf:{navi:".navi",naviItem:null,activeClass:"active",indexed:false,api:false,idPrefix:null}};b.fn.navigator=function(d){var e=b.extend({},a.plugins.navigator.conf),c;if(typeof d=="string"){d={navi:d}}d=b.extend(e,d);this.each(function(){var i=b(this).scrollable(),f=i.getRoot(),l=f.data("finder").call(null,d.navi),g=null,k=i.getNaviButtons();if(i){c=i}i.getNaviButtons=function(){return k.add(l)};function j(){if(!l.children().length||l.data("navi")==i){l.empty();l.data("navi",i);for(var m=0;m<i.getPageAmount();m++){l.append(b("<"+(d.naviItem||"a")+"/>"))}g=l.children().each(function(n){var o=b(this);o.click(function(p){i.setPage(n);return p.preventDefault()});if(d.indexed){o.text(n)}if(d.idPrefix){o.attr("id",d.idPrefix+n)}})}else{g=d.naviItem?l.find(d.naviItem):l.children();g.each(function(n){var o=b(this);o.click(function(p){i.setPage(n);return p.preventDefault()})})}g.eq(0).addClass(d.activeClass)}i.onStart(function(o,n){var m=d.activeClass;g.removeClass(m).eq(i.getPageIndex()).addClass(m)});i.onReload(function(){j()});j();var h=g.filter("[href="+location.hash+"]");if(h.length){i.move(g.index(h))}});return d.api?c:this}})(jQuery);