﻿
// GSC code

var timerlen = 5;
var slideAniLen = 500;

var timerID = new Array();
var startTime = new Array();
var obj = new Array();
var startHeight = new Array();
var endHeight = new Array();
var moving = new Array();
var dir = new Array();
var gdir;

// -- RAB 01/24/2011 #6032 timer event function to open the donation or full register light boxes at 2min mark
var modalTimerEvent;
var donationRequestEndDate       = new Date("03/17/2011");
var registerRequestEndDate       = new Date("03/31/2011");
var loginOrRegisterRequestEndDate= new Date("04/14/2011");
var popUpTimer      = 120000;
var lightViewOpen   = false;

function liteBoxPopupSetup()
{

    // jcm don't run all this if they're already seen the modal this session
    var seenModal = readCookie("seenModal");
    if (seenModal == null)
    {
    var currentTime = new Date();
    var popUpName;
    var cookieName;
    var loggedin;
    var popInMilliSeconds;   
    
    // -- no more data windows, as long as user not logged in, show the register lightbox when it's time
    // -- is the user signed in? 
    loggedin = readCookie('.ASPXAUTH');
    if (loggedin == null) {
        popUpName = '#hiddenregister';
        cookieName= 'liteBoxStartTimeRegister';            
    } else
    {
        popUpName = ""; 
        cookieName= "";
    }
    // -- 
        
    // -- formulate popup and cookie names based on date window
    //if (currentTime <= donationRequestEndDate && readCookie("liteBoxDonate") != "feb2011") {
    //    popUpName = '#hiddendonate';
    //    cookieName= 'liteBoxStartTimeDonate';
    //} else if (currentTime > donationRequestEndDate && currentTime <= registerRequestEndDate) {
    //    // -- is the user signed in? 
    //    loggedin = readCookie('.ASPXAUTH');
    //    if (loggedin == null) {
    //        popUpName = '#hiddenregister';
    //        cookieName= 'liteBoxStartTimeRegister';            
    //    } else
    //    {
    //        popUpName = ""; 
    //        cookieName= "";
    //    }
    //} else {
    //    // -- third interval not handled here ... 
    //    popUpName = ""; 
    //    cookieName= "";
    //}
    
    if (popUpName == "" || cookieName == "") 
        return;

    // -- read the cookie
    var liteBoxPopStartTime = readCookie(cookieName);
            
    // -- if no cookie, set 2min timer; otherwise set for remaining time
    if (liteBoxPopStartTime == null) {
        // -- 2min
        popInMilliSeconds = popUpTimer;
        writeCookie(cookieName, currentTime);
    } else {
        // -- 2min minus remaining time
        liteBoxPopStartTime = unescape(liteBoxPopStartTime);
        liteBoxPopStartTime = new Date(liteBoxPopStartTime);
        var x = currentTime.getTime() - liteBoxPopStartTime.getTime();            
        popInMilliSeconds = popUpTimer - ( x );             
    }

    // -- show the modal popup box
    if (popInMilliSeconds > 0) {
        // alert('litebox will show in ' + (popInMilliSeconds / 1000) + ' seconds');
        modalTimerEvent=setTimeout("modalWindow('" + popUpName + "')", popInMilliSeconds);    
    }
    else
    {
    // jcm the time can go negative if they switch pages at the same time it should be firing
    // so show it soon
        modalTimerEvent=setTimeout("modalWindow('" + popUpName + "')", 7000);    
    }
    }
}

// -- RAB 02/08/2011 #6032 cookie mgmt
String.prototype.trim = function() {
    return this.replace(/^\s+|\s+$/g,"");
}
String.prototype.ltrim = function() {
    return this.replace(/^\s+/,"");
}
String.prototype.rtrim = function() {
    return this.replace(/\s+$/,"");
}

function writeCookie(cname, cvalue, cexpire) {
    document.cookie = cname + '=' + escape(cvalue) + ';'+
    // jcm typeof will actuaaly be object
    //(typeof cexpire == 'date' ? 'expires=' + cexpire.toGMTString() + ';' : '') +
    (cexpire instanceof Date ? 'expires=' + cexpire.toGMTString() + ';' : '') +
    'path=/';
}

function readCookie(name)
{
   var allcookies = document.cookie;
   // Get all the cookies pairs in an array
   var cookiearray  = allcookies.split(';');
   // Now take key value pair out of this array
   for(var i=0; i<cookiearray.length; i++){
      var targetName = cookiearray[i].split('=')[0];
      if (targetName != null) 
        targetName = targetName.trim();
      var targetValue = cookiearray[i].split('=')[1];
      if (targetValue != null) 
        targetValue = targetValue.trim();
      if (name == targetName) 
        return targetValue;              
   }
   return null;
}


// -- RAB 01/24/2011 #6032 added this function to allow for allowing setup of multiple functions to run via "onload"
function addOnloadEvent(fnc){
  if ( typeof window.addEventListener != "undefined" )
    window.addEventListener( "load", fnc, false );
  else if ( typeof window.attachEvent != "undefined" ) {
    window.attachEvent( "onload", fnc );
  }
  else {
    if ( window.onload != null ) {
      var oldOnload = window.onload;
      window.onload = function ( e ) {
        oldOnload( e );
        window[fnc]();
      };
    }
    else
      window.onload = fnc;
  }
}    
// -- RAB 01/24/2011

// -- RAB 02/16/2011
sfHover = function() 
{
    var sfEls = document.getElementById("topNav").getElementsByTagName("LI");
    for (var i=0; i<sfEls.length; i++) 
    {
        sfEls[i].onmouseover=function() 
        {
	        this.className+=" sfhover";
        }
        sfEls[i].onmouseout=function() 
        {
	        this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
        }
    }
}

function modalWindow(modalWindowContent)
{
    if (!lightViewOpen) {
        Lightview.show({href: modalWindowContent, id:modalWindowContent.substr(1, modalWindowContent.length), options: {autosize: true, topclose: true, keyboard: true, overlayClose: false, menubar: true } } );    
    }
    else
    {
        clearTimeout(modalTimerEvent); // modal open, try again in 30 secs
        modalTimerEvent = setTimeout("modalWindow('" + modalWindowContent + "')", 30000);    
    }
}

// jcm 02/16/2010 register the lightview for analytics
document.observe('lightview:opened', function(event) 
{
    var pageName = "/modal/" +  Lightview.inlineContent.id.replace("hidden", "") + "/feb2011/view";
    var pageTracker = _gat._getTracker("UA-2783370-1");
    pageTracker._trackPageview(pageName);
    lightViewOpen = true;
    
    // jcm only show the donate once, expire the cookie in two weeks
    if (Lightview.inlineContent.id == "hiddendonate")
    {
        var exp = new Date();
        exp.setDate(exp.getDate() + 14);
        writeCookie("liteBoxDonate", "feb2011", exp);
    }
    
    // jcm set a session cokie if they've seen a non-login modal so we don't do it twice
    if(Lightview.inlineContent.id != "hiddenlogin")
    {
         writeCookie("seenModal", "true");
    }
});

document.observe("lightview:hidden", function lightViewStatus() { lightViewOpen = false; } );

// -- RAB 01/24/2011

function slidedown(objname, height){
  if(moving[objname])
    return;

  moving[objname] = true;
  dir[objname] = "down";
  startslide(objname, height);
}
 
function slideup(objname, height){
  if(moving[objname])
    return;
 
 
  moving[objname] = true;
  dir[objname] = "up";
  startslide(objname, height);
}

function startslide(objname, height){
  obj[objname] = document.getElementById(objname);
 
  if (dir[objname] == "up")
  {
     endHeight[objname] = height
  }
  else
  {
    endHeight[objname] = parseInt(obj[objname].scrollHeight);
  }
  startHeight[objname] = parseInt(obj[objname].offsetHeight);
  startTime[objname] = (new Date()).getTime();
 
 // if(dir[objname] == "down"){
 //   obj[objname].style.height = "1px";
 // }
 
  obj[objname].style.display = "block";
 
  timerID[objname] = setInterval('slidetick(\'' + objname + '\', ' + height + ');',timerlen);
}

function slidetick(objname, height){
  var elapsed = (new Date()).getTime() - startTime[objname];
 
  if (elapsed > slideAniLen)
    endSlide(objname)
  else {
    var d =Math.round(elapsed / slideAniLen * (endHeight[objname] - startHeight[objname]));
    //if(dir[objname] == "up")
    //  d = endHeight[objname] - d + 100;
    d += height;
    if (d >= height)
        obj[objname].style.height = d + "px";
  }
 
  return;
}

function endSlide(objname){
  clearInterval(timerID[objname]);
 
  //if(dir[objname] == "up")
  //  obj[objname].style.display = "none";
 
  obj[objname].style.height = endHeight[objname] + "px";
 
  delete(moving[objname]);
  delete(timerID[objname]);
  delete(startTime[objname]);
  delete(endHeight[objname]);
  delete(obj[objname]);
  delete(dir[objname]);
 
  return;
}

function slide(objname, height){

    if (document.getElementById(objname + "Link").innerHTML == "... Click to read more")
    {
        slidedown(objname, height);
        //document.getElementById(objname + "Link").style.display = 'none';
        document.getElementById(objname + "Link").innerHTML = "... Click to hide";
    }
    else
    {
        slideup(objname, height);
        //document.getElementById(objname + "Link").style.display = 'none';
        document.getElementById(objname + "Link").innerHTML = "... Click to read more";
    }
}

function setUpExpDivs(divNames)
{
    //debugger;
    var divs = divNames.split(",");
    for (var i = 0; i < divs.length; i++)
    {
        var div = document.getElementById(divs[i]);
       // alert(div.offsetHeight + '|' + div.scrollHeight);
        if (div.scrollHeight <= 100)
        {          
            document.getElementById(div.id + "Link").style.display = 'none';
            if (div.innerHTML.toLowerCase().indexOf("span") == -1)
            {
               div.style.height = '0px';
               div.style.border = '0';
            }
        }
        else
        {
            div.style.height = '100px';
        }
    }
        
}
function setUpExpDivsProject(divNames)
{
    //debugger;
    var divs = divNames.split(",");
    for (var i = 0; i < divs.length; i++)
    {
        var div = document.getElementById(divs[i]);
       // alert(div.offsetHeight + '|' + div.scrollHeight);
        if (div.scrollHeight <= 300)
        {          
            document.getElementById(div.id + "Link").style.display = 'none';
            if (div.innerHTML.toLowerCase().indexOf("span") == -1)
            {
               div.style.height = '0px';
               div.style.border = '0';
            }
        }
        else
        {
            div.style.height = '300px';
        }
    }
        
}
function goBackorHome()
{
    if (Lightview)
    {
        Lightview.hide();
    }
    window.location= parent.document.referrer != "" && parent.document.referrer != null ? parent.document.referrer : "/home.aspx";
}
function AddTrailTiles(id)
{ 
    var cbx = document.getElementById(id);
    
    if (cbx.checked)
    {
        Map.overlayMapTypes.setAt("0",tileLayer);
        if(mgrNrby)
        {
            mgrNrby.show();
        }
    }
    else
    {
        Map.overlayMapTypes.setAt("0",null);
        if(mgrNrby)
        {
            mgrNrby.hide();
        }
    }
}
function ToggleBikeLayer(id)
{
    var cbx = document.getElementById(id);
    if (cbx.checked)
    {
        bikeLayer = new google.maps.BicyclingLayer();
        bikeLayer.setMap(Map);
    }
    else
    {
        bikeLayer.setMap(null);
    }
}
function SwapMarkers(id)
{
    var cbx = document.getElementById(id);
    var markers = id.substr(3);
    var marArray;
    if (markers == "Rr")
    {
        marArray = trailRrMarkers;
    }
    else if (markers == "Pkg")
    {
        marArray = trailPkgMarkers;
    }
    else if (markers == "Std")
    {
        marArray = trailStdMarkers;
    }
    else if (markers == "Endpt")
    {
        marArray = trailEndptMarkers;
    }
    else if (markers == "Thead")
    {
        marArray = trailTheadMarkers;
    }
    else if (markers == "Tun")
    {
        marArray = trailTunnMarkers;
    }
    else if (markers == "Wf")
    {
        marArray = trailWfMarkers;
    }    
    else if (markers == "Ph")
    {
        marArray = trailPhMarkers;
    }     
    if (cbx.checked)
    {
        mgr.addMarkers(marArray, '0');
    }
    else
    {
        for(var i = 0; i < marArray.length;i++)
        {
            mgr.removeMarker(marArray[i]);
        }
    }
    mgr.refresh();
}
function GetDirections(lat,lon, btn)
{
    dirRenderer.setMap(null);
    
    var mapDiv = $("mapDiv");
    mapDiv.className = "mapWithDir";
    var dirDiv = $("dir");
    dirDiv.style.display="block";
    var legendDiv = $("legend");
    legendDiv.style.display="none";
    var tbox = $("dirStartPt");
    var modeSelect = $("dirMode");
       
    var mode = modeSelect.options[modeSelect.selectedIndex].text;
    if (mode == 'Driving') 
    {
        mode = google.maps.DirectionsTravelMode.DRIVING;
    } 
    else if (mode == 'Biking') 
    {
        mode = google.maps.DirectionsTravelMode.BICYCLING;
    }
    else if (mode == 'Walking') 
    {
        mode = google.maps.DirectionsTravelMode.WALKING;
    }
    var dirRequest = {
      origin: tbox.value,
      destination: lat + "," + lon,
      travelMode: mode,
      provideRouteAlternatives: true
    };
    
    dirService.route(dirRequest, function(dirResult, dirStatus) {
    if (dirStatus != google.maps.DirectionsStatus.OK) {
      alert('Directions failed: ' + dirStatus);
      return;
    }

    dirRenderer.setMap(Map);
    dirRenderer.setPanel(dirDiv);
    dirRenderer.setDirections(dirResult);
  });

   return false; 
}
    
	
	function DisableRegValidators()
	{
	    ValidatorEnable(document.getElementById('ctl00_mainBody_RegisterAcctInfo_RegisterAcctInforfvFirstName'), false);
	    ValidatorEnable(document.getElementById('ctl00_mainBody_RegisterAcctInfo_RegisterAcctInforfvLastName'), false);
	    ValidatorEnable(document.getElementById('ctl00_mainBody_RegisterAcctInfo_RegisterAcctInforfvUserName'), false);
	    ValidatorEnable(document.getElementById('ctl00_mainBody_RegisterAcctInfo_RegisterAcctInforfvEmail'), false);
	    ValidatorEnable(document.getElementById('ctl00_mainBody_RegisterAcctInfo_RegisterAcctInforfvConfirmEmail'), false);
	    ValidatorEnable(document.getElementById('ctl00_mainBody_RegisterAcctInfo_RegisterAcctInforfvZip'), false);
	    ValidatorEnable(document.getElementById('ctl00_mainBody_val'), false);
	};
	
	function mapKeyPress(event, tbox)
	{
	    if ((event.which && event.which == 13) || (event.keyCode && event.keyCode == 13)) // enter key - ie does the wrong thing.  thanks microsoft
	    {
	        btn = document.getElementById("btn" + tbox.id);
	        btn.click();
	        event.returnValue = false;
	        event.cancelBubble = true;
	        return false;
	    }
	    return true;
	}
	
    function fbs_click() 
    {
        u=location.href;
        t=document.title;
        window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
        return false;
    }
