if(typeof GO=="undefined"){
var GO=new Object();
}
GO.MultiSelect=function(_1,_2,_3){
var _4=this;
var _5=_1;
var _6=_2;
var _7=_3;
var _8;
function init(){
if(typeof document.getElementById=="undefined"){
return;
}
if(typeof EventManager=="undefined"){
return;
}
_8=document.getElementById(_5);
if(!_8){
return;
}
var _9=_8.getElementsByTagName("*");
if(_9.length==0&&_8.all){
_9=_8.all;
}
var _a;
for(var i=0;i<_9.length;i++){
if(_9[i].className.match(/\bGO:MultiSelect:GroupContainer\b/)){
_9[i].containedItems=new Array();
}else{
if(_9[i].className.match(/\bGO:MultiSelect:GroupSelector\b/)){
_9[i].groupContainer=findGroupContainer(_9[i]);
EventManager.Add(_9[i],"click",_4.handleGroupSelectorClick,false);
}else{
if(_9[i].nodeName=="INPUT"&&_9[i].getAttribute("type")=="checkbox"){
if(_a=findGroupContainer(_9[i])){
_a.containedItems.push(_9[i]);
}
EventManager.Add(_9[i],"click",_4.handleCheckboxClick,false);
if(_9[i].parentNode.nodeName=="LABEL"){
EventManager.Add(_9[i].parentNode,"click",_4.handleLabelClick,false);
_9[i].parentNode.checkBox=_9[i];
if(_9[i].checked){
GO.addClass(_9[i].parentNode,_6);
}
}
}
}
}
}
}
function findGroupContainer(_c){
var _d=_c;
while(_d&&_d!=_8&&!_d.className.match(/\bGO:MultiSelect:GroupContainer\b/)){
_d=_d.parentNode;
}
if(_d&&_d!=_8){
return _d;
}else{
return null;
}
}
this.handleCheckboxClick=function(_e){
_e=GO.getEvent(_e);
var _f=GO.getEventSource(_e);
var _10=_f.parentNode;
if(_10.nodeName=="LABEL"){
if(_f.checked){
GO.addClass(_10,_6);
}else{
GO.removeClass(_10,_6);
}
}
};
this.handleLabelClick=function(evt){
evt=GO.getEvent(evt);
var _12=GO.getEventSource(evt);
var cb=_12.checkBox;
if(!cb){
return;
}
if(cb.checked){
GO.removeClass(_12,_6);
cb.checked=false;
}else{
GO.addClass(_12,_6);
cb.checked=true;
}
GO.preventDefault(evt);
return false;
};
this.handleGroupSelectorClick=function(evt){
var _15,label;
evt=GO.getEvent(evt);
var _16=GO.getEventSource(evt);
if(!_16){
return;
}
if(!_16.groupContainer){
return;
}
if(!(_15=_16.groupContainer.containedItems)){
return;
}
var _17=true;
for(var i=0;i<_15.length;i++){
if(!_15[i].checked){
_17=false;
_15[i].checked=true;
label=_15[i].parentNode;
if(label.nodeName=="LABEL"){
GO.addClass(label,_6);
}
}
}
if(_17){
for(var i=0;i<_15.length;i++){
_15[i].checked=false;
label=_15[i].parentNode;
if(label.nodeName=="LABEL"){
GO.removeClass(label,_6);
}
}
}
GO.preventDefault(evt);
};
init();
return this;
};
GO.SlideShow=function(_19,_1a,_1b,_1c){
var _1d=this;
var _1e=new Array();
var _1f=new Array();
var _20=new Array();
var _21=new Array();
var _22=null;
var _23=null;
var _24=null;
var _25=false;
var _26;
var _27;
var _28=-1;
var _29;
var _2a;
var _2b="stopped";
var _2c=false;
var _2d;
var _2e;
var _2f;
var _30;
var _31;
var _32;
var _33;
this.random=false;
this.width=0;
this.height=0;
this.backgroundColor="white";
this.pauseOnMouseOver=true;
this.fadeTime=300;
this.fps=20;
this.inactivityTimeout=8000;
this.changeInterval=3000;
this.rawContent=false;
this.thumbnailHighlightClass="";
function __init(){
if(_1b&&typeof _1b=="object"){
for(prop in _1b){
if(typeof _1d[prop]!="undefined"){
_1d[prop]=_1b[prop];
}
}
}
}
function switchToManualMode(){
if(_23){
window.clearInterval(_23);
_23=null;
}
if(_22){
window.clearTimeout(_22);
}
if(_1d.inactivityTimeout){
_22=window.setTimeout(_1d.start,_1d.inactivityTimeout);
}
_2b="stopped";
}
function buildSlideshow(){
var _34;
if(_25){
return;
}
_2d=document.getElementById(_19);
if(!_2d){
return;
}
_2e=document.getElementById(_19+":SlideContainer");
if(!_2e){
return;
}
_34=_2d.getElementsByTagName("*");
if(_34.length==0&&_2d.all){
_34=_2d.all;
}
for(var i=0;i<_34.length;i++){
if(/\bGO:SlideShow:slideIndex\b/.test(_34[i].className)){
_31=_34[i];
continue;
}
if(/\bGO:SlideShow:slideCount\b/.test(_34[i].className)){
_32=_34[i];
continue;
}
if(/\bGO:SlideShow:caption\b/.test(_34[i].className)){
_33=_34[i];
continue;
}
}
_2f=document.getElementById(_1a);
if(_2f){
_34=_2f.getElementsByTagName("*");
if(_34.length==0&&_2f.all){
_34=_2f.all;
}
for(var i=0;i<_34.length;i++){
if(/\bGO:SlideShow:prev\b/.test(_34[i].className)){
EventManager.Add(_34[i],"click",_1d.prev,false);
continue;
}
if(/\bGO:SlideShow:next\b/.test(_34[i].className)){
EventManager.Add(_34[i],"click",_1d.next,false);
continue;
}
if(/\bGO:SlideShow:pause\b/.test(_34[i].className)){
EventManager.Add(_34[i],"click",_1d.pause,false);
continue;
}
if(/\bGO:SlideShow:restart\b/.test(_34[i].className)){
EventManager.Add(_34[i],"click",_1d.reset,false);
continue;
}
}
}
_30=document.getElementById(_1c);
if(_30){
_34=_30.getElementsByTagName("*");
if(_34.length==0&&_30.all){
_34=_30.all;
}
var _36=0;
for(var i=0;i<_34.length;i++){
if(/\bGO:SlideShow:thumbnail\b/.test(_34[i].className)){
_21[_36]=_34[i];
EventManager.Add(_34[i],"click",getThumbnailClickHandler(_36),false);
_36++;
}
}
}
_26=1000/_1d.fadeTime/_1d.fps;
for(var i=0;i<_1e.length;i++){
var _37=document.createElement("DIV");
_37.innerHTML=getSlideHTML(i);
_37.style.position="absolute";
_37.style.top="0";
_37.style.left="0";
_37.style.display="none";
_37.style.zIndex=0;
GO.setOpacity(_37,0);
_2e.appendChild(_37);
_1f.push(_37);
}
_27=-1;
jumpToSlide(0,false);
if(_32){
_32.innerHTML=_1f.length.toString();
}
_25=true;
}
function dismantleSlideshow(){
var _38;
if(_24){
window.clearTimeout(_24);
_24=null;
}
if(_23){
window.clearTimeout(_23);
_23=null;
}
if(_22){
window.clearTimeout(_22);
_22=null;
}
_2e.innerHTML="<img src=\"images/general/spinner.gif\" />";
if(_31){
_31.innerHTML="";
}
if(_32){
_32.innerHTML="";
}
if(_33){
_33.innerHTML="";
}
if(_2f){
_38=_2f.getElementsByTagName("*");
if(_38.length==0&&_2f.all){
_38=_2f.all;
}
for(var i=0;i<_38.length;i++){
if(/\bGO:SlideShow:prev\b/.test(_38[i].className)){
EventManager.ClearAll(_38[i],"click");
continue;
}
if(/\bGO:SlideShow:next\b/.test(_38[i].className)){
EventManager.ClearAll(_38[i],"click");
continue;
}
if(/\bGO:SlideShow:pause\b/.test(_38[i].className)){
EventManager.ClearAll(_38[i],"click");
continue;
}
if(/\bGO:SlideShow:restart\b/.test(_38[i].className)){
EventManager.ClearAll(_38[i],"click");
continue;
}
}
}
if(_30){
_38=_30.getElementsByTagName("*");
if(_38.length==0&&_30.all){
_38=_30.all;
}
var _3a=0;
for(var i=0;i<_38.length;i++){
if(/\bGO:SlideShow:thumbnail\b/.test(_38[i].className)){
_21[_3a]=_38[i];
EventManager.ClearAll(_38[i],"click");
_3a++;
}
}
}
_1f=new Array();
_27=-1;
_25=false;
}
function getThumbnailClickHandler(idx){
return function(evt){
evt=GO.getEvent(evt);
switchToManualMode();
jumpToSlide(idx,true);
return GO.preventDefault(evt);
};
}
function rotate(_3d){
_3d=(_3d)?true:false;
jumpToSlide(((_27+(_3d?-1:1))+_1f.length)%_1f.length,true);
}
function jumpToSlide(idx,_3f){
if(!_1f[idx]){
return;
}
if(idx==_27){
return;
}
if(_23){
window.clearTimeout(_23);
}
if(_2a){
_2a.style.zIndex=0;
_2a.style.display="none";
}
if(!_1e[idx].loaded){
if(_2b=="stopped"&&_29){
if(_24){
window.clearTimeout(_24);
}
GO.setOpacity(_29,0);
_29.style.zIndex=0;
_29.display="none";
}
window.setTimeout(function(){
jumpToSlide(idx,_3f);
},100);
return;
}
_2a=_29;
_28=_27;
_27=idx;
_29=_1f[idx];
GO.setOpacity(_29,0);
_29.style.zIndex=20;
_29.style.display="";
if(_2a){
_2a.style.zIndex=10;
}
if(_31){
_31.innerHTML=(idx+1).toString();
}
if(_33&&!_1d.rawContent){
_33.innerHTML=_1e[idx][3]?_1e[idx][3]:"";
}
if(_1d.thumbnailHighlightClass){
if(_21[_28]){
GO.removeClass(_21[_28],_1d.thumbnailHighlightClass);
}
if(_21[_27]){
GO.addClass(_21[_27],_1d.thumbnailHighlightClass);
}
}
if(_1d.useThumbnailScroll){
if(_21[_27]){
GO.bringIntoView(_21[_27],_30,true);
}
}
if(_3f){
_24=window.setTimeout(fade,parseInt(1000/_1d.fps));
}else{
GO.setOpacity(_29,1);
}
if(_2b=="running"){
_23=window.setTimeout(function(){
rotate();
},_1d.changeInterval);
}
}
function fade(){
var _40=Math.min(GO.getOpacity(_29)+_26,1);
GO.setOpacity(_29,_40);
if(_40<1){
_24=window.setTimeout(fade,parseInt(1000/_1d.fps));
}
}
function getSlideHTML(idx){
var _42="";
if(!_1e[idx]){
return "";
}
if(_1d.rawContent){
return _1e[idx];
}else{
if(_1e[idx][1]){
_42+="<a href=\""+GO.htmlEncode(_1e[idx][1])+"\"";
if(_1e[idx][2]){
_42+=" target=\""+GO.htmlEncode(_1e[idx][2])+"\"";
}
_42+=">";
}
_42+="<img src=\""+GO.htmlEncode(_1e[idx][0])+"\" width=\""+_1d.width+"\" height=\""+_1d.height+"\" />";
if(_1e[idx][1]){
_42+="</a>";
}
}
return _42;
}
function preloadImages(){
var img;
if(_2c){
return;
}
var _44=new RegExp("<img\\s[^>]*src=\"([^\"]*)\"","ig");
for(var i=0;i<_1e.length;i++){
if(_1d.rawContent){
var _46=_1e[i].match(_44);
for(var j=0;j<_46.length;i++){
img=new Image();
img=_46[i].replace(_44,"$1");
_20.push(img);
}
}else{
img=new Image();
EventManager.Add(img,"load",function(el){
return function(){
el.loaded=true;
};
}(_1e[i]),false);
img.src=_1e[i][0];
_1e[i].preload=img;
}
}
_2c=true;
}
this.add=function(_49,_4a,_4b,_4c){
_1e.push(Array(_49,_4a,_4b,_4c));
};
this.display=function(){
if(_1d.random){
_1e.sort(function(){
return 0.5-Math.random();
});
}
document.write("<div id=\""+_19+":SlideContainer\" style=\"width:"+_1d.width+"px;height:"+_1d.height+"px;position:relative;background-color:"+_1d.backgroundColor+";\">");
document.write("<img src=\"images/general/spinner.gif\" />");
document.write("</div>");
EventManager.Add(window,"load",preloadImages,false);
EventManager.Add(window,"load",_1d.start,false);
};
this.start=function(evt){
evt=GO.getEvent(evt);
if(!_2c){
preloadImages();
}
_2b="running";
if(_23){
window.clearInterval(_23);
}
if(!_25){
buildSlideshow();
}
return GO.preventDefault(evt);
};
this.reset=function(evt){
evt=GO.getEvent(evt);
_2b="running";
jumpToSlide(0,false);
return GO.preventDefault(evt);
};
this.pause=function(evt){
evt=GO.getEvent(evt);
switchToManualMode();
return GO.preventDefault(evt);
};
this.prev=function(evt){
evt=GO.getEvent(evt);
switchToManualMode();
rotate(true);
return GO.preventDefault(evt);
};
this.next=function(evt){
evt=GO.getEvent(evt);
switchToManualMode();
rotate();
return GO.preventDefault(evt);
};
this.clear=function(evt){
evt=GO.getEvent(evt);
dismantleSlideshow();
return GO.preventDefault(evt);
};
__init();
return this;
};
GO.SlideShowManager=function(_53,_54,_55,_56){
var _57=this;
var _58;
var _59;
var _5a;
var _5b;
var _5c;
var _5d=new Array();
var _5e=new Array();
var _5f=-1;
var _60=false;
this.random=false;
this.width=0;
this.height=0;
this.backgroundColor="white";
this.pauseOnMouseOver=true;
this.fadeTime=300;
this.fps=20;
this.inactivityTimeout=8000;
this.changeInterval=3000;
this.rawContent=false;
this.thumbnailHighlightClass="";
this.listItemHighlightClass="";
function __init(){
if(_56&&typeof _56=="object"){
for(prop in _56){
if(typeof _57[prop]!="undefined"){
_57[prop]=_56[prop];
}
}
}
}
function __build(){
var tmp;
if(_60){
return true;
}
_58=document.getElementById(_53);
_59=document.getElementById(_54);
if(!_58){
return false;
}
if(!_59){
return false;
}
tmp=GO.getElementsByClassName(_59,"GO:SlideShowManager:title");
if(tmp&&tmp[0]){
_5b=tmp[0];
if(_5d[_5f]){
_5b.innerHTML=_5d[_5f].title;
}
}
tmp=GO.getElementsByClassName(_59,"GO:SlideShowManager:description");
if(tmp&&tmp[0]){
_5c=tmp[0];
if(_5d[_5f]){
_5c.innerHTML=_5d[_5f].description;
}
}
tmp=GO.getElementsByClassName(_59,"GO:SlideShowManager:link");
if(tmp&&tmp.length>0){
itemLinks=tmp;
if(_5d[_5f]){
var _62=_5d[_5f].link;
for(var i=0;i<itemLinks.length;i++){
itemLinks[i].setAttribute("href",_62);
}
}
}
controls=_59.getElementsByTagName("*");
if(controls.length==0&&_59.all){
controls=_59.all;
}
for(var i=0;i<controls.length;i++){
if(/\bGO:SlideShowManager:prev\b/.test(controls[i].className)){
EventManager.Add(controls[i],"click",_57.prev,false);
continue;
}
if(/\bGO:SlideShowManager:next\b/.test(controls[i].className)){
EventManager.Add(controls[i],"click",_57.next,false);
continue;
}
}
_58=document.getElementById(_53);
if(_58){
controls=_58.getElementsByTagName("*");
if(controls.length==0&&_58.all){
controls=_58.all;
}
var _64=0;
for(var i=0;i<controls.length;i++){
if(/\bGO:SlideShowManager:listItem\b/.test(controls[i].className)){
_5e[_64]=controls[i];
if(_64==_5f){
GO.addClass(_5e[_64],_57.listItemHighlightClass);
}
EventManager.Add(controls[i],"click",getListItemClickHandler(_64),true);
_64++;
}
}
}
_60=true;
return true;
}
function getListItemClickHandler(idx){
return function(evt){
evt=GO.getEvent(evt);
jumpToSlideshow(idx);
return GO.preventDefault(evt);
};
}
function jumpToSlideshow(idx){
var i,j,elements;
var _69=_5d[idx];
if(!_69){
return;
}
if(idx==_5f){
return;
}
if(_5b){
_5b.innerHTML=_69.title;
}
if(_5c){
_5c.innerHTML=_69.description;
}
if(itemLinks){
for(var i=0;i<itemLinks.length;i++){
itemLinks[i].setAttribute("href",_69.link);
}
}
if(_5d[_5f]){
_5d[_5f].clear();
}
if(_5e[_5f]){
GO.removeClass(_5e[_5f],_57.listItemHighlightClass);
}
if(_5e[idx]){
GO.bringIntoView(_5e[idx],_58,true);
GO.addClass(_5e[idx],_57.listItemHighlightClass);
}
for(i=0;i<_5d[idx].customActions.length;i++){
if(_5d[idx].customActions[i].action=="addClass"){
elements=document.getElementsBySelector(_5d[idx].customActions[i].selector);
for(j=0;j<elements.length;j++){
GO.removeClass(elements[j],_5d[idx].customActions[i].data);
}
}
}
for(i=0;i<_5d[idx].customActions.length;i++){
elements=document.getElementsBySelector(_5d[idx].customActions[i].selector);
for(j=0;j<elements.length;j++){
switch(_5d[idx].customActions[i].action){
case "addClass":
GO.addClass(elements[j],_5d[idx].customActions[i].data);
break;
case "setClass":
elements[j].className=_5d[idx].customActions[i].data;
break;
case "setContent":
elements[j].innerHTML=_5d[idx].customActions[i].data;
break;
}
}
}
_69.start();
_5f=idx;
}
this.add=function(_6a,_6b,_6c,_6d){
var _6e=new GO.SlideShow(_54,_55);
if(_6c&&_6c.length){
for(i=0;i<_6c.length;i++){
if(_6d){
_6e.add(_6c[i],_6d);
}else{
_6e.add(_6c[i]);
}
}
}
_6e.random=_57.random;
_6e.width=_57.width;
_6e.height=_57.height;
_6e.backgroundColor=_57.backgroundColor;
_6e.pauseOnMouseOver=_57.pauseOnMouseOver;
_6e.fadeTime=_57.fadeTime;
_6e.fps=_57.fps;
_6e.inactivityTimeout=_57.inactivityTimeout;
_6e.changeInterval=_57.changeInterval;
_6e.rawContent=_57.rawContent;
_6e.thumbnailHighlightClass=_57.thumbnailHighlightClass;
_6e.title=_6a;
_6e.description=_6b;
_6e.link=_6d;
_6e.customActions=new Array();
_6e.addCustomDisplayAction=function(_6f,_70,_71){
this.customActions.push({"selector":_6f,"action":_70,"data":_71});
};
_5d.push(_6e);
return _6e;
};
this.displayFirstSlideshow=function(){
if(_5d.length==0){
return;
}
_5d[0].display();
_5f=0;
EventManager.Add(window,"load",__build,false);
};
this.prev=function(evt){
evt=GO.getEvent(evt);
jumpToSlideshow((_5f-1+_5d.length)%_5d.length);
return GO.preventDefault(evt);
};
this.next=function(evt){
evt=GO.getEvent(evt);
jumpToSlideshow((_5f+1)%_5d.length);
return GO.preventDefault(evt);
};
__init();
return this;
};
GO.SearchResultsManager=function(_74,_75){
var _76=this;
var _77;
function init(){
_77=document.getElementById(_75);
if(!_77){
return false;
}
var _78=document.location.href.split("#")[1];
if(_78){
}
var _79=new Object();
_79["#"+_74.id+" LI"]=function(e){
EventManager.Add(e,"click",function(evt){
_76.handleThumbnailClick(evt,e);
},false);
};
_79["#"+_74.id+" A"]=function(e){
EventManager.Add(e,"click",function(evt){
evt.returnValue=false;
if(typeof evt.preventDefault!="undefined"){
evt.preventDefault();
}
},false);
};
Behaviour.register(_79);
}
this.handleThumbnailClick=function(evt,_7f){
evt=(evt)?evt:((window.event)?window.event:null);
if(!evt){
return;
}
GO.bringIntoView(_7f,_74,true);
evt.returnValue=false;
if(typeof evt.preventDefault!="undefined"){
evt.preventDefault();
}
};
init();
return this;
};
GO.getEvent=function(evt){
return (evt)?evt:((window.event)?window.event:null);
};
GO.getEventSource=function(evt){
if(!evt){
return null;
}
return evt.target?evt.target:evt.srcElement;
};
GO.preventDefault=function(evt){
if(!evt){
return;
}
evt.returnValue=false;
if(typeof evt.preventDefault!="undefined"){
evt.preventDefault();
}
if(typeof evt.cancelDefault!="undefined"){
evt.cancelDefault();
}
return false;
};
GO.addClass=function(obj,_84){
if(!_84){
return;
}
obj.className+=(obj.className?" ":"")+_84;
};
GO.removeClass=function(obj,_86){
if(!_86){
return;
}
var _87=new RegExp("(^| )"+_86+"( |$)");
obj.className=obj.className.replace(_87,"");
};
GO.toggleClass=function(obj,_89){
if(!_89){
return;
}
var _8a=new RegExp("(^| )"+_89+"( |$)");
if(_8a.test(this.className)){
obj.className=obj.className.replace(_8a,"");
return false;
}else{
obj.className+=(obj.className?" ":"")+_89;
return true;
}
};
GO.getElementsByClassName=function(el,cls){
if(!el){
return null;
}
var _8d=new Array();
var _8e=el.getElementsByTagName("*");
if(_8e.length==0&&el.all){
_8e=el.all;
}
var _8f=new RegExp("(^|\\s)"+cls+"(\\s|$)");
for(var i=0;i<_8e.length;i++){
if(_8f.test(_8e[i].className)){
_8d.push(_8e[i]);
}
}
return _8d;
};
GO.bringIntoView=function(_91,_92,_93){
var _94=false;
if(!_91||!_92){
return;
}
if(false){
alert("offsetParent: "+_91.offsetParent.nodeName+"#"+_91.offsetParent.id+"  \noffsetTop: "+_91.offsetTop+"  \noffsetHeight: "+_91.offsetHeight+"  \ncontainer height: "+_92.offsetHeight+"  \ncontainer scrollTop: "+_92.scrollTop);
}
if((_91.offsetTop+_91.offsetHeight)>(_92.clientHeight+_92.scrollTop)){
_94=(_91.offsetTop+_91.offsetHeight)-(3*_92.offsetHeight/4);
}else{
if((_91.offsetTop)<_92.scrollTop){
_94=Math.max(0,_91.offsetTop-(_92.clientHeight/4));
}
}
if(_94!==false){
if((_91.offsetTop+_91.offsetHeight)>(_92.clientHeight+_94)){
_94=Math.min(_91.offsetTop,(_91.offsetTop+_91.offsetHeight-_92.clientHeight));
}
GO.animatedScrollTo(_92,_94);
}
};
GO.animatedScrollTo=function(_95,_96,_97,fps){
if(!_95){
return;
}
_97=_97?_97:300;
fps=fps?fps:20;
x=_95.scrollTop;
v=(_96-x)/_97;
window.setTimeout(function(){
stepScroll(v);
},1000/fps);
function stepScroll(v){
var dx=v*(1000/fps);
x+=dx;
if((dx<0&&x<_96)||(dx>0&&x>_96)){
x=_96;
}
_95.scrollTop=x;
if(x!=_96){
window.setTimeout(function(){
stepScroll(v);
},1000/fps);
}
}
};
GO.getCSSProperty=function(el,_9c,_9d){
var _9e;
if(el.currentStyle){
return el.currentStyle[_9c];
}else{
if(window.getComputedStyle){
if(_9e=window.getComputedStyle(el,"")){
return _9e.getPropertyValue(_9d);
}
}
}
return "";
};
GO.setOpacity=function(el,_a0){
if(!el){
return;
}
_a0=Number(_a0);
el.opacity=_a0;
el.style.opacity=_a0;
el.style.MozOpacity=_a0;
el.style.KhtmlOpacity=_a0;
if(el.filters){
if(typeof el.filters[0]!="undefined"&&typeof el.filters[0].opacity=="number"){
el.filters[0].opacity=_a0*100;
}else{
el.style.filter="alpha(opacity="+(_a0*100)+")";
}
}
};
GO.getOpacity=function(el){
if(!el){
return 0;
}
if(typeof el.opacity=="undefined"){
return 1;
}
return Number(el.opacity);
};
GO.htmlEncode=function(s){
tmp=function(s,n){
c=n.charCodeAt(0);
return (c>127?"&#"+c+";":n);
};
s=s.replace(/&/,"&amp;");
s=s.replace(/</,"&lt;");
s=s.replace(/>/,"&gt;");
s=s.replace(/"/,"&quot;");
if(navigator.userAgent.toLowerCase().indexOf("safari")<0){
s=s.replace(/(\w|\W)/g,function(s,n){
c=n.charCodeAt(0);
return (c>127?"&#"+c+";":n);
});
}
return s;
};

