if(typeof (AC)==="undefined"){AC={};}AC.Detector={getAgent:function(){return navigator.userAgent.toLowerCase();},isMac:function(M){var U=M||this.getAgent();return !!U.match(/mac/i);},isWin:function(M){var U=M||this.getAgent();return !!U.match(/win/i);},isWin2k:function(M){var U=M||this.getAgent();return this.isWin(U)&&(U.match(/nt\s*5/i));},isWinVista:function(M){var U=M||this.getAgent();return this.isWin(U)&&(U.match(/nt\s*6/i));},isWebKit:function(M){var U=M||this.getAgent();return !!U.match(/AppleWebKit/i);},isOpera:function(M){var U=M||this.getAgent();return !!U.match(/opera/i);},isIE:function(M){var U=M||this.getAgent();return !!U.match(/msie/i);},isIEStrict:function(M){var U=M||this.getAgent();return U.match(/msie/i)&&!this.isOpera(U);},isFirefox:function(M){var U=M||this.getAgent();return !!U.match(/firefox/i);},isiPhone:function(M){var U=M||this.getAgent();return this.isMobile(U);},isMobile:function(M){var U=M||this.getAgent();return this.isWebKit(U)&&U.match(/Mobile/i);},isiTunesOK:function(M){var U=M||this.getAgent();return this.isMac(U)||this.isWin2k(U);},isQTInstalled:function(){var U=false;if(navigator.plugins&&navigator.plugins.length){for(var M=0;M<navigator.plugins.length;M++){var g=navigator.plugins[M];if(g.name.indexOf("QuickTime")>-1){U=true;}}}else{qtObj=false;execScript("on error resume next: qtObj = IsObject(CreateObject(\"QuickTimeCheckObject.QuickTimeCheck.1\"))","VBScript");U=qtObj;}return U;},getQTVersion:function(){var U="0";if(navigator.plugins&&navigator.plugins.length){for(var g=0;g<navigator.plugins.length;g++){var S=navigator.plugins[g];var M=S.name.match(/quicktime\D*([\.\d]*)/i);if(M&&M[1]){U=M[1];}}}else{ieQTVersion=null;execScript("on error resume next: ieQTVersion = CreateObject(\"QuickTimeCheckObject.QuickTimeCheck.1\").QuickTimeVersion","VBScript");if(ieQTVersion){U=(ieQTVersion>>24).toString(16);}}return U;},isQTCompatible:function(g,j){function M(w,R){var i=parseInt(w[0],10);if(isNaN(i)){i=0;}var V=parseInt(R[0],10);if(isNaN(V)){V=0;}if(i===V){if(w.length>1){return M(w.slice(1),R.slice(1));}else{return true;}}else{if(i<V){return true;}else{return false;}}}var S=g.split(/\./);var U=j?j.split(/\./):this.getQTVersion().split(/\./);return M(S,U);},isValidQTAvailable:function(U){return this.isQTInstalled()&&this.isQTCompatible(U);}};
HTMLObject = function(oEl) {for(property in HTMLObject) { oEl[property] = HTMLObject[property]; }return oEl;};var Browser = {isSafari1: function() {var agent = navigator.userAgent.toLowerCase();if(agent.indexOf('safari') != -1 && !Browser.isSafari2()) {return true;}},isSafari2: function() {var agent = navigator.userAgent.toLowerCase();if(agent.indexOf('safari') != -1 && (parseFloat(agent.substring(agent.indexOf("applewebkit/")+"applewebkit/".length,agent.length).substring(0,agent.substring(agent.indexOf("applewebkit/")+"applewebkit/".length,agent.length).indexOf(' '))) >=  300)) {return true;}
},isIE7: function() {var agent = navigator.userAgent.toLowerCase();if(agent.indexOf('msie 7.0') != -1) {return true;}},isIE: function() {var agent = navigator.userAgent.toLowerCase();if(agent.indexOf('msie') != -1) {return true;}}};function detect() {var agent = navigator.userAgent.toLowerCase();this.isMac= (agent.indexOf('mac') != -1);this.isWin= (agent.indexOf('win') != -1);this.isWin2k= (this.isWin && (agent.indexOf('nt 5') != -1));
this.isWinSP2= (this.isWin && (agent.indexOf('xp') != -1 || agent.indexOf('sv1') != -1));this.isOther= (agent.indexOf('unix') != -1 || agent.indexOf('sunos') != -1 || agent.indexOf('bsd') != -1 ||agent.indexOf('x11') != -1 || agent.indexOf('linux') != -1);this.isSafari= (agent.indexOf('safari') != -1);this.isSafari2 = (this.isSafari && (parseFloat(agent.substring(agent.indexOf("applewebkit/")+"applewebkit/".length,agent.length).substring(0,agent.substring(agent.indexOf("applewebkit/")+"applewebkit/".length,agent.length).indexOf(' '))) >=  300));
this.isOpera= (agent.indexOf('opera') != -1);this.isNN= (agent.indexOf('netscape') != -1);this.isIE= (agent.indexOf('msie') != -1);this.isiTunesOK= this.isMac || this.isWin2k;}WhizBang = function() { };WhizBang.prototype.Fade = function(duration,startOpacity,endOpacity,interval,step,curve,func) {this.interval = interval;this.duration = duration;this.step = step;this.setOpacity = function(o) {this.style.opacity = (o / 101);this.style.MozOpacity = (o / 100);
this.style.KhtmlOpacity = (o / 100);this.style.filter = "alpha(opacity=" + o + ")";};this.setOpacity(startOpacity);if(startOpacity == 0) { this.style.visibility = 'visible'; }if(Browser.isIE()) {if(this.id == 'newfeatureinfo') {this.style.zIndex = '100';var movieframe = document.getElementById('movieframe');movieframe.style.height = this.offsetHeight + 'px';} else if(!(this.id == 'sharebug')&&!(this.id == 'newfeatureinfo')&&!(this.id == 'gallery')) {
this.style.height = this.offsetHeight+'px';}this.style.zoom = '1';}var delta = startOpacity;var newOpacity = startOpacity;this.changeOpacity = function(newOpacity,endOpacity) {var changeOpacityST = null;var stepDuration = Math.round(this.duration/this.step);this.duration -= stepDuration;this.step--;if(newOpacity < endOpacity) {if(newOpacity <= endOpacity) {delta = (this.step > 0) ? (endOpacity - newOpacity)/this.step : 0;newOpacity = Math.max(startOpacity, Math.min(newOpacity+delta, endOpacity));
this.setOpacity(newOpacity);changeOpacityST = window.setTimeout(this.changeOpacity.bindWithArguments(this,newOpacity,endOpacity),stepDuration);}}else if(newOpacity > endOpacity) {if(newOpacity >= endOpacity) {delta = (this.step > 0) ? (newOpacity - endOpacity)/this.step : 0;newOpacity = Math.min(startOpacity, Math.max(newOpacity-delta, endOpacity));this.setOpacity(newOpacity);changeOpacityST = window.setTimeout(this.changeOpacity.bindWithArguments(this,newOpacity,endOpacity),stepDuration);
}}else if (newOpacity == endOpacity) {this.setOpacity(newOpacity);clearTimeout(changeOpacityST);if(func) { func(); }}};this.changeOpacity(newOpacity,endOpacity);return true;};WhizBang.prototype.ScaleToHeight = function(duration,startHeight,endHeight,step,func) {this.interval = 1;this.duration = duration;this.step = step;this.setHeight = function(h) {this.style.height = h+"px"; };var delta = startHeight;var newHeight = startHeight;var time = 0;
this.changeHeight = function (newHeight,endHeight) {var changeHeightST = null;var stepDuration = Math.round(this.duration/this.step);this.duration -= stepDuration;if (newHeight < endHeight) {if(Browser.isSafari1()) {this.setHeight(endHeight);} else {delta = (this.step > 0) ? (endHeight - newHeight)/this.step : 0;newHeight = Math.max(startHeight, Math.min(newHeight+delta, endHeight));if(newHeight > (endHeight-1)) {newHeight = endHeight;}this.setHeight(newHeight);
changeHeightST = window.setTimeout(this.changeHeight.bindWithArguments(this,newHeight,endHeight),stepDuration);}}else if (newHeight > endHeight) {if(Browser.isSafari1()) {this.setHeight(endHeight);} else {delta = (this.step > 0) ? (newHeight - endHeight)/this.step : 0;newHeight = Math.min(startHeight, Math.max(newHeight-delta, endHeight));if(newHeight < (endHeight+1)) {newHeight = endHeight;}this.setHeight(newHeight);changeHeightST = window.setTimeout(this.changeHeight.bindWithArguments(this,newHeight,endHeight),stepDuration);
}} else if (newHeight == endHeight) {this.setHeight(endHeight);clearTimeout(changeHeightST);if (func) {func();}}};this.changeHeight(newHeight,endHeight);};WhizBang.prototype.scaleAttrib = function(sAttribute,sUnit,iStartValue,iEndValue,iDuration,iFramerate,iPercent,fFunc) {this.attribute = sAttribute;this.unit = sUnit;this.startValue = iStartValue;this.endValue = iEndValue;this.duration = iDuration;this.framerate = iFramerate;this.percent = iPercent;
this.delta = this.startValue;this.step = (this.duration/1000)*this.framerate;this.oncomplete = false;this.funcdone = false;if(this.percent == 100) { this.oncomplete = true; }this.funcpercent = Math.round((this.duration/this.step)*(this.percent/100));this.percentdone = 0;this.setAttrib = function(iVal) {this.style[this.attribute] = iVal+this.unit;};this.changeAttrib = function (iNewValue,iEndValue) {var me = this;var iStepDuration = Math.round(this.duration/this.step);
this.duration -= iStepDuration;this.percentdone++;if((this.percentdone == this.funcpercent) && fFunc && this.oncomplete == false) {fFunc();this.funcdone = true;}if (iNewValue < iEndValue) {this.delta = (this.step > 0) ? (iEndValue - iNewValue)/this.step : 0;iNewValue = Math.max(this.startValue, Math.min(iNewValue+this.delta, iEndValue));if(iNewValue > (iEndValue-1)) {iNewValue = iEndValue;}this.setAttrib(iNewValue);me.changeAttribST = setTimeout(function(){me.changeAttrib(iNewValue,iEndValue);},iStepDuration);
} else if (iNewValue > iEndValue) {this.delta = (this.step > 0) ? (iNewValue - iEndValue)/this.step : 0;iNewValue = Math.min(this.startValue, Math.max(iNewValue-this.delta, iEndValue));if(iNewValue < (iEndValue+1)) {iNewValue = iEndValue;}this.setAttrib(iNewValue);me.changeAttribST = setTimeout(function(){me.changeAttrib(iNewValue,iEndValue)},iStepDuration);} else if (iNewValue == iEndValue) {this.setAttrib(iEndValue);clearTimeout(me.changeAttribST);if(fFunc && (this.funcdone == false)) {fFunc();}
}};this.changeAttrib(this.startValue,this.endValue);return true;};WhizBang.prototype.scaleNegAttrib = function(sAttribute,sUnit,iStartValue,iEndValue,iDuration,iFramerate,iPercent,fFunc) {this.attribute = sAttribute;this.unit = sUnit;this.startValue = Number(iStartValue);this.endValue = iEndValue;this.duration = iDuration;this.framerate = iFramerate;this.percent = iPercent;this.delta = this.startValue;this.step = (this.duration/1000)*this.framerate;
this.oncomplete = false;this.funcdone = false;if(this.percent == 100) { this.oncomplete = true; }this.funcpercent = Math.round((this.duration/this.step)*(this.percent/100));this.percentdone = 0;this.setAttrib = function(iVal) {alert('iVal: '+iVal);this.style[this.attribute] = iVal+this.unit;};this.changeAttrib = function (iNewValue,iEndValue) {var iStepDuration = Math.round(this.duration/this.step);this.duration -= iStepDuration;this.percentdone++;alert('iNewValue: '+iNewValue+'\niEndValue: '+iEndValue+'\ndelta: '+this.delta);
if((this.percentdone == this.funcpercent) && fFunc && this.oncomplete == false) {fFunc();this.funcdone = true;}if (iNewValue < iEndValue) {this.delta = (this.step > 0) ? (iEndValue - iNewValue)/this.step : 0;alert('delta1: '+this.delta);iNewValue = Math.max(iStartValue, Math.min(iNewValue+this.delta, iEndValue));if(iNewValue > (iEndValue-1)) {iNewValue = iEndValue;}this.setAttrib(iNewValue);this.changeAttribST = window.setTimeout(this.changeAttrib.bind(this,iNewValue,iEndValue),iStepDuration);
} else if (iNewValue > iEndValue) {this.delta = (this.step > 0) ? (iNewValue - iEndValue)/this.step : 0;var iNextValue = (iNewValue-this.delta);iNewValue = Math.min(iStartValue, Math.max(iNextValue, iEndValue));alert('delta2: '+this.delta+'\niNewValue: '+iNewValue+'\nstartValue: '+iStartValue+'\niNewValue-this.delta: '+iNextValue+'\niEndValue: '+iEndValue);if(iNewValue < (iEndValue+1)) {iNewValue = iEndValue;}this.setAttrib(iNewValue);this.changeAttribST = window.setTimeout(this.changeAttrib.bind(this,iNewValue,iEndValue),iStepDuration);
} else if (iNewValue == iEndValue) {this.setAttrib(iEndValue);clearTimeout(me.changeAttribST);if(fFunc && (this.funcdone == false)) {fFunc();}}};this.changeAttrib(this.startValue,this.endValue);return true;};var AppleJAX = new Object();Object.extend(AppleJAX, {ahah: function(url,target,func) {if(window.XMLHttpRequest) {req = new XMLHttpRequest();req.onreadystatechange =(func) ? function() { AppleJAX.ahahdone(target,func); } : function() { ahahDone(target); };
req.open("GET", url, true);req.send(null);} else if(window.ActiveXObject) {req = new ActiveXObject("Microsoft.XMLHTTP");if(req) {req.onreadystatechange =(func) ? function() { AppleJAX.ahahdone(target,func) ;} : function() { ahahDone(target); };req.open("GET", url, true);req.send();}}},ahahdone: function(target,func) {if(req.readyState == 4) {if(req.status == 200 || req.status == 304) {results = req.responseText;$(target).innerHTML = results;
if(func) { func(); }} else { $(target).innerHTML = 'ahah error:\n' + req.statusText; }}},getXML: function(url,func) {if(window.XMLHttpRequest) {req = new XMLHttpRequest();req.onreadystatechange = function() { AppleJAX.getXMLdone(func); };req.open("GET", url, true);req.send(null);} else if (window.ActiveXObject) {req = new ActiveXObject("Microsoft.XMLHTTP");if(req) {req.onreadystatechange = function() { AppleJAX.getXMLdone(func); };req.open("GET", url, true);
req.send();}}},getXML2: function(url,func) {if(window.XMLHttpRequest) {req = new XMLHttpRequest();if(func) { req.onreadystatechange = function() { AppleJAX.getXMLdone(func); }; };req.open("GET", url, true);req.send(null);} else if(window.ActiveXObject) {req = new ActiveXObject("Microsoft.XMLHTTP");if(req) {if(func) { req.onreadystatechange = function() { AppleJAX.getXMLdone(func); }; };req.open("GET", url, true);req.send();
}}},getXMLdone: function(func) {if(req.readyState == 4) {results = req.responseXML;if(func) { func(); }}},getXMLwithResults: function(url,func) {if(window.XMLHttpRequest) {req = new XMLHttpRequest();req.onreadystatechange = function() { AppleJAX.getXMLdoneWithResults(req,func); };req.open("GET", url, true);req.send(null);} else if(window.ActiveXObject) {var req = new ActiveXObject("Microsoft.XMLHTTP");if(req) {req.onreadystatechange = function() { AppleJAX.getXMLdoneWithResults(req,func); };
req.open("GET", url, true);req.send();}}},getXMLdoneWithResults: function(req,func) {if(req.readyState == 4) {var results = req.responseXML;if(func) { func(results); }}}});function addEventToObject(oObj,sEvt,fFunc) {var oldhandler = oObj[sEvt];oObj[sEvt] = (typeof oObj[sEvt] != 'function') ? fFunc : function(){ oldhandler(); fFunc(); };}Object.extend(HTMLObject, {getHeight: function() { return this.offsetHeight; },getWidth: function() { return this.offsetWidth; },
getTop: function() {var styleValue = 0;var obj = this;if(obj.offsetParent) {while(obj.offsetParent) {styleValue += obj.offsetTop;obj = obj.offsetParent;}} else if(obj.x) { styleValue += obj.y; }return styleValue;},getLeft: function() {var styleValue = 0;var obj = this;if(obj.offsetParent) {while(obj.offsetParent) {styleValue += obj.offsetLeft;obj = obj.offsetParent;}} else if(obj.x) { styleValue += obj.x; }return styleValue;
},getInfo: function(selector) {var viewCSS = (typeof document.defaultView == 'function') ? document.defaultView() : document.defaultView;if(viewCSS && viewCSS.getComputedStyle) {var s = viewCSS.getComputedStyle(this,null);return s && s.getPropertyValue(selector);}return this.currentStyle && (this.currentStyle[selector] || null) || null;},addClass: function(class_name) {if(this.className !== '') { this.className += ' ' + class_name; }else { this.className = class_name; }
},removeClass: function(class_name) {var oldClass = this.className;var re = new RegExp('\\s?'+class_name+'\\b');if(oldClass.indexOf(class_name) != -1) { this.className = oldClass.replace(re,''); }},hasClass: function(class_name) {var re = new RegExp('(^|\\s+)'+class_name+'(\\s+|$)');if(this.getAttributeNode("class") !== null) { return re.test(this.getAttributeNode("class").value); }else if(this.className) { return re.test(this.className); }else { return false; }
},addEvent: function(evt,func) { addEventToObject(this,evt,func); },removeEvent: function(evt) { removeEventFromObject(this,evt); }});function $c(sClass,oObj,sTag) {oObj = oObj || document;if (!oObj.length) { oObj = [oObj]; }var aElements = [];for(var i = 0; i<oObj.length; i++) {oEl = oObj[i];if(oEl.getElementsByTagName) {oObj.children = oEl.getElementsByTagName(sTag || '*');for (var j = 0; j<oObj.children.length; j++) {oObj.child = oObj.children[j];
if(oObj.child.className&&(new RegExp('\\b'+sClass+'\\b').test(oObj.child.className))) {aElements.push(oObj.child);}}}}return aElements;}function isQTInstalled() {var qtInstalled = false;qtObj = false;if(navigator.plugins && navigator.plugins.length) {for(var i=0; i < navigator.plugins.length; i++ ) {         var plugin = navigator.plugins[i];         if(plugin.name.indexOf("QuickTime") > -1) { qtInstalled = true; }        }} else {execScript('on error resume next: qtObj = IsObject(CreateObject("QuickTimeCheckObject.QuickTimeCheck.1"))','VBScript');
qtInstalled = qtObj;}return qtInstalled;}function stopDefaultAction(ev) {if(!ev) { ev = window.event; }(ev.stopPropagation) ? ev.stopPropagation() : ev.cancelBubble = true;(ev.preventDefault) ? ev.preventDefault() : ev.returnValue = false;return false;}function getClickedLink(ev) {if(!ev) { ev = window.event; }var clickedLink = (window.event) ? window.event.srcElement : ev.target;while (!clickedLink.tagName || clickedLink.tagName.toLowerCase() != "a") clickedLink = clickedLink.parentNode;
return clickedLink;}Function.prototype.bind = Function.prototype.bindWithArguments = function(oObj) {var __method = this;var args = [];for (var i=0,len=arguments.length-1; i<len; i++) { args[i] = arguments[i+1]; }return function() { __method.apply(oObj,args); };};var browser = new detect();