//SuckerTree Horizontal Menu (Sept 14th, 06)
//By Dynamic Drive: http://www.dynamicdrive.com/style/

function buildsubmenus_horizontal(){
var menuids=["topNavMenu"] //Enter id(s) of SuckerTree UL menus, separated by commas
for (var i=0; i<menuids.length; i++){
  var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
    for (var t=0; t<ultags.length; t++){
		if (ultags[t].parentNode.parentNode.id==menuids[i]){ //if this is a first level submenu
			ultags[t].style.top=ultags[t].parentNode.offsetHeight+"px" //dynamically position first level submenus to be height of main menu item
		//	ultags[t].parentNode.getElementsByTagName("a")[0].className="mainfoldericon"
		}
		else{ //else if this is a sub level menu (ul)
		  ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px" //position menu to the right of menu item that activated it
    //	ultags[t].parentNode.getElementsByTagName("a")[0].className="subfoldericon"
		}
    ultags[t].parentNode.onmouseover=function(){
    alert(this.getElementsByTagName("ul")[0].style.zIndex);
    this.getElementsByTagName("ul")[0].style.visibility="visible"
    this.getElementsByTagName("ul")[0].style.zIndex="1000"
    alert(this.getElementsByTagName("ul")[0].style.zIndex);
    }
    ultags[t].parentNode.onmouseout=function(){
    alert("mouseout");
    //this.getElementsByTagName("ul")[0].style.visibility="hidden"
    }
    }
  }
}

function ratingMouseover(imgID, onImgSrc, offImgSrc)
{
    // arg is the id of the image we are hovering over
    
    // get the last char of the rating - thats the integer amount
    var currRating = imgID.substring(imgID.length, imgID.length-1);
    
    // get the other rating elements
    var imgs = $$("img.RatingStar");
    
    // set them to filled stars if they're lower than the hovered star
    for(var ii = 0; ii < imgs.length; ii++)
    {
        if (imgs[ii].id.substring(imgs[ii].id.length, imgs[ii].id.length-1) <= currRating)
        {
            imgs[ii].src=onImgSrc;
        }
        else
        {
            imgs[ii].src=offImgSrc;
        }
    }
}

function ratingMouseout(valID, onImgSrc, offImgSrc)
{
    // arg is the id of the hidden that holds the current rating
    var currRating = $(valID).value;
    
    // get the other rating elements
    var imgs = $$("img.RatingStar");
    
      // set them to filled stars if they're lower than the last clicked star
    for(var ii = 0; ii < imgs.length; ii++)
    {
       if (imgs[ii].id.substring(imgs[ii].id.length, imgs[ii].id.length-1) <= currRating)
        {
            imgs[ii].src=onImgSrc;
        }
        else
        {
            imgs[ii].src=offImgSrc;
        }
    }
}

function ratingClick(imgID, valID, onImgSrc, offImgSrc)
{
    // arg is the id of the star that was clicked and of the hidden that holds the current rating
    
    // get the rating for the clicked star
    var currRating = imgID.substring(imgID.length, imgID.length-1);
    
    // get the other rating elements
    var imgs = $$("img.RatingStar");
    
    // set them to filled stars if they're lower than the last clicked star
    for(var ii = 0; ii < imgs.length; ii++)
    {
        if (imgs[ii].id.substring(imgs[ii].id.length, imgs[ii].id.length-1) <= currRating)
        {
            imgs[ii].src=onImgSrc;
        }
        else
        {
            imgs[ii].src=offImgSrc;
        }
    }
    
    // set the hidden's val
    $(valID).value = currRating;
}

function ShowModalLogin()
{
    alert("Needs Login");
}

var isIE=navigator.userAgent.toLowerCase().indexOf("msie")>-1;var isMoz=document.implementation&&document.implementation.createDocument;var isSafari=((navigator.userAgent.toLowerCase().indexOf("safari")!=-1))?true:false;var BackCompat=document.compatMode.indexOf("BackCompat")>-1;var isOp=window.opera?1:0;function init(){if(arguments.callee.done){return}arguments.callee.done=true;if(_timer){clearInterval(_timer)}styleit()}if(document.addEventListener){document.addEventListener("DOMContentLoaded",init,false);
/*@cc_on @*/
/*@if (@_win32)
    document.write("<script id=__ie_onload defer src=javascript:void(0)><\/script>");
    var script = document.getElementById("__ie_onload");
    script.onreadystatechange = function() {
      if (this.readyState == "complete") {
        init(); // call the onload handler
      }
    };
  /*@end @*/
}if(/WebKit/i.test(navigator.userAgent)){var _timer=setInterval(function(){if(/loaded|complete/.test(document.readyState)){init()}},10)}window.onload=init;function styleit(){if(isIE){for(var I=0;I<document.styleSheets.length;I++){for(var G=0;G<document.styleSheets[I].rules.length;G++){var A=document.styleSheets[I].rules[G].style.CCborderRadius||0;var B=document.styleSheets[I].rules[G].style.CCborderRadiusTR||A;var F=document.styleSheets[I].rules[G].style.CCborderRadiusTL||A;var E=document.styleSheets[I].rules[G].style.CCborderRadiusBR||A;var H=document.styleSheets[I].rules[G].style.CCborderRadiusBL||A;if(A||B||B||E||H){var J=document.styleSheets[I].rules[G].selectorText;var D={tl:{radius:makeInt(F)},tr:{radius:makeInt(B)},bl:{radius:makeInt(H)},br:{radius:makeInt(E)},antiAlias:true,autoPad:true,validTags:["div"]};var C=new curvyCorners(D,replace(J,".",""));C.applyCornersToAll()}}}}}function makeInt(B){var D=new RegExp("([0-9]*)");var C=0;if(isNaN(B)){var A=D.exec(B);if(!isNaN(parseInt(A[1]))){C=A[1]}}else{C=B}return C}function right(B,A){return B.substr(B.length-A)}function left(B,A){return B.substr(0,A)}function reverse(C){var B="";var A=C.length;while(A>0){B+=C.substring(A-1,A);A--}return B}function replace(B,A,C){return B.replace(A,C)}function replaceall(C,B,A){while(C.indexOf(B)!=-1){C=C.replace(B,A)}return C}function middle(C,B,A){return C.substring(B-1,A)}function chopleft(C,B){var A="";if(C.search(B)<0){A=C}else{A=C.substring(C.search(B))}return A}function chopright(C,B){var A="";if(C.search(B)<0){A=C}else{A=C.substring(0,C.search(B))}return A}function ifTop(A,B){if(A.settings.tl||A.settings.tr){return B}else{return 0}}function ifBot(A,B){if(A.settings.bl||A.settings.br){return B}else{return 0}}function curvyCorners(){if(typeof(arguments[0])!="object"){throw newCurvyError("First parameter of curvyCorners() must be an object.")}if(typeof(arguments[1])!="object"&&typeof(arguments[1])!="string"){throw newCurvyError("Second parameter of curvyCorners() must be an object or a class name.")}if(typeof(arguments[1])=="string"){var G=0;var A=getElementsByClass(arguments[1])}else{var G=1;var A=arguments}var D=new Array();if(arguments[0].validTags){var F=arguments[0].validTags}else{var F=["div"]}for(var C=G,B=A.length;C<B;C++){var E=A[C].tagName.toLowerCase();if(inArray(F,E)!==false){if(!(A[C].style.IEborderRadius=="set")){A[C].style.IEborderRadius="set";D[D.length]=new curvyObject(arguments[0],A[C])}}}this.objects=D;this.applyCornersToAll=function(){for(var H=0,I=this.objects.length;H<I;H++){this.objects[H].applyCorners()}}}function curvyObject(){this.box=arguments[1];this.settings=arguments[0];this.topContainer=null;this.bottomContainer=null;this.shell=null;this.masterCorners=new Array();this.contentDIV=null;var U=get_style(this.box.parentNode,"height","height");if(typeof U=="undefined"){U="auto"}var K=get_style(this.box,"height","height");if(typeof K=="undefined"){K="auto"}if(isIE){var O=this.box.offsetWidth}else{var O=get_style(this.box,"width","width")}var f=get_style(this.box,"borderTopWidth","border-top-width");var N=get_style(this.box,"borderBottomWidth","border-bottom-width");var E=get_style(this.box.parentNode,"borderTopWidth","border-top-width");var H=get_style(this.box.parentNode,"borderBottomWidth","border-bottom-width");var F=get_style(this.box,"borderLeftWidth","border-left-width");var C=get_style(this.box,"borderRightWidth","border-right-width");var M=get_style(this.box,"borderTopColor","border-top-color");var I=get_style(this.box,"borderBottomColor","border-bottom-color");var B=get_style(this.box,"borderLeftColor","border-left-color");var e=get_style(this.box,"borderRightColor","border-right-color");var G=get_style(this.box,"backgroundColor","background-color");var D=get_style(this.box,"backgroundImage","background-image");var a=get_style(this.box,"backgroundRepeat","background-repeat");var X=get_style(this.box,"backgroundPositionX","background-position-x");var V=get_style(this.box,"backgroundPositionY","background-position-y");var T=get_style(this.box,"position","position");var S=get_style(this.box,"paddingTop","padding-top");var c=get_style(this.box,"paddingTop","padding-top");var g=get_style(this.box,"paddingBottom","padding-Bottom");var R=get_style(this.box.parentNode,"paddingTop","padding-top");var Z=get_style(this.box.parentNode,"paddingBottom","padding-Bottom");var W=get_style(this.box,"paddingLeft","padding-Left");var d=get_style(this.box,"paddingRight","padding-Right");var Y=get_style(this.box,"border","border");var A=get_style(this.box,"marginTop","margin-top");var J=get_style(this.box,"marginBottom","margin-bottom");var L=Math.max(this.settings.tl?this.settings.tl.radius:0,this.settings.tr?this.settings.tr.radius:0);var Q=Math.max(this.settings.bl?this.settings.bl.radius:0,this.settings.br?this.settings.br.radius:0);this.boxHeightP=parseInt(((U!=""&&U!="auto"&&U.indexOf("%")==-1)?U.substring(0,U.indexOf("px")):this.box.parentNode.offsetHeight));this.boxHeight=parseInt(((K!=""&&K!="auto"&&K.indexOf("%")==-1)?K.substring(0,K.indexOf("px")):this.box.offsetHeight));if(!isIE){this.boxWidth=parseInt(((O!=""&&O!="auto"&&O.indexOf("%")==-1)?O.substring(0,O.indexOf("px")):this.box.offsetWidth))}else{this.boxWidth=O}this.borderWidth=parseInt(((f!=""&&f.indexOf("px")!==-1)?f.slice(0,f.indexOf("px")):0));this.borderWidthB=parseInt(((N!=""&&N.indexOf("px")!==-1)?N.slice(0,N.indexOf("px")):0));this.borderWidthP=parseInt(((E!=""&&E.indexOf("px")!==-1)?E.slice(0,E.indexOf("px")):0));this.borderWidthBP=parseInt(((H!=""&&H.indexOf("px")!==-1)?H.slice(0,H.indexOf("px")):0));this.borderWidthL=parseInt(((F!=""&&F.indexOf("px")!==-1)?F.slice(0,F.indexOf("px")):0));this.borderWidthR=parseInt(((C!=""&&C.indexOf("px")!==-1)?C.slice(0,C.indexOf("px")):0));this.boxColour=format_colour(G);this.boxColourO=G;this.boxPadding=parseInt(((S!=""&&S.indexOf("px")!==-1)?S.slice(0,S.indexOf("px")):0));this.topPadding=parseInt(((c!=""&&c.indexOf("px")!==-1)?c.slice(0,c.indexOf("px")):0));this.bottomPadding=parseInt(((g!=""&&g.indexOf("px")!==-1)?g.slice(0,g.indexOf("px")):0));this.topPaddingP=parseInt(((R!=""&&R.indexOf("px")!==-1)?R.slice(0,R.indexOf("px")):0));this.bottomPaddingP=parseInt(((Z!=""&&Z.indexOf("px")!==-1)?Z.slice(0,Z.indexOf("px")):0));this.leftPadding=parseInt(((W!=""&&W.indexOf("px")!==-1)?W.slice(0,W.indexOf("px")):0));this.rightPadding=parseInt(((d!=""&&d.indexOf("px")!==-1)?d.slice(0,d.indexOf("px")):0));this.borderColour=format_colour(M);this.borderColourB=format_colour(I);this.borderColourL=format_colour(B);this.borderColourR=format_colour(e);this.borderString=this.borderWidth+"px solid "+this.borderColour;this.borderStringB=this.borderWidthB+"px solid "+this.borderColourB;this.backgroundImage=((D!="none")?D:"");this.backgroundRepeat=a;this.backgroundPosX=parseInt(((X!=""&&X.indexOf("px")!==-1)?X.slice(0,X.indexOf("px")):0));this.backgroundPosY=parseInt(((V!=""&&V.indexOf("px")!==-1)?V.slice(0,V.indexOf("px")):0));this.boxContent=this.box.innerHTML;this.topMargin=parseInt(((A!=""&&A.indexOf("px")!==-1)?A.slice(0,A.indexOf("px")):0));this.bottomMargin=parseInt(((J!=""&&J.indexOf("px")!==-1)?J.slice(0,J.indexOf("px")):0));this.box.innerHTML="";if(T!="absolute"){this.box.style.position="relative"}this.box.style.top="0";this.box.style.left="0";this.box.style.padding="0";this.box.style.border="none";this.box.style.backgroundColor="transparent";this.box.style.backgroundImage="none";if(isIE){if(BackCompat){this.box.style.width=parseInt(this.boxWidth)+"px";this.box.style.height=parseInt(this.boxHeight)+"px"}else{this.box.style.width=parseInt(this.boxWidth)+"px";this.box.style.height=parseInt(this.boxHeight)+"px"}}else{this.box.style.width=parseInt(this.boxWidth+this.leftPadding+this.rightPadding+this.borderWidthL+this.borderWidthR)+"px";this.box.style.height=parseInt(this.boxHeight+this.topPadding+this.bottomPadding+this.borderWidth+this.borderWidthB)+"px"}if(isIE){if(BackCompat){var P=document.createElement("DIV");P.style.width=parseInt(this.boxWidth)+"px";P.style.height=parseInt(this.boxHeight-L-Q)+"px"}else{var P=document.createElement("DIV");P.style.width=parseInt(this.boxWidth-this.borderWidthL-this.borderWidthR)+"px";var b=this.boxHeight-L-Q;if(b<0){b=0}P.style.height=parseInt(b)+"px"}}else{var P=document.createElement("DIV");P.style.width=parseInt(this.boxWidth+this.leftPadding+this.rightPadding)+"px";P.style.height=parseInt(this.boxHeight+this.topPadding+this.bottomPadding+this.borderWidth+this.borderWidthB-L-Q)+"px"}P.style.position="relative";P.style.padding="0";P.style.top=parseInt(L-this.borderWidth)+"px";P.style.left="0";P.style.border=parseInt(this.borderWidthL)+"px solid "+this.borderColourL;P.style.borderTopColor="transparent";P.style.borderBottomColor="transparent";P.style.backgroundColor=this.boxColourO;P.style.backgroundImage=this.backgroundImage;P.setAttribute("id","ccshell");this.shell=this.box.appendChild(P);this.box.setAttribute("id","ccoriginaldiv");var O=get_style(this.shell,"width","width");this.boxWidth=parseInt(((O!=""&&O!="auto"&&O.indexOf("%")==-1)?O.substring(0,O.indexOf("px")):this.shell.offsetWidth));this.applyCorners=function(){for(var AB=0;AB<2;AB++){switch(AB){case 0:if(this.settings.tl||this.settings.tr){var y=document.createElement("DIV");if(isIE){y.style.width=parseInt(this.boxWidth)+"px"}else{y.style.width=parseInt(this.boxWidth)+"px"}y.style.fontSize="1px";y.style.overflow="hidden";y.style.position="absolute";y.style.paddingLeft=this.borderWidth+"px";y.style.paddingRight=this.borderWidth+"px";y.style.height=L+"px";y.style.top=parseInt(0-L)+"px";y.style.left=0-this.borderWidthL+"px";y.setAttribute("id","cctopcontainer");this.topContainer=this.shell.appendChild(y)}break;case 1:if(this.settings.bl||this.settings.br){var y=document.createElement("DIV");if(isIE){y.style.width=parseInt(this.boxWidth)+"px"}else{y.style.width=parseInt(this.boxWidth)+"px"}y.style.fontSize="1px";y.style.overflow="hidden";y.style.position="absolute";y.style.paddingLeft=this.borderWidthB+"px";y.style.paddingRight=this.borderWidthB+"px";y.style.height=parseInt(Q)+"px";y.style.bottom=parseInt(0-Q)+"px";y.style.left=parseInt(0-this.borderWidthL)+"px";y.setAttribute("id","ccbottomcontainer");this.bottomContainer=this.shell.appendChild(y)}break}}var AG=["tr","tl","br","bl"];for(var AL=0;AL<AG.length;AL++){if(AL>-1<4){var AE=AG[AL];if(AE=="tr"||AE=="tl"){var AF=this.borderWidth;var AH=this.borderColour}else{var AF=this.borderWidthB;var AH=this.borderColourB}var x=document.createElement("DIV");x.style.height=this.settings[AE].radius+"px";x.style.width=this.settings[AE].radius+"px";x.style.position="absolute";x.style.fontSize="1px";x.style.overflow="hidden";var o=parseInt(this.settings[AE].radius-this.borderWidth);for(var v=0,AK=this.settings[AE].radius;v<AK;v++){if((v+1)>=o){var q=-1}else{var q=(Math.floor(Math.sqrt(Math.pow(o,2)-Math.pow((v+1),2)))-1)}if(o!=AK){if((v)>=o){var n=-1}else{var n=Math.ceil(Math.sqrt(Math.pow(o,2)-Math.pow(v,2)))}if((v+1)>=AK){var l=-1}else{var l=(Math.floor(Math.sqrt(Math.pow(AK,2)-Math.pow((v+1),2)))-1)}}if((v)>=AK){var h=-1}else{var h=Math.ceil(Math.sqrt(Math.pow(AK,2)-Math.pow(v,2)))}if(q>-1){this.drawPixel(v,0,this.boxColour,100,(q+1),x,-1,this.settings[AE].radius)}if(o!=AK){for(var u=(q+1);u<n;u++){if(this.settings.antiAlias){if(this.backgroundImage!=""){var m=(pixelFraction(v,u,o)*100);if(m<30){this.drawPixel(v,u,AH,100,1,x,0,this.settings[AE].radius)}else{this.drawPixel(v,u,AH,100,1,x,-1,this.settings[AE].radius)}}else{var AD=BlendColour(this.boxColour,AH,pixelFraction(v,u,o));this.drawPixel(v,u,AD,100,1,x,0,this.settings[AE].radius,AE)}}}if(this.settings.antiAlias){if(l>=n){if(n==-1){n=0}this.drawPixel(v,n,AH,100,(l-n+1),x,0,0)}}else{if(l>=q){this.drawPixel(v,(q+1),AH,100,(l-q),x,0,0)}}var s=AH}else{var s=this.boxColour;var l=q}if(this.settings.antiAlias){for(var u=(l+1);u<h;u++){this.drawPixel(v,u,s,(pixelFraction(v,u,AK)*100),1,x,((this.borderWidth>0)?0:-1),this.settings[AE].radius)}}}this.masterCorners[this.settings[AE].radius]=x.cloneNode(true);for(var AB=0,AJ=x.childNodes.length;AB<AJ;AB++){var w=x.childNodes[AB];var AI=parseInt(w.style.top.substring(0,w.style.top.indexOf("px")));var AN=parseInt(w.style.left.substring(0,w.style.left.indexOf("px")));var AP=parseInt(w.style.height.substring(0,w.style.height.indexOf("px")));if(AE=="tl"||AE=="bl"){w.style.left=this.settings[AE].radius-AN-1+"px"}if(AE=="tr"||AE=="tl"){w.style.top=this.settings[AE].radius-AP-AI+"px"}w.style.backgroundRepeat=this.backgroundRepeat;switch(AE){case"tr":if(isIE&&BackCompat){w.style.backgroundPosition=parseInt(this.backgroundPosX-Math.abs(0-this.borderWidthL+this.boxWidth-this.settings[AE].radius+AN))+"px "+parseInt(this.backgroundPosY-Math.abs(this.settings[AE].radius-AP-AI-this.borderWidth))+"px"}else{w.style.backgroundPosition=parseInt(this.backgroundPosX-Math.abs(this.borderWidthR-this.borderWidthL+(this.boxWidth-this.settings[AE].radius+this.borderWidthR)+AN))+"px "+parseInt(this.backgroundPosY-Math.abs(this.settings[AE].radius-AP-AI-this.borderWidth))+"px"}break;case"tl":w.style.backgroundPosition=parseInt(this.backgroundPosX-Math.abs((this.settings[AE].radius-AN-1)-this.borderWidthL))+"px "+parseInt(this.backgroundPosY-Math.abs(this.settings[AE].radius-AP-AI-this.borderWidth))+"px";break;case"bl":if(isIE){w.style.backgroundPosition=parseInt(this.backgroundPosX-Math.abs((this.settings[AE].radius-AN-1)-this.borderWidthL))+"px "+parseInt(this.backgroundPosY-Math.abs((this.boxHeight+(this.borderWidth-this.topPadding-1)-this.settings[AE].radius+AI)))+"px"}else{w.style.backgroundPosition=parseInt(this.backgroundPosX-Math.abs((this.settings[AE].radius-AN-1)-this.borderWidthL))+"px "+parseInt(this.backgroundPosY-Math.abs((this.boxHeight+(this.borderWidth+this.topPadding+this.bottomPadding)-this.settings[AE].radius+AI)))+"px"}break;case"br":if(isIE){w.style.backgroundPosition=parseInt(this.backgroundPosX-Math.abs(1+this.leftPadding-this.borderWidthL+this.boxWidth-this.settings[AE].radius+AN))+"px "+parseInt(this.backgroundPosY-Math.abs((this.boxHeight+(this.borderWidth-this.topPadding-1)-this.settings[AE].radius+AI)))+"px"}else{w.style.backgroundPosition=parseInt(this.backgroundPosX-Math.abs(this.borderWidthR-this.borderWidthL+(this.boxWidth-this.settings[AE].radius+this.borderWidthR)+AN))+"px "+parseInt(this.backgroundPosY-Math.abs((this.boxHeight+(this.borderWidth+this.topPadding+this.bottomPadding)-this.settings[AE].radius+AI)))+"px"}break}}switch(AE){case"tl":if(x.style.position=="absolute"){x.style.top="0px"}if(x.style.position=="absolute"){x.style.left="0px"}if(this.topContainer){b=this.topContainer.appendChild(x)}b.setAttribute("id","cctl");break;case"tr":if(x.style.position=="absolute"){x.style.top="0px"}if(x.style.position=="absolute"){x.style.right="0px"}if(this.topContainer){b=this.topContainer.appendChild(x)}b.setAttribute("id","cctr");break;case"bl":if(x.style.position=="absolute"){x.style.bottom="0px"}if(x.style.position=="absolute"){x.style.left="0px"}if(this.bottomContainer){b=this.bottomContainer.appendChild(x)}b.setAttribute("id","ccbl");break;case"br":if(x.style.position=="absolute"){x.style.bottom="0px"}if(x.style.position=="absolute"){x.style.right="0px"}if(this.bottomContainer){b=this.bottomContainer.appendChild(x)}b.setAttribute("id","ccbr");break}}}var AA=new Array();AA.t=Math.abs(this.settings.tl.radius-this.settings.tr.radius);AA.b=Math.abs(this.settings.bl.radius-this.settings.br.radius);for(z in AA){if(z=="t"||z=="b"){if(AA[z]){var AM=((this.settings[z+"l"].radius<this.settings[z+"r"].radius)?z+"l":z+"r");var p=document.createElement("DIV");p.style.height=AA[z]+"px";p.style.width=this.settings[AM].radius+"px";p.style.position="absolute";p.style.fontSize="1px";p.style.overflow="hidden";p.style.backgroundColor=this.boxColour;switch(AM){case"tl":p.style.bottom="0px";p.style.left="0px";p.style.borderLeft=this.borderString;b=this.topContainer.appendChild(p);b.id="cctlfiller";break;case"tr":p.style.bottom="0px";p.style.right="0px";p.style.borderRight=this.borderString;b=this.topContainer.appendChild(p);b.id="cctrfiller";break;case"bl":p.style.top="0px";p.style.left="0px";p.style.borderLeft=this.borderStringB;b=this.bottomContainer.appendChild(p);b.id="ccblfiller";break;case"br":p.style.top="0px";p.style.right="0px";p.style.borderRight=this.borderStringB;b=this.bottomContainer.appendChild(p);b.id="ccbrfiller";break}}var r=document.createElement("DIV");r.style.position="relative";r.style.fontSize="1px";r.style.overflow="hidden";r.style.backgroundColor=this.boxColour;r.style.backgroundImage=this.backgroundImage;r.style.backgroundRepeat=this.backgroundRepeat;switch(z){case"t":if(this.topContainer){if(this.settings.tl.radius&&this.settings.tr.radius){if(BackCompat){r.style.height=100+L+"px"}else{r.style.height=100+L-this.borderWidth+"px"}r.style.marginLeft=this.settings.tl.radius-this.borderWidthL+"px";r.style.marginRight=this.settings.tr.radius-this.borderWidthR+"px";r.style.borderTop=this.borderString;if(this.backgroundImage!=""){r.style.backgroundPosition=parseInt(this.backgroundPosX-(L-this.borderWidthL))+"px "+parseInt(this.backgroundPosY)+"px"}b=this.topContainer.appendChild(r);b.setAttribute("id","cctopmiddlefiller");this.shell.style.backgroundPosition=parseInt(this.backgroundPosX)+"px "+parseInt(this.backgroundPosY-(L-this.borderWidthL))+"px"}}break;case"b":if(this.bottomContainer){if(this.settings.bl.radius&&this.settings.br.radius){if(BackCompat&&isIE){r.style.height=Q+"px"}else{r.style.height=Q-this.borderWidth+"px"}r.style.marginLeft=this.settings.bl.radius-this.borderWidth+"px";r.style.marginRight=this.settings.br.radius-this.borderWidth+"px";r.style.borderBottom=this.borderStringB;if(isIE){if(BackCompat){if(this.backgroundImage!=""){r.style.backgroundPosition=parseInt(this.backgroundPosX-(Q-this.borderWidthL))+"px "+parseInt(this.backgroundPosY-(this.boxHeight+this.borderWidth-Q))+"px"}}else{if(this.backgroundImage!=""){r.style.backgroundPosition=parseInt(this.backgroundPosX-(Q-this.borderWidthL))+"px "+parseInt((1+this.topPadding)+this.backgroundPosY-(this.boxHeight+this.borderWidth-Q))+"px"}}}else{if(this.backgroundImage!=""){r.style.backgroundPosition=parseInt(this.backgroundPosX-(Q-this.borderWidthL))+"px "+parseInt(this.backgroundPosY-(this.boxHeight+this.topPadding+this.borderWidth+this.bottomPadding-Q))+"px"}}b=this.bottomContainer.appendChild(r);b.setAttribute("id","ccbottommiddlefiller")}}break}}}var AC=document.createElement("DIV");if(isIE){var AR=0}else{var AR=0}AC.style.position="absolute";AC.innerHTML=this.boxContent;AC.className="autoPadDiv";var AO=Math.abs(this.borderWidth+this.boxPadding);var AQ=Math.abs(this.borderWidthB+this.boxPadding);if(L<this.boxPadding){AC.style.paddingTop=parseInt(AR+AO)+"px"}else{AC.style.paddingTop="0";AC.style.top=parseInt(AR+AO)+"px"}if(Q<this.boxPadding){AC.style.paddingBottom=parseInt(AQ-Q)+"px"}else{AC.style.paddingBottom="0"}AC.style.paddingLeft=parseInt(this.borderWidthL+this.leftPadding)+"px";AC.style.paddingRight=this.rightPadding+"px";this.contentDIV=this.box.appendChild(AC)};this.drawPixel=function(s,p,h,o,q,r,l,n){var k=document.createElement("DIV");k.style.height=q+"px";k.style.width="1px";k.style.position="absolute";k.style.fontSize="1px";k.style.overflow="hidden";var m=Math.max(this.settings.tr.radius,this.settings.tl.radius);if(l==-1&&this.backgroundImage!=""){k.style.backgroundColor=h;k.style.backgroundImage=this.backgroundImage;k.style.backgroundPosition="-"+(this.boxWidth-(n-s)+this.borderWidth)+"px -"+((this.boxHeight+m+p)-this.borderWidth)+"px"}else{k.style.backgroundColor=h}if(o!=100){setOpacity(k,o)}k.style.top=p+"px";k.style.left=s+"px";r.appendChild(k)}}function insertAfter(B,C,A){B.insertBefore(C,A.nextSibling)}function BlendColour(L,J,G){var D=parseInt(L.substr(1,2),16);var K=parseInt(L.substr(3,2),16);var F=parseInt(L.substr(5,2),16);var C=parseInt(J.substr(1,2),16);var I=parseInt(J.substr(3,2),16);var E=parseInt(J.substr(5,2),16);if(G>1||G<0){G=1}var H=Math.round((D*G)+(C*(1-G)));if(H>255){H=255}if(H<0){H=0}var B=Math.round((K*G)+(I*(1-G)));if(B>255){B=255}if(B<0){B=0}var A=Math.round((F*G)+(E*(1-G)));if(A>255){A=255}if(A<0){A=0}return"#"+IntToHex(H)+IntToHex(B)+IntToHex(A)}function IntToHex(A){rem=A%16;base=Math.floor(A/16);baseS=MakeHex(base);remS=MakeHex(rem);return baseS+""+remS}function MakeHex(A){if((A>=0)&&(A<=9)){return A}else{switch(A){case 10:return"A";case 11:return"B";case 12:return"C";case 13:return"D";case 14:return"E";case 15:return"F"}}}function pixelFraction(H,G,A){var C=0;var B=new Array(1);var F=new Array(1);var I=0;var D="";var E=Math.sqrt((Math.pow(A,2)-Math.pow(H,2)));if((E>=G)&&(E<(G+1))){D="Left";B[I]=0;F[I]=E-G;I=I+1}var E=Math.sqrt((Math.pow(A,2)-Math.pow(G+1,2)));if((E>=H)&&(E<(H+1))){D=D+"Top";B[I]=E-H;F[I]=1;I=I+1}var E=Math.sqrt((Math.pow(A,2)-Math.pow(H+1,2)));if((E>=G)&&(E<(G+1))){D=D+"Right";B[I]=1;F[I]=E-G;I=I+1}var E=Math.sqrt((Math.pow(A,2)-Math.pow(G,2)));if((E>=H)&&(E<(H+1))){D=D+"Bottom";B[I]=E-H;F[I]=0}switch(D){case"LeftRight":C=Math.min(F[0],F[1])+((Math.max(F[0],F[1])-Math.min(F[0],F[1]))/2);break;case"TopRight":C=1-(((1-B[0])*(1-F[1]))/2);break;case"TopBottom":C=Math.min(B[0],B[1])+((Math.max(B[0],B[1])-Math.min(B[0],B[1]))/2);break;case"LeftBottom":C=(F[0]*B[1])/2;break;default:C=1}return C}function rgb2Hex(B){try{var C=rgb2Array(B);var G=parseInt(C[0]);var E=parseInt(C[1]);var A=parseInt(C[2]);var D="#"+IntToHex(G)+IntToHex(E)+IntToHex(A)}catch(F){alert("There was an error converting the RGB value to Hexadecimal in function rgb2Hex")}return D}function rgb2Array(A){var C=A.substring(4,A.indexOf(")"));var B=C.split(", ");return B}function setOpacity(F,C){C=(C==100)?99.999:C;if(isSafari&&F.tagName!="IFRAME"){var B=rgb2Array(F.style.backgroundColor);var E=parseInt(B[0]);var D=parseInt(B[1]);var A=parseInt(B[2]);F.style.backgroundColor="rgba("+E+", "+D+", "+A+", "+C/100+")"}else{if(typeof(F.style.opacity)!="undefined"){F.style.opacity=C/100}else{if(typeof(F.style.MozOpacity)!="undefined"){F.style.MozOpacity=C/100}else{if(typeof(F.style.filter)!="undefined"){F.style.filter="alpha(opacity:"+C+")"}else{if(typeof(F.style.KHTMLOpacity)!="undefined"){F.style.KHTMLOpacity=C/100}}}}}}function inArray(C,B){for(var A=0;A<C.length;A++){if(C[A]===B){return A}}return false}function inArrayKey(B,A){for(key in B){if(key===A){return true}}return false}function addEvent(E,D,B,A){if(E.addEventListener){E.addEventListener(D,B,A);return true}else{if(E.attachEvent){var C=E.attachEvent("on"+D,B);return C}else{E["on"+D]=B}}}function removeEvent(E,D,B,A){if(E.removeEventListener){E.removeEventListener(D,B,A);return true}else{if(E.detachEvent){var C=E.detachEvent("on"+D,B);return C}else{alert("Handler could not be removed")}}}function format_colour(B){var A="#ffffff";if(B!=""&&B!="transparent"){if(B.substr(0,3)=="rgb"){A=rgb2Hex(B)}else{if(B.length==4){A="#"+B.substring(1,2)+B.substring(1,2)+B.substring(2,3)+B.substring(2,3)+B.substring(3,4)+B.substring(3,4)}else{A=B}}}return A}function get_style(obj,property,propertyNS){try{if(obj.currentStyle){var returnVal=eval("obj.currentStyle."+property)}else{if(isSafari&&obj.style.display=="none"){obj.style.display="";var wasHidden=true}var returnVal=document.defaultView.getComputedStyle(obj,"").getPropertyValue(propertyNS);if(isSafari&&wasHidden){obj.style.display="none"}}}catch(e){}return returnVal}function getElementsByClass(G,E,A){var D=new Array();if(E==null){E=document}if(A==null){A="*"}var C=E.getElementsByTagName(A);var B=C.length;var F=new RegExp("(^|\\s)"+G+"(\\s|$)");for(i=0,j=0;i<B;i++){if(F.test(C[i].className)){D[j]=C[i];j++}}return D}function newCurvyError(A){return new Error("curvyCorners Error:\n"+A)};

//  Lightview 2.5 - 17-5-2009
//  Copyright (c) 2008-2009 Nick Stakenburg (http://www.nickstakenburg.com)
//
//  Licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 Unported License
//  http://creativecommons.org/licenses/by-nc-nd/3.0/

//  More information on this project:
//  http://www.nickstakenburg.com/projects/lightview/

var Lightview = {
  Version: '2.5',

  // Configuration
  options: {
    backgroundColor: '#ffffff',                            // Background color of the view
    border: 12,                                            // Size of the border
    buttons: {
      opacity: {                                           // Opacity of inner buttons
        disabled: 0.4,
        normal: 0.75,
        hover: 1
      },
      side: { display: true },                             // Toggle side buttons
      innerPreviousNext: { display: true },                // Toggle the inner previous and next button
      slideshow: { display: true },                        // Toggle slideshow button
      topclose: { side: 'right' }                          // 'right' or 'left'                    
    },
    controller: {                                          // The controller is used on sets
      backgroundColor: '#4d4d4d',
      border: 6,
      buttons: {
        innerPreviousNext: true,
        side: false
      },
      margin: 18,
      opacity: 0.7,
      radius: 6,
      setNumberTemplate: '#{position} of #{total}'
    },
    cyclic: false,                                         // Makes galleries cyclic, no end/begin
    images: 'http://www.traillink.com/images/lightview/',                        // The directory of the images, from this file
    imgNumberTemplate: 'Image #{position} of #{total}',    // Want a different language? change it here
    keyboard: true,                                        // Toggle keyboard buttons
    menubarPadding: 6,                                     // Space between menubar and content in px
    overlay: {                                             // Overlay
      background: '#000',                                  // Background color, Mac Firefox & Mac Safari use overlay.png
      close: true,
      opacity: 0.65,
      display: true
    },
    preloadHover: false,                                   // Preload images on mouseover
    radius: 12,                                            // Corner radius of the border
    removeTitles: true,                                    // Set to false if you want to keep title attributes intact
    resizeDuration: 0.45,                                  // The duration of the resize effect in seconds
    slideshowDelay: 5,                                     // Delay in seconds before showing the next slide
    titleSplit: '::',                                      // The characters you want to split title with
    transition: function(pos) {                            // Or your own transition
      return ((pos/=0.5) < 1 ? 0.5 * Math.pow(pos, 4) :
        -0.5 * ((pos-=2) * Math.pow(pos,3) - 2));
    },
    viewport: true,                                        // Stay within the viewport, true is recommended
    zIndex: 5000,                                          // zIndex of #lightview, #overlay is this -1

    startDimensions: {                                     // Dimensions Lightview starts at
      width: 100,
      height: 100
    },
    closeDimensions: {                                     // Modify if you've changed the close button images
      large: { width: 77, height: 22 },
      small: { width: 25, height: 22 }
    },
    sideDimensions: {                                      // Modify if you've changed the side button images
      width: 16,
      height: 22
    },

    defaultOptions : {                                     // Default options for each type of view
      image: {
        menubar: 'bottom',
        closeButton: 'large'
      },
      gallery: {
        menubar: 'bottom',
        closeButton: 'large'
      },
      ajax:   {
        width: 400,
        height: 300,
        menubar: 'top',
        closeButton: 'small',
        overflow: 'auto'
      },
      iframe: {
        width: 400,
        height: 300,
        menubar: 'top',
        scrolling: true,
        closeButton: 'small'
      },
      inline: {
        width: 400,
        height: 300,
        menubar: 'top',
        closeButton: 'small',
        overflow: 'auto'
      },
      flash: {
        width: 400,
        height: 300,
        menubar: 'bottom',
        closeButton: 'large'
      },
      quicktime: {
        width: 480,
        height: 220,
        autoplay: true,
        controls: true,
        closeButton: 'large'
      }
    }
  },
  classids: {
    quicktime: 'clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B',
    flash: 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'
  },
  codebases: {
    quicktime: 'http://www.apple.com/qtactivex/qtplugin.cab#version=7,5,5,0',
    flash: 'http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0'
  },
  errors: {
    requiresPlugin: "<div class='message'> The content your are attempting to view requires the <span class='type'>#{type}</span> plugin.</div><div class='pluginspage'><p>Please download and install the required plugin from:</p><a href='#{pluginspage}' target='_blank'>#{pluginspage}</a></div>"
  },
  mimetypes: {
    quicktime: 'video/quicktime',
    flash: 'application/x-shockwave-flash'
  },
  pluginspages: {
    quicktime: 'http://www.apple.com/quicktime/download',
    flash: 'http://www.adobe.com/go/getflashplayer'
  },
  // used with auto detection
  typeExtensions: {
    flash: 'swf',
    image: 'bmp gif jpeg jpg png',
    iframe: 'asp aspx cgi cfm htm html jsp php pl php3 php4 php5 phtml rb rhtml shtml txt',
    quicktime: 'avi mov mpg mpeg movie'
  }
};

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(u(){G l=!!1d.8P("3j").5h,2H=1l.1T.2I&&(u(a){G b=E 4p("8Q ([\\\\d.]+)").8R(a);O b?3J(b[1]):-1})(35.4q)<7,2t=(1l.1T.5i&&!1d.3K),2R=35.4q.22("6x")>-1&&3J(35.4q.3L(/6x[\\/\\s](\\d+)/)[1])<3,4r=!!35.4q.3L(/8S/i)&&(2t||2R);18.1o(11,{8T:"1.6.0.3",8U:"1.8.2",V:{1b:"5j",3k:"Y"},5k:u(a){q((8V 1J[a]=="8W")||(n.5l(1J[a].8X)<n.5l(n["6y"+a]))){8Y("11 8Z "+a+" >= "+n["6y"+a]);}},5l:u(a){G v=a.2S(/6z.*|\\./g,"");v=4s(v+"0".90(4-v.1s));O a.22("6z")>-1?v-1:v},5m:u(){n.5k("1l");q(!!1J.17&&!1J.6A){n.5k("6A")}q(/^(91?:\\/\\/|\\/)/.4t(n.F.1f)){n.1f=n.F.1f}10{G a=/Y(?:-[\\w\\d.]+)?\\.92(.*)/;n.1f=(($$("93 94[1x]").6B(u(s){O s.1x.3L(a)})||{}).1x||"").2S(a,"")+n.F.1f}q(!l){q(1d.5n>=8&&!1d.6C.3l){1d.6C.95("3l","96:97-98-99:9a","#5o#6D")}10{1d.1i("5p:3M",u(){1d.9b().9c("3l\\\\:*","9d: 3N(#5o#6D);")})}}},5q:u(){n.1C=n.F.1C;n.W=(n.1C>n.F.W)?n.1C:n.F.W;n.1K=n.F.1K;n.1U=n.F.1U;n.4u()}});18.1o(11,{6E:14,2g:u(){G a=3O.9e;a.5r++;q(a.5r==n.6E){$(1d.29).5s("Y:3M")}}});11.2g.5r=0;18.1o(11,{4u:u(){n.Y=E N("U",{2T:"Y"});G d,3m,4v=1V(n.1U);q(2t){n.Y.19=u(){n.I("1j:-3n;1e:-3n;1p:1W;");O n};n.Y.1c=u(){n.I("1p:1y");O n};n.Y.1y=u(){O(n.1L("1p")=="1y"&&3J(n.1L("1e").2S("M",""))>-6F)}}$(1d.29).Q(n.2u=E N("U",{2T:"6G"}).I({2U:n.F.2U-1,1b:(!(2R||2H))?"4w":"36",2a:4r?"3N("+n.1f+"2u.1w) 1e 1j 3o":n.F.2u.2a}).1q(4r?1:n.F.2u.1F).19()).Q(n.Y.I({2U:n.F.2U,1e:"-3n",1j:"-3n"}).1q(0).Q(n.6H=E N("U",{R:"9f"}).Q(n.3P=E N("3p",{R:"9g"}).Q(n.6I=E N("1D",{R:"9h"}).I(3m=18.1o({1M:-1*n.1U.H+"M"},4v)).Q(n.4x=E N("U",{R:"5t"}).I(18.1o({1M:n.1U.H+"M"},4v)).Q(E N("U",{R:"1G"})))).Q(n.6J=E N("1D",{R:"9i"}).I(18.1o({6K:-1*n.1U.H+"M"},4v)).Q(n.4y=E N("U",{R:"5t"}).I(3m).Q(E N("U",{R:"1G"}))))).Q(n.6L=E N("U",{R:"6M"}).Q(n.4z=E N("U",{R:"5t 9j"}).Q(n.9k=E N("U",{R:"1G"})))).Q(E N("3p",{R:"9l"}).Q(E N("1D",{R:"6N 9m"}).Q(d=E N("U",{R:"9n"}).I({J:n.W+"M"}).Q(E N("3p",{R:"6O 9o"}).Q(E N("1D",{R:"6P"}).Q(E N("U",{R:"2v"})).Q(E N("U",{R:"38"}).I({1j:n.W+"M"})))).Q(E N("U",{R:"6Q"})).Q(E N("3p",{R:"6O 9p"}).Q(E N("1D",{R:"6P"}).I("1N-1e: "+(-1*n.W)+"M").Q(E N("U",{R:"2v"})).Q(E N("U",{R:"38"}).I("1j: "+(-1*n.W)+"M")))))).Q(n.4A=E N("1D",{R:"9q"}).I("J: "+(9r-n.W)+"M").Q(E N("U",{R:"9s"}).Q(E N("U",{R:"6R"}).I("1N-1e: "+n.W+"M").Q(n.2V=E N("U",{R:"9t"}).1q(0).I("3q: 0 "+n.W+"M").Q(n.6S=E N("U",{R:"9u 38"})).Q(n.1r=E N("U",{R:"9v 6T"}).Q(n.2h=E N("U",{R:"1G 6U"}).I(1V(n.F.1K.3a)).I({2a:n.F.12}).1q(n.F.1E.1F.3b)).Q(n.2W=E N("3p",{R:"9w"}).Q(n.5u=E N("1D",{R:"9x"}).Q(n.1H=E N("U",{R:"9y"})).Q(n.2i=E N("U",{R:"9z"}))).Q(n.5v=E N("U",{R:"9A"}).Q(n.3Q=E N("1D",{R:"9B"}).Q(E N("U"))).Q(n.4B=E N("1D",{R:"9C"}).Q(n.9D=E N("U",{R:"1G"}).1q(n.F.1E.1F.3b).I({12:n.F.12}).1O(n.1f+"9E.1w",{12:n.F.12})).Q(n.9F=E N("U",{R:"1G"}).1q(n.F.1E.1F.3b).I({12:n.F.12}).1O(n.1f+"9G.1w",{12:n.F.12}))).Q(n.2b=E N("1D",{R:"9H"}).Q(n.3c=E N("U",{R:"1G"}).1q(n.F.1E.1F.3b).I({12:n.F.12}).1O(n.1f+"6V.1w",{12:n.F.12})))))).Q(n.6W=E N("U",{R:"9I "}))))).Q(n.3r=E N("U",{R:"6X"}).Q(n.9J=E N("U",{R:"1G"}).I("2a: 3N("+n.1f+"3r.5w) 1e 1j 4C-3o")))).Q(E N("1D",{R:"6N 9K"}).Q(d.9L(2c))).Q(n.1X=E N("1D",{R:"9M"}).19().I("1N-1e: "+n.W+"M; 2a: 3N("+n.1f+"9N.5w) 1e 1j 3o"))))).Q(E N("U",{2T:"3R"}).19());G f=E 2j();f.1z=u(){f.1z=1l.2w;n.1U={H:f.H,J:f.J};G a=1V(n.1U),3m;n.3P.I({23:0-(f.J/2).2k()+"M",J:f.J+"M"});n.6I.I(3m=18.1o({1M:-1*n.1U.H+"M"},a));n.4x.I(18.1o({1M:a.H},a));n.6J.I(18.1o({6K:-1*n.1U.H+"M"},a));n.4y.I(3m);n.2g()}.X(n);f.1x=n.1f+"2x.1w";$w("2V 1H 2i 3Q").3S(u(e){n[e].I({12:n.F.12})}.X(n));G g=n.6H.2y(".2v");$w("6Y 6Z bl br").1g(u(a,i){q(n.1C>0){n.5x(g[i],a)}10{g[i].Q(E N("U",{R:"38"}))}g[i].I({H:n.W+"M",J:n.W+"M"}).70("2v"+a.1P());n.2g()}.X(n));n.Y.2y(".6Q",".38",".6R").3s("I",{12:n.F.12});G S={};$w("2x 1h 2l").1g(u(s){n[s+"3t"].1Q=s;G b=n.1f+s+".1w";q(s=="2l"){S[s]=E 2j();S[s].1z=u(){S[s].1z=1l.2w;n.1K[s]={H:S[s].H,J:S[s].J};G a=n.F.1E.2l.1Q,2e=18.1o({"5y":a,23:n.1K[s].J+"M"},1V(n.1K[s]));2e["3q"+a.1P()]=n.W+"M";n[s+"3t"].I(2e);n.6L.I({J:S[s].J+"M",1e:-1*n.1K[s].J+"M"});n[s+"3t"].5z().1O(b).I(1V(n.1K[s]));n.2g()}.X(n);S[s].1x=n.1f+s+".1w"}10{n[s+"3t"].1O(b)}},n);G C={};$w("3a 5A").1g(u(a){C[a]=E 2j();C[a].1z=u(){C[a].1z=1l.2w;n.1K[a]={H:C[a].H,J:C[a].J};n.2g()}.X(n);C[a].1x=n.1f+"71"+a+".1w"},n);G L=E 2j();L.1z=u(){L.1z=1l.2w;n.3r.I({H:L.H+"M",J:L.J+"M",23:-0.5*L.J+0.5*n.W+"M",1M:-0.5*L.H+"M"});n.2g()}.X(n);L.1x=n.1f+"3r.5w";G h=E 2j();h.1z=u(a){h.1z=1l.2w;G b={H:h.H+"M",J:h.J+"M"};n.2b.I(b);n.3c.I(b);n.2g()}.X(n);h.1x=n.1f+"72.1w";$w("2x 1h").1g(u(s){G S=s.1P(),i=E 2j();i.1z=u(){i.1z=1l.2w;n["3u"+S+"3v"].I({H:i.H+"M",J:i.J+"M"});n.2g()}.X(n);i.1x=n.1f+"9O"+s+".1w";n["3u"+S+"3v"].1X=s},n);$w("2b 4B 3Q").1g(u(c){n[c].19=n[c].19.1A(u(a,b){n.2e.1b="36";a(b);O n});n[c].1c=n[c].1c.1A(u(a,b){n.2e.1b="9P";a(b);O n})},n);n.Y.2y("*").3s("I",{2U:n.F.2U+1});n.Y.19();n.2g()},73:u(){17.2J.2m("Y").3S(u(e){e.74()});n.1Y=1I;q(n.y.1Z()){n.75=n.76;q(n.13&&!n.13.1y()){n.13.I("1p:1W").1c();n.3d.1q(0)}}10{n.75=1I;n.13.19()}q(4s(n.4z.1L("23"))<n.1K.2l.J){n.5B(2K)}n.77();n.78();E 17.1m({V:n.V,1t:u(){$w("1e 3T").1g(u(a){G b=a.1P();n["3w"+b].2n();G c={};n["3w"+b]=E N("U",{R:"9Q"+b}).19();c[a]=n["3w"+b];n.2V.Q(c)}.X(n))}.X(n)});n.5C();n.1n=1I},5D:u(){q(!n.3U||!n.3V){O}n.3V.Q({2X:n.3U.I({2z:n.3U.79})});n.3V.2n();n.3V=1I},1c:u(b){n.1u=1I;G c=18.7a(b);q(18.7b(b)||c){q(c&&b.3x("#")){n.1c({1k:b,F:18.1o({4D:2c},3O[1]||{})});O}n.1u=$(b);q(!n.1u){O}n.1u.9R();n.y=n.1u.24||E 11.3W(n.1u)}10{q(b.1k){n.1u=$(1d.29);n.y=E 11.3W(b)}10{q(18.7c(b)){n.1u=n.4E(n.y.26)[b];n.y=n.1u.24}}}q(!n.y.1k){O}n.73();q(n.y.2o()||n.y.1Z()){n.7d(n.y.26);n.1n=n.5E(n.y.26);q(n.y.1Z()){n.2A=n.1n.1s>1?n.7e:0;n.2Y=n.1n.9S(u(a){O a.2Z()})}}n.3X();n.7f();q(n.y.1k!="#3R"&&18.7g(11.4F).7h(" ").22(n.y.1a)>=0){q(!11.4F[n.y.1a]){$("3R").1B(E 4G(n.9T.9U).3K({1a:n.y.1a.1P(),5F:n.5G[n.y.1a]}));G d=$("3R").2f();n.1c({1k:"#3R",1H:n.y.1a.1P()+" 9V 9W",F:d});O 2K}}G e=18.1o({1r:"3T",2l:2K,5H:"9X",3Y:n.y.2o()&&n.F.1E.3Y.2z,5I:n.F.5I,2b:(n.y.2o()&&n.F.1E.2b.2z)||(n.2Y),2B:"1W",7i:n.F.2u.9Y,3Z:n.F.3Z},n.F.9Z[n.y.1a]||{});n.y.F=18.1o(e,n.y.F);q(n.y.1Z()){n.y.F.2l=(n.1n.1s<=1)}q(!(n.y.1H||n.y.2i||(n.1n&&n.1n.1s>1))&&n.y.F.2l){n.y.F.1r=2K}n.1R="3w"+(n.y.F.1r=="1e"?"7j":"7k");q(n.y.2Z()){q(!l&&!n.y.7l){n.y.7l=2c;G f=E N("3l:2p",{1x:n.y.1k,2z:"a0"}).I("J:5J;H:5J;");$(1d.29).Q(f);N.2n.3e(0.1,f)}q(n.y.2o()||n.y.1Z()){n.1b=n.1n.22(n.y);n.7m()}n.27=n.y.4H;q(n.27){n.4I()}10{n.5K();G f=E 2j();f.1z=u(){f.1z=1l.2w;n.4J();n.27={H:f.H,J:f.J};n.4I()}.X(n);f.1x=n.y.1k}}10{q(n.y.1Z()){n.1b=n.1n.22(n.y)}n.27=n.y.F.7n?m.2f():{H:n.y.F.H,J:n.y.F.J};n.4I()}},4K:(u(){u 5L(a,b,c){a=$(a);G d=1V(c);a.1B(E N("7o",{2T:"2C",1x:b,a1:"",a2:"4C"}).I(d))}G k=(u(){u 7p(a,b,c){a=$(a);G d=18.1o({"5y":"1j"},1V(c));G e=E N("3l:2p",{1x:b,2T:"2C"}).I(d);a.1B(e);e.4L=e.4L}u 7q(b,c,d){b=$(b);G f=1V(d),2p=E 2j();2p.1z=u(){3j=E N("3j",f);b.1B(3j);40{G a=3j.5h("2d");a.a3(2p,0,0,d.H,d.J)}41(e){5L(b,c,d)}}.X(n);2p.1x=c}q(1l.1T.2I){O 7p}10{O 7q}})();O u(){G c=n.7r(n.y.1k),2L=n.1Y||n.27;q(n.y.2Z()){G d=1V(2L);n[n.1R].I(d);q(n.1Y){k(n[n.1R],n.y.1k,2L)}10{5L(n[n.1R],n.y.1k,2L)}}10{q(n.y.5M()){4M(n.y.1a){2M"42":G f=18.5N(n.y.F.42)||{};G g=u(){n.4J();q(n.y.F.4D){n[n.1R].I({H:"1S",J:"1S"});n.27=n.5O(n[n.1R])}E 17.1m({V:n.V,1t:n.4N.X(n)})}.X(n);q(f.4O){f.4O=f.4O.1A(u(a,b){g();a(b)})}10{f.4O=g}n.5K();E a4.a5(n[n.1R],n.y.1k,f);2D;2M"2E":q(n.1Y){2L.J-=n.3f.J}n[n.1R].1B(n.2E=E N("2E",{a6:0,a7:0,1x:n.y.1k,2T:"2C",2q:"a8"+(7s.a9()*aa).2k(),7t:(n.y.F&&n.y.F.7t)?"1S":"4C"}).I(18.1o({W:0,1N:0,3q:0},1V(2L))));2D;2M"4P":G h=n.y.1k,2r=$(h.5P(h.22("#")+1));q(!2r||!2r.43){O}G i=2r.2f();2r.Q({ab:n.3V=E N(2r.43).19()});2r.79=2r.1L("2z");n.3U=2r.1c();n[n.1R].1B(n.3U);n[n.1R].2y("2y, 3y, 5Q").1g(u(b){n.44.1g(u(a){q(a.1u==b){b.I({1p:a.1p})}})}.X(n));q(n.y.F.4D){n.27=i;E 17.1m({V:n.V,1t:n.4N.X(n)})}2D}}10{G j={20:"3y",2T:"2C",H:2L.H,J:2L.J};4M(n.y.1a){2M"45":18.1o(j,{5F:n.5G[n.y.1a],3z:[{20:"2F",2q:"7u",2N:n.y.F.7u},{20:"2F",2q:"7v",2N:"ac"},{20:"2F",2q:"13",2N:n.y.F.7w},{20:"2F",2q:"ad",2N:2c},{20:"2F",2q:"1x",2N:n.y.1k},{20:"2F",2q:"7x",2N:n.y.F.7x||2K}]});18.1o(j,1l.1T.2I?{ae:n.af[n.y.1a],ag:n.ah[n.y.1a]}:{2W:n.y.1k,1a:n.7y[n.y.1a]});2D;2M"46":18.1o(j,{2W:n.y.1k,1a:n.7y[n.y.1a],ai:"aj",5H:n.y.F.5H,5F:n.5G[n.y.1a],3z:[{20:"2F",2q:"ak",2N:n.y.1k},{20:"2F",2q:"al",2N:"2c"}]});q(n.y.F.7z){j.3z.47({20:"2F",2q:"am",2N:n.y.F.7z})}2D}n[n.1R].I(1V(2L)).1B(n.5R(j)).1c();q(n.y.48()){(u(){40{q("7A"7B $("2C")){$("2C").7A(n.y.F.7w)}}41(e){}}.X(n)).an()}}}}})(),5O:u(b){b=$(b);G d=b.ao(),5S=[],5T=[];d.47(b);d.1g(u(c){q(c!=b&&c.1y()){O}5S.47(c);5T.47({2z:c.1L("2z"),1b:c.1L("1b"),1p:c.1L("1p")});c.I({2z:"ap",1b:"36",1p:"1y"})});G e={H:b.aq,J:b.ar};5S.1g(u(r,a){r.I(5T[a])});O e},4Q:u(){G a=$("2C");q(a){4M(a.43.4R()){2M"3y":q(1l.1T.5i&&n.y.48()){40{a.7C()}41(e){}a.as=""}q(a.7D){a.2n()}10{a=1l.2w}2D;2M"2E":a.2n();q(1l.1T.at&&1J.7E.2C){5U 1J.7E.2C}2D;5o:a.2n();2D}}$w("7k 7j").1g(u(S){n["3w"+S].I("H:1S;J:1S;").1B("").19()},n)},7F:1l.K,4I:u(){E 17.1m({V:n.V,1t:n.4S.X(n)})},4S:u(){n.3g();q(!n.y.5V()){n.4J()}q(!((n.y.F.4D&&n.y.7G())||n.y.5V())){n.4N()}q(!n.y.4T()){E 17.1m({V:n.V,1t:n.4K.X(n)})}q(n.y.F.2l){E 17.1m({V:n.V,1t:n.5B.X(n,2c)})}},7H:u(){E 17.1m({V:n.V,1t:n.7I.X(n)});q(n.y.4T()){E 17.1m({3e:0.2,V:n.V,1t:n.4K.X(n)})}q(n.3A){E 17.1m({V:n.V,1t:n.7J.X(n)})}q(n.y.48()){E 17.1m({V:n.V,1t:N.I.X(n,n[n.1R],"1p:1y")})}},2O:u(){q(17.2J.2m(11.V.3k).5W.1s){O}n.1c(n.30().2O)},1h:u(){q(17.2J.2m(11.V.3k).5W.1s){O}n.1c(n.30().1h)},4N:u(){n.7F();G a=n.5X(),31=n.7K();q(n.y.F.3Z&&(a.H>31.H||a.J>31.J)){q(n.y.F.7n){n.1Y=31;n.3g();a=31}10{G c=n.7L(),b=31;q(n.y.4U()){G d=[31.J/c.J,31.H/c.H,1].au();n.1Y={H:(n.27.H*d).2k(),J:(n.27.J*d).2k()}}10{n.1Y={H:c.H>b.H?b.H:c.H,J:c.J>b.J?b.J:c.J}}n.3g();a=18.5N(n.1Y);q(n.y.4U()){a.J+=n.3f.J}}}10{n.3g();n.1Y=1I}n.5Y(a)},49:u(a){n.5Y(a,{28:0})},5Y:(u(){G e,4V,4W,7M,7N,2A,b;G f=(u(){G w,h;u 4X(p){w=(e.H+p*4V).4a(0);h=(e.J+p*4W).4a(0)}G a;q(2H){a=u(p){n.Y.I({H:(e.H+p*4V).4a(0)+"M",J:(e.J+p*4W).4a(0)+"M"});n.4A.I({J:h-1*n.W+"M"})}}10{q(2R){a=u(p){G v=n.4Y(),o=1d.3Z.7O();n.Y.I({1b:"36",1M:0,23:0,H:w+"M",J:h+"M",1j:(o[0]+(v.H/2)-(w/2)).4b()+"M",1e:(o[1]+(v.J/2)-(h/2)).4b()+"M"});n.4A.I({J:h-1*n.W+"M"})}}10{a=u(p){n.Y.I({1b:"4w",H:w+"M",J:h+"M",1M:((0-w)/2).2k()+"M",23:((0-h)/2-2A).2k()+"M"});n.4A.I({J:h-1*n.W+"M"})}}}O u(p){4X.3B(n,p);a.3B(n,p)}})();O u(a){G c=3O[1]||{};e=n.Y.2f();b=2*n.W;H=a.H?a.H+b:e.H;J=a.J?a.J+b:e.J;n.5Z();q(e.H==H&&e.J==J){E 17.1m({V:n.V,1t:n.60.X(n,a)});O}G d={H:H+"M",J:J+"M"};4V=H-e.H;4W=J-e.J;7M=4s(n.Y.1L("1M").2S("M",""));7N=4s(n.Y.1L("23").2S("M",""));2A=n.13.1y()?(n.2A/2):0;q(!2H){18.1o(d,{1M:0-H/2+"M",23:0-J/2+"M"})}q(c.28==0){f.3B(n,1)}10{n.61=E 17.7P(n.Y,0,1,18.1o({28:n.F.av,V:n.V,7Q:n.F.7Q,1t:n.60.X(n,a)},c),f.X(n))}}})(),60:u(a){q(!n.3f){O}G b=n[n.1R],4Z;q(n.y.F.2B=="1S"){4Z=b.2f()}b.I({J:(a.J-n.3f.J)+"M",H:a.H+"M"});q(n.y.F.2B!="1W"&&(n.y.5V()||n.y.7G())){q(1l.1T.2I){q(n.y.F.2B=="1S"){G c=b.2f();b.I("2B:1y");G d={7R:"1W",7S:"1W"},62=0,51=15;q(4Z.J>a.J){d.7S="1S";d.H=c.H-51;d.aw="7T";62=51}q(4Z.H-62>a.H){d.7R="1S";d.J=c.J-51;d.ax="7T"}b.I(d)}10{b.I({2B:n.y.F.2B})}}10{b.I({2B:n.y.F.2B})}}10{b.I("2B:1W")}n.3X();n.61=1I;n.7H()},7I:u(){E 17.1m({V:n.V,1t:n.5Z.X(n)});E 17.1m({V:n.V,1t:u(){n[n.1R].1c();n.3g();q(n.1r.1y()){n.1r.I("1p:1y").1q(1)}}.X(n)});E 17.ay([E 17.7U(n.2V,{7V:2c,52:0,53:1}),E 17.54(n.3P,{7V:2c})],{V:n.V,28:0.25,1t:u(){q(n.1u){n.1u.5s("Y:az")}}.X(n)});q(n.y.2o()||(n.2Y&&n.F.13.1E.1Q)){E 17.1m({V:n.V,1t:n.7W.X(n)})}},78:(u(){u 2X(){n.4Q();n.4z.I({23:n.1K.2l.J+"M"});n.5D();q(n.y.48()){n[n.1R].I("1p:1W")}}u 7X(p){n.2V.1q(p);n.3P.1q(p)}O u(){q(!n.Y.1y()){n.2V.1q(0);n.3P.1q(0);n.4Q();O}E 17.7P(n.Y,1,0,{28:0.2,V:n.V,1t:2X.X(n)},7X.X(n))}})(),7Y:u(){$w("5v 2W 5u 1H 2i 3Q 4B 2b 2h").1g(u(a){N.19(n[a])},n);n.1r.I("1p:1W").1q(0)},3g:u(){n.7Y();q(!n.y.F.1r){n.3f={H:0,J:0};n.63=0;n.1r.19()}10{n.1r.1c()}q(n.y.1H||n.y.2i){n.5u.1c();n.2W.1c()}q(n.y.1H){n.1H.1B(n.y.1H).1c()}q(n.y.2i){n.2i.1B(n.y.2i).1c()}q(n.1n&&n.1n.1s>1){q(n.y.1Z()){n.2G.1B(E 4G(n.F.13.7Z).3K({1b:n.1b+1,64:n.1n.1s}));q(n.13.1L("1p")=="1W"){n.13.I("1p:1y");q(n.65){17.2J.2m("Y").2n(n.65)}n.65=E 17.54(n.3d,{V:n.V,28:0.1})}}10{n.2W.1c();q(n.y.2Z()){n.5v.1c();n.3Q.1c().5z().1B(E 4G(n.F.aA).3K({1b:n.1b+1,64:n.1n.1s}));q(n.y.F.2b){n.3c.1c();n.2b.1c()}}}}G a=n.y.1Z();q((n.y.F.3Y||a)&&n.1n.1s>1){G b={2x:(n.F.32||n.1b!=0),1h:(n.F.32||((n.y.2o()||a)&&n.30().1h!=0))};$w("2x 1h").1g(u(z){G Z=z.1P(),3C=b[z]?"80":"1S";q(a){n["13"+Z].I({3C:3C}).1q(b[z]?1:n.F.1E.1F.66)}10{n["3u"+Z+"3v"].I({3C:3C}).1q(b[z]?n.F.1E.1F.3b:n.F.1E.1F.66)}}.X(n));q(n.y.F.3Y||n.F.13.3Y){n.4B.1c()}}n.4c.1q(n.2Y?1:n.F.1E.1F.66).I({3C:n.2Y?"80":"1S"});n.81();q(!n.1r.aB().6B(N.1y)){n.1r.19();n.y.F.1r=2K}n.82()},81:u(){G a=n.1K.5A.H,3a=n.1K.3a.H,3h=n.1Y?n.1Y.H:n.27.H,55=aC,H=0,2h=n.y.F.2h||"3a",2a=n.F.aD;q(n.y.F.2l||n.y.1Z()||!n.y.F.2h){2a=1I}10{q(3h>=55+a&&3h<55+3a){2a="5A";H=a}10{q(3h>=55+3a){2a=2h;H=n.1K[2h].H}}}q(H>0){n.2W.1c();n.2h.I({H:H+"M"}).1c()}10{n.2h.19()}q(2a){n.2h.1O(n.1f+"71"+2a+".1w",{12:n.F.12})}n.63=H},5K:u(){n.67=E 17.54(n.3r,{28:0.2,52:0,53:1,V:n.V})},4J:u(){q(n.67){17.2J.2m("Y").2n(n.67)}E 17.83(n.3r,{28:0.2,V:n.V,3e:0.2})},84:u(){q(!n.y.2Z()){O}G a=(n.F.32||n.1b!=0),1h=(n.F.32||((n.y.2o()||n.y.1Z())&&n.30().1h!=0));n.4x[a?"1c":"19"]();n.4y[1h?"1c":"19"]();G b=n.1Y||n.27;n.1X.I({J:b.J+"M",23:n.W+(n.y.F.1r=="1e"?n.1r.4d():0)+"M"});G c=((b.H/2-1)+n.W).4b();q(a){n.1X.Q(n.3D=E N("U",{R:"1G aE"}).I({H:c+"M"}));n.3D.1Q="2x"}q(1h){n.1X.Q(n.3E=E N("U",{R:"1G aF"}).I({H:c+"M"}));n.3E.1Q="1h"}q(a||1h){n.1X.1c()}},7W:u(){q(!n.y||!n.F.1E.1Q.2z||!n.y.2Z()){O}n.84();n.1X.1c()},5Z:u(){n.1X.1B("").19();n.4x.19().I({1M:n.1U.H+"M"});n.4y.19().I({1M:-1*n.1U.H+"M"})},7f:(u(){u 2X(){n.Y.1q(1)}q(!2t){2X=2X.1A(u(a,b){a(b);n.Y.1c()})}O u(){q(n.Y.1L("1F")!=0){O}q(n.F.2u.2z){E 17.54(n.2u,{28:0.2,52:0,53:4r?1:n.F.2u.1F,V:n.V,aG:n.68.X(n),1t:2X.X(n)})}10{2X.3B(n)}}})(),19:u(){q(1l.1T.2I&&n.2E&&n.y.4T()){n.2E.2n()}q(2t&&n.y.48()){G a=$$("3y#2C")[0];q(a){40{a.7C()}41(e){}}}q(n.Y.1L("1F")==0){O}n.2s();n.1X.19();q(!1l.1T.2I||!n.y.4T()){n.2V.19()}q(17.2J.2m("69").5W.1s>0){O}17.2J.2m("Y").1g(u(e){e.74()});E 17.1m({V:n.V,1t:n.5D.X(n)});E 17.7U(n.Y,{28:0.1,52:1,53:0,V:{1b:"5j",3k:"69"}});E 17.83(n.2u,{28:0.16,V:{1b:"5j",3k:"69"},1t:n.85.X(n)})},85:u(){n.4Q();n.Y.19();n.2V.1q(0).1c();n.1X.1B("").19();n.6S.1B("").19();n.6W.1B("").19();n.5C();n.86();E 17.1m({V:n.V,1t:n.49.X(n,n.F.aH)});E 17.1m({V:n.V,1t:u(){q(n.1u){n.1u.5s("Y:1W")}$w("1u 1n y 1Y 2Y aI 3w").3S(u(a){n[a]=1I}.X(n))}.X(n)})},82:u(){n.1r.I("3q:0;");G a={},3h=n[(n.1Y?"aJ":"i")+"aK"].H;n.1r.I({H:3h+"M"});n.2W.I({H:3h-n.63-1+"M"});a=n.5O(n.1r);q(n.y.F.1r){a.J+=n.F.6a;4M(n.y.F.1r){2M"3T":n.1r.I("3q:"+n.F.6a+"M 0 0 0");2D;2M"1e":n.1r.I("3q: 0 0 "+n.F.6a+"M 0");2D}}n.1r.I({H:"87%"});n.3f=n.y.F.1r?a:{H:a.H,J:0}},3X:(u(){G a,2A;u 4X(){a=n.Y.2f();2A=n.13.1y()?(n.2A/2):0}G b;q(2H){b=u(){n.Y.I({1e:"50%",1j:"50%"})}}10{q(2t||2R){b=u(){G v=n.4Y(),o=1d.3Z.7O();n.Y.I({1M:0,23:0,1j:(o[0]+(v.H/2)-(a.H/2)).4b()+"M",1e:(o[1]+(v.J/2)-(a.J/2)).4b()+"M"})}}10{b=u(){n.Y.I({1b:"4w",1j:"50%",1e:"50%",1M:(0-a.H/2).2k()+"M",23:(0-a.J/2-2A).2k()+"M"})}}}O u(){4X.3B(n);b.3B(n)}})(),88:u(){n.2s();n.3A=2c;n.1h.X(n).3e(0.25);n.3c.1O(n.1f+"72.1w",{12:n.F.12}).19();n.4c.1O(n.1f+"89.1w",{12:n.F.13.12})},2s:u(){q(n.3A){n.3A=2K}q(n.6b){aL(n.6b)}n.3c.1O(n.1f+"6V.1w",{12:n.F.12});n.4c.1O(n.1f+"8a.1w",{12:n.F.13.12})},6c:u(){q(n.y.1Z()&&!n.2Y){O}n[(n.3A?"56":"5q")+"aM"]()},7J:u(){q(n.3A){n.6b=n.1h.X(n).3e(n.F.aN)}},aO:u(){$$("a[33~=Y], 3F[33~=Y]").1g(u(a){G b=a.24;q(!b){O}q(b.4e){a.8b("1H",b.4e)}a.24=1I})},4E:u(a){G b=a.22("][");q(b>-1){a=a.5P(0,b+1)}O $$(\'a[26^="\'+a+\'"], 3F[26^="\'+a+\'"]\')},5E:u(a){O n.4E(a).8c("24")},8d:u(){$(1d.29).1i("2P",n.8e.1v(n));$w("34 4f").1g(u(e){n.1X.1i(e,u(a){G b=a.3G("U");q(!b){O}q(n.3D&&n.3D==b||n.3E&&n.3E==b){n.57(a)}}.1v(n))}.X(n));n.1X.1i("2P",u(c){G d=c.3G("U");q(!d){O}G e=(n.3D&&n.3D==d)?"2O":(n.3E&&n.3E==d)?"1h":1I;q(e){n[e].1A(u(a,b){n.2s();a(b)}).X(n)()}}.1v(n));$w("2x 1h").1g(u(s){G S=s.1P(),2s=u(a,b){n.2s();a(b)},4g=u(a,b){G c=b.1u().1X;q((c=="2x"&&(n.F.32||n.1b!=0))||(c=="1h"&&(n.F.32||((n.y.2o()||n.y.1Z())&&n.30().1h!=0)))){a(b)}};n[s+"3t"].1i("34",n.57.1v(n)).1i("4f",n.57.1v(n)).1i("2P",n[s=="1h"?s:"2O"].1A(2s).1v(n));n["3u"+S+"3v"].1i("2P",n[s=="1h"?s:"2O"].1A(4g).1A(2s).1v(n)).1i("34",N.1q.58(n["3u"+S+"3v"],n.F.1E.1F.8f).1A(4g).1v(n)).1i("4f",N.1q.58(n["3u"+S+"3v"],n.F.1E.1F.3b).1A(4g).1v(n));n["13"+S].1i("2P",n[s=="1h"?s:"2O"].1A(4g).1A(2s).1v(n))},n);G f=[n.2h,n.3c];q(!2t){f.1g(u(b){b.1i("34",N.1q.X(n,b,n.F.1E.1F.8f)).1i("4f",N.1q.X(n,b,n.F.1E.1F.3b))},n)}10{f.3s("1q",1)}n.3c.1i("2P",n.6c.1v(n));n.4c.1i("2P",n.6c.1v(n));q(2t||2R){G g=u(a,b){q(n.Y.1L("1e").6d(0)=="-"){O}a(b)};1m.1i(1J,"4h",n.3X.1A(g).1v(n));1m.1i(1J,"49",n.3X.1A(g).1v(n))}q(2R){1m.1i(1J,"49",n.68.1v(n))}q(2H){u 6e(){q(n.13){n.13.I({1j:((1d.6f.aP||0)+m.59()/2).2k()+"M"})}}1m.1i(1J,"4h",6e.1v(n));1m.1i(1J,"49",6e.1v(n))}q(n.F.aQ){n.8g=u(a){G b=a.3G("a[33~=Y], 3F[33~=Y]");q(!b){O}a.56();q(!b.24){E 11.3W(b)}n.8h(b)}.1v(n);$(1d.29).1i("34",n.8g)}},5B:u(a){q(n.8i){17.2J.2m("aR").2n(n.aS)}G b={23:(a?0:n.1K.2l.J)+"M"};n.8i=E 17.8j(n.4z,{2e:b,28:0.16,V:n.V,3e:a?0.15:0})},8k:u(){G a={};$w("H J").1g(u(d){G D=d.1P(),5a=1d.6f;a[d]=1l.1T.2I?[5a["6g"+D],5a["4h"+D]].aT():1l.1T.5i?1d.29["4h"+D]:5a["4h"+D]});O a},68:u(){q(!2R){O}n.2u.I(1V(n.8k()))},8e:(u(){G b=".6U, .6M .1G, .6X, .8l";O u(a){q(n.y&&n.y.F&&a.3G(b+(n.y.F.7i?", #6G":""))){n.19()}}})(),57:u(a){G b=a.2r,1Q=b.1Q,w=n.1U.H,6g=(a.1a=="34")?0:1Q=="2x"?w:-1*w,2e={1M:6g+"M"};q(!n.4i){n.4i={}}q(n.4i[1Q]){17.2J.2m("8m"+1Q).2n(n.4i[1Q])}n.4i[1Q]=E 17.8j(n[1Q+"3t"],{2e:2e,28:0.2,V:{3k:"8m"+1Q,aU:1},3e:(a.1a=="4f")?0.1:0})},30:u(){q(!n.1n){O}G a=n.1b,1s=n.1n.1s;G b=(a<=0)?1s-1:a-1,1h=(a>=1s-1)?0:a+1;O{2O:b,1h:1h}},5x:u(a,b){G c=3O[2]||n.F,1C=c.1C,W=c.W;1b={1e:(b.6d(0)=="t"),1j:(b.6d(1)=="l")};q(l){G d=E N("3j",{R:"aV"+b.1P(),H:W+"M",J:W+"M"});d.I("5y:1j");a.Q(d);G e=d.5h("2d");e.aW=c.12;e.aX((1b.1j?1C:W-1C),(1b.1e?1C:W-1C),1C,0,7s.aY*2,2c);e.aZ();e.8n((1b.1j?1C:0),0,W-1C,W);e.8n(0,(1b.1e?1C:0),W,W-1C)}10{G f=E N("3l:b0",{b1:c.12,b2:"5J",b3:c.12,b4:(1C/W*0.5).4a(2)}).I({H:2*W-1+"M",J:2*W-1+"M",1b:"36",1j:(1b.1j?0:(-1*W))+"M",1e:(1b.1e?0:(-1*W))+"M"});a.Q(f);f.4L=f.4L}},77:(u(){u 6h(){O $$("3y, 5Q, 2y")}q(1l.1T.2I&&1d.5n>=8){6h=u(){O 1d.b5("3y, 5Q, 2y")}}O u(){q(n.6i){O}G a=6h();n.44=[];8o(G i=0,1s=a.1s;i<1s;i++){G b=a[i];n.44.47({1u:b,1p:b.2e.1p});b.2e.1p="1W"}n.6i=2c}})(),86:u(){n.44.1g(u(a,i){a.1u.2e.1p=a.1p});5U n.44;n.6i=2K},5X:u(){O{H:n.27.H,J:n.27.J+n.3f.J}},7L:u(){G i=n.5X(),b=2*n.W;O{H:i.H+b,J:i.J+b}},7K:u(){G a=21,6j=2*n.1U.J+a,v=n.4Y();O{H:v.H-6j,J:v.J-6j}},4Y:u(){G v=m.2f();q(n.13&&n.13.1y()&&n.1n&&n.1n.1s>1){v.J-=n.2A}O v}});G m={2f:u(){O{H:n.59(),J:n.4d()}}};(u(a){G B=1l.1T,5b=1d,1u,6k={};u 8p(){q(2t){O 5b}q(B.b6&&1J.3J(1J.b7.b8())<9.5){O 5b.29}O 5b.6f}u 6l(D){q(!1u){1u=8p()}6k[D]="b9"+D;a["2m"+D]=u(){O 1u[6k[D]]};O a["2m"+D]()}a.59=6l.58("ba");a.4d=6l.58("bb")})(m);(u(){u 8q(a,b){q(!n.y){O}a(b)}$w("3g 4K").1g(u(a){n[a]=n[a].1A(8q)},11)})();u 1V(b){G c={};18.7g(b).1g(u(a){c[a]=b[a]+"M"});O c}18.1o(11,{8r:u(){q(!n.y.F.5I){O}n.5c=n.8s.1v(n);1d.1i("8t",n.5c)},5C:u(){q(n.5c){1d.bc("8t",n.5c)}},8s:u(a){G b=bd.be(a.2Q).4R(),2Q=a.2Q,3H=(n.y.2o()||n.2Y)&&!n.61,2b=n.y.F.2b,4j;q(n.y.4U()){a.56();4j=(2Q==1m.8u||["x","c"].6m(b))?"19":(2Q==37&&3H&&(n.F.32||n.1b!=0))?"2O":(2Q==39&&3H&&(n.F.32||n.30().1h!=0))?"1h":(b=="p"&&2b&&3H)?"88":(b=="s"&&2b&&3H)?"2s":1I;q(b!="s"){n.2s()}}10{4j=(2Q==1m.8u)?"19":1I}q(4j){n[4j]()}q(3H){q(2Q==1m.bf&&n.1n.bg()!=n.y){n.1c(0)}q(2Q==1m.bh&&n.1n.bi()!=n.y){n.1c(n.1n.1s-1)}}}});11.4S=11.4S.1A(u(a,b){n.8r();a(b)});18.1o(11,{7d:u(a){G b=n.4E(a);q(!b){O}b.3S(11.4k)},7m:u(){q(n.1n.1s==0){O}G a=n.30();n.8v([a.1h,a.2O])},8v:u(c){G d=(n.1n&&n.1n.6m(c)||18.bj(c))?n.1n:c.26?n.5E(c.26):1I;q(!d){O}G e=$A(18.7c(c)?[c]:c.1a?[d.22(c)]:c).bk();e.1g(u(a){G b=d[a];n.6n(b)},n)},8w:u(a,b){a.4H={H:b.H,J:b.J}},6n:u(a){q(a.4H||a.5d||!a.1k){O}G P=E 2j();P.1z=u(){P.1z=1l.2w;a.5d=1I;n.8w(a,P)}.X(n);a.5d=2c;P.1x=a.1k},8h:u(a){G b=a.24;q(b&&b.4H||b.5d||!b.2Z()){O}n.6n(b)}});N.bm({1O:u(a,b){a=$(a);G c=18.1o({8x:"1e 1j",3o:"4C-3o",6o:"7v",12:""},3O[2]||{});a.I(2H?{bn:"bo:bp.bq.bs(1x=\'"+b+"\'\', 6o=\'"+c.6o+"\')"}:{2a:c.12+" 3N("+b+") "+c.8x+" "+c.3o});O a}});18.1o(11,{6p:u(a,b){G c;$w("46 2p 2E 45").1g(u(t){q(E 4p("\\\\.("+n.bt[t].2S(/\\s+/g,"|")+")(\\\\?.*)?","i").4t(a)){c=t}}.X(n));q(c){O c}q(a.3x("#")){O"4P"}q(1d.8y&&1d.8y!=(a).2S(/(^.*\\/\\/)|(:.*)|(\\/.*)/g,"")){O"2E"}O"2p"},7r:u(a){G b=a.bu(/\\?.*/,"").3L(/\\.([^.]{3,4})$/);O b?b[1]:1I},5R:u(b){G c="<"+b.20;8o(G d 7B b){q(!["3z","6q","20"].6m(d)){c+=" "+d+\'="\'+b[d]+\'"\'}}q(E 4p("^(?:3F|bv|bw|br|bx|by|bz|7o|8z|bA|bB|bC|2F|bD|bE|bF)$","i").4t(b.20)){c+="/>"}10{c+=">";q(b.3z){b.3z.1g(u(a){c+=n.5R(a)}.X(n))}q(b.6q){c+=b.6q}c+="</"+b.20+">"}O c}});(u(){1d.1i("5p:3M",u(){G c=(35.6r&&35.6r.1s);u 4l(a){G b=2K;q(c){b=($A(35.6r).8c("2q").7h(",").22(a)>=0)}10{40{b=E bG(a)}41(e){}}O!!b}q(c){1J.11.4F={46:4l("bH bI"),45:4l("6s")}}10{1J.11.4F={46:4l("8A.8A"),45:4l("6s.6s")}}})})();11.3W=bJ.bK({bL:u(b){q(b.24){O}G c=18.7b(b);q(c&&!b.24){b.24=n;q(b.1H){b.24.4e=b.1H;q(11.F.8B){b.bM("1H","")}}}n.1k=c?b.bN("1k"):b.1k;q(n.1k.22("#")>=0){n.1k=n.1k.5P(n.1k.22("#"))}G d=b.26;q(d){n.26=d;q(d.3x("4m")){n.1a="4m"}10{q(d.3x("5e")){q(d.bO("][")){G e=d.8C("]["),6t=e[1].3L(/([a-bP-Z]*)/)[1];q(6t){n.1a=6t;G f=e[0]+"]";b.8b("26",f);n.26=f}}10{n.1a=11.6p(n.1k)}}10{n.1a=d}}}10{n.1a=11.6p(n.1k);n.26=n.1a}$w("42 46 4m 2E 2p 4P 45 8D 8E 5e").3S(u(a){G T=a.1P(),t=a.4R();q("2p 4m 8E 8D 5e".22(a)<0){n["bQ"+T]=u(){O n.1a==t}.X(n)}}.X(n));q(c&&b.24.4e){G g=b.24.4e.8C(11.F.bR).3s("bS");q(g[0]){n.1H=g[0]}q(g[1]){n.2i=g[1]}G h=g[2];n.F=(h&&18.7a(h))?bT("({"+h+"})"):{}}10{n.1H=b.1H;n.2i=b.2i;n.F=b.F||{}}q(n.F.6u){n.F.42=18.5N(n.F.6u);5U n.F.6u}},2o:u(){O n.1a.3x("4m")},1Z:u(){O n.26.3x("5e")},2Z:u(){O(n.2o()||n.1a=="2p")},5M:u(){O"2E 4P 42".22(n.1a)>=0},4U:u(){O!n.5M()}});11.4k=u(a){G b=$(a);E 11.3W(a);O b};(u(){u 8F(a){G b=a.3G("a[33~=Y], 3F[33~=Y]");q(!b){O}a.56();n.4k(b);n.1c(b)}u 8G(a){G b=a.3G("a[33~=Y], 3F[33~=Y]");q(!b){O}n.4k(b)}u 8H(a){G b=a.2r,1a=a.1a,3i=a.3i;q(3i&&3i.43){q(1a==="5m"||1a==="bU"||(1a==="2P"&&3i.43.4R()==="8z"&&3i.1a==="bV")){b=3i}}q(b.bW==bX.bY){b=b.7D}O b}u 8I(a,b){q(!a){O}G c=a.R;O(c.1s>0&&(c==b||E 4p("(^|\\\\s)"+b+"(\\\\s|$)").4t(c)))}u 8J(a){G b=8H(a);q(b&&8I(b,"Y")){n.4k(b)}}1d.1i("Y:3M",u(){$(1d.29).1i("2P",8F.1v(11));q(11.F.8B&&1l.1T.2I&&1d.5n>=8){$(1d.29).1i("34",8J.1v(11))}10{$(1d.29).1i("34",8G.1v(11))}})})();18.1o(11,{5f:u(){G b=n.F.13,W=b.W;$(1d.29).Q(n.13=E N("U",{2T:"bZ"}).I({2U:n.F.2U+1,c0:b.1N+"M",1b:"36",1p:"1W"}).Q(n.c1=E N("U",{R:"c2"}).Q(E N("U",{R:"5g c3"}).I("1N-1j: "+W+"M").Q(E N("U",{R:"2v"}))).Q(E N("U",{R:"6v"}).I({1N:"0 "+W+"M",J:W+"M"})).Q(E N("U",{R:"5g c4"}).I("1N-1j: -"+W+"M").Q(E N("U",{R:"2v"})))).Q(n.3I=E N("U",{R:"6w 6T"}).Q(n.3d=E N("3p",{R:"c5"}).I("1N: 0 "+W+"M").Q(E N("1D",{R:"c6"}).Q(n.2G=E N("U"))).Q(E N("1D",{R:"4n c7"}).Q(n.c8=E N("U",{R:"1G"}).1O(n.1f+"8K.1w",{12:b.12}))).Q(E N("1D",{R:"4n c9"}).Q(n.ca=E N("U",{R:"1G"}).1O(n.1f+"cb.1w",{12:b.12}))).Q(E N("1D",{R:"4n cc"}).Q(n.4c=E N("U",{R:"1G"}).1O(n.1f+"8a.1w",{12:b.12}))).Q(E N("1D",{R:"4n 8l"}).Q(n.cd=E N("U",{R:"1G"}).1O(n.1f+"ce.1w",{12:b.12}))))).Q(n.cf=E N("U",{R:"cg"}).Q(E N("U",{R:"5g ch"}).I("1N-1j: "+W+"M").Q(E N("U",{R:"2v"}))).Q(E N("U",{R:"6v"}).I({1N:"0 "+W+"M",J:W+"M"})).Q(E N("U",{R:"5g ci"}).I("1N-1j: -"+W+"M").Q(E N("U",{R:"2v"})))));$w("2x 1h").1g(u(s){G S=s.1P();n["13"+S].1X=s},n);q(2t){n.13.19=u(){n.I("1j:-3n;1e:-3n;1p:1W;");O n};n.13.1c=u(){n.I("1p:1y");O n};n.13.1y=u(){O(n.1L("1p")=="1y"&&3J(n.1L("1e").2S("M",""))>-6F)}}n.13.2y(".4n U").3s("I",1V(n.8L));G c=n.13.2y(".2v");$w("6Y 6Z bl br").1g(u(a,i){q(b.1C>0){n.5x(c[i],a,b)}10{c[i].Q(E N("U",{R:"38"}))}c[i].I({H:b.W+"M",J:b.W+"M"}).70("2v"+a.1P())},n);n.13.5z(".6w").I("H:87%;");n.13.I(2H?{1b:"36",1e:"1S",1j:""}:{1b:"4w",1e:"1S",1j:"50%"});n.13.2y(".6v",".6w",".1G",".38").3s("I",{12:b.12});n.2G.1B(E 4G(b.7Z).3K({1b:8M,64:8M}));n.2G.I({H:n.2G.59()+"M",J:n.3d.4d()+"M"});n.8N();n.2G.1B("");n.13.19().I("1p:1y");n.8d();n.2g()},8N:u(){G b,4o,13=n.F.13,W=13.W;q(2H){b=n.3d.2f(),4o=b.H+2*W;n.3d.I({H:b.H+"M",1N:0});n.3I.I("H:1S;");n.3d.I({cj:W+"M"});n.3I.I({H:4o+"M"});$w("1e 3T").1g(u(a){n["13"+a.1P()].I({H:4o+"M"})},n);n.13.I("1N-1j:-"+(4o/2).2k()+"M")}10{n.3I.I("H:1S");b=n.3I.2f();n.2G.ck().I({8O:b.J+"M",H:n.2G.2f().H+"M"});n.13.I({H:b.H+"M",1M:(0-(b.H/2).2k())+"M"});n.3I.I({H:b.H+"M"});$w("1e 3T").1g(u(a){n["13"+a.1P()].I({H:b.H+"M"})},n)}n.7e=13.1N+b.J+2*W;n.76=n.13.4d();n.2G.I({8O:b.J+"M"})}});11.5f=11.5f.1A(u(a,b){G c=E 2j();c.1z=u(){c.1z=1l.2w;n.8L={H:c.H,J:c.J};a(b)}.X(n);c.1x=n.1f+"8K.1w";G d=(E 2j()).1x=n.1f+"89.1w"});11.4u=11.4u.1A(u(a,b){a(b);n.5f()});11.19=11.19.1A(u(a,b){q(n.y&&n.y.1Z()){n.13.19();n.2G.1B("")}a(b)})})();11.5m();1d.1i("5p:3M",11.5q.X(11));',62,765,'|||||||||||||||||||||||this|||if||||function||||view||||||new|options|var|width|setStyle|height|||px|Element|return||insert|className|||div|queue|border|bind|lightview||else|Lightview|backgroundColor|controller||||Effect|Object|hide|type|position|show|document|top|images|each|next|observe|left|href|Prototype|Event|views|extend|visibility|setOpacity|menubar|length|afterFinish|element|bindAsEventListener|png|src|visible|onload|wrap|update|radius|li|buttons|opacity|lv_Button|title|null|window|closeDimensions|getStyle|marginLeft|margin|setPngBackground|capitalize|side|_contentPosition|auto|Browser|sideDimensions|pixelClone|hidden|prevnext|scaledInnerDimensions|isSet|tag||indexOf|marginTop|_view||rel|innerDimensions|duration|body|background|slideshow|true||style|getDimensions|_lightviewLoadedEvent|closeButton|caption|Image|round|topclose|get|remove|isGallery|image|name|target|stopSlideshow|BROWSER_IS_WEBKIT_419|overlay|lv_Corner|emptyFunction|prev|select|display|controllerOffset|overflow|lightviewContent|break|iframe|param|setNumber|BROWSER_IS_IE_LT7|IE|Queues|false|dimensions|case|value|previous|click|keyCode|BROWSER_IS_FIREFOX_LT3|replace|id|zIndex|center|data|after|isSetGallery|isImage|getSurroundingIndexes|bounds|cyclic|class|mouseover|navigator|absolute||lv_Fill||large|normal|slideshowButton|controllerCenter|delay|menubarDimensions|fillMenuBar|imgWidth|currentTarget|canvas|scope|ns_vml|sideNegativeMargin|9500px|repeat|ul|padding|loading|invoke|ButtonImage|inner|Button|content|startsWith|object|children|sliding|call|cursor|prevButton|nextButton|area|findElement|staticGallery|controllerMiddle|parseFloat|evaluate|match|loaded|url|arguments|sideButtons|imgNumber|lightviewError|_each|bottom|inlineContent|inlineMarker|View|restoreCenter|innerPreviousNext|viewport|try|catch|ajax|tagName|overlappingRestore|quicktime|flash|push|isQuicktime|resize|toFixed|floor|controllerSlideshow|getHeight|_title|mouseout|blockInnerPrevNext|scroll|sideEffect|action|Extend|detectPlugin|gallery|lv_ButtonWrapper|finalWidth|RegExp|userAgent|FIX_OVERLAY_WITH_PNG|parseInt|test|build|sideStyle|fixed|prevButtonImage|nextButtonImage|topcloseButtonImage|resizeCenter|innerPrevNext|no|autosize|getSet|Plugin|Template|preloadedDimensions|afterEffect|stopLoading|insertContent|outerHTML|switch|resizeWithinViewport|onComplete|inline|clearContent|toLowerCase|afterShow|isIframe|isMedia|wdiff|hdiff|init|getViewportDimensions|contentDimensions||scrollbarWidth|from|to|Appear|minimum|stop|toggleSideButton|curry|getWidth|ddE|doc|keyboardEvent|isPreloading|set|buildController|lv_controllerCornerWrapper|getContext|WebKit|end|require|convertVersionString|load|documentMode|default|dom|start|counter|fire|lv_Wrapper|dataText|innerController|gif|createCorner|float|down|small|toggleTopClose|disableKeyboardNavigation|restoreInlineContent|getViews|pluginspage|pluginspages|wmode|keyboard|1px|startLoading|insertImageUsingHTML|isExternal|clone|getHiddenDimensions|substr|embed|createHTML|restore|styles|delete|isAjax|effects|getInnerDimensions|_resize|hidePrevNext|_afterResize|resizing|corrected|closeButtonWidth|total|_controllerCenterEffect|disabled|loadingEffect|maxOverlay|lightview_hide|menubarPadding|slideTimer|toggleSlideshow|charAt|centerControllerIELT7|documentElement|offset|getOverlappingElements|preventingOverlap|safety|property|define|member|preloadImageDimensions|sizingMethod|detectType|html|plugins|QuickTime|relType|ajaxOptions|lv_controllerBetweenCorners|lv_controllerMiddle|Firefox|REQUIRED_|_|Scriptaculous|find|namespaces|VML|_lightviewLoadedEvents|9500|lv_overlay|container|prevSide|nextSide|marginRight|topButtons|lv_topButtons|lv_Frame|lv_Half|lv_CornerWrapper|lv_Filler|lv_WrapDown|contentTop|clearfix|lv_Close|inner_slideshow_play|contentBottom|lv_Loading|tl|tr|addClassName|close_|inner_slideshow_stop|prepare|cancel|controllerHeight|_controllerHeight|hideOverlapping|hideContent|_inlineDisplayRestore|isString|isElement|isNumber|extendSet|_controllerOffset|appear|keys|join|overlayClose|Bottom|Top|_VMLPreloaded|preloadSurroundingImages|fullscreen|img|insertImageUsingVML|insertImageUsingCanvas|detectExtension|Math|scrolling|autoplay|scale|controls|loop|mimetypes|flashvars|SetControllerVisible|in|Stop|parentNode|frames|adjustDimensionsToView|isInline|finishShow|showContent|nextSlide|getBounds|getOuterDimensions|mleft|mtop|getScrollOffsets|Tween|transition|overflowX|overflowY|15px|Opacity|sync|showPrevNext|tween|hideData|setNumberTemplate|pointer|setCloseButtons|setMenubarDimensions|Fade|setPrevNext|afterHide|showOverlapping|100|startSlideshow|controller_slideshow_stop|controller_slideshow_play|writeAttribute|pluck|addObservers|delegateClose|hover|_preloadImageHover|preloadImageHover|_topCloseEffect|Morph|getScrollDimensions|lv_controllerClose|lightview_side|fillRect|for|getRootElement|guard|enableKeyboardNavigation|keyboardDown|keydown|KEY_ESC|preloadFromSet|setPreloadedDimensions|align|domain|input|ShockwaveFlash|removeTitles|split|external|media|handleClick|handleMouseOver|elementIE8|hasClassNameIE8|handleMouseOverIE8|controller_prev|controllerButtonDimensions|999|_fixateController|lineHeight|createElement|MSIE|exec|mac|REQUIRED_Prototype|REQUIRED_Scriptaculous|typeof|undefined|Version|throw|requires|times|https|js|head|script|add|urn|schemas|microsoft|com|vml|createStyleSheet|addRule|behavior|callee|lv_Container|lv_Sides|lv_PrevSide|lv_NextSide|lv_topcloseButtonImage|topcloseButton|lv_Frames|lv_FrameTop|lv_Liquid|lv_HalfLeft|lv_HalfRight|lv_Center|150|lv_WrapUp|lv_WrapCenter|lv_contentTop|lv_MenuBar|lv_Data|lv_DataText|lv_Title|lv_Caption|lv_innerController|lv_ImgNumber|lv_innerPrevNext|innerPrevButton|inner_prev|innerNextButton|inner_next|lv_Slideshow|lv_contentBottom|loadingButton|lv_FrameBottom|cloneNode|lv_PrevNext|blank|inner_|relative|lv_content|blur|all|errors|requiresPlugin|plugin|required|transparent|close|defaultOptions|none|alt|galleryimg|drawImage|Ajax|Updater|frameBorder|hspace|lightviewContent_|random|99999|before|tofit|enablejavascript|codebase|codebases|classid|classids|quality|high|movie|allowFullScreen|FlashVars|defer|ancestors|block|clientWidth|clientHeight|innerHTML|Gecko|min|resizeDuration|paddingRight|paddingBottom|Parallel|opened|imgNumberTemplate|childElements|180|borderColor|lv_PrevButton|lv_NextButton|beforeStart|startDimensions|_openEffect|scaledI|nnerDimensions|clearTimeout|Slideshow|slideshowDelay|updateViews|scrollLeft|preloadHover|lightview_topCloseEffect|topCloseEffect|max|limit|cornerCanvas|fillStyle|arc|PI|fill|roundrect|fillcolor|strokeWeight|strokeColor|arcSize|querySelectorAll|Opera|opera|version|client|Width|Height|stopObserving|String|fromCharCode|KEY_HOME|first|KEY_END|last|isArray|uniq||addMethods|filter|progid|DXImageTransform|Microsoft||AlphaImageLoader|typeExtensions|gsub|base|basefont|col|frame|hr|link|isindex|meta|range|spacer|wbr|ActiveXObject|Shockwave|Flash|Class|create|initialize|setAttribute|getAttribute|include|zA|is|titleSplit|strip|eval|error|radio|nodeType|Node|TEXT_NODE|lightviewController|marginBottom|controllerTop|lv_controllerTop|lv_controllerCornerWrapperTopLeft|lv_controllerCornerWrapperTopRight|lv_controllerCenter|lv_controllerSetNumber|lv_controllerPrev|controllerPrev|lv_controllerNext|controllerNext|controller_next|lv_controllerSlideshow|controllerClose|controller_close|controllerBottom|lv_controllerBottom|lv_controllerCornerWrapperBottomLeft|lv_controllerCornerWrapperBottomRight|paddingLeft|up'.split('|'),0,{}));

/*
	Extension of prototype's Element object
	Licenses:
	(c) Creative Commons 2006
	http://creativecommons.org/licenses/by-sa/2.5/		
	
	Free to use with my prior permission
	Author: Kevin Hoang Le | http://pragmaticobjects.org
	Date: 2006-06-30
*/

Element.Ex = {
  removeAllChildren: function(element) {
    while ($(element).firstChild)
		$(element).removeChild($(element).firstChild);
  }
}

Object.extend(Element, Element.Ex);

///////
// gaAddons.js
// @Author StÃ©phane Hamel - shamel@immeria.net - http://immeria.net
// See http://code.google.com/p/gaddons/people/list for contributors
//
// Google Groups forum: http://groups.google.com/group/gaaddons
// Google Code repository: http://code.google.com/p/gaddons/
//
///////
// License: Version: MPL 1.1
// The contents of this file are subject to the Mozilla Public License Version
// 1.1 (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
// http://www.mozilla.org/MPL/
//
// Software distributed under the License is distributed on an "AS IS" basis,
// WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
// for the specific language governing rights and limitations under the
// License.
//
// Changelog:
// v2.8 - Jan. 9 2010 - Fix link for document download when image inside anchor
// v2.7 - Nov. 10 2009 - Further improvement to outbound links tracking
// v2.6 - Oct. 22 2009 - Fix outbound link sometime showing //
// v2.5 - Jun. 1st 2009 - Make sure to load at "onload", rewritten as an object
// v2.4 - Apr. 21st 2009 - Fix trackPageview() syntax
// v2.3 - Apr. 10th 2009 - Fix logic issues. Add tracking of mailto links. Allow tracker to be named something else than pageTracker
// v2.2 - Mar. 20nd 2009 - Fix issue with tracking download docs on current domain
// v2.1 - Jan. 22nd 2009 - Set bUseEventForOutbout and bUserEventForDownload to toggle use of Events or Page Views
// v2.0 - Jan. 2009 - Use Google Analytics Events to track downloads and external links
// v1.0 - Inspired by the work of Justin Cutroni - Google Analytics Short Cut - http://gashortcut.com/
///////
/*
* @fileoverview Wrapper for gaAddons
*/
var bUseEventForOutbound = true;
// Set to false to use trackPageview for outbount links
var bUseEventForDownload = true;
// Set to false to use trackPageview for downloads
var gaA_fileTypes = new RegExp(/\.(docx*|xlsx*|pptx*|exe|zip|pdf|xpi)$/i);
// Indicate each file extension that needs to be tracked, gaA_fileTypes is the regular expression that matches downloadable files
var gaA_pageTracker = pageTracker;
// Should be set to the name of your tracker variable
/// No need to change anything below this line
/**
* @class ga Addons component.
* This class encapsulates all logic for the Google Analytics addons
* @constructor
*/
var gaAddons = function() {
   /**
   * startListening: add a new listner for onclick event, handle Mozilla or IE methods
   * @param {Object} obj HREF object to listen to
   * @param {String} evnt event type (usually "click")
   * @param {Object} func Function to call when evnt is triggered
   */
   var startListening = function(obj, evnt, func) {
      if (obj.addEventListener) obj.addEventListener(evnt, func, false);
      else if (obj.attachEvent) obj.attachEvent("on" + evnt, func);
      }
   /**
   * trackDocument: make GA call when downloading one of detected file extension, use trackEvent() or trackPageView() methods
   * @param {Object} evnt Object where the event happened
   */
   var trackDocument = function(evnt) {
      evnt = evnt || event;
      var elmnt = evnt.srcElement || evnt.target;
      if (elmnt) {
         while (elmnt.tagName != "A") elmnt = elmnt.parentNode;
		}
      var pathname = ("/" + elmnt.pathname).replace(/\/\//,'');
      bUseEventForDownload ? gaA_pageTracker._trackEvent("download", "click", pathname) : gaA_pageTracker._trackPageview("/download" + pathname);
      }
   /**
   * trackExternalLink: make GA call when clicking an outbound link, use trackEvent() or trackPageView() methods
   * @param {Object} evnt Object where the event happened
   */
   var trackExternalLink = function(evnt) {
      evnt = evnt || event;
      var elmnt = evnt.srcElement || evnt.target;
      if (elmnt) {
         while (elmnt.tagName != "A") elmnt = elmnt.parentNode;
         if (/http/.test(elmnt.protocol)) { url = elmnt.href.substr(elmnt.href.indexOf('//')+2,Infinity);
         bUseEventForOutbound ? gaA_pageTracker._trackEvent("outbound", "click", url) : gaA_pageTracker._trackPageview(("/outbound/" + url));
         }
      if (elmnt.protocol == "mailto:") bUseEventForOutbound ? gaA_pageTracker._trackEvent("mailto", "click", elmnt.href.replace(/mailto:/, "")) : gaA_pageTracker._trackPageview("/mailto/" + elmnt.href.replace(/mailto:/));
      }
   else {
      if (/http/.test(this.protocol)) { url = this.href.substr(this.href.indexOf('//')+2,Infinity);
      bUseEventForOutbound ? gaA_pageTracker._trackEvent("outbound", "click", url) : gaA_pageTracker._trackPageview("/outbound/" + url);
      }
   if (this.protocol == "mailto:") bUseEventForOutbound ? gaA_pageTracker._trackEvent("mailto", "click", this.href.replace(/mailto:/, "")) : gaA_pageTracker._trackPageview("/mailto/" + this.href.replace(/mailto:/));
   }
}
/**
* Initialize gaAddons
*/
if (document.getElementsByTagName && typeof gaA_pageTracker == "object") {
var hrefs = document.getElementsByTagName('a');
for (var l = 0, m = hrefs.length; l < m; l++) if (gaA_fileTypes.test(hrefs[l].pathname)) startListening(hrefs[l], "click", trackDocument);
else if (hrefs[l].hostname != location.hostname) startListening(hrefs[l], "click", trackExternalLink);
}
}
if (window.addEventListener) // Standard
window.addEventListener('load', gaAddons, false);
else if (window.attachEvent) // old IE
window.attachEvent('onload', gaAddons);
/// EOF ///
