var includeCaption=true;var zoomTime=5;var zoomSteps=15;var includeFade=1;var minBorder=90;var shadowSettings='0px 5px 25px rgba(0, 0, 0, ';var zoomImagesURI='fileadmin/template_gpsauge/pics/FancyZoom/';var myWidth=0,myHeight=0,myScroll=0;myScrollWidth=0;myScrollHeight=0;var zoomOpen=false,preloadFrame=1,preloadActive=false,preloadTime=0,imgPreload=new Image();var preloadAnimTimer=0;var zoomActive=new Array();var zoomTimer=new Array();var zoomOrigW=new Array();var zoomOrigH=new Array();var zoomOrigX=new Array();var zoomOrigY=new Array();var zoomID="ZoomBox";var theID="ZoomImage";var zoomCaption="ZoomCaption";var zoomCaptionDiv="ZoomCapDiv";if(navigator.userAgent.indexOf("MSIE")!=-1){var browserIsIE=true;}
function setupZoom(){prepZooms();insertZoomHTML();zoomdiv=document.getElementById(zoomID);zoomimg=document.getElementById(theID);}
function prepZooms(){if(!document.getElementsByTagName){return;}
var links=document.getElementsByTagName("a");for(i=0;i<links.length;i++){if(links[i].getAttribute("href")){if(links[i].getAttribute("href").search(/(.*)\.(jpg|jpeg|gif|png|bmp|tif|tiff)/gi)!=-1){if(links[i].getAttribute("rel")!="nozoom"){links[i].onclick=function(event){return zoomClick(this,event);};links[i].onmouseover=function(){zoomPreload(this);};}}}}}
function zoomPreload(from){var theimage=from.getAttribute("href");if(imgPreload.src.indexOf(from.getAttribute("href").substr(from.getAttribute("href").lastIndexOf("/")))==-1){preloadActive=true;imgPreload=new Image();imgPreload.onload=function(){preloadActive=false;}
imgPreload.src=theimage;}}
function preloadAnimStart(){preloadTime=new Date();document.getElementById("ZoomSpin").style.left=(myWidth/2)+'px';document.getElementById("ZoomSpin").style.top=((myHeight/2)+myScroll)+'px';document.getElementById("ZoomSpin").style.visibility="visible";preloadFrame=1;document.getElementById("SpinImage").src=zoomImagesURI+'zoom-spin-'+preloadFrame+'.png';preloadAnimTimer=setInterval("preloadAnim()",100);}
function preloadAnim(from){if(preloadActive!=false){document.getElementById("SpinImage").src=zoomImagesURI+'zoom-spin-'+preloadFrame+'.png';preloadFrame++;if(preloadFrame>12)preloadFrame=1;}else{document.getElementById("ZoomSpin").style.visibility="hidden";clearInterval(preloadAnimTimer);preloadAnimTimer=0;zoomIn(preloadFrom);}}
function zoomClick(from,evt){var shift=getShift(evt);if(!evt&&window.event&&(window.event.metaKey||window.event.altKey)){return true;}else if(evt&&(evt.metaKey||evt.altKey)){return true;}
getSize();if(preloadActive==true){if(preloadAnimTimer==0){preloadFrom=from;preloadAnimStart();}}else{zoomIn(from,shift);}
return false;}
function zoomIn(from,shift){zoomimg.src=from.getAttribute("href");if(from.childNodes[0].width){startW=from.childNodes[0].width;startH=from.childNodes[0].height;startPos=findElementPos(from.childNodes[0]);}else{startW=50;startH=12;startPos=findElementPos(from);}
hostX=startPos[0];hostY=startPos[1];if(document.getElementById('scroller')){hostX=hostX-document.getElementById('scroller').scrollLeft;}
endW=imgPreload.width;endH=imgPreload.height;if(zoomActive[theID]!=true){if(document.getElementById("ShadowBox")){document.getElementById("ShadowBox").style.visibility="hidden";}else if(!browserIsIE){if(fadeActive["ZoomImage"]){clearInterval(fadeTimer["ZoomImage"]);fadeActive["ZoomImage"]=false;fadeTimer["ZoomImage"]=false;}
document.getElementById("ZoomImage").style.webkitBoxShadow=shadowSettings+'0.0)';}
document.getElementById("ZoomClose").style.visibility="hidden";if(includeCaption){document.getElementById(zoomCaptionDiv).style.visibility="hidden";if(from.getAttribute('title')&&includeCaption){document.getElementById(zoomCaption).innerHTML=from.getAttribute('title');}else{document.getElementById(zoomCaption).innerHTML="";}}
zoomOrigW[theID]=startW;zoomOrigH[theID]=startH;zoomOrigX[theID]=hostX;zoomOrigY[theID]=hostY;zoomimg.style.width=startW+'px';zoomimg.style.height=startH+'px';zoomdiv.style.left=hostX+'px';zoomdiv.style.top=hostY+'px';if(includeFade==1){setOpacity(0,zoomID);}
zoomdiv.style.visibility="visible";sizeRatio=endW/endH;if(endW>myWidth-minBorder){endW=myWidth-minBorder;endH=endW/sizeRatio;}
if(endH>myHeight-minBorder){endH=myHeight-minBorder;endW=endH*sizeRatio;}
zoomChangeX=((myWidth/2)-(endW/2)-hostX);zoomChangeY=(((myHeight/2)-(endH/2)-hostY)+myScroll);zoomChangeW=(endW-startW);zoomChangeH=(endH-startH);if(shift){tempSteps=zoomSteps*7;}else{tempSteps=zoomSteps;}
zoomCurrent=0;if(includeFade==1){fadeCurrent=0;fadeAmount=(0-100)/tempSteps;}else{fadeAmount=0;}
zoomTimer[theID]=setInterval("zoomElement('"+zoomID+"', '"+theID+"', "+zoomCurrent+", "+startW+", "+zoomChangeW+", "+startH+", "+zoomChangeH+", "+hostX+", "+zoomChangeX+", "+hostY+", "+zoomChangeY+", "+tempSteps+", "+includeFade+", "+fadeAmount+", 'zoomDoneIn(zoomID)')",zoomTime);zoomActive[theID]=true;}}
function zoomOut(from,evt){if(getShift(evt)){tempSteps=zoomSteps*7;}else{tempSteps=zoomSteps;}
if(zoomActive[theID]!=true){if(document.getElementById("ShadowBox")){document.getElementById("ShadowBox").style.visibility="hidden";}else if(!browserIsIE){if(fadeActive["ZoomImage"]){clearInterval(fadeTimer["ZoomImage"]);fadeActive["ZoomImage"]=false;fadeTimer["ZoomImage"]=false;}
document.getElementById("ZoomImage").style.webkitBoxShadow=shadowSettings+'0.0)';}
document.getElementById("ZoomClose").style.visibility="hidden";if(includeCaption&&document.getElementById(zoomCaption).innerHTML!=""){document.getElementById(zoomCaptionDiv).style.visibility="hidden";}
startX=parseInt(zoomdiv.style.left);startY=parseInt(zoomdiv.style.top);startW=zoomimg.width;startH=zoomimg.height;zoomChangeX=zoomOrigX[theID]-startX;zoomChangeY=zoomOrigY[theID]-startY;zoomChangeW=zoomOrigW[theID]-startW;zoomChangeH=zoomOrigH[theID]-startH;zoomCurrent=0;if(includeFade==1){fadeCurrent=0;fadeAmount=(100-0)/tempSteps;}else{fadeAmount=0;}
zoomTimer[theID]=setInterval("zoomElement('"+zoomID+"', '"+theID+"', "+zoomCurrent+", "+startW+", "+zoomChangeW+", "+startH+", "+zoomChangeH+", "+startX+", "+zoomChangeX+", "+startY+", "+zoomChangeY+", "+tempSteps+", "+includeFade+", "+fadeAmount+", 'zoomDone(zoomID, theID)')",zoomTime);zoomActive[theID]=true;}}
function zoomDoneIn(zoomdiv,theID){zoomOpen=true;zoomdiv=document.getElementById(zoomdiv);if(document.getElementById("ShadowBox")){setOpacity(0,"ShadowBox");shadowdiv=document.getElementById("ShadowBox");shadowLeft=parseInt(zoomdiv.style.left)-13;shadowTop=parseInt(zoomdiv.style.top)-8;shadowWidth=zoomdiv.offsetWidth+26;shadowHeight=zoomdiv.offsetHeight+26;shadowdiv.style.width=shadowWidth+'px';shadowdiv.style.height=shadowHeight+'px';shadowdiv.style.left=shadowLeft+'px';shadowdiv.style.top=shadowTop+'px';document.getElementById("ShadowBox").style.visibility="visible";fadeElementSetup("ShadowBox",0,100,5);}else if(!browserIsIE){fadeElementSetup("ZoomImage",0,.8,5,0,"shadow");}
if(includeCaption&&document.getElementById(zoomCaption).innerHTML!=""){zoomcapd=document.getElementById(zoomCaptionDiv);zoomcapd.style.top=parseInt(zoomdiv.style.top)+(zoomdiv.offsetHeight+15)+'px';zoomcapd.style.left=(myWidth/2)-(zoomcapd.offsetWidth/2)+'px';zoomcapd.style.visibility="visible";}
if(!browserIsIE)setOpacity(0,"ZoomClose");document.getElementById("ZoomClose").style.visibility="visible";if(!browserIsIE)fadeElementSetup("ZoomClose",0,100,5);document.onkeypress=getKey;}
function zoomDone(zoomdiv,theID){zoomOpen=false;zoomOrigH[theID]="";zoomOrigW[theID]="";document.getElementById(zoomdiv).style.visibility="hidden";zoomActive[theID]==false;document.onkeypress=null;}
function zoomElement(zoomdiv,theID,zoomCurrent,zoomStartW,zoomChangeW,zoomStartH,zoomChangeH,zoomStartX,zoomChangeX,zoomStartY,zoomChangeY,zoomSteps,includeFade,fadeAmount,execWhenDone){if(zoomCurrent==(zoomSteps+1)){zoomActive[theID]=false;clearInterval(zoomTimer[theID]);if(execWhenDone!=""){eval(execWhenDone);}}else{if(includeFade==1){if(fadeAmount<0){setOpacity(Math.abs(zoomCurrent*fadeAmount),zoomdiv);}else{setOpacity(100-(zoomCurrent*fadeAmount),zoomdiv);}}
moveW=cubicInOut(zoomCurrent,zoomStartW,zoomChangeW,zoomSteps);moveH=cubicInOut(zoomCurrent,zoomStartH,zoomChangeH,zoomSteps);moveX=cubicInOut(zoomCurrent,zoomStartX,zoomChangeX,zoomSteps);moveY=cubicInOut(zoomCurrent,zoomStartY,zoomChangeY,zoomSteps);document.getElementById(zoomdiv).style.left=moveX+'px';document.getElementById(zoomdiv).style.top=moveY+'px';zoomimg.style.width=moveW+'px';zoomimg.style.height=moveH+'px';zoomCurrent++;clearInterval(zoomTimer[theID]);zoomTimer[theID]=setInterval("zoomElement('"+zoomdiv+"', '"+theID+"', "+zoomCurrent+", "+zoomStartW+", "+zoomChangeW+", "+zoomStartH+", "+zoomChangeH+", "+zoomStartX+", "+zoomChangeX+", "+zoomStartY+", "+zoomChangeY+", "+zoomSteps+", "+includeFade+", "+fadeAmount+", '"+execWhenDone+"')",zoomTime);}}
function getKey(evt){if(!evt){theKey=event.keyCode;}else{theKey=evt.keyCode;}
if(theKey==27){zoomOut(this,evt);}}
function fadeOut(elem){if(elem.id){fadeElementSetup(elem.id,100,0,10);}}
function fadeIn(elem){if(elem.id){fadeElementSetup(elem.id,0,100,10);}}
var fadeActive=new Array();var fadeQueue=new Array();var fadeTimer=new Array();var fadeClose=new Array();var fadeMode=new Array();function fadeElementSetup(theID,fdStart,fdEnd,fdSteps,fdClose,fdMode){if(fadeActive[theID]==true){fadeQueue[theID]=new Array(theID,fdStart,fdEnd,fdSteps);}else{fadeSteps=fdSteps;fadeCurrent=0;fadeAmount=(fdStart-fdEnd)/fadeSteps;fadeTimer[theID]=setInterval("fadeElement('"+theID+"', '"+fadeCurrent+"', '"+fadeAmount+"', '"+fadeSteps+"')",15);fadeActive[theID]=true;fadeMode[theID]=fdMode;if(fdClose==1){fadeClose[theID]=true;}else{fadeClose[theID]=false;}}}
function fadeElement(theID,fadeCurrent,fadeAmount,fadeSteps){if(fadeCurrent==fadeSteps){clearInterval(fadeTimer[theID]);fadeActive[theID]=false;fadeTimer[theID]=false;if(fadeClose[theID]==true){document.getElementById(theID).style.visibility="hidden";}
if(fadeQueue[theID]&&fadeQueue[theID]!=false){fadeElementSetup(fadeQueue[theID][0],fadeQueue[theID][1],fadeQueue[theID][2],fadeQueue[theID][3]);fadeQueue[theID]=false;}}else{fadeCurrent++;if(fadeMode[theID]=="shadow"){if(fadeAmount<0){document.getElementById(theID).style.webkitBoxShadow=shadowSettings+(Math.abs(fadeCurrent*fadeAmount))+')';}else{document.getElementById(theID).style.webkitBoxShadow=shadowSettings+(100-(fadeCurrent*fadeAmount))+')';}}else{if(fadeAmount<0){setOpacity(Math.abs(fadeCurrent*fadeAmount),theID);}else{setOpacity(100-(fadeCurrent*fadeAmount),theID);}}
clearInterval(fadeTimer[theID]);fadeTimer[theID]=setInterval("fadeElement('"+theID+"', '"+fadeCurrent+"', '"+fadeAmount+"', '"+fadeSteps+"')",15);}}
function setOpacity(opacity,theID){var object=document.getElementById(theID).style;if(navigator.userAgent.indexOf("Firefox")!=-1){if(opacity==100){opacity=99.9999;}}
object.filter="alpha(opacity="+opacity+")";object.opacity=(opacity/100);}
function linear(t,b,c,d)
{return c*t/d+b;}
function sineInOut(t,b,c,d)
{return-c/2*(Math.cos(Math.PI*t/d)-1)+b;}
function cubicIn(t,b,c,d){return c*(t/=d)*t*t+b;}
function cubicOut(t,b,c,d){return c*((t=t/d-1)*t*t+1)+b;}
function cubicInOut(t,b,c,d)
{if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b;}
function bounceOut(t,b,c,d)
{if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b;}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b;}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b;}else{return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b;}}
function getSize(){if(self.innerHeight){myWidth=window.innerWidth;myHeight=window.innerHeight;myScroll=window.pageYOffset;}else if(document.documentElement&&document.documentElement.clientHeight){myWidth=document.documentElement.clientWidth;myHeight=document.documentElement.clientHeight;myScroll=document.documentElement.scrollTop;}else if(document.body){myWidth=document.body.clientWidth;myHeight=document.body.clientHeight;myScroll=document.body.scrollTop;}
if(window.innerHeight&&window.scrollMaxY){myScrollWidth=document.body.scrollWidth;myScrollHeight=window.innerHeight+window.scrollMaxY;}else if(document.body.scrollHeight>document.body.offsetHeight){myScrollWidth=document.body.scrollWidth;myScrollHeight=document.body.scrollHeight;}else{myScrollWidth=document.body.offsetWidth;myScrollHeight=document.body.offsetHeight;}}
function getShift(evt){var shift=false;if(!evt&&window.event){shift=window.event.shiftKey;}else if(evt){shift=evt.shiftKey;if(shift)evt.stopPropagation();}
return shift;}
function findElementPos(elemFind)
{var elemX=0;var elemY=0;do{elemX+=elemFind.offsetLeft;elemY+=elemFind.offsetTop;}while(elemFind=elemFind.offsetParent)
return Array(elemX,elemY);};function insertZoomHTML(){var inBody=document.getElementsByTagName("body").item(0);var inSpinbox=document.createElement("div");inSpinbox.setAttribute('id','ZoomSpin');inSpinbox.style.position='absolute';inSpinbox.style.left='10px';inSpinbox.style.top='10px';inSpinbox.style.visibility='hidden';inSpinbox.style.zIndex='525';inBody.insertBefore(inSpinbox,inBody.firstChild);var inSpinImage=document.createElement("img");inSpinImage.setAttribute('id','SpinImage');inSpinImage.setAttribute('src',zoomImagesURI+'zoom-spin-1.png');inSpinbox.appendChild(inSpinImage);var inZoombox=document.createElement("div");inZoombox.setAttribute('id','ZoomBox');inZoombox.style.position='absolute';inZoombox.style.left='10px';inZoombox.style.top='10px';inZoombox.style.visibility='hidden';inZoombox.style.zIndex='499';inBody.insertBefore(inZoombox,inSpinbox.nextSibling);var inImage1=document.createElement("img");inImage1.onclick=function(event){zoomOut(this,event);return false;};inImage1.setAttribute('src',zoomImagesURI+'spacer.gif');inImage1.setAttribute('id','ZoomImage');inImage1.setAttribute('border','0');inImage1.setAttribute('style','-webkit-box-shadow: '+shadowSettings+'0.0)');inImage1.style.display='block';inImage1.style.width='10px';inImage1.style.height='10px';inImage1.style.cursor='pointer';inZoombox.appendChild(inImage1);var inClosebox=document.createElement("div");inClosebox.setAttribute('id','ZoomClose');inClosebox.style.position='absolute';if(browserIsIE){inClosebox.style.left='-1px';inClosebox.style.top='0px';}else{inClosebox.style.left='-15px';inClosebox.style.top='-15px';}
inClosebox.style.visibility='hidden';inZoombox.appendChild(inClosebox);var inImage2=document.createElement("img");inImage2.onclick=function(event){zoomOut(this,event);return false;};inImage2.setAttribute('src',zoomImagesURI+'closebox.png');inImage2.setAttribute('width','30');inImage2.setAttribute('height','30');inImage2.setAttribute('border','0');inImage2.style.cursor='pointer';inClosebox.appendChild(inImage2);if(!document.getElementById('ZoomImage').style.webkitBoxShadow&&!browserIsIE){var inFixedBox=document.createElement("div");inFixedBox.setAttribute('id','ShadowBox');inFixedBox.style.position='absolute';inFixedBox.style.left='50px';inFixedBox.style.top='50px';inFixedBox.style.width='100px';inFixedBox.style.height='100px';inFixedBox.style.visibility='hidden';inFixedBox.style.zIndex='498';inBody.insertBefore(inFixedBox,inZoombox.nextSibling);var inShadowTable=document.createElement("table");inShadowTable.setAttribute('border','0');inShadowTable.setAttribute('width','100%');inShadowTable.setAttribute('height','100%');inShadowTable.setAttribute('cellpadding','0');inShadowTable.setAttribute('cellspacing','0');inFixedBox.appendChild(inShadowTable);var inShadowTbody=document.createElement("tbody");inShadowTable.appendChild(inShadowTbody);var inRow1=document.createElement("tr");inRow1.style.height='25px';inShadowTbody.appendChild(inRow1);var inCol1=document.createElement("td");inCol1.style.width='27px';inRow1.appendChild(inCol1);var inShadowImg1=document.createElement("img");inShadowImg1.setAttribute('src',zoomImagesURI+'zoom-shadow1.png');inShadowImg1.setAttribute('width','27');inShadowImg1.setAttribute('height','25');inShadowImg1.style.display='block';inCol1.appendChild(inShadowImg1);var inCol2=document.createElement("td");inCol2.setAttribute('background',zoomImagesURI+'zoom-shadow2.png');inRow1.appendChild(inCol2);var inSpacer1=document.createElement("img");inSpacer1.setAttribute('src',zoomImagesURI+'spacer.gif');inSpacer1.setAttribute('height','1');inSpacer1.setAttribute('width','1');inSpacer1.style.display='block';inCol2.appendChild(inSpacer1);var inCol3=document.createElement("td");inCol3.style.width='27px';inRow1.appendChild(inCol3);var inShadowImg3=document.createElement("img");inShadowImg3.setAttribute('src',zoomImagesURI+'zoom-shadow3.png');inShadowImg3.setAttribute('width','27');inShadowImg3.setAttribute('height','25');inShadowImg3.style.display='block';inCol3.appendChild(inShadowImg3);inRow2=document.createElement("tr");inShadowTbody.appendChild(inRow2);var inCol4=document.createElement("td");inCol4.setAttribute('background',zoomImagesURI+'zoom-shadow4.png');inRow2.appendChild(inCol4);var inSpacer2=document.createElement("img");inSpacer2.setAttribute('src',zoomImagesURI+'spacer.gif');inSpacer2.setAttribute('height','1');inSpacer2.setAttribute('width','1');inSpacer2.style.display='block';inCol4.appendChild(inSpacer2);var inCol5=document.createElement("td");inCol5.setAttribute('bgcolor','#ffffff');inRow2.appendChild(inCol5);var inSpacer3=document.createElement("img");inSpacer3.setAttribute('src',zoomImagesURI+'spacer.gif');inSpacer3.setAttribute('height','1');inSpacer3.setAttribute('width','1');inSpacer3.style.display='block';inCol5.appendChild(inSpacer3);var inCol6=document.createElement("td");inCol6.setAttribute('background',zoomImagesURI+'zoom-shadow5.png');inRow2.appendChild(inCol6);var inSpacer4=document.createElement("img");inSpacer4.setAttribute('src',zoomImagesURI+'spacer.gif');inSpacer4.setAttribute('height','1');inSpacer4.setAttribute('width','1');inSpacer4.style.display='block';inCol6.appendChild(inSpacer4);var inRow3=document.createElement("tr");inRow3.style.height='26px';inShadowTbody.appendChild(inRow3);var inCol7=document.createElement("td");inCol7.style.width='27px';inRow3.appendChild(inCol7);var inShadowImg7=document.createElement("img");inShadowImg7.setAttribute('src',zoomImagesURI+'zoom-shadow6.png');inShadowImg7.setAttribute('width','27');inShadowImg7.setAttribute('height','26');inShadowImg7.style.display='block';inCol7.appendChild(inShadowImg7);var inCol8=document.createElement("td");inCol8.setAttribute('background',zoomImagesURI+'zoom-shadow7.png');inRow3.appendChild(inCol8);var inSpacer5=document.createElement("img");inSpacer5.setAttribute('src',zoomImagesURI+'spacer.gif');inSpacer5.setAttribute('height','1');inSpacer5.setAttribute('width','1');inSpacer5.style.display='block';inCol8.appendChild(inSpacer5);var inCol9=document.createElement("td");inCol9.style.width='27px';inRow3.appendChild(inCol9);var inShadowImg9=document.createElement("img");inShadowImg9.setAttribute('src',zoomImagesURI+'zoom-shadow8.png');inShadowImg9.setAttribute('width','27');inShadowImg9.setAttribute('height','26');inShadowImg9.style.display='block';inCol9.appendChild(inShadowImg9);}
if(includeCaption){var inCapDiv=document.createElement("div");inCapDiv.setAttribute('id','ZoomCapDiv');inCapDiv.style.position='absolute';inCapDiv.style.visibility='hidden';inCapDiv.style.marginLeft='auto';inCapDiv.style.marginRight='auto';inCapDiv.style.zIndex='501';inBody.insertBefore(inCapDiv,inZoombox.nextSibling);var inCapTable=document.createElement("table");inCapTable.setAttribute('border','0');inCapTable.setAttribute('cellPadding','0');inCapTable.setAttribute('cellSpacing','0');inCapDiv.appendChild(inCapTable);var inTbody=document.createElement("tbody");inCapTable.appendChild(inTbody);var inCapRow1=document.createElement("tr");inTbody.appendChild(inCapRow1);var inCapCol1=document.createElement("td");inCapCol1.setAttribute('align','right');inCapRow1.appendChild(inCapCol1);var inCapImg1=document.createElement("img");inCapImg1.setAttribute('src',zoomImagesURI+'zoom-caption-l.png');inCapImg1.setAttribute('width','13');inCapImg1.setAttribute('height','26');inCapImg1.style.display='block';inCapCol1.appendChild(inCapImg1);var inCapCol2=document.createElement("td");inCapCol2.setAttribute('background',zoomImagesURI+'zoom-caption-fill.png');inCapCol2.setAttribute('id','ZoomCaption');inCapCol2.setAttribute('valign','middle');inCapCol2.style.fontSize='14px';inCapCol2.style.fontFamily='Helvetica';inCapCol2.style.fontWeight='bold';inCapCol2.style.color='#ffffff';inCapCol2.style.textShadow='0px 2px 4px #000000';inCapCol2.style.whiteSpace='nowrap';inCapRow1.appendChild(inCapCol2);var inCapCol3=document.createElement("td");inCapRow1.appendChild(inCapCol3);var inCapImg2=document.createElement("img");inCapImg2.setAttribute('src',zoomImagesURI+'zoom-caption-r.png');inCapImg2.setAttribute('width','13');inCapImg2.setAttribute('height','26');inCapImg2.style.display='block';inCapCol3.appendChild(inCapImg2);}};var Prototype={Version:'1.6.0.3',Browser:{IE:!!(window.attachEvent&&navigator.userAgent.indexOf('Opera')===-1),Opera:navigator.userAgent.indexOf('Opera')>-1,WebKit:navigator.userAgent.indexOf('AppleWebKit/')>-1,Gecko:navigator.userAgent.indexOf('Gecko')>-1&&navigator.userAgent.indexOf('KHTML')===-1,MobileSafari:!!navigator.userAgent.match(/Apple.*Mobile.*Safari/)},BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:!!window.HTMLElement,SpecificElementExtensions:document.createElement('div')['__proto__']&&document.createElement('div')['__proto__']!==document.createElement('form')['__proto__']},ScriptFragment:'<script[^>]*>([\\S\\s]*?)<\/script>',JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(x){return x}};if(Prototype.Browser.MobileSafari)
Prototype.BrowserFeatures.SpecificElementExtensions=false;var Class={create:function(){var parent=null,properties=$A(arguments);if(Object.isFunction(properties[0]))
parent=properties.shift();function klass(){this.initialize.apply(this,arguments);}
Object.extend(klass,Class.Methods);klass.superclass=parent;klass.subclasses=[];if(parent){var subclass=function(){};subclass.prototype=parent.prototype;klass.prototype=new subclass;parent.subclasses.push(klass);}
for(var i=0;i<properties.length;i++)
klass.addMethods(properties[i]);if(!klass.prototype.initialize)
klass.prototype.initialize=Prototype.emptyFunction;klass.prototype.constructor=klass;return klass;}};Class.Methods={addMethods:function(source){var ancestor=this.superclass&&this.superclass.prototype;var properties=Object.keys(source);if(!Object.keys({toString:true}).length)
properties.push("toString","valueOf");for(var i=0,length=properties.length;i<length;i++){var property=properties[i],value=source[property];if(ancestor&&Object.isFunction(value)&&value.argumentNames().first()=="$super"){var method=value;value=(function(m){return function(){return ancestor[m].apply(this,arguments)};})(property).wrap(method);value.valueOf=method.valueOf.bind(method);value.toString=method.toString.bind(method);}
this.prototype[property]=value;}
return this;}};var Abstract={};Object.extend=function(destination,source){for(var property in source)
destination[property]=source[property];return destination;};Object.extend(Object,{inspect:function(object){try{if(Object.isUndefined(object))return'undefined';if(object===null)return'null';return object.inspect?object.inspect():String(object);}catch(e){if(e instanceof RangeError)return'...';throw e;}},toJSON:function(object){var type=typeof object;switch(type){case'undefined':case'function':case'unknown':return;case'boolean':return object.toString();}
if(object===null)return'null';if(object.toJSON)return object.toJSON();if(Object.isElement(object))return;var results=[];for(var property in object){var value=Object.toJSON(object[property]);if(!Object.isUndefined(value))
results.push(property.toJSON()+': '+value);}
return'{'+results.join(', ')+'}';},toQueryString:function(object){return $H(object).toQueryString();},toHTML:function(object){return object&&object.toHTML?object.toHTML():String.interpret(object);},keys:function(object){var keys=[];for(var property in object)
keys.push(property);return keys;},values:function(object){var values=[];for(var property in object)
values.push(object[property]);return values;},clone:function(object){return Object.extend({},object);},isElement:function(object){return!!(object&&object.nodeType==1);},isArray:function(object){return object!=null&&typeof object=="object"&&'splice'in object&&'join'in object;},isHash:function(object){return object instanceof Hash;},isFunction:function(object){return typeof object=="function";},isString:function(object){return typeof object=="string";},isNumber:function(object){return typeof object=="number";},isUndefined:function(object){return typeof object=="undefined";}});Object.extend(Function.prototype,{argumentNames:function(){var names=this.toString().match(/^[\s\(]*function[^(]*\(([^\)]*)\)/)[1].replace(/\s+/g,'').split(',');return names.length==1&&!names[0]?[]:names;},bind:function(){if(arguments.length<2&&Object.isUndefined(arguments[0]))return this;var __method=this,args=$A(arguments),object=args.shift();return function(){return __method.apply(object,args.concat($A(arguments)));}},bindAsEventListener:function(){var __method=this,args=$A(arguments),object=args.shift();return function(event){return __method.apply(object,[event||window.event].concat(args));}},curry:function(){if(!arguments.length)return this;var __method=this,args=$A(arguments);return function(){return __method.apply(this,args.concat($A(arguments)));}},delay:function(){var __method=this,args=$A(arguments),timeout=args.shift()*1000;return window.setTimeout(function(){return __method.apply(__method,args);},timeout);},defer:function(){var args=[0.01].concat($A(arguments));return this.delay.apply(this,args);},wrap:function(wrapper){var __method=this;return function(){return wrapper.apply(this,[__method.bind(this)].concat($A(arguments)));}},methodize:function(){if(this._methodized)return this._methodized;var __method=this;return this._methodized=function(){return __method.apply(null,[this].concat($A(arguments)));};}});Date.prototype.toJSON=function(){return'"'+this.getUTCFullYear()+'-'+
(this.getUTCMonth()+1).toPaddedString(2)+'-'+
this.getUTCDate().toPaddedString(2)+'T'+
this.getUTCHours().toPaddedString(2)+':'+
this.getUTCMinutes().toPaddedString(2)+':'+
this.getUTCSeconds().toPaddedString(2)+'Z"';};var Try={these:function(){var returnValue;for(var i=0,length=arguments.length;i<length;i++){var lambda=arguments[i];try{returnValue=lambda();break;}catch(e){}}
return returnValue;}};RegExp.prototype.match=RegExp.prototype.test;RegExp.escape=function(str){return String(str).replace(/([.*+?^=!:${}()|[\]\/\\])/g,'\\$1');};var PeriodicalExecuter=Class.create({initialize:function(callback,frequency){this.callback=callback;this.frequency=frequency;this.currentlyExecuting=false;this.registerCallback();},registerCallback:function(){this.timer=setInterval(this.onTimerEvent.bind(this),this.frequency*1000);},execute:function(){this.callback(this);},stop:function(){if(!this.timer)return;clearInterval(this.timer);this.timer=null;},onTimerEvent:function(){if(!this.currentlyExecuting){try{this.currentlyExecuting=true;this.execute();}finally{this.currentlyExecuting=false;}}}});Object.extend(String,{interpret:function(value){return value==null?'':String(value);},specialChar:{'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','\\':'\\\\'}});Object.extend(String.prototype,{gsub:function(pattern,replacement){var result='',source=this,match;replacement=arguments.callee.prepareReplacement(replacement);while(source.length>0){if(match=source.match(pattern)){result+=source.slice(0,match.index);result+=String.interpret(replacement(match));source=source.slice(match.index+match[0].length);}else{result+=source,source='';}}
return result;},sub:function(pattern,replacement,count){replacement=this.gsub.prepareReplacement(replacement);count=Object.isUndefined(count)?1:count;return this.gsub(pattern,function(match){if(--count<0)return match[0];return replacement(match);});},scan:function(pattern,iterator){this.gsub(pattern,iterator);return String(this);},truncate:function(length,truncation){length=length||30;truncation=Object.isUndefined(truncation)?'...':truncation;return this.length>length?this.slice(0,length-truncation.length)+truncation:String(this);},strip:function(){return this.replace(/^\s+/,'').replace(/\s+$/,'');},stripTags:function(){return this.replace(/<\/?[^>]+>/gi,'');},stripScripts:function(){return this.replace(new RegExp(Prototype.ScriptFragment,'img'),'');},extractScripts:function(){var matchAll=new RegExp(Prototype.ScriptFragment,'img');var matchOne=new RegExp(Prototype.ScriptFragment,'im');return(this.match(matchAll)||[]).map(function(scriptTag){return(scriptTag.match(matchOne)||['',''])[1];});},evalScripts:function(){return this.extractScripts().map(function(script){return eval(script)});},escapeHTML:function(){var self=arguments.callee;self.text.data=this;return self.div.innerHTML;},unescapeHTML:function(){var div=new Element('div');div.innerHTML=this.stripTags();return div.childNodes[0]?(div.childNodes.length>1?$A(div.childNodes).inject('',function(memo,node){return memo+node.nodeValue}):div.childNodes[0].nodeValue):'';},toQueryParams:function(separator){var match=this.strip().match(/([^?#]*)(#.*)?$/);if(!match)return{};return match[1].split(separator||'&').inject({},function(hash,pair){if((pair=pair.split('='))[0]){var key=decodeURIComponent(pair.shift());var value=pair.length>1?pair.join('='):pair[0];if(value!=undefined)value=decodeURIComponent(value);if(key in hash){if(!Object.isArray(hash[key]))hash[key]=[hash[key]];hash[key].push(value);}
else hash[key]=value;}
return hash;});},toArray:function(){return this.split('');},succ:function(){return this.slice(0,this.length-1)+
String.fromCharCode(this.charCodeAt(this.length-1)+1);},times:function(count){return count<1?'':new Array(count+1).join(this);},camelize:function(){var parts=this.split('-'),len=parts.length;if(len==1)return parts[0];var camelized=this.charAt(0)=='-'?parts[0].charAt(0).toUpperCase()+parts[0].substring(1):parts[0];for(var i=1;i<len;i++)
camelized+=parts[i].charAt(0).toUpperCase()+parts[i].substring(1);return camelized;},capitalize:function(){return this.charAt(0).toUpperCase()+this.substring(1).toLowerCase();},underscore:function(){return this.gsub(/::/,'/').gsub(/([A-Z]+)([A-Z][a-z])/,'#{1}_#{2}').gsub(/([a-z\d])([A-Z])/,'#{1}_#{2}').gsub(/-/,'_').toLowerCase();},dasherize:function(){return this.gsub(/_/,'-');},inspect:function(useDoubleQuotes){var escapedString=this.gsub(/[\x00-\x1f\\]/,function(match){var character=String.specialChar[match[0]];return character?character:'\\u00'+match[0].charCodeAt().toPaddedString(2,16);});if(useDoubleQuotes)return'"'+escapedString.replace(/"/g,'\\"')+'"';return"'"+escapedString.replace(/'/g,'\\\'')+"'";},toJSON:function(){return this.inspect(true);},unfilterJSON:function(filter){return this.sub(filter||Prototype.JSONFilter,'#{1}');},isJSON:function(){var str=this;if(str.blank())return false;str=this.replace(/\\./g,'@').replace(/"[^"\\\n\r]*"/g,'');return(/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(str);},evalJSON:function(sanitize){var json=this.unfilterJSON();try{if(!sanitize||json.isJSON())return eval('('+json+')');}catch(e){}
throw new SyntaxError('Badly formed JSON string: '+this.inspect());},include:function(pattern){return this.indexOf(pattern)>-1;},startsWith:function(pattern){return this.indexOf(pattern)===0;},endsWith:function(pattern){var d=this.length-pattern.length;return d>=0&&this.lastIndexOf(pattern)===d;},empty:function(){return this=='';},blank:function(){return/^\s*$/.test(this);},interpolate:function(object,pattern){return new Template(this,pattern).evaluate(object);}});if(Prototype.Browser.WebKit||Prototype.Browser.IE)Object.extend(String.prototype,{escapeHTML:function(){return this.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;');},unescapeHTML:function(){return this.stripTags().replace(/&amp;/g,'&').replace(/&lt;/g,'<').replace(/&gt;/g,'>');}});String.prototype.gsub.prepareReplacement=function(replacement){if(Object.isFunction(replacement))return replacement;var template=new Template(replacement);return function(match){return template.evaluate(match)};};String.prototype.parseQuery=String.prototype.toQueryParams;Object.extend(String.prototype.escapeHTML,{div:document.createElement('div'),text:document.createTextNode('')});String.prototype.escapeHTML.div.appendChild(String.prototype.escapeHTML.text);var Template=Class.create({initialize:function(template,pattern){this.template=template.toString();this.pattern=pattern||Template.Pattern;},evaluate:function(object){if(Object.isFunction(object.toTemplateReplacements))
object=object.toTemplateReplacements();return this.template.gsub(this.pattern,function(match){if(object==null)return'';var before=match[1]||'';if(before=='\\')return match[2];var ctx=object,expr=match[3];var pattern=/^([^.[]+|\[((?:.*?[^\\])?)\])(\.|\[|$)/;match=pattern.exec(expr);if(match==null)return before;while(match!=null){var comp=match[1].startsWith('[')?match[2].gsub('\\\\]',']'):match[1];ctx=ctx[comp];if(null==ctx||''==match[3])break;expr=expr.substring('['==match[3]?match[1].length:match[0].length);match=pattern.exec(expr);}
return before+String.interpret(ctx);});}});Template.Pattern=/(^|.|\r|\n)(#\{(.*?)\})/;var $break={};var Enumerable={each:function(iterator,context){var index=0;try{this._each(function(value){iterator.call(context,value,index++);});}catch(e){if(e!=$break)throw e;}
return this;},eachSlice:function(number,iterator,context){var index=-number,slices=[],array=this.toArray();if(number<1)return array;while((index+=number)<array.length)
slices.push(array.slice(index,index+number));return slices.collect(iterator,context);},all:function(iterator,context){iterator=iterator||Prototype.K;var result=true;this.each(function(value,index){result=result&&!!iterator.call(context,value,index);if(!result)throw $break;});return result;},any:function(iterator,context){iterator=iterator||Prototype.K;var result=false;this.each(function(value,index){if(result=!!iterator.call(context,value,index))
throw $break;});return result;},collect:function(iterator,context){iterator=iterator||Prototype.K;var results=[];this.each(function(value,index){results.push(iterator.call(context,value,index));});return results;},detect:function(iterator,context){var result;this.each(function(value,index){if(iterator.call(context,value,index)){result=value;throw $break;}});return result;},findAll:function(iterator,context){var results=[];this.each(function(value,index){if(iterator.call(context,value,index))
results.push(value);});return results;},grep:function(filter,iterator,context){iterator=iterator||Prototype.K;var results=[];if(Object.isString(filter))
filter=new RegExp(filter);this.each(function(value,index){if(filter.match(value))
results.push(iterator.call(context,value,index));});return results;},include:function(object){if(Object.isFunction(this.indexOf))
if(this.indexOf(object)!=-1)return true;var found=false;this.each(function(value){if(value==object){found=true;throw $break;}});return found;},inGroupsOf:function(number,fillWith){fillWith=Object.isUndefined(fillWith)?null:fillWith;return this.eachSlice(number,function(slice){while(slice.length<number)slice.push(fillWith);return slice;});},inject:function(memo,iterator,context){this.each(function(value,index){memo=iterator.call(context,memo,value,index);});return memo;},invoke:function(method){var args=$A(arguments).slice(1);return this.map(function(value){return value[method].apply(value,args);});},max:function(iterator,context){iterator=iterator||Prototype.K;var result;this.each(function(value,index){value=iterator.call(context,value,index);if(result==null||value>=result)
result=value;});return result;},min:function(iterator,context){iterator=iterator||Prototype.K;var result;this.each(function(value,index){value=iterator.call(context,value,index);if(result==null||value<result)
result=value;});return result;},partition:function(iterator,context){iterator=iterator||Prototype.K;var trues=[],falses=[];this.each(function(value,index){(iterator.call(context,value,index)?trues:falses).push(value);});return[trues,falses];},pluck:function(property){var results=[];this.each(function(value){results.push(value[property]);});return results;},reject:function(iterator,context){var results=[];this.each(function(value,index){if(!iterator.call(context,value,index))
results.push(value);});return results;},sortBy:function(iterator,context){return this.map(function(value,index){return{value:value,criteria:iterator.call(context,value,index)};}).sort(function(left,right){var a=left.criteria,b=right.criteria;return a<b?-1:a>b?1:0;}).pluck('value');},toArray:function(){return this.map();},zip:function(){var iterator=Prototype.K,args=$A(arguments);if(Object.isFunction(args.last()))
iterator=args.pop();var collections=[this].concat(args).map($A);return this.map(function(value,index){return iterator(collections.pluck(index));});},size:function(){return this.toArray().length;},inspect:function(){return'#<Enumerable:'+this.toArray().inspect()+'>';}};Object.extend(Enumerable,{map:Enumerable.collect,find:Enumerable.detect,select:Enumerable.findAll,filter:Enumerable.findAll,member:Enumerable.include,entries:Enumerable.toArray,every:Enumerable.all,some:Enumerable.any});function $A(iterable){if(!iterable)return[];if(iterable.toArray)return iterable.toArray();var length=iterable.length||0,results=new Array(length);while(length--)results[length]=iterable[length];return results;}
if(Prototype.Browser.WebKit){$A=function(iterable){if(!iterable)return[];if(!(typeof iterable==='function'&&typeof iterable.length==='number'&&typeof iterable.item==='function')&&iterable.toArray)
return iterable.toArray();var length=iterable.length||0,results=new Array(length);while(length--)results[length]=iterable[length];return results;};}
Array.from=$A;Object.extend(Array.prototype,Enumerable);if(!Array.prototype._reverse)Array.prototype._reverse=Array.prototype.reverse;Object.extend(Array.prototype,{_each:function(iterator){for(var i=0,length=this.length;i<length;i++)
iterator(this[i]);},clear:function(){this.length=0;return this;},first:function(){return this[0];},last:function(){return this[this.length-1];},compact:function(){return this.select(function(value){return value!=null;});},flatten:function(){return this.inject([],function(array,value){return array.concat(Object.isArray(value)?value.flatten():[value]);});},without:function(){var values=$A(arguments);return this.select(function(value){return!values.include(value);});},reverse:function(inline){return(inline!==false?this:this.toArray())._reverse();},reduce:function(){return this.length>1?this:this[0];},uniq:function(sorted){return this.inject([],function(array,value,index){if(0==index||(sorted?array.last()!=value:!array.include(value)))
array.push(value);return array;});},intersect:function(array){return this.uniq().findAll(function(item){return array.detect(function(value){return item===value});});},clone:function(){return[].concat(this);},size:function(){return this.length;},inspect:function(){return'['+this.map(Object.inspect).join(', ')+']';},toJSON:function(){var results=[];this.each(function(object){var value=Object.toJSON(object);if(!Object.isUndefined(value))results.push(value);});return'['+results.join(', ')+']';}});if(Object.isFunction(Array.prototype.forEach))
Array.prototype._each=Array.prototype.forEach;if(!Array.prototype.indexOf)Array.prototype.indexOf=function(item,i){i||(i=0);var length=this.length;if(i<0)i=length+i;for(;i<length;i++)
if(this[i]===item)return i;return-1;};if(!Array.prototype.lastIndexOf)Array.prototype.lastIndexOf=function(item,i){i=isNaN(i)?this.length:(i<0?this.length+i:i)+1;var n=this.slice(0,i).reverse().indexOf(item);return(n<0)?n:i-n-1;};Array.prototype.toArray=Array.prototype.clone;function $w(string){if(!Object.isString(string))return[];string=string.strip();return string?string.split(/\s+/):[];}
if(Prototype.Browser.Opera){Array.prototype.concat=function(){var array=[];for(var i=0,length=this.length;i<length;i++)array.push(this[i]);for(var i=0,length=arguments.length;i<length;i++){if(Object.isArray(arguments[i])){for(var j=0,arrayLength=arguments[i].length;j<arrayLength;j++)
array.push(arguments[i][j]);}else{array.push(arguments[i]);}}
return array;};}
Object.extend(Number.prototype,{toColorPart:function(){return this.toPaddedString(2,16);},succ:function(){return this+1;},times:function(iterator,context){$R(0,this,true).each(iterator,context);return this;},toPaddedString:function(length,radix){var string=this.toString(radix||10);return'0'.times(length-string.length)+string;},toJSON:function(){return isFinite(this)?this.toString():'null';}});$w('abs round ceil floor').each(function(method){Number.prototype[method]=Math[method].methodize();});function $H(object){return new Hash(object);};var Hash=Class.create(Enumerable,(function(){function toQueryPair(key,value){if(Object.isUndefined(value))return key;return key+'='+encodeURIComponent(String.interpret(value));}
return{initialize:function(object){this._object=Object.isHash(object)?object.toObject():Object.clone(object);},_each:function(iterator){for(var key in this._object){var value=this._object[key],pair=[key,value];pair.key=key;pair.value=value;iterator(pair);}},set:function(key,value){return this._object[key]=value;},get:function(key){if(this._object[key]!==Object.prototype[key])
return this._object[key];},unset:function(key){var value=this._object[key];delete this._object[key];return value;},toObject:function(){return Object.clone(this._object);},keys:function(){return this.pluck('key');},values:function(){return this.pluck('value');},index:function(value){var match=this.detect(function(pair){return pair.value===value;});return match&&match.key;},merge:function(object){return this.clone().update(object);},update:function(object){return new Hash(object).inject(this,function(result,pair){result.set(pair.key,pair.value);return result;});},toQueryString:function(){return this.inject([],function(results,pair){var key=encodeURIComponent(pair.key),values=pair.value;if(values&&typeof values=='object'){if(Object.isArray(values))
return results.concat(values.map(toQueryPair.curry(key)));}else results.push(toQueryPair(key,values));return results;}).join('&');},inspect:function(){return'#<Hash:{'+this.map(function(pair){return pair.map(Object.inspect).join(': ');}).join(', ')+'}>';},toJSON:function(){return Object.toJSON(this.toObject());},clone:function(){return new Hash(this);}}})());Hash.prototype.toTemplateReplacements=Hash.prototype.toObject;Hash.from=$H;var ObjectRange=Class.create(Enumerable,{initialize:function(start,end,exclusive){this.start=start;this.end=end;this.exclusive=exclusive;},_each:function(iterator){var value=this.start;while(this.include(value)){iterator(value);value=value.succ();}},include:function(value){if(value<this.start)
return false;if(this.exclusive)
return value<this.end;return value<=this.end;}});var $R=function(start,end,exclusive){return new ObjectRange(start,end,exclusive);};var Ajax={getTransport:function(){return Try.these(function(){return new XMLHttpRequest()},function(){return new ActiveXObject('Msxml2.XMLHTTP')},function(){return new ActiveXObject('Microsoft.XMLHTTP')})||false;},activeRequestCount:0};Ajax.Responders={responders:[],_each:function(iterator){this.responders._each(iterator);},register:function(responder){if(!this.include(responder))
this.responders.push(responder);},unregister:function(responder){this.responders=this.responders.without(responder);},dispatch:function(callback,request,transport,json){this.each(function(responder){if(Object.isFunction(responder[callback])){try{responder[callback].apply(responder,[request,transport,json]);}catch(e){}}});}};Object.extend(Ajax.Responders,Enumerable);Ajax.Responders.register({onCreate:function(){Ajax.activeRequestCount++},onComplete:function(){Ajax.activeRequestCount--}});Ajax.Base=Class.create({initialize:function(options){this.options={method:'post',asynchronous:true,contentType:'application/x-www-form-urlencoded',encoding:'UTF-8',parameters:'',evalJSON:true,evalJS:true};Object.extend(this.options,options||{});this.options.method=this.options.method.toLowerCase();if(Object.isString(this.options.parameters))
this.options.parameters=this.options.parameters.toQueryParams();else if(Object.isHash(this.options.parameters))
this.options.parameters=this.options.parameters.toObject();}});Ajax.Request=Class.create(Ajax.Base,{_complete:false,initialize:function($super,url,options){$super(options);this.transport=Ajax.getTransport();this.request(url);},request:function(url){this.url=url;this.method=this.options.method;var params=Object.clone(this.options.parameters);if(!['get','post'].include(this.method)){params['_method']=this.method;this.method='post';}
this.parameters=params;if(params=Object.toQueryString(params)){if(this.method=='get')
this.url+=(this.url.include('?')?'&':'?')+params;else if(/Konqueror|Safari|KHTML/.test(navigator.userAgent))
params+='&_=';}
try{var response=new Ajax.Response(this);if(this.options.onCreate)this.options.onCreate(response);Ajax.Responders.dispatch('onCreate',this,response);this.transport.open(this.method.toUpperCase(),this.url,this.options.asynchronous);if(this.options.asynchronous)this.respondToReadyState.bind(this).defer(1);this.transport.onreadystatechange=this.onStateChange.bind(this);this.setRequestHeaders();this.body=this.method=='post'?(this.options.postBody||params):null;this.transport.send(this.body);if(!this.options.asynchronous&&this.transport.overrideMimeType)
this.onStateChange();}
catch(e){this.dispatchException(e);}},onStateChange:function(){var readyState=this.transport.readyState;if(readyState>1&&!((readyState==4)&&this._complete))
this.respondToReadyState(this.transport.readyState);},setRequestHeaders:function(){var headers={'X-Requested-With':'XMLHttpRequest','X-Prototype-Version':Prototype.Version,'Accept':'text/javascript, text/html, application/xml, text/xml, */*'};if(this.method=='post'){headers['Content-type']=this.options.contentType+
(this.options.encoding?'; charset='+this.options.encoding:'');if(this.transport.overrideMimeType&&(navigator.userAgent.match(/Gecko\/(\d{4})/)||[0,2005])[1]<2005)
headers['Connection']='close';}
if(typeof this.options.requestHeaders=='object'){var extras=this.options.requestHeaders;if(Object.isFunction(extras.push))
for(var i=0,length=extras.length;i<length;i+=2)
headers[extras[i]]=extras[i+1];else
$H(extras).each(function(pair){headers[pair.key]=pair.value});}
for(var name in headers)
this.transport.setRequestHeader(name,headers[name]);},success:function(){var status=this.getStatus();return!status||(status>=200&&status<300);},getStatus:function(){try{return this.transport.status||0;}catch(e){return 0}},respondToReadyState:function(readyState){var state=Ajax.Request.Events[readyState],response=new Ajax.Response(this);if(state=='Complete'){try{this._complete=true;(this.options['on'+response.status]||this.options['on'+(this.success()?'Success':'Failure')]||Prototype.emptyFunction)(response,response.headerJSON);}catch(e){this.dispatchException(e);}
var contentType=response.getHeader('Content-type');if(this.options.evalJS=='force'||(this.options.evalJS&&this.isSameOrigin()&&contentType&&contentType.match(/^\s*(text|application)\/(x-)?(java|ecma)script(;.*)?\s*$/i)))
this.evalResponse();}
try{(this.options['on'+state]||Prototype.emptyFunction)(response,response.headerJSON);Ajax.Responders.dispatch('on'+state,this,response,response.headerJSON);}catch(e){this.dispatchException(e);}
if(state=='Complete'){this.transport.onreadystatechange=Prototype.emptyFunction;}},isSameOrigin:function(){var m=this.url.match(/^\s*https?:\/\/[^\/]*/);return!m||(m[0]=='#{protocol}//#{domain}#{port}'.interpolate({protocol:location.protocol,domain:document.domain,port:location.port?':'+location.port:''}));},getHeader:function(name){try{return this.transport.getResponseHeader(name)||null;}catch(e){return null}},evalResponse:function(){try{return eval((this.transport.responseText||'').unfilterJSON());}catch(e){this.dispatchException(e);}},dispatchException:function(exception){(this.options.onException||Prototype.emptyFunction)(this,exception);Ajax.Responders.dispatch('onException',this,exception);}});Ajax.Request.Events=['Uninitialized','Loading','Loaded','Interactive','Complete'];Ajax.Response=Class.create({initialize:function(request){this.request=request;var transport=this.transport=request.transport,readyState=this.readyState=transport.readyState;if((readyState>2&&!Prototype.Browser.IE)||readyState==4){this.status=this.getStatus();this.statusText=this.getStatusText();this.responseText=String.interpret(transport.responseText);this.headerJSON=this._getHeaderJSON();}
if(readyState==4){var xml=transport.responseXML;this.responseXML=Object.isUndefined(xml)?null:xml;this.responseJSON=this._getResponseJSON();}},status:0,statusText:'',getStatus:Ajax.Request.prototype.getStatus,getStatusText:function(){try{return this.transport.statusText||'';}catch(e){return''}},getHeader:Ajax.Request.prototype.getHeader,getAllHeaders:function(){try{return this.getAllResponseHeaders();}catch(e){return null}},getResponseHeader:function(name){return this.transport.getResponseHeader(name);},getAllResponseHeaders:function(){return this.transport.getAllResponseHeaders();},_getHeaderJSON:function(){var json=this.getHeader('X-JSON');if(!json)return null;json=decodeURIComponent(escape(json));try{return json.evalJSON(this.request.options.sanitizeJSON||!this.request.isSameOrigin());}catch(e){this.request.dispatchException(e);}},_getResponseJSON:function(){var options=this.request.options;if(!options.evalJSON||(options.evalJSON!='force'&&!(this.getHeader('Content-type')||'').include('application/json'))||this.responseText.blank())
return null;try{return this.responseText.evalJSON(options.sanitizeJSON||!this.request.isSameOrigin());}catch(e){this.request.dispatchException(e);}}});Ajax.Updater=Class.create(Ajax.Request,{initialize:function($super,container,url,options){this.container={success:(container.success||container),failure:(container.failure||(container.success?null:container))};options=Object.clone(options);var onComplete=options.onComplete;options.onComplete=(function(response,json){this.updateContent(response.responseText);if(Object.isFunction(onComplete))onComplete(response,json);}).bind(this);$super(url,options);},updateContent:function(responseText){var receiver=this.container[this.success()?'success':'failure'],options=this.options;if(!options.evalScripts)responseText=responseText.stripScripts();if(receiver=$(receiver)){if(options.insertion){if(Object.isString(options.insertion)){var insertion={};insertion[options.insertion]=responseText;receiver.insert(insertion);}
else options.insertion(receiver,responseText);}
else receiver.update(responseText);}}});Ajax.PeriodicalUpdater=Class.create(Ajax.Base,{initialize:function($super,container,url,options){$super(options);this.onComplete=this.options.onComplete;this.frequency=(this.options.frequency||2);this.decay=(this.options.decay||1);this.updater={};this.container=container;this.url=url;this.start();},start:function(){this.options.onComplete=this.updateComplete.bind(this);this.onTimerEvent();},stop:function(){this.updater.options.onComplete=undefined;clearTimeout(this.timer);(this.onComplete||Prototype.emptyFunction).apply(this,arguments);},updateComplete:function(response){if(this.options.decay){this.decay=(response.responseText==this.lastText?this.decay*this.options.decay:1);this.lastText=response.responseText;}
this.timer=this.onTimerEvent.bind(this).delay(this.decay*this.frequency);},onTimerEvent:function(){this.updater=new Ajax.Updater(this.container,this.url,this.options);}});function $(element){if(arguments.length>1){for(var i=0,elements=[],length=arguments.length;i<length;i++)
elements.push($(arguments[i]));return elements;}
if(Object.isString(element))
element=document.getElementById(element);return Element.extend(element);}
if(Prototype.BrowserFeatures.XPath){document._getElementsByXPath=function(expression,parentElement){var results=[];var query=document.evaluate(expression,$(parentElement)||document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);for(var i=0,length=query.snapshotLength;i<length;i++)
results.push(Element.extend(query.snapshotItem(i)));return results;};}
if(!window.Node)var Node={};if(!Node.ELEMENT_NODE){Object.extend(Node,{ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12});}
(function(){var element=this.Element;this.Element=function(tagName,attributes){attributes=attributes||{};tagName=tagName.toLowerCase();var cache=Element.cache;if(Prototype.Browser.IE&&attributes.name){tagName='<'+tagName+' name="'+attributes.name+'">';delete attributes.name;return Element.writeAttribute(document.createElement(tagName),attributes);}
if(!cache[tagName])cache[tagName]=Element.extend(document.createElement(tagName));return Element.writeAttribute(cache[tagName].cloneNode(false),attributes);};Object.extend(this.Element,element||{});if(element)this.Element.prototype=element.prototype;}).call(window);Element.cache={};Element.Methods={visible:function(element){return $(element).style.display!='none';},toggle:function(element){element=$(element);Element[Element.visible(element)?'hide':'show'](element);return element;},hide:function(element){element=$(element);element.style.display='none';return element;},show:function(element){element=$(element);element.style.display='';return element;},remove:function(element){element=$(element);element.parentNode.removeChild(element);return element;},update:function(element,content){element=$(element);if(content&&content.toElement)content=content.toElement();if(Object.isElement(content))return element.update().insert(content);content=Object.toHTML(content);element.innerHTML=content.stripScripts();content.evalScripts.bind(content).defer();return element;},replace:function(element,content){element=$(element);if(content&&content.toElement)content=content.toElement();else if(!Object.isElement(content)){content=Object.toHTML(content);var range=element.ownerDocument.createRange();range.selectNode(element);content.evalScripts.bind(content).defer();content=range.createContextualFragment(content.stripScripts());}
element.parentNode.replaceChild(content,element);return element;},insert:function(element,insertions){element=$(element);if(Object.isString(insertions)||Object.isNumber(insertions)||Object.isElement(insertions)||(insertions&&(insertions.toElement||insertions.toHTML)))
insertions={bottom:insertions};var content,insert,tagName,childNodes;for(var position in insertions){content=insertions[position];position=position.toLowerCase();insert=Element._insertionTranslations[position];if(content&&content.toElement)content=content.toElement();if(Object.isElement(content)){insert(element,content);continue;}
content=Object.toHTML(content);tagName=((position=='before'||position=='after')?element.parentNode:element).tagName.toUpperCase();childNodes=Element._getContentFromAnonymousElement(tagName,content.stripScripts());if(position=='top'||position=='after')childNodes.reverse();childNodes.each(insert.curry(element));content.evalScripts.bind(content).defer();}
return element;},wrap:function(element,wrapper,attributes){element=$(element);if(Object.isElement(wrapper))
$(wrapper).writeAttribute(attributes||{});else if(Object.isString(wrapper))wrapper=new Element(wrapper,attributes);else wrapper=new Element('div',wrapper);if(element.parentNode)
element.parentNode.replaceChild(wrapper,element);wrapper.appendChild(element);return wrapper;},inspect:function(element){element=$(element);var result='<'+element.tagName.toLowerCase();$H({'id':'id','className':'class'}).each(function(pair){var property=pair.first(),attribute=pair.last();var value=(element[property]||'').toString();if(value)result+=' '+attribute+'='+value.inspect(true);});return result+'>';},recursivelyCollect:function(element,property){element=$(element);var elements=[];while(element=element[property])
if(element.nodeType==1)
elements.push(Element.extend(element));return elements;},ancestors:function(element){return $(element).recursivelyCollect('parentNode');},descendants:function(element){return $(element).select("*");},firstDescendant:function(element){element=$(element).firstChild;while(element&&element.nodeType!=1)element=element.nextSibling;return $(element);},immediateDescendants:function(element){if(!(element=$(element).firstChild))return[];while(element&&element.nodeType!=1)element=element.nextSibling;if(element)return[element].concat($(element).nextSiblings());return[];},previousSiblings:function(element){return $(element).recursivelyCollect('previousSibling');},nextSiblings:function(element){return $(element).recursivelyCollect('nextSibling');},siblings:function(element){element=$(element);return element.previousSiblings().reverse().concat(element.nextSiblings());},match:function(element,selector){if(Object.isString(selector))
selector=new Selector(selector);return selector.match($(element));},up:function(element,expression,index){element=$(element);if(arguments.length==1)return $(element.parentNode);var ancestors=element.ancestors();return Object.isNumber(expression)?ancestors[expression]:Selector.findElement(ancestors,expression,index);},down:function(element,expression,index){element=$(element);if(arguments.length==1)return element.firstDescendant();return Object.isNumber(expression)?element.descendants()[expression]:Element.select(element,expression)[index||0];},previous:function(element,expression,index){element=$(element);if(arguments.length==1)return $(Selector.handlers.previousElementSibling(element));var previousSiblings=element.previousSiblings();return Object.isNumber(expression)?previousSiblings[expression]:Selector.findElement(previousSiblings,expression,index);},next:function(element,expression,index){element=$(element);if(arguments.length==1)return $(Selector.handlers.nextElementSibling(element));var nextSiblings=element.nextSiblings();return Object.isNumber(expression)?nextSiblings[expression]:Selector.findElement(nextSiblings,expression,index);},select:function(){var args=$A(arguments),element=$(args.shift());return Selector.findChildElements(element,args);},adjacent:function(){var args=$A(arguments),element=$(args.shift());return Selector.findChildElements(element.parentNode,args).without(element);},identify:function(element){element=$(element);var id=element.readAttribute('id'),self=arguments.callee;if(id)return id;do{id='anonymous_element_'+self.counter++}while($(id));element.writeAttribute('id',id);return id;},readAttribute:function(element,name){element=$(element);if(Prototype.Browser.IE){var t=Element._attributeTranslations.read;if(t.values[name])return t.values[name](element,name);if(t.names[name])name=t.names[name];if(name.include(':')){return(!element.attributes||!element.attributes[name])?null:element.attributes[name].value;}}
return element.getAttribute(name);},writeAttribute:function(element,name,value){element=$(element);var attributes={},t=Element._attributeTranslations.write;if(typeof name=='object')attributes=name;else attributes[name]=Object.isUndefined(value)?true:value;for(var attr in attributes){name=t.names[attr]||attr;value=attributes[attr];if(t.values[attr])name=t.values[attr](element,value);if(value===false||value===null)
element.removeAttribute(name);else if(value===true)
element.setAttribute(name,name);else element.setAttribute(name,value);}
return element;},getHeight:function(element){return $(element).getDimensions().height;},getWidth:function(element){return $(element).getDimensions().width;},classNames:function(element){return new Element.ClassNames(element);},hasClassName:function(element,className){if(!(element=$(element)))return;var elementClassName=element.className;return(elementClassName.length>0&&(elementClassName==className||new RegExp("(^|\\s)"+className+"(\\s|$)").test(elementClassName)));},addClassName:function(element,className){if(!(element=$(element)))return;if(!element.hasClassName(className))
element.className+=(element.className?' ':'')+className;return element;},removeClassName:function(element,className){if(!(element=$(element)))return;element.className=element.className.replace(new RegExp("(^|\\s+)"+className+"(\\s+|$)"),' ').strip();return element;},toggleClassName:function(element,className){if(!(element=$(element)))return;return element[element.hasClassName(className)?'removeClassName':'addClassName'](className);},cleanWhitespace:function(element){element=$(element);var node=element.firstChild;while(node){var nextNode=node.nextSibling;if(node.nodeType==3&&!/\S/.test(node.nodeValue))
element.removeChild(node);node=nextNode;}
return element;},empty:function(element){return $(element).innerHTML.blank();},descendantOf:function(element,ancestor){element=$(element),ancestor=$(ancestor);if(element.compareDocumentPosition)
return(element.compareDocumentPosition(ancestor)&8)===8;if(ancestor.contains)
return ancestor.contains(element)&&ancestor!==element;while(element=element.parentNode)
if(element==ancestor)return true;return false;},scrollTo:function(element){element=$(element);var pos=element.cumulativeOffset();window.scrollTo(pos[0],pos[1]);return element;},getStyle:function(element,style){element=$(element);style=style=='float'?'cssFloat':style.camelize();var value=element.style[style];if(!value||value=='auto'){var css=document.defaultView.getComputedStyle(element,null);value=css?css[style]:null;}
if(style=='opacity')return value?parseFloat(value):1.0;return value=='auto'?null:value;},getOpacity:function(element){return $(element).getStyle('opacity');},setStyle:function(element,styles){element=$(element);var elementStyle=element.style,match;if(Object.isString(styles)){element.style.cssText+=';'+styles;return styles.include('opacity')?element.setOpacity(styles.match(/opacity:\s*(\d?\.?\d*)/)[1]):element;}
for(var property in styles)
if(property=='opacity')element.setOpacity(styles[property]);else
elementStyle[(property=='float'||property=='cssFloat')?(Object.isUndefined(elementStyle.styleFloat)?'cssFloat':'styleFloat'):property]=styles[property];return element;},setOpacity:function(element,value){element=$(element);element.style.opacity=(value==1||value==='')?'':(value<0.00001)?0:value;return element;},getDimensions:function(element){element=$(element);var display=element.getStyle('display');if(display!='none'&&display!=null)
return{width:element.offsetWidth,height:element.offsetHeight};var els=element.style;var originalVisibility=els.visibility;var originalPosition=els.position;var originalDisplay=els.display;els.visibility='hidden';els.position='absolute';els.display='block';var originalWidth=element.clientWidth;var originalHeight=element.clientHeight;els.display=originalDisplay;els.position=originalPosition;els.visibility=originalVisibility;return{width:originalWidth,height:originalHeight};},makePositioned:function(element){element=$(element);var pos=Element.getStyle(element,'position');if(pos=='static'||!pos){element._madePositioned=true;element.style.position='relative';if(Prototype.Browser.Opera){element.style.top=0;element.style.left=0;}}
return element;},undoPositioned:function(element){element=$(element);if(element._madePositioned){element._madePositioned=undefined;element.style.position=element.style.top=element.style.left=element.style.bottom=element.style.right='';}
return element;},makeClipping:function(element){element=$(element);if(element._overflow)return element;element._overflow=Element.getStyle(element,'overflow')||'auto';if(element._overflow!=='hidden')
element.style.overflow='hidden';return element;},undoClipping:function(element){element=$(element);if(!element._overflow)return element;element.style.overflow=element._overflow=='auto'?'':element._overflow;element._overflow=null;return element;},cumulativeOffset:function(element){var valueT=0,valueL=0;do{valueT+=element.offsetTop||0;valueL+=element.offsetLeft||0;element=element.offsetParent;}while(element);return Element._returnOffset(valueL,valueT);},positionedOffset:function(element){var valueT=0,valueL=0;do{valueT+=element.offsetTop||0;valueL+=element.offsetLeft||0;element=element.offsetParent;if(element){if(element.tagName.toUpperCase()=='BODY')break;var p=Element.getStyle(element,'position');if(p!=='static')break;}}while(element);return Element._returnOffset(valueL,valueT);},absolutize:function(element){element=$(element);if(element.getStyle('position')=='absolute')return element;var offsets=element.positionedOffset();var top=offsets[1];var left=offsets[0];var width=element.clientWidth;var height=element.clientHeight;element._originalLeft=left-parseFloat(element.style.left||0);element._originalTop=top-parseFloat(element.style.top||0);element._originalWidth=element.style.width;element._originalHeight=element.style.height;element.style.position='absolute';element.style.top=top+'px';element.style.left=left+'px';element.style.width=width+'px';element.style.height=height+'px';return element;},relativize:function(element){element=$(element);if(element.getStyle('position')=='relative')return element;element.style.position='relative';var top=parseFloat(element.style.top||0)-(element._originalTop||0);var left=parseFloat(element.style.left||0)-(element._originalLeft||0);element.style.top=top+'px';element.style.left=left+'px';element.style.height=element._originalHeight;element.style.width=element._originalWidth;return element;},cumulativeScrollOffset:function(element){var valueT=0,valueL=0;do{valueT+=element.scrollTop||0;valueL+=element.scrollLeft||0;element=element.parentNode;}while(element);return Element._returnOffset(valueL,valueT);},getOffsetParent:function(element){if(element.offsetParent)return $(element.offsetParent);if(element==document.body)return $(element);while((element=element.parentNode)&&element!=document.body)
if(Element.getStyle(element,'position')!='static')
return $(element);return $(document.body);},viewportOffset:function(forElement){var valueT=0,valueL=0;var element=forElement;do{valueT+=element.offsetTop||0;valueL+=element.offsetLeft||0;if(element.offsetParent==document.body&&Element.getStyle(element,'position')=='absolute')break;}while(element=element.offsetParent);element=forElement;do{if(!Prototype.Browser.Opera||(element.tagName&&(element.tagName.toUpperCase()=='BODY'))){valueT-=element.scrollTop||0;valueL-=element.scrollLeft||0;}}while(element=element.parentNode);return Element._returnOffset(valueL,valueT);},clonePosition:function(element,source){var options=Object.extend({setLeft:true,setTop:true,setWidth:true,setHeight:true,offsetTop:0,offsetLeft:0},arguments[2]||{});source=$(source);var p=source.viewportOffset();element=$(element);var delta=[0,0];var parent=null;if(Element.getStyle(element,'position')=='absolute'){parent=element.getOffsetParent();delta=parent.viewportOffset();}
if(parent==document.body){delta[0]-=document.body.offsetLeft;delta[1]-=document.body.offsetTop;}
if(options.setLeft)element.style.left=(p[0]-delta[0]+options.offsetLeft)+'px';if(options.setTop)element.style.top=(p[1]-delta[1]+options.offsetTop)+'px';if(options.setWidth)element.style.width=source.offsetWidth+'px';if(options.setHeight)element.style.height=source.offsetHeight+'px';return element;}};Element.Methods.identify.counter=1;Object.extend(Element.Methods,{getElementsBySelector:Element.Methods.select,childElements:Element.Methods.immediateDescendants});Element._attributeTranslations={write:{names:{className:'class',htmlFor:'for'},values:{}}};if(Prototype.Browser.Opera){Element.Methods.getStyle=Element.Methods.getStyle.wrap(function(proceed,element,style){switch(style){case'left':case'top':case'right':case'bottom':if(proceed(element,'position')==='static')return null;case'height':case'width':if(!Element.visible(element))return null;var dim=parseInt(proceed(element,style),10);if(dim!==element['offset'+style.capitalize()])
return dim+'px';var properties;if(style==='height'){properties=['border-top-width','padding-top','padding-bottom','border-bottom-width'];}
else{properties=['border-left-width','padding-left','padding-right','border-right-width'];}
return properties.inject(dim,function(memo,property){var val=proceed(element,property);return val===null?memo:memo-parseInt(val,10);})+'px';default:return proceed(element,style);}});Element.Methods.readAttribute=Element.Methods.readAttribute.wrap(function(proceed,element,attribute){if(attribute==='title')return element.title;return proceed(element,attribute);});}
else if(Prototype.Browser.IE){Element.Methods.getOffsetParent=Element.Methods.getOffsetParent.wrap(function(proceed,element){element=$(element);try{element.offsetParent}
catch(e){return $(document.body)}
var position=element.getStyle('position');if(position!=='static')return proceed(element);element.setStyle({position:'relative'});var value=proceed(element);element.setStyle({position:position});return value;});$w('positionedOffset viewportOffset').each(function(method){Element.Methods[method]=Element.Methods[method].wrap(function(proceed,element){element=$(element);try{element.offsetParent}
catch(e){return Element._returnOffset(0,0)}
var position=element.getStyle('position');if(position!=='static')return proceed(element);var offsetParent=element.getOffsetParent();if(offsetParent&&offsetParent.getStyle('position')==='fixed')
offsetParent.setStyle({zoom:1});element.setStyle({position:'relative'});var value=proceed(element);element.setStyle({position:position});return value;});});Element.Methods.cumulativeOffset=Element.Methods.cumulativeOffset.wrap(function(proceed,element){try{element.offsetParent}
catch(e){return Element._returnOffset(0,0)}
return proceed(element);});Element.Methods.getStyle=function(element,style){element=$(element);style=(style=='float'||style=='cssFloat')?'styleFloat':style.camelize();var value=element.style[style];if(!value&&element.currentStyle)value=element.currentStyle[style];if(style=='opacity'){if(value=(element.getStyle('filter')||'').match(/alpha\(opacity=(.*)\)/))
if(value[1])return parseFloat(value[1])/100;return 1.0;}
if(value=='auto'){if((style=='width'||style=='height')&&(element.getStyle('display')!='none'))
return element['offset'+style.capitalize()]+'px';return null;}
return value;};Element.Methods.setOpacity=function(element,value){function stripAlpha(filter){return filter.replace(/alpha\([^\)]*\)/gi,'');}
element=$(element);var currentStyle=element.currentStyle;if((currentStyle&&!currentStyle.hasLayout)||(!currentStyle&&element.style.zoom=='normal'))
element.style.zoom=1;var filter=element.getStyle('filter'),style=element.style;if(value==1||value===''){(filter=stripAlpha(filter))?style.filter=filter:style.removeAttribute('filter');return element;}else if(value<0.00001)value=0;style.filter=stripAlpha(filter)+'alpha(opacity='+(value*100)+')';return element;};Element._attributeTranslations={read:{names:{'class':'className','for':'htmlFor'},values:{_getAttr:function(element,attribute){return element.getAttribute(attribute,2);},_getAttrNode:function(element,attribute){var node=element.getAttributeNode(attribute);return node?node.value:"";},_getEv:function(element,attribute){attribute=element.getAttribute(attribute);return attribute?attribute.toString().slice(23,-2):null;},_flag:function(element,attribute){return $(element).hasAttribute(attribute)?attribute:null;},style:function(element){return element.style.cssText.toLowerCase();},title:function(element){return element.title;}}}};Element._attributeTranslations.write={names:Object.extend({cellpadding:'cellPadding',cellspacing:'cellSpacing'},Element._attributeTranslations.read.names),values:{checked:function(element,value){element.checked=!!value;},style:function(element,value){element.style.cssText=value?value:'';}}};Element._attributeTranslations.has={};$w('colSpan rowSpan vAlign dateTime accessKey tabIndex '+'encType maxLength readOnly longDesc frameBorder').each(function(attr){Element._attributeTranslations.write.names[attr.toLowerCase()]=attr;Element._attributeTranslations.has[attr.toLowerCase()]=attr;});(function(v){Object.extend(v,{href:v._getAttr,src:v._getAttr,type:v._getAttr,action:v._getAttrNode,disabled:v._flag,checked:v._flag,readonly:v._flag,multiple:v._flag,onload:v._getEv,onunload:v._getEv,onclick:v._getEv,ondblclick:v._getEv,onmousedown:v._getEv,onmouseup:v._getEv,onmouseover:v._getEv,onmousemove:v._getEv,onmouseout:v._getEv,onfocus:v._getEv,onblur:v._getEv,onkeypress:v._getEv,onkeydown:v._getEv,onkeyup:v._getEv,onsubmit:v._getEv,onreset:v._getEv,onselect:v._getEv,onchange:v._getEv});})(Element._attributeTranslations.read.values);}
else if(Prototype.Browser.Gecko&&/rv:1\.8\.0/.test(navigator.userAgent)){Element.Methods.setOpacity=function(element,value){element=$(element);element.style.opacity=(value==1)?0.999999:(value==='')?'':(value<0.00001)?0:value;return element;};}
else if(Prototype.Browser.WebKit){Element.Methods.setOpacity=function(element,value){element=$(element);element.style.opacity=(value==1||value==='')?'':(value<0.00001)?0:value;if(value==1)
if(element.tagName.toUpperCase()=='IMG'&&element.width){element.width++;element.width--;}else try{var n=document.createTextNode(' ');element.appendChild(n);element.removeChild(n);}catch(e){}
return element;};Element.Methods.cumulativeOffset=function(element){var valueT=0,valueL=0;do{valueT+=element.offsetTop||0;valueL+=element.offsetLeft||0;if(element.offsetParent==document.body)
if(Element.getStyle(element,'position')=='absolute')break;element=element.offsetParent;}while(element);return Element._returnOffset(valueL,valueT);};}
if(Prototype.Browser.IE||Prototype.Browser.Opera){Element.Methods.update=function(element,content){element=$(element);if(content&&content.toElement)content=content.toElement();if(Object.isElement(content))return element.update().insert(content);content=Object.toHTML(content);var tagName=element.tagName.toUpperCase();if(tagName in Element._insertionTranslations.tags){$A(element.childNodes).each(function(node){element.removeChild(node)});Element._getContentFromAnonymousElement(tagName,content.stripScripts()).each(function(node){element.appendChild(node)});}
else element.innerHTML=content.stripScripts();content.evalScripts.bind(content).defer();return element;};}
if('outerHTML'in document.createElement('div')){Element.Methods.replace=function(element,content){element=$(element);if(content&&content.toElement)content=content.toElement();if(Object.isElement(content)){element.parentNode.replaceChild(content,element);return element;}
content=Object.toHTML(content);var parent=element.parentNode,tagName=parent.tagName.toUpperCase();if(Element._insertionTranslations.tags[tagName]){var nextSibling=element.next();var fragments=Element._getContentFromAnonymousElement(tagName,content.stripScripts());parent.removeChild(element);if(nextSibling)
fragments.each(function(node){parent.insertBefore(node,nextSibling)});else
fragments.each(function(node){parent.appendChild(node)});}
else element.outerHTML=content.stripScripts();content.evalScripts.bind(content).defer();return element;};}
Element._returnOffset=function(l,t){var result=[l,t];result.left=l;result.top=t;return result;};Element._getContentFromAnonymousElement=function(tagName,html){var div=new Element('div'),t=Element._insertionTranslations.tags[tagName];if(t){div.innerHTML=t[0]+html+t[1];t[2].times(function(){div=div.firstChild});}else div.innerHTML=html;return $A(div.childNodes);};Element._insertionTranslations={before:function(element,node){element.parentNode.insertBefore(node,element);},top:function(element,node){element.insertBefore(node,element.firstChild);},bottom:function(element,node){element.appendChild(node);},after:function(element,node){element.parentNode.insertBefore(node,element.nextSibling);},tags:{TABLE:['<table>','</table>',1],TBODY:['<table><tbody>','</tbody></table>',2],TR:['<table><tbody><tr>','</tr></tbody></table>',3],TD:['<table><tbody><tr><td>','</td></tr></tbody></table>',4],SELECT:['<select>','</select>',1]}};(function(){Object.extend(this.tags,{THEAD:this.tags.TBODY,TFOOT:this.tags.TBODY,TH:this.tags.TD});}).call(Element._insertionTranslations);Element.Methods.Simulated={hasAttribute:function(element,attribute){attribute=Element._attributeTranslations.has[attribute]||attribute;var node=$(element).getAttributeNode(attribute);return!!(node&&node.specified);}};Element.Methods.ByTag={};Object.extend(Element,Element.Methods);if(!Prototype.BrowserFeatures.ElementExtensions&&document.createElement('div')['__proto__']){window.HTMLElement={};window.HTMLElement.prototype=document.createElement('div')['__proto__'];Prototype.BrowserFeatures.ElementExtensions=true;}
Element.extend=(function(){if(Prototype.BrowserFeatures.SpecificElementExtensions)
return Prototype.K;var Methods={},ByTag=Element.Methods.ByTag;var extend=Object.extend(function(element){if(!element||element._extendedByPrototype||element.nodeType!=1||element==window)return element;var methods=Object.clone(Methods),tagName=element.tagName.toUpperCase(),property,value;if(ByTag[tagName])Object.extend(methods,ByTag[tagName]);for(property in methods){value=methods[property];if(Object.isFunction(value)&&!(property in element))
element[property]=value.methodize();}
element._extendedByPrototype=Prototype.emptyFunction;return element;},{refresh:function(){if(!Prototype.BrowserFeatures.ElementExtensions){Object.extend(Methods,Element.Methods);Object.extend(Methods,Element.Methods.Simulated);}}});extend.refresh();return extend;})();Element.hasAttribute=function(element,attribute){if(element.hasAttribute)return element.hasAttribute(attribute);return Element.Methods.Simulated.hasAttribute(element,attribute);};Element.addMethods=function(methods){var F=Prototype.BrowserFeatures,T=Element.Methods.ByTag;if(!methods){Object.extend(Form,Form.Methods);Object.extend(Form.Element,Form.Element.Methods);Object.extend(Element.Methods.ByTag,{"FORM":Object.clone(Form.Methods),"INPUT":Object.clone(Form.Element.Methods),"SELECT":Object.clone(Form.Element.Methods),"TEXTAREA":Object.clone(Form.Element.Methods)});}
if(arguments.length==2){var tagName=methods;methods=arguments[1];}
if(!tagName)Object.extend(Element.Methods,methods||{});else{if(Object.isArray(tagName))tagName.each(extend);else extend(tagName);}
function extend(tagName){tagName=tagName.toUpperCase();if(!Element.Methods.ByTag[tagName])
Element.Methods.ByTag[tagName]={};Object.extend(Element.Methods.ByTag[tagName],methods);}
function copy(methods,destination,onlyIfAbsent){onlyIfAbsent=onlyIfAbsent||false;for(var property in methods){var value=methods[property];if(!Object.isFunction(value))continue;if(!onlyIfAbsent||!(property in destination))
destination[property]=value.methodize();}}
function findDOMClass(tagName){var klass;var trans={"OPTGROUP":"OptGroup","TEXTAREA":"TextArea","P":"Paragraph","FIELDSET":"FieldSet","UL":"UList","OL":"OList","DL":"DList","DIR":"Directory","H1":"Heading","H2":"Heading","H3":"Heading","H4":"Heading","H5":"Heading","H6":"Heading","Q":"Quote","INS":"Mod","DEL":"Mod","A":"Anchor","IMG":"Image","CAPTION":"TableCaption","COL":"TableCol","COLGROUP":"TableCol","THEAD":"TableSection","TFOOT":"TableSection","TBODY":"TableSection","TR":"TableRow","TH":"TableCell","TD":"TableCell","FRAMESET":"FrameSet","IFRAME":"IFrame"};if(trans[tagName])klass='HTML'+trans[tagName]+'Element';if(window[klass])return window[klass];klass='HTML'+tagName+'Element';if(window[klass])return window[klass];klass='HTML'+tagName.capitalize()+'Element';if(window[klass])return window[klass];window[klass]={};window[klass].prototype=document.createElement(tagName)['__proto__'];return window[klass];}
if(F.ElementExtensions){copy(Element.Methods,HTMLElement.prototype);copy(Element.Methods.Simulated,HTMLElement.prototype,true);}
if(F.SpecificElementExtensions){for(var tag in Element.Methods.ByTag){var klass=findDOMClass(tag);if(Object.isUndefined(klass))continue;copy(T[tag],klass.prototype);}}
Object.extend(Element,Element.Methods);delete Element.ByTag;if(Element.extend.refresh)Element.extend.refresh();Element.cache={};};document.viewport={getDimensions:function(){var dimensions={},B=Prototype.Browser;$w('width height').each(function(d){var D=d.capitalize();if(B.WebKit&&!document.evaluate){dimensions[d]=self['inner'+D];}else if(B.Opera&&parseFloat(window.opera.version())<9.5){dimensions[d]=document.body['client'+D]}else{dimensions[d]=document.documentElement['client'+D];}});return dimensions;},getWidth:function(){return this.getDimensions().width;},getHeight:function(){return this.getDimensions().height;},getScrollOffsets:function(){return Element._returnOffset(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft,window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop);}};var Selector=Class.create({initialize:function(expression){this.expression=expression.strip();if(this.shouldUseSelectorsAPI()){this.mode='selectorsAPI';}else if(this.shouldUseXPath()){this.mode='xpath';this.compileXPathMatcher();}else{this.mode="normal";this.compileMatcher();}},shouldUseXPath:function(){if(!Prototype.BrowserFeatures.XPath)return false;var e=this.expression;if(Prototype.Browser.WebKit&&(e.include("-of-type")||e.include(":empty")))
return false;if((/(\[[\w-]*?:|:checked)/).test(e))
return false;return true;},shouldUseSelectorsAPI:function(){if(!Prototype.BrowserFeatures.SelectorsAPI)return false;if(!Selector._div)Selector._div=new Element('div');try{Selector._div.querySelector(this.expression);}catch(e){return false;}
return true;},compileMatcher:function(){var e=this.expression,ps=Selector.patterns,h=Selector.handlers,c=Selector.criteria,le,p,m;if(Selector._cache[e]){this.matcher=Selector._cache[e];return;}
this.matcher=["this.matcher = function(root) {","var r = root, h = Selector.handlers, c = false, n;"];while(e&&le!=e&&(/\S/).test(e)){le=e;for(var i in ps){p=ps[i];if(m=e.match(p)){this.matcher.push(Object.isFunction(c[i])?c[i](m):new Template(c[i]).evaluate(m));e=e.replace(m[0],'');break;}}}
this.matcher.push("return h.unique(n);\n}");eval(this.matcher.join('\n'));Selector._cache[this.expression]=this.matcher;},compileXPathMatcher:function(){var e=this.expression,ps=Selector.patterns,x=Selector.xpath,le,m;if(Selector._cache[e]){this.xpath=Selector._cache[e];return;}
this.matcher=['.//*'];while(e&&le!=e&&(/\S/).test(e)){le=e;for(var i in ps){if(m=e.match(ps[i])){this.matcher.push(Object.isFunction(x[i])?x[i](m):new Template(x[i]).evaluate(m));e=e.replace(m[0],'');break;}}}
this.xpath=this.matcher.join('');Selector._cache[this.expression]=this.xpath;},findElements:function(root){root=root||document;var e=this.expression,results;switch(this.mode){case'selectorsAPI':if(root!==document){var oldId=root.id,id=$(root).identify();e="#"+id+" "+e;}
results=$A(root.querySelectorAll(e)).map(Element.extend);root.id=oldId;return results;case'xpath':return document._getElementsByXPath(this.xpath,root);default:return this.matcher(root);}},match:function(element){this.tokens=[];var e=this.expression,ps=Selector.patterns,as=Selector.assertions;var le,p,m;while(e&&le!==e&&(/\S/).test(e)){le=e;for(var i in ps){p=ps[i];if(m=e.match(p)){if(as[i]){this.tokens.push([i,Object.clone(m)]);e=e.replace(m[0],'');}else{return this.findElements(document).include(element);}}}}
var match=true,name,matches;for(var i=0,token;token=this.tokens[i];i++){name=token[0],matches=token[1];if(!Selector.assertions[name](element,matches)){match=false;break;}}
return match;},toString:function(){return this.expression;},inspect:function(){return"#<Selector:"+this.expression.inspect()+">";}});Object.extend(Selector,{_cache:{},xpath:{descendant:"//*",child:"/*",adjacent:"/following-sibling::*[1]",laterSibling:'/following-sibling::*',tagName:function(m){if(m[1]=='*')return'';return"[local-name()='"+m[1].toLowerCase()+"' or local-name()='"+m[1].toUpperCase()+"']";},className:"[contains(concat(' ', @class, ' '), ' #{1} ')]",id:"[@id='#{1}']",attrPresence:function(m){m[1]=m[1].toLowerCase();return new Template("[@#{1}]").evaluate(m);},attr:function(m){m[1]=m[1].toLowerCase();m[3]=m[5]||m[6];return new Template(Selector.xpath.operators[m[2]]).evaluate(m);},pseudo:function(m){var h=Selector.xpath.pseudos[m[1]];if(!h)return'';if(Object.isFunction(h))return h(m);return new Template(Selector.xpath.pseudos[m[1]]).evaluate(m);},operators:{'=':"[@#{1}='#{3}']",'!=':"[@#{1}!='#{3}']",'^=':"[starts-with(@#{1}, '#{3}')]",'$=':"[substring(@#{1}, (string-length(@#{1}) - string-length('#{3}') + 1))='#{3}']",'*=':"[contains(@#{1}, '#{3}')]",'~=':"[contains(concat(' ', @#{1}, ' '), ' #{3} ')]",'|=':"[contains(concat('-', @#{1}, '-'), '-#{3}-')]"},pseudos:{'first-child':'[not(preceding-sibling::*)]','last-child':'[not(following-sibling::*)]','only-child':'[not(preceding-sibling::* or following-sibling::*)]','empty':"[count(*) = 0 and (count(text()) = 0)]",'checked':"[@checked]",'disabled':"[(@disabled) and (@type!='hidden')]",'enabled':"[not(@disabled) and (@type!='hidden')]",'not':function(m){var e=m[6],p=Selector.patterns,x=Selector.xpath,le,v;var exclusion=[];while(e&&le!=e&&(/\S/).test(e)){le=e;for(var i in p){if(m=e.match(p[i])){v=Object.isFunction(x[i])?x[i](m):new Template(x[i]).evaluate(m);exclusion.push("("+v.substring(1,v.length-1)+")");e=e.replace(m[0],'');break;}}}
return"[not("+exclusion.join(" and ")+")]";},'nth-child':function(m){return Selector.xpath.pseudos.nth("(count(./preceding-sibling::*) + 1) ",m);},'nth-last-child':function(m){return Selector.xpath.pseudos.nth("(count(./following-sibling::*) + 1) ",m);},'nth-of-type':function(m){return Selector.xpath.pseudos.nth("position() ",m);},'nth-last-of-type':function(m){return Selector.xpath.pseudos.nth("(last() + 1 - position()) ",m);},'first-of-type':function(m){m[6]="1";return Selector.xpath.pseudos['nth-of-type'](m);},'last-of-type':function(m){m[6]="1";return Selector.xpath.pseudos['nth-last-of-type'](m);},'only-of-type':function(m){var p=Selector.xpath.pseudos;return p['first-of-type'](m)+p['last-of-type'](m);},nth:function(fragment,m){var mm,formula=m[6],predicate;if(formula=='even')formula='2n+0';if(formula=='odd')formula='2n+1';if(mm=formula.match(/^(\d+)$/))
return'['+fragment+"= "+mm[1]+']';if(mm=formula.match(/^(-?\d*)?n(([+-])(\d+))?/)){if(mm[1]=="-")mm[1]=-1;var a=mm[1]?Number(mm[1]):1;var b=mm[2]?Number(mm[2]):0;predicate="[((#{fragment} - #{b}) mod #{a} = 0) and "+"((#{fragment} - #{b}) div #{a} >= 0)]";return new Template(predicate).evaluate({fragment:fragment,a:a,b:b});}}}},criteria:{tagName:'n = h.tagName(n, r, "#{1}", c);      c = false;',className:'n = h.className(n, r, "#{1}", c);    c = false;',id:'n = h.id(n, r, "#{1}", c);           c = false;',attrPresence:'n = h.attrPresence(n, r, "#{1}", c); c = false;',attr:function(m){m[3]=(m[5]||m[6]);return new Template('n = h.attr(n, r, "#{1}", "#{3}", "#{2}", c); c = false;').evaluate(m);},pseudo:function(m){if(m[6])m[6]=m[6].replace(/"/g,'\\"');return new Template('n = h.pseudo(n, "#{1}", "#{6}", r, c); c = false;').evaluate(m);},descendant:'c = "descendant";',child:'c = "child";',adjacent:'c = "adjacent";',laterSibling:'c = "laterSibling";'},patterns:{laterSibling:/^\s*~\s*/,child:/^\s*>\s*/,adjacent:/^\s*\+\s*/,descendant:/^\s/,tagName:/^\s*(\*|[\w\-]+)(\b|$)?/,id:/^#([\w\-\*]+)(\b|$)/,className:/^\.([\w\-\*]+)(\b|$)/,pseudo:/^:((first|last|nth|nth-last|only)(-child|-of-type)|empty|checked|(en|dis)abled|not)(\((.*?)\))?(\b|$|(?=\s|[:+~>]))/,attrPresence:/^\[((?:[\w]+:)?[\w]+)\]/,attr:/\[((?:[\w-]*:)?[\w-]+)\s*(?:([!^$*~|]?=)\s*((['"])([^\4]*?)\4|([^'"][^\]]*?)))?\]/},assertions:{tagName:function(element,matches){return matches[1].toUpperCase()==element.tagName.toUpperCase();},className:function(element,matches){return Element.hasClassName(element,matches[1]);},id:function(element,matches){return element.id===matches[1];},attrPresence:function(element,matches){return Element.hasAttribute(element,matches[1]);},attr:function(element,matches){var nodeValue=Element.readAttribute(element,matches[1]);return nodeValue&&Selector.operators[matches[2]](nodeValue,matches[5]||matches[6]);}},handlers:{concat:function(a,b){for(var i=0,node;node=b[i];i++)
a.push(node);return a;},mark:function(nodes){var _true=Prototype.emptyFunction;for(var i=0,node;node=nodes[i];i++)
node._countedByPrototype=_true;return nodes;},unmark:function(nodes){for(var i=0,node;node=nodes[i];i++)
node._countedByPrototype=undefined;return nodes;},index:function(parentNode,reverse,ofType){parentNode._countedByPrototype=Prototype.emptyFunction;if(reverse){for(var nodes=parentNode.childNodes,i=nodes.length-1,j=1;i>=0;i--){var node=nodes[i];if(node.nodeType==1&&(!ofType||node._countedByPrototype))node.nodeIndex=j++;}}else{for(var i=0,j=1,nodes=parentNode.childNodes;node=nodes[i];i++)
if(node.nodeType==1&&(!ofType||node._countedByPrototype))node.nodeIndex=j++;}},unique:function(nodes){if(nodes.length==0)return nodes;var results=[],n;for(var i=0,l=nodes.length;i<l;i++)
if(!(n=nodes[i])._countedByPrototype){n._countedByPrototype=Prototype.emptyFunction;results.push(Element.extend(n));}
return Selector.handlers.unmark(results);},descendant:function(nodes){var h=Selector.handlers;for(var i=0,results=[],node;node=nodes[i];i++)
h.concat(results,node.getElementsByTagName('*'));return results;},child:function(nodes){var h=Selector.handlers;for(var i=0,results=[],node;node=nodes[i];i++){for(var j=0,child;child=node.childNodes[j];j++)
if(child.nodeType==1&&child.tagName!='!')results.push(child);}
return results;},adjacent:function(nodes){for(var i=0,results=[],node;node=nodes[i];i++){var next=this.nextElementSibling(node);if(next)results.push(next);}
return results;},laterSibling:function(nodes){var h=Selector.handlers;for(var i=0,results=[],node;node=nodes[i];i++)
h.concat(results,Element.nextSiblings(node));return results;},nextElementSibling:function(node){while(node=node.nextSibling)
if(node.nodeType==1)return node;return null;},previousElementSibling:function(node){while(node=node.previousSibling)
if(node.nodeType==1)return node;return null;},tagName:function(nodes,root,tagName,combinator){var uTagName=tagName.toUpperCase();var results=[],h=Selector.handlers;if(nodes){if(combinator){if(combinator=="descendant"){for(var i=0,node;node=nodes[i];i++)
h.concat(results,node.getElementsByTagName(tagName));return results;}else nodes=this[combinator](nodes);if(tagName=="*")return nodes;}
for(var i=0,node;node=nodes[i];i++)
if(node.tagName.toUpperCase()===uTagName)results.push(node);return results;}else return root.getElementsByTagName(tagName);},id:function(nodes,root,id,combinator){var targetNode=$(id),h=Selector.handlers;if(!targetNode)return[];if(!nodes&&root==document)return[targetNode];if(nodes){if(combinator){if(combinator=='child'){for(var i=0,node;node=nodes[i];i++)
if(targetNode.parentNode==node)return[targetNode];}else if(combinator=='descendant'){for(var i=0,node;node=nodes[i];i++)
if(Element.descendantOf(targetNode,node))return[targetNode];}else if(combinator=='adjacent'){for(var i=0,node;node=nodes[i];i++)
if(Selector.handlers.previousElementSibling(targetNode)==node)
return[targetNode];}else nodes=h[combinator](nodes);}
for(var i=0,node;node=nodes[i];i++)
if(node==targetNode)return[targetNode];return[];}
return(targetNode&&Element.descendantOf(targetNode,root))?[targetNode]:[];},className:function(nodes,root,className,combinator){if(nodes&&combinator)nodes=this[combinator](nodes);return Selector.handlers.byClassName(nodes,root,className);},byClassName:function(nodes,root,className){if(!nodes)nodes=Selector.handlers.descendant([root]);var needle=' '+className+' ';for(var i=0,results=[],node,nodeClassName;node=nodes[i];i++){nodeClassName=node.className;if(nodeClassName.length==0)continue;if(nodeClassName==className||(' '+nodeClassName+' ').include(needle))
results.push(node);}
return results;},attrPresence:function(nodes,root,attr,combinator){if(!nodes)nodes=root.getElementsByTagName("*");if(nodes&&combinator)nodes=this[combinator](nodes);var results=[];for(var i=0,node;node=nodes[i];i++)
if(Element.hasAttribute(node,attr))results.push(node);return results;},attr:function(nodes,root,attr,value,operator,combinator){if(!nodes)nodes=root.getElementsByTagName("*");if(nodes&&combinator)nodes=this[combinator](nodes);var handler=Selector.operators[operator],results=[];for(var i=0,node;node=nodes[i];i++){var nodeValue=Element.readAttribute(node,attr);if(nodeValue===null)continue;if(handler(nodeValue,value))results.push(node);}
return results;},pseudo:function(nodes,name,value,root,combinator){if(nodes&&combinator)nodes=this[combinator](nodes);if(!nodes)nodes=root.getElementsByTagName("*");return Selector.pseudos[name](nodes,value,root);}},pseudos:{'first-child':function(nodes,value,root){for(var i=0,results=[],node;node=nodes[i];i++){if(Selector.handlers.previousElementSibling(node))continue;results.push(node);}
return results;},'last-child':function(nodes,value,root){for(var i=0,results=[],node;node=nodes[i];i++){if(Selector.handlers.nextElementSibling(node))continue;results.push(node);}
return results;},'only-child':function(nodes,value,root){var h=Selector.handlers;for(var i=0,results=[],node;node=nodes[i];i++)
if(!h.previousElementSibling(node)&&!h.nextElementSibling(node))
results.push(node);return results;},'nth-child':function(nodes,formula,root){return Selector.pseudos.nth(nodes,formula,root);},'nth-last-child':function(nodes,formula,root){return Selector.pseudos.nth(nodes,formula,root,true);},'nth-of-type':function(nodes,formula,root){return Selector.pseudos.nth(nodes,formula,root,false,true);},'nth-last-of-type':function(nodes,formula,root){return Selector.pseudos.nth(nodes,formula,root,true,true);},'first-of-type':function(nodes,formula,root){return Selector.pseudos.nth(nodes,"1",root,false,true);},'last-of-type':function(nodes,formula,root){return Selector.pseudos.nth(nodes,"1",root,true,true);},'only-of-type':function(nodes,formula,root){var p=Selector.pseudos;return p['last-of-type'](p['first-of-type'](nodes,formula,root),formula,root);},getIndices:function(a,b,total){if(a==0)return b>0?[b]:[];return $R(1,total).inject([],function(memo,i){if(0==(i-b)%a&&(i-b)/a>=0)memo.push(i);return memo;});},nth:function(nodes,formula,root,reverse,ofType){if(nodes.length==0)return[];if(formula=='even')formula='2n+0';if(formula=='odd')formula='2n+1';var h=Selector.handlers,results=[],indexed=[],m;h.mark(nodes);for(var i=0,node;node=nodes[i];i++){if(!node.parentNode._countedByPrototype){h.index(node.parentNode,reverse,ofType);indexed.push(node.parentNode);}}
if(formula.match(/^\d+$/)){formula=Number(formula);for(var i=0,node;node=nodes[i];i++)
if(node.nodeIndex==formula)results.push(node);}else if(m=formula.match(/^(-?\d*)?n(([+-])(\d+))?/)){if(m[1]=="-")m[1]=-1;var a=m[1]?Number(m[1]):1;var b=m[2]?Number(m[2]):0;var indices=Selector.pseudos.getIndices(a,b,nodes.length);for(var i=0,node,l=indices.length;node=nodes[i];i++){for(var j=0;j<l;j++)
if(node.nodeIndex==indices[j])results.push(node);}}
h.unmark(nodes);h.unmark(indexed);return results;},'empty':function(nodes,value,root){for(var i=0,results=[],node;node=nodes[i];i++){if(node.tagName=='!'||node.firstChild)continue;results.push(node);}
return results;},'not':function(nodes,selector,root){var h=Selector.handlers,selectorType,m;var exclusions=new Selector(selector).findElements(root);h.mark(exclusions);for(var i=0,results=[],node;node=nodes[i];i++)
if(!node._countedByPrototype)results.push(node);h.unmark(exclusions);return results;},'enabled':function(nodes,value,root){for(var i=0,results=[],node;node=nodes[i];i++)
if(!node.disabled&&(!node.type||node.type!=='hidden'))
results.push(node);return results;},'disabled':function(nodes,value,root){for(var i=0,results=[],node;node=nodes[i];i++)
if(node.disabled)results.push(node);return results;},'checked':function(nodes,value,root){for(var i=0,results=[],node;node=nodes[i];i++)
if(node.checked)results.push(node);return results;}},operators:{'=':function(nv,v){return nv==v;},'!=':function(nv,v){return nv!=v;},'^=':function(nv,v){return nv==v||nv&&nv.startsWith(v);},'$=':function(nv,v){return nv==v||nv&&nv.endsWith(v);},'*=':function(nv,v){return nv==v||nv&&nv.include(v);},'$=':function(nv,v){return nv.endsWith(v);},'*=':function(nv,v){return nv.include(v);},'~=':function(nv,v){return(' '+nv+' ').include(' '+v+' ');},'|=':function(nv,v){return('-'+(nv||"").toUpperCase()+'-').include('-'+(v||"").toUpperCase()+'-');}},split:function(expression){var expressions=[];expression.scan(/(([\w#:.~>+()\s-]+|\*|\[.*?\])+)\s*(,|$)/,function(m){expressions.push(m[1].strip());});return expressions;},matchElements:function(elements,expression){var matches=$$(expression),h=Selector.handlers;h.mark(matches);for(var i=0,results=[],element;element=elements[i];i++)
if(element._countedByPrototype)results.push(element);h.unmark(matches);return results;},findElement:function(elements,expression,index){if(Object.isNumber(expression)){index=expression;expression=false;}
return Selector.matchElements(elements,expression||'*')[index||0];},findChildElements:function(element,expressions){expressions=Selector.split(expressions.join(','));var results=[],h=Selector.handlers;for(var i=0,l=expressions.length,selector;i<l;i++){selector=new Selector(expressions[i].strip());h.concat(results,selector.findElements(element));}
return(l>1)?h.unique(results):results;}});if(Prototype.Browser.IE){Object.extend(Selector.handlers,{concat:function(a,b){for(var i=0,node;node=b[i];i++)
if(node.tagName!=="!")a.push(node);return a;},unmark:function(nodes){for(var i=0,node;node=nodes[i];i++)
node.removeAttribute('_countedByPrototype');return nodes;}});}
function $$(){return Selector.findChildElements(document,$A(arguments));}
var Form={reset:function(form){$(form).reset();return form;},serializeElements:function(elements,options){if(typeof options!='object')options={hash:!!options};else if(Object.isUndefined(options.hash))options.hash=true;var key,value,submitted=false,submit=options.submit;var data=elements.inject({},function(result,element){if(!element.disabled&&element.name){key=element.name;value=$(element).getValue();if(value!=null&&element.type!='file'&&(element.type!='submit'||(!submitted&&submit!==false&&(!submit||key==submit)&&(submitted=true)))){if(key in result){if(!Object.isArray(result[key]))result[key]=[result[key]];result[key].push(value);}
else result[key]=value;}}
return result;});return options.hash?data:Object.toQueryString(data);}};Form.Methods={serialize:function(form,options){return Form.serializeElements(Form.getElements(form),options);},getElements:function(form){return $A($(form).getElementsByTagName('*')).inject([],function(elements,child){if(Form.Element.Serializers[child.tagName.toLowerCase()])
elements.push(Element.extend(child));return elements;});},getInputs:function(form,typeName,name){form=$(form);var inputs=form.getElementsByTagName('input');if(!typeName&&!name)return $A(inputs).map(Element.extend);for(var i=0,matchingInputs=[],length=inputs.length;i<length;i++){var input=inputs[i];if((typeName&&input.type!=typeName)||(name&&input.name!=name))
continue;matchingInputs.push(Element.extend(input));}
return matchingInputs;},disable:function(form){form=$(form);Form.getElements(form).invoke('disable');return form;},enable:function(form){form=$(form);Form.getElements(form).invoke('enable');return form;},findFirstElement:function(form){var elements=$(form).getElements().findAll(function(element){return'hidden'!=element.type&&!element.disabled;});var firstByIndex=elements.findAll(function(element){return element.hasAttribute('tabIndex')&&element.tabIndex>=0;}).sortBy(function(element){return element.tabIndex}).first();return firstByIndex?firstByIndex:elements.find(function(element){return['input','select','textarea'].include(element.tagName.toLowerCase());});},focusFirstElement:function(form){form=$(form);form.findFirstElement().activate();return form;},request:function(form,options){form=$(form),options=Object.clone(options||{});var params=options.parameters,action=form.readAttribute('action')||'';if(action.blank())action=window.location.href;options.parameters=form.serialize(true);if(params){if(Object.isString(params))params=params.toQueryParams();Object.extend(options.parameters,params);}
if(form.hasAttribute('method')&&!options.method)
options.method=form.method;return new Ajax.Request(action,options);}};Form.Element={focus:function(element){$(element).focus();return element;},select:function(element){$(element).select();return element;}};Form.Element.Methods={serialize:function(element){element=$(element);if(!element.disabled&&element.name){var value=element.getValue();if(value!=undefined){var pair={};pair[element.name]=value;return Object.toQueryString(pair);}}
return'';},getValue:function(element){element=$(element);var method=element.tagName.toLowerCase();return Form.Element.Serializers[method](element);},setValue:function(element,value){element=$(element);var method=element.tagName.toLowerCase();Form.Element.Serializers[method](element,value);return element;},clear:function(element){$(element).value='';return element;},present:function(element){return $(element).value!='';},activate:function(element){element=$(element);try{element.focus();if(element.select&&(element.tagName.toLowerCase()!='input'||!['button','reset','submit'].include(element.type)))
element.select();}catch(e){}
return element;},disable:function(element){element=$(element);element.disabled=true;return element;},enable:function(element){element=$(element);element.disabled=false;return element;}};var Field=Form.Element;var $F=Form.Element.Methods.getValue;Form.Element.Serializers={input:function(element,value){switch(element.type.toLowerCase()){case'checkbox':case'radio':return Form.Element.Serializers.inputSelector(element,value);default:return Form.Element.Serializers.textarea(element,value);}},inputSelector:function(element,value){if(Object.isUndefined(value))return element.checked?element.value:null;else element.checked=!!value;},textarea:function(element,value){if(Object.isUndefined(value))return element.value;else element.value=value;},select:function(element,value){if(Object.isUndefined(value))
return this[element.type=='select-one'?'selectOne':'selectMany'](element);else{var opt,currentValue,single=!Object.isArray(value);for(var i=0,length=element.length;i<length;i++){opt=element.options[i];currentValue=this.optionValue(opt);if(single){if(currentValue==value){opt.selected=true;return;}}
else opt.selected=value.include(currentValue);}}},selectOne:function(element){var index=element.selectedIndex;return index>=0?this.optionValue(element.options[index]):null;},selectMany:function(element){var values,length=element.length;if(!length)return null;for(var i=0,values=[];i<length;i++){var opt=element.options[i];if(opt.selected)values.push(this.optionValue(opt));}
return values;},optionValue:function(opt){return Element.extend(opt).hasAttribute('value')?opt.value:opt.text;}};Abstract.TimedObserver=Class.create(PeriodicalExecuter,{initialize:function($super,element,frequency,callback){$super(callback,frequency);this.element=$(element);this.lastValue=this.getValue();},execute:function(){var value=this.getValue();if(Object.isString(this.lastValue)&&Object.isString(value)?this.lastValue!=value:String(this.lastValue)!=String(value)){this.callback(this.element,value);this.lastValue=value;}}});Form.Element.Observer=Class.create(Abstract.TimedObserver,{getValue:function(){return Form.Element.getValue(this.element);}});Form.Observer=Class.create(Abstract.TimedObserver,{getValue:function(){return Form.serialize(this.element);}});Abstract.EventObserver=Class.create({initialize:function(element,callback){this.element=$(element);this.callback=callback;this.lastValue=this.getValue();if(this.element.tagName.toLowerCase()=='form')
this.registerFormCallbacks();else
this.registerCallback(this.element);},onElementEvent:function(){var value=this.getValue();if(this.lastValue!=value){this.callback(this.element,value);this.lastValue=value;}},registerFormCallbacks:function(){Form.getElements(this.element).each(this.registerCallback,this);},registerCallback:function(element){if(element.type){switch(element.type.toLowerCase()){case'checkbox':case'radio':Event.observe(element,'click',this.onElementEvent.bind(this));break;default:Event.observe(element,'change',this.onElementEvent.bind(this));break;}}}});Form.Element.EventObserver=Class.create(Abstract.EventObserver,{getValue:function(){return Form.Element.getValue(this.element);}});Form.EventObserver=Class.create(Abstract.EventObserver,{getValue:function(){return Form.serialize(this.element);}});if(!window.Event)var Event={};Object.extend(Event,{KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,KEY_HOME:36,KEY_END:35,KEY_PAGEUP:33,KEY_PAGEDOWN:34,KEY_INSERT:45,cache:{},relatedTarget:function(event){var element;switch(event.type){case'mouseover':element=event.fromElement;break;case'mouseout':element=event.toElement;break;default:return null;}
return Element.extend(element);}});Event.Methods=(function(){var isButton;if(Prototype.Browser.IE){var buttonMap={0:1,1:4,2:2};isButton=function(event,code){return event.button==buttonMap[code];};}else if(Prototype.Browser.WebKit){isButton=function(event,code){switch(code){case 0:return event.which==1&&!event.metaKey;case 1:return event.which==1&&event.metaKey;default:return false;}};}else{isButton=function(event,code){return event.which?(event.which===code+1):(event.button===code);};}
return{isLeftClick:function(event){return isButton(event,0)},isMiddleClick:function(event){return isButton(event,1)},isRightClick:function(event){return isButton(event,2)},element:function(event){event=Event.extend(event);var node=event.target,type=event.type,currentTarget=event.currentTarget;if(currentTarget&&currentTarget.tagName){if(type==='load'||type==='error'||(type==='click'&&currentTarget.tagName.toLowerCase()==='input'&&currentTarget.type==='radio'))
node=currentTarget;}
if(node.nodeType==Node.TEXT_NODE)node=node.parentNode;return Element.extend(node);},findElement:function(event,expression){var element=Event.element(event);if(!expression)return element;var elements=[element].concat(element.ancestors());return Selector.findElement(elements,expression,0);},pointer:function(event){var docElement=document.documentElement,body=document.body||{scrollLeft:0,scrollTop:0};return{x:event.pageX||(event.clientX+
(docElement.scrollLeft||body.scrollLeft)-
(docElement.clientLeft||0)),y:event.pageY||(event.clientY+
(docElement.scrollTop||body.scrollTop)-
(docElement.clientTop||0))};},pointerX:function(event){return Event.pointer(event).x},pointerY:function(event){return Event.pointer(event).y},stop:function(event){Event.extend(event);event.preventDefault();event.stopPropagation();event.stopped=true;}};})();Event.extend=(function(){var methods=Object.keys(Event.Methods).inject({},function(m,name){m[name]=Event.Methods[name].methodize();return m;});if(Prototype.Browser.IE){Object.extend(methods,{stopPropagation:function(){this.cancelBubble=true},preventDefault:function(){this.returnValue=false},inspect:function(){return"[object Event]"}});return function(event){if(!event)return false;if(event._extendedByPrototype)return event;event._extendedByPrototype=Prototype.emptyFunction;var pointer=Event.pointer(event);Object.extend(event,{target:event.srcElement,relatedTarget:Event.relatedTarget(event),pageX:pointer.x,pageY:pointer.y});return Object.extend(event,methods);};}else{Event.prototype=Event.prototype||document.createEvent("HTMLEvents")['__proto__'];Object.extend(Event.prototype,methods);return Prototype.K;}})();Object.extend(Event,(function(){var cache=Event.cache;function getEventID(element){if(element._prototypeEventID)return element._prototypeEventID[0];arguments.callee.id=arguments.callee.id||1;return element._prototypeEventID=[++arguments.callee.id];}
function getDOMEventName(eventName){if(eventName&&eventName.include(':'))return"dataavailable";return eventName;}
function getCacheForID(id){return cache[id]=cache[id]||{};}
function getWrappersForEventName(id,eventName){var c=getCacheForID(id);return c[eventName]=c[eventName]||[];}
function createWrapper(element,eventName,handler){var id=getEventID(element);var c=getWrappersForEventName(id,eventName);if(c.pluck("handler").include(handler))return false;var wrapper=function(event){if(!Event||!Event.extend||(event.eventName&&event.eventName!=eventName))
return false;Event.extend(event);handler.call(element,event);};wrapper.handler=handler;c.push(wrapper);return wrapper;}
function findWrapper(id,eventName,handler){var c=getWrappersForEventName(id,eventName);return c.find(function(wrapper){return wrapper.handler==handler});}
function destroyWrapper(id,eventName,handler){var c=getCacheForID(id);if(!c[eventName])return false;c[eventName]=c[eventName].without(findWrapper(id,eventName,handler));}
function destroyCache(){for(var id in cache)
for(var eventName in cache[id])
cache[id][eventName]=null;}
if(window.attachEvent){window.attachEvent("onunload",destroyCache);}
if(Prototype.Browser.WebKit){window.addEventListener('unload',Prototype.emptyFunction,false);}
return{observe:function(element,eventName,handler){element=$(element);var name=getDOMEventName(eventName);var wrapper=createWrapper(element,eventName,handler);if(!wrapper)return element;if(element.addEventListener){element.addEventListener(name,wrapper,false);}else{element.attachEvent("on"+name,wrapper);}
return element;},stopObserving:function(element,eventName,handler){element=$(element);var id=getEventID(element),name=getDOMEventName(eventName);if(!handler&&eventName){getWrappersForEventName(id,eventName).each(function(wrapper){element.stopObserving(eventName,wrapper.handler);});return element;}else if(!eventName){Object.keys(getCacheForID(id)).each(function(eventName){element.stopObserving(eventName);});return element;}
var wrapper=findWrapper(id,eventName,handler);if(!wrapper)return element;if(element.removeEventListener){element.removeEventListener(name,wrapper,false);}else{element.detachEvent("on"+name,wrapper);}
destroyWrapper(id,eventName,handler);return element;},fire:function(element,eventName,memo){element=$(element);if(element==document&&document.createEvent&&!element.dispatchEvent)
element=document.documentElement;var event;if(document.createEvent){event=document.createEvent("HTMLEvents");event.initEvent("dataavailable",true,true);}else{event=document.createEventObject();event.eventType="ondataavailable";}
event.eventName=eventName;event.memo=memo||{};if(document.createEvent){element.dispatchEvent(event);}else{element.fireEvent(event.eventType,event);}
return Event.extend(event);}};})());Object.extend(Event,Event.Methods);Element.addMethods({fire:Event.fire,observe:Event.observe,stopObserving:Event.stopObserving});Object.extend(document,{fire:Element.Methods.fire.methodize(),observe:Element.Methods.observe.methodize(),stopObserving:Element.Methods.stopObserving.methodize(),loaded:false});(function(){var timer;function fireContentLoadedEvent(){if(document.loaded)return;if(timer)window.clearInterval(timer);document.fire("dom:loaded");document.loaded=true;}
if(document.addEventListener){if(Prototype.Browser.WebKit){timer=window.setInterval(function(){if(/loaded|complete/.test(document.readyState))
fireContentLoadedEvent();},0);Event.observe(window,"load",fireContentLoadedEvent);}else{document.addEventListener("DOMContentLoaded",fireContentLoadedEvent,false);}}else{document.write("<script id=__onDOMContentLoaded defer src=//:><\/script>");$("__onDOMContentLoaded").onreadystatechange=function(){if(this.readyState=="complete"){this.onreadystatechange=null;fireContentLoadedEvent();}};}})();Hash.toQueryString=Object.toQueryString;var Toggle={display:Element.toggle};Element.Methods.childOf=Element.Methods.descendantOf;var Insertion={Before:function(element,content){return Element.insert(element,{before:content});},Top:function(element,content){return Element.insert(element,{top:content});},Bottom:function(element,content){return Element.insert(element,{bottom:content});},After:function(element,content){return Element.insert(element,{after:content});}};var $continue=new Error('"throw $continue" is deprecated, use "return" instead');var Position={includeScrollOffsets:false,prepare:function(){this.deltaX=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;this.deltaY=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;},within:function(element,x,y){if(this.includeScrollOffsets)
return this.withinIncludingScrolloffsets(element,x,y);this.xcomp=x;this.ycomp=y;this.offset=Element.cumulativeOffset(element);return(y>=this.offset[1]&&y<this.offset[1]+element.offsetHeight&&x>=this.offset[0]&&x<this.offset[0]+element.offsetWidth);},withinIncludingScrolloffsets:function(element,x,y){var offsetcache=Element.cumulativeScrollOffset(element);this.xcomp=x+offsetcache[0]-this.deltaX;this.ycomp=y+offsetcache[1]-this.deltaY;this.offset=Element.cumulativeOffset(element);return(this.ycomp>=this.offset[1]&&this.ycomp<this.offset[1]+element.offsetHeight&&this.xcomp>=this.offset[0]&&this.xcomp<this.offset[0]+element.offsetWidth);},overlap:function(mode,element){if(!mode)return 0;if(mode=='vertical')
return((this.offset[1]+element.offsetHeight)-this.ycomp)/element.offsetHeight;if(mode=='horizontal')
return((this.offset[0]+element.offsetWidth)-this.xcomp)/element.offsetWidth;},cumulativeOffset:Element.Methods.cumulativeOffset,positionedOffset:Element.Methods.positionedOffset,absolutize:function(element){Position.prepare();return Element.absolutize(element);},relativize:function(element){Position.prepare();return Element.relativize(element);},realOffset:Element.Methods.cumulativeScrollOffset,offsetParent:Element.Methods.getOffsetParent,page:Element.Methods.viewportOffset,clone:function(source,target,options){options=options||{};return Element.clonePosition(target,source,options);}};if(!document.getElementsByClassName)document.getElementsByClassName=function(instanceMethods){function iter(name){return name.blank()?null:"[contains(concat(' ', @class, ' '), ' "+name+" ')]";}
instanceMethods.getElementsByClassName=Prototype.BrowserFeatures.XPath?function(element,className){className=className.toString().strip();var cond=/\s/.test(className)?$w(className).map(iter).join(''):iter(className);return cond?document._getElementsByXPath('.//*'+cond,element):[];}:function(element,className){className=className.toString().strip();var elements=[],classNames=(/\s/.test(className)?$w(className):null);if(!classNames&&!className)return elements;var nodes=$(element).getElementsByTagName('*');className=' '+className+' ';for(var i=0,child,cn;child=nodes[i];i++){if(child.className&&(cn=' '+child.className+' ')&&(cn.include(className)||(classNames&&classNames.all(function(name){return!name.toString().blank()&&cn.include(' '+name+' ');}))))
elements.push(Element.extend(child));}
return elements;};return function(className,parentElement){return $(parentElement||document.body).getElementsByClassName(className);};}(Element.Methods);Element.ClassNames=Class.create();Element.ClassNames.prototype={initialize:function(element){this.element=$(element);},_each:function(iterator){this.element.className.split(/\s+/).select(function(name){return name.length>0;})._each(iterator);},set:function(className){this.element.className=className;},add:function(classNameToAdd){if(this.include(classNameToAdd))return;this.set($A(this).concat(classNameToAdd).join(' '));},remove:function(classNameToRemove){if(!this.include(classNameToRemove))return;this.set($A(this).without(classNameToRemove).join(' '));},toString:function(){return $A(this).join(' ');}};Object.extend(Element.ClassNames.prototype,Enumerable);Element.addMethods();;var Scriptaculous={Version:'1.8.2',require:function(libraryName){try{document.write('<script type="text/javascript" src="'+libraryName+'"><\/script>');}catch(e){var script=document.createElement('script');script.type='text/javascript';script.src=libraryName;document.getElementsByTagName('head')[0].appendChild(script);}},REQUIRED_PROTOTYPE:'1.6.0.3',load:function(){function convertVersionString(versionString){var v=versionString.replace(/_.*|\./g,'');v=parseInt(v+'0'.times(4-v.length));return versionString.indexOf('_')>-1?v-1:v;}
if((typeof Prototype=='undefined')||(typeof Element=='undefined')||(typeof Element.Methods=='undefined')||(convertVersionString(Prototype.Version)<convertVersionString(Scriptaculous.REQUIRED_PROTOTYPE)))
throw("script.aculo.us requires the Prototype JavaScript framework >= "+
Scriptaculous.REQUIRED_PROTOTYPE);var js=/scriptaculous\.js(\?.*)?$/;$$('head script[src]').findAll(function(s){return s.src.match(js);}).each(function(s){var path=s.src.replace(js,''),includes=s.src.match(/\?.*load=([a-z,]*)/);(includes?includes[1]:'effects').split(',').each(function(include){Scriptaculous.require(path+include+'.js')});});}};Scriptaculous.load();;var myWidth=0;var myHeight=0;var myScroll=0;function fancyDIVShow(ctrl)
{getSize();txt='<div id="FancyDIV" style="position: absolute; left: -15px; top: -15px; width: 900px; height: 647px; visibility: visible;z-index: -1; opacity: 0.999999;"></div>';txt=txt+'<div onclick="fancyDIVClose()" id="ZoomClose" style="position: absolute; left: -15px; top: -15px; width:15px;height:15px; visibility: visible; opacity: 0.999999;z-index:10000"><img width="30" height="30" border="0" src="fileadmin/template_gpsauge/pics/FancyZoom/closebox.png" style="cursor: pointer;"/></div>';txt=txt+'<div id="ZoomContent" style="width:900px;height:647px;margin:20px;z-index:11000">'
txt=txt+document.getElementById(ctrl).innerHTML+'</div>';mytop=(myHeight-595)/2+myScroll;myleft=(myWidth-895)/2;document.getElementById("fancyBOX").style.position='absolute';document.getElementById("fancyBOX").style.top=mytop+'px';document.getElementById("fancyBOX").style.left=myleft+'px';document.getElementById("fancyBOX").innerHTML=txt;document.getElementById("fancyBOX").style.diplay='inline';new Effect.Appear('fancyBOX');}
function fancyDIVClose(){new Effect.Fade('fancyBOX',{duration:1.2,from:1,to:0});}
function getSize(){if(self.innerHeight){myWidth=window.innerWidth;myHeight=window.innerHeight;myScroll=window.pageYOffset;}else if(document.documentElement&&document.documentElement.clientHeight){myWidth=document.documentElement.clientWidth;myHeight=document.documentElement.clientHeight;myScroll=document.documentElement.scrollTop;}else if(document.body){myWidth=document.body.clientWidth;myHeight=document.body.clientHeight;myScroll=document.body.scrollTop;}
if(window.innerHeight&&window.scrollMaxY){myScrollWidth=document.body.scrollWidth;myScrollHeight=window.innerHeight+window.scrollMaxY;}else if(document.body.scrollHeight>document.body.offsetHeight){myScrollWidth=document.body.scrollWidth;myScrollHeight=document.body.scrollHeight;}else{myScrollWidth=document.body.offsetWidth;myScrollHeight=document.body.offsetHeight;}};function validateForm(theFormname,theFieldlist,goodMess,badMess,emailMess){var formObject=document[theFormname];if(!formObject){formObject=document.getElementById(theFormname);}
if(formObject&&theFieldlist){var index=1;var theField=split(theFieldlist,",",index);var msg="";var theEreg='';var theEregMsg='';var specialMode='';while(theField){theEreg='';specialMode='';if(theField=='_EREG'){specialMode=theField;index++;theEregMsg=unescape(split(theFieldlist,",",index));index++;theEreg=unescape(split(theFieldlist,",",index));}else if(theField=='_EMAIL'){specialMode=theField;}
if(specialMode){index++;theField=split(theFieldlist,",",index);}
index++;theLabel=unescape(split(theFieldlist,",",index));theField=unescape(theField);if(formObject[theField]){var fObj=formObject[theField];var type=fObj.type;if(!fObj.type){type="radio";}
var value="";switch(type){case"text":case"textarea":case"password":case"file":value=fObj.value;break;case"select-one":if(fObj.selectedIndex>=0){value=fObj.options[fObj.selectedIndex].value;}
break;case"select-multiple":var l=fObj.length;for(a=0;a<l;a++){if(fObj.options[a].selected){value+=fObj.options[a].value;}}
break;case"radio":case"checkbox":var len=fObj.length;if(len){for(a=0;a<len;a++){if(fObj[a].checked){value=fObj[a].value;}}}else{if(fObj.checked){value=fObj.value;}}
break;default:value=1;}
switch(specialMode){case"_EMAIL":var theRegEx_notValid=new RegExp("(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)","gi");var theRegEx_isValid=new RegExp("^.+\@[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})$","");if(!theRegEx_isValid.test(value)){msg+="\n"+theLabel+' ('+(emailMess?unescape(emailMess):'Email address not valid!')+')';}
break;case"_EREG":var theRegEx_isValid=new RegExp(theEreg,"");if(!theRegEx_isValid.test(value)){msg+="\n"+theLabel+' ('+theEregMsg+')';}
break;default:if(!value){msg+="\n"+theLabel;}}}
index++;theField=split(theFieldlist,",",index);}
if(msg){var theBadMess=unescape(badMess);if(!theBadMess){theBadMess="You must fill in these fields:";}
theBadMess+="\n";alert(theBadMess+msg);return false;}else{var theGoodMess=unescape(goodMess);if(theGoodMess){alert(theGoodMess);}
return true;}}}
function split(theStr1,delim,index){var theStr=''+theStr1;var lengthOfDelim=delim.length;sPos=-lengthOfDelim;if(index<1){index=1;}
for(a=1;a<index;a++){sPos=theStr.indexOf(delim,sPos+lengthOfDelim);if(sPos==-1){return null;}}
ePos=theStr.indexOf(delim,sPos+lengthOfDelim);if(ePos==-1){ePos=theStr.length;}
return(theStr.substring(sPos+lengthOfDelim,ePos));};a2a_localize={Share:"Teilen",Save:"Sichern",Subscribe:"Abonnieren",Email:"E-Mail",Bookmark:"Lesezeichen",ShowAll:"Alle anzeigen",ShowLess:"Weniger anzeigen",FindServices:"Finde Dienste",FindAnyServiceToAddTo:"Finde deinen Bookmarkdienst",PoweredBy:"Unterst&#252;tzt von",ShareViaEmail:"Teile per E-Mail",SubscribeViaEmail:"Abonniere per E-Mail",BookmarkInYourBrowser:"Lesezeichen im Netzbetrachter setzen",BookmarkInstructions:"Benutze die Tastenkombination Strg+D, um die Seite zu speichern",AddToYourFavorites:"Als Favorit setzen",SendFromWebOrProgram:"Sende diese Seite von einem Mailservice oder -programm aus",EmailProgram:"E-Mail-Programm"};a2a_add_services=[{name:'Favoriten',safe_name:'favoriten',icon:'http://www.favoriten.de/buttons/16x16_3.gif',home:'http://www.favoriten.de/'}];;var a2a_menu_type,a2a_linkname=a2a_linkname||document.title||location.href,a2a_linkurl,a2a_linkname_escape,a2a_ssl=("https:"==document.location.protocol)?"https://addtoany.simplecdn.net/menu":false,a2a_static_server=a2a_static_server||((a2a_ssl)?a2a_ssl:"http://static.addtoany.com/menu"),a2a_dd_css,a2a_email_menu=(a2a_menu_type=="mail")?1:false,a2a_show_title,a2a_onclick,a2a_num_services,a2a_hide_embeds,a2a_prioritize,a2a_show_services,a2a_add_services,a2a_custom_services,a2a_templates=a2a_templates||{},a2a_orientation,a2a_track_links=a2a_track_links||false,a2a_track_links_key=a2a_track_links_key||"",a2a_awesm,a2a_tracking_url,a2a_track_pub,a2a_api_script,a2a_color_main,a2a_color_bg,a2a_color_border,a2a_color_link_text,a2a_color_link_text_hover,a2a_color_arrow,a2a_color_arrow_hover,a2a_border_size=a2a_border_size||8,a2a_find_text_color,a2a_find_text_color_focused,a2a_localize=a2a_localize||"";var a2a=a2a||{transparent_img_url:a2a_static_server+"/transparent.gif",icons_img_url:a2a_static_server+"/icons_18.png",head_tag:document.getElementsByTagName("head")[0],init:function(g){if(g){a2a.type=g}window["a2a"+a2a.type+"_init"]=1;var i=a2a.get_all_a2a_dd();a2a.n=a2a.next_index_num(i);a2a["n"+a2a.n]={};var f=a2a.set_this_index(i);a2a["n"+a2a.n].type=a2a.type;if(f){if((!f.getAttribute("onclick")||(f.getAttribute("onclick")+"").indexOf("a2a_")==-1)&&(!f.getAttribute("onmouseover")||(f.getAttribute("onmouseover")+"").indexOf("a2a_")==-1)){if(a2a[a2a.type].onclick){f.onclick=function(a){a2a.show_dropdown(f);return false}}else{f.onmouseover=function(){a2a.show_dropdown(f)};f.onmouseout=function(){a2a.onMouseOut_delay()}}}}if(a2a_linkname_escape==1){var d=a2a.get_all_a2a_dd();var c=a2a.getByClass("a2a_linkname_escape",d[d.length-1])[0];if(c){a2a_linkname=c.innerHTML}}var h=document.createElement("div");h.innerHTML=a2a_linkname;entity_decode_node=h.childNodes[0];if(entity_decode_node){a2a_linkname=entity_decode_node.nodeValue}delete h;a2a["n"+a2a.n].linkname=a2a_linkname;a2a["n"+a2a.n].linkurl=a2a_linkurl||location.href;a2a["n"+a2a.n].orientation=a2a_orientation||false;a2a["n"+a2a.n].hide_embeds=(a2a_hide_embeds==0||a2a_hide_embeds==false)?false:true;a2a[a2a.type].show_services=a2a_show_services||false;a2a.show_srvcs();a2a.no_brdr(i);a2a_onclick=a2a_linkname_escape=a2a_show_title=a2a_show_services=a2a_custom_services=a2a_orientation=a2a_num_services=false;a2a_hide_embeds=true;if(!a2a_locale){a2a_menu_type=false;a2a_email_menu=false}},get_all_a2a_dd:function(){return a2a.HTMLcollToArray(document.getElementsByName("a2a_dd")).concat(a2a.getByClass("a2a_dd",document))},next_index_num:function(h){var d=h,g=d.length,c=new Array(),b=0;for(var f=0;f<g;f++){if(typeof d[f].a2a_index!=="undefined"){c[b]=parseInt(d[f].a2a_index);b++}}if(c.length>0){return c.sort(function(j,i){return i-j})[0]+1}else{return 0}},set_this_index:function(f){var b=f,d=b.length,g=a2a.n;for(var c=0;c<d;c++){if(typeof b[c].a2a_index==="undefined"||b[c].a2a_index===""){b[c].a2a_index=g;return b[c]}}},get_this_index:function(d){var b=a2a.get_all_a2a_dd(),f=b.length;for(var c=0;c<f;c++){if(d.a2a_index==b[c].a2a_index){return b[c].a2a_index}}},gEl:function(a){return document.getElementById(a)},getByClass:function(b,c,a){if(document.getElementsByClassName&&Object.prototype.getElementsByClassName===document.getElementsByClassName){a2a.getByClass=function(k,j,n){j=j||a2a.gEl("a2a"+a2a.type+"_dropdown");var d=j.getElementsByClassName(k),m=(n)?new RegExp("\\b"+n+"\\b","i"):null,f=[],h;for(var g=0,l=d.length;g<l;g+=1){h=d[g];if(!m||m.test(h.nodeName)){f.push(h)}}return f}}else{if(document.evaluate){a2a.getByClass=function(o,n,r){r=r||"*";n=n||a2a.gEl("a2a"+a2a.type+"_dropdown");var g=o.split(" "),p="",l="http://www.w3.org/1999/xhtml",q=(document.documentElement.namespaceURI===l)?l:null,h=[],d,f;for(var i=0,k=g.length;i<k;i+=1){p+="[contains(concat(' ', @class, ' '), ' "+g[i]+" ')]"}try{d=document.evaluate(".//"+r+p,n,q,0,null)}catch(m){d=document.evaluate(".//"+r+p,n,null,0,null)}while((f=d.iterateNext())){h.push(f)}return h}}else{a2a.getByClass=function(s,r,v){v=v||"*";r=r||a2a.gEl("a2a"+a2a.type+"_dropdown");var i=s.split(" "),u=[],d=(v==="*"&&r.all)?r.all:r.getElementsByTagName(v),q,n=[],p;for(var j=0,f=i.length;j<f;j+=1){u.push(new RegExp("(^|\\s)"+i[j]+"(\\s|$)"))}for(var h=0,t=d.length;h<t;h+=1){q=d[h];p=false;for(var g=0,o=u.length;g<o;g+=1){p=u[g].test(q.className);if(!p){break}}if(p){n.push(q)}}return n}}}return a2a.getByClass(b,c,a)},HTMLcollToArray:function(g){var b=new Array(),f=g.length;for(var d=0;d<f;d++){b[b.length]=g[d]}return b},add_event:function(c,b,a){if(!c.addEventListener){c.attachEvent("on"+b,a)}else{c.addEventListener(b,a,false)}},onLoad:function(a){var b=window.onload;if(typeof window.onload!="function"){window.onload=a}else{window.onload=function(){if(b){b()}a()}}},in_array:function(f,a,b){if(typeof a=="object"){f=f.toLowerCase();var c=a.length;for(var d=0;d<c;d++){if(b){if(f==a[d].toLowerCase()){return a[d]}}else{if(f.indexOf(a[d].toLowerCase())!=-1&&a[d]!==""){return a[d]}}}}return false},onMouseOut_delay:function(){var a=a2a.type;if(a2a.gEl("a2a"+a+"_dropdown").style.display!="none"&&!a2a[a].find_focused&&!a2a[a].inFocus){a2a[a].delay=setTimeout("a2a.toggle_dropdown('none', '"+a+"')",501)}},onMouseOver_stay:function(){if(typeof a2a[a2a.type].delay!="undefined"){clearTimeout(a2a[a2a.type].delay)}},toggle_dropdown:function(b,a){a2a.gEl("a2a"+a+"_dropdown").style.display=b;a2a.gEl("a2a"+a+"_border").style.display=b;a2a.onMouseOver_stay();if(b=="none"){a2a.embeds_visibility(true);if(!window.addEventListener){document.detachEvent("onmousedown",a2a.doc_mousedown_check_scroll);document.detachEvent("onmouseup",a2a[a].doc_mouseup_toggle_dropdown)}else{document.removeEventListener("mousedown",a2a.doc_mousedown_check_scroll,false);document.removeEventListener("mouseup",a2a[a].doc_mouseup_toggle_dropdown,false)}delete a2a[a].doc_mouseup_toggle_dropdown}if(a2a[a].prev_keydown){document.onkeydown=a2a[a].prev_keydown}else{document.onkeydown=""}},getPos:function(b){var a=0,c=0;do{a+=b.offsetLeft||0;c+=b.offsetTop||0;b=b.offsetParent}while(b);return[a,c]},getDocDims:function(c){var a=0,b=0;if(typeof(window.innerWidth)=="number"){a=window.innerWidth;b=window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){a=document.documentElement.clientWidth;b=document.documentElement.clientHeight}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){a=document.body.clientWidth;b=document.body.clientHeight}}}if(c=="w"){return a}else{return b}},getScrollDocDims:function(c){var a=0,b=0;if(typeof(window.pageYOffset)=="number"){a=window.pageXOffset;b=window.pageYOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){a=document.body.scrollLeft;b=document.body.scrollTop}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){a=document.documentElement.scrollLeft;b=document.documentElement.scrollTop}}}if(c=="w"){return a}else{return b}},show_more_less:function(d){a2a.onMouseOver_stay();var g=a2a.gEl("a2a"+a2a.type+"_show_more_less"),h=a2a.type,a;if(a2a[h].show_all||d==1){a2a[h].show_all=false;a=(a2a_color_arrow=="fff")?"_wt":"";g.firstChild.className="a2a_i_darr"+a;g.title=a2a_localize.ShowAll;a2a.statusbar(g,a2a_localize.ShowAll);if(d==0){a2a.default_services();a2a.fluids();a2a.focus_find()}}else{a2a[h].show_all=true;var c=a2a[h].main_services,b=c.length;for(var f=0;f<b;f++){c[f].style.display=""}a=(a2a_color_arrow=="fff")?"_wt":"";g.firstChild.className="a2a_i_uarr"+a;g.title=a2a_localize.ShowLess;a2a.statusbar(g,a2a_localize.ShowLess);a2a.fluids();a2a.focus_find()}a2a.embeds_visibility(false);if(d==0){return false}},focus_find:function(){var b=a2a.gEl("a2a"+a2a.type+"_find");if(b.parentNode.style.display!="none"){b.focus()}b.style.color="#"+a2a_find_text_color_focused},blur_find:function(){var b=a2a.gEl("a2a"+a2a.type+"_find");if(b.value===""){b.style.color="#"+a2a_find_text_color}a2a[a2a.type].find_focused=false;if(!a2a[a2a.type].onclick){a2a.onMouseOut_delay()}},fluids:function(){var f=a2a.type,b=a2a.gEl("a2a"+f+"_dropdown");b.style.width="";a2a.gEl("a2a"+f+"_cols_container").style.width="";a2a.gEl("a2a"+f+"_title_container").style.display="none";var c=(b.clientWidth||b.offsetWidth);b.style.width=c+"px";if(a2a[f].show_title){a2a.gEl("a2a"+f+"_title_container").style.display="block"}else{a2a.gEl("a2a"+f+"_title_container").style.display="none"}a2a.gEl("a2a"+f+"_cols_container").style.width="100%";var a=a2a.gEl("a2a"+f+"_border"),d=a2a_border_size;if(b.style.left){a.style.left=parseInt(b.style.left)-d+"px";a.style.top=parseInt(b.style.top)-d+"px"}a2a.gEl("a2a"+f+"_border").style.display="block";a.style.width=(b.clientWidth||b.offsetWidth)+(d*2)+"px";a.style.height=(b.clientHeight||b.offsetHeight)+(d*2)+"px"},default_services:function(f){var c=f||a2a.type,g=a2a[c].main_services_col_1,a=g.length,d=a2a[c].main_services_col_2,h=d.length;for(var b=0;b<a;b++){if(b<parseInt(a2a[c].num_services/2)){g[b].style.display=""}else{g[b].style.display="none"}}for(var b=0;b<h;b++){if(b<parseInt(a2a[c].num_services/2)){d[b].style.display=""}else{d[b].style.display="none"}}},do_reset:function(){a2a[a2a.type].inFocus=false;a2a.show_more_less(1);a2a.fluids();a2a.focus_find();a2a.embeds_visibility(false)},do_find:function(){var g=a2a.type,d=a2a[g].main_services,c=d.length;var b=a2a.gEl("a2a"+g+"_find").value;if(b!==""){var h=b.split(" "),a=a2a.in_array;for(var f=0;f<c;f++){var j=d[f].serviceNameLowerCase;if(a(j,h,false)){d[f].style.display=""}else{d[f].style.display="none"}}}else{if(a2a[g].tab!="DEFAULT"){a2a.tabs(a2a[g].tab)}else{a2a.default_services()}}a2a.do_reset()},tabs:function(a,b){var c=a2a.getByClass("a2a_tab_selected")[0];if(c.id=="a2afeed_DEFAULT"&&a=="DEFAULT"){return true}c.className=c.className.replace(/a2a_tab_selected/,"");a2a.gEl("a2a"+a2a.type+"_"+a).className+=" a2a_tab_selected";if(a!="DEFAULT"){a2a.gEl("a2a"+a2a.type+"_show_more_less").style.display="none";a2a.gEl("a2a"+a2a.type+"_find_container").style.display="none";a2a.gEl("a2a"+a2a.type+"_col1").style.display="none";a2a.gEl("a2a"+a2a.type+"_col2").style.display="none"}else{a2a.gEl("a2a"+a2a.type+"_show_more_less").style.display="block";a2a.gEl("a2a"+a2a.type+"_find_container").style.display="block";a2a.gEl("a2a"+a2a.type+"_col1").style.display="block";a2a.gEl("a2a"+a2a.type+"_col2").style.display="block";a2a.default_services()}if(a!="EMAIL"){a2a.gEl("a2a"+a2a.type+"_2_col1").style.display="none";a2a.gEl("a2a"+a2a.type+"_2_col2").style.display="none"}else{a2a.gEl("a2a"+a2a.type+"_2_col1").style.display="block";a2a.gEl("a2a"+a2a.type+"_2_col2").style.display="block"}a2a.gEl("a2a"+a2a.type+"_note_BROWSER").style.display="none";a2a.gEl("a2a"+a2a.type+"_note_EMAIL").style.display="none";if(b){a2a.gEl("a2a"+a2a.type+"_note_"+a).style.display="block"}a2a.do_reset();return false},statusbar:function(a,c){if(window.opera){return}var b=a2a.gEl("a2a"+a2a.type+"_powered_by");if(!b.orig){b.orig=b.innerHTML}a.onmouseover=function(){clearTimeout(a2a[a2a.type].statusbar_delay);b.innerHTML=c;b.style.textAlign="left"};a.onmouseout=function(){a2a[a2a.type].statusbar_delay=setTimeout(function(){b.innerHTML=b.orig;b.style.textAlign="center"},300)}},selection:function(){var b;if(window.getSelection){b=window.getSelection()}else{if(document.selection){b=document.selection.createRange();b=(b.text)?b.text:""}}if(b&&b!=""){return b}if(a2a["n"+a2a.n].linkurl==location.href){var g=document.getElementsByTagName("meta"),a=g.length;for(var c=0;c<a;c++){var d=g[c].getAttribute("name");if(d){if(d.toLowerCase()=="description"){var f=g[c].getAttribute("content");break}}}}return(f)?f.substring(0,1200):""},collections:function(a){a2a[a].main_services_col_1=a2a.getByClass("a2a_i",a2a.gEl("a2a"+a+"_col1"));a2a[a].main_services_col_2=a2a.getByClass("a2a_i",a2a.gEl("a2a"+a+"_col2"));a2a[a].main_services=a2a[a].main_services_col_1.concat(a2a[a].main_services_col_2);a2a[a].email_services=a2a.getByClass("a2a_i",a2a.gEl("a2a"+a+"_2_col1")).concat(a2a.getByClass("a2a_i",a2a.gEl("a2a"+a+"_2_col2")));a2a[a].all_services=a2a[a].main_services.concat(a2a[a].email_services)},linker:function(f){var d=a2a.type,h=encodeURIComponent(a2a["n"+a2a.n].linkurl).replace(/'/g,"%27"),a=encodeURIComponent(a2a["n"+a2a.n].linkname).replace(/'/g,"%27"),c=encodeURIComponent(a2a.selection()).replace(/'/g,"%27"),g=(a2a_track_links&&(d=="page"||d=="mail"))?"&linktrack="+a2a_track_links+"&linktrackkey="+encodeURIComponent(a2a_track_links_key):"";var b=f.getAttribute("customserviceuri")||f.customserviceuri||false;if(b){f.href=b.replace(/A2A_LINKNAME_ENC/,a).replace(/A2A_LINKURL_ENC/,h).replace(/A2A_LINKNOTE_ENC/,c)}else{f.href="http://www.addtoany.com/add_to/"+f.safename+"?linkurl="+h+"&linkname="+a+g+((a2a_awesm)?"&linktrack_parent="+a2a_awesm:"")+((f.safename=="twitter"&&a2a_templates.twitter)?"&template="+encodeURIComponent(a2a_templates.twitter):"")+((d=="feed")?"&type=feed":"")+"&linknote="+c}setTimeout(function(){f.href="/"},500);return true},show_dropdown:function(a){a2a.n=a2a.get_this_index(a);a2a.type=a2a["n"+a2a.n].type;a2a.gEl("a2a"+a2a.type+"_title").value=a2a["n"+a2a.n].linkname;a2a.toggle_dropdown("block",a2a.type);var l=a2a.gEl("a2a"+a2a.type+"_dropdown"),k=a2a_border_size,j=[l.clientWidth+(k*2),l.clientHeight+(k*2)],d=a.getElementsByTagName("img")[0],g,h,c;if(d){g=a2a.getPos(d);h=d.clientWidth;c=d.clientHeight}else{g=a2a.getPos(a);h=a.offsetWidth;c=a.offsetHeight}var f=a2a.getDocDims("w"),m=a2a.getDocDims("h"),i=a2a.getScrollDocDims("w"),b=a2a.getScrollDocDims("h");if(g[0]-i+j[0]+h>f){g[0]=g[0]-j[0]+h-8}if(a2a["n"+a2a.n].orientation=="up"||a2a["n"+a2a.n].orientation!="down"&&g[1]-b+j[1]+c>m&&g[1]>j[1]){g[1]=g[1]-j[1]-c}l.style.left=k+g[0]+2+"px";l.style.top=k+g[1]+c+"px";a2a.fluids();if(!a2a[a2a.type].doc_mouseup_toggle_dropdown){a2a.doc_mousedown_check_scroll=function(){a2a.last_scroll_pos=a2a.getScrollDocDims("h")};a2a[a2a.type].doc_mouseup_toggle_dropdown=(function(n){return function(){if(a2a.last_scroll_pos==a2a.getScrollDocDims("h")){a2a.toggle_dropdown("none",n)}}})(a2a.type);if(!window.addEventListener){document.attachEvent("onmousedown",a2a.doc_mousedown_check_scroll);document.attachEvent("onmouseup",a2a[a2a.type].doc_mouseup_toggle_dropdown)}else{document.addEventListener("mousedown",a2a.doc_mousedown_check_scroll,false);document.addEventListener("mouseup",a2a[a2a.type].doc_mouseup_toggle_dropdown,false)}}a2a.embeds_visibility(false);document.onkeydown=a2a.checkKey;if(a2a.type=="feed"){a2a.gEl("a2a"+a2a.type+"_DEFAULT").href=a2a["n"+a2a.n].linkurl;if(a2a_fb_feedcount&&!a2a_ssl){a2a.feedburner_feedcount("init")}}a2a.a2a_track("test3");if(a2a_track_pub){a2a.a2a_track("z_"+a2a_track_pub)}},embeds_visibility:function(d){if(!a2a["n"+a2a.n].hide_embeds){return}if(!d){var b=a2a.gEl("a2a"+a2a.type+"_dropdown"),k=[parseInt(b.style.left),parseInt(b.style.top)],j=[b.clientWidth,b.clientHeight]}if(!a2a.embeds){a2a.embeds=a2a.HTMLcollToArray(document.getElementsByTagName("object")).concat(a2a.HTMLcollToArray(document.getElementsByTagName("embed"))).concat(a2a.HTMLcollToArray(document.getElementsByTagName("applet")))}var c=a2a.embeds,h=c.length,g;for(var f=0;f<h;f++){g="visible";if(!d){aPos=a2a.getPos(c[f]);aDim=[c[f].clientWidth,c[f].clientHeight];if(k[0]<aPos[0]+aDim[0]&&k[1]<aPos[1]+aDim[1]&&k[0]+j[0]>aPos[0]&&k[1]+j[1]>aPos[1]){g="hidden"}}c[f].style.visibility=g}},no_brdr:function(g){var c=g,b=c.length;for(var d=0;d<b;d++){var f=c[d];if(f.hasChildNodes()&&typeof f.firstChild.style!="undefined"){f.firstChild.style.borderWidth=0}}},bmBrowser:function(a){var b=a2a_localize.Bookmark;if(document.all){if(a==1){b=a2a_localize.AddToYourFavorites}else{window.external.AddFavorite(a2a["n"+a2a.n].linkurl,a2a["n"+a2a.n].linkname)}}else{if(a!=1){a2a.gEl("a2apage_note_BROWSER").innerHTML='<div class="a2a_note_note">'+a2a_localize.BookmarkInstructions+"</div>";a2a.tabs("BROWSER",true)}}if(a==1){return b}},loadExtScript:function(c,f,d){var b=document.createElement("script");b.charset="UTF-8";b.src=c;document.getElementsByTagName("head")[0].appendChild(b);if(typeof f=="function"){var a=setInterval(function(){var g=false;try{g=f.call()}catch(h){}if(g){clearInterval(a);d.call()}},100)}},domready_init:function(){var c=window.a2a_domready={},h=false,f=false,g=[];function a(){if(!f){f=true;if(g){for(var i=0;i<g.length;i++){g[i].call(window,[])}g=[]}}}function b(i){var j=window.onload;if(typeof window.onload!="function"){window.onload=i}else{window.onload=function(){if(j){j()}i()}}}function d(){if(h){return}h=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);a()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);a()}});if(document.documentElement.doScroll&&window==window.top){(function(){if(f){return}try{document.documentElement.doScroll("left")}catch(i){setTimeout(arguments.callee,0);return}a()})()}}}b(a)}c.ready=function(j,i){d();if(f){j.call(window,[])}else{g.push(function(){return j.call(window,[])})}};d()},gas:function(){var g3="le",g1="go",g2="og",g=g1+g2+g3;function gas_vars(name,value){window[g+"_"+name]=value}function gas_ifrs(){return document.getElementsByName(g+"_ads_frame")}function c_isset(){if(document.cookie.length>0){var cookie=document.cookie.indexOf("__utas=");if(cookie!=-1){return true}else{return false}}}function c_ok(){if(c_isset()){return false}var date=new Date();date.setDate(date.getDate()+7);document.cookie="__utas=1; expires="+date.toGMTString()+"; path=/";if(!c_isset()){return false}else{return true}}var ifr=gas_ifrs(),ie=/*@cc_on!@*/false;if(ifr[0]&&ifr.length<3&&ie&&c_ok()){var a2a_as_last_num=ifr.length-1,a2a_as_last=ifr[a2a_as_last_num]}else{return}a2a_as_last.style.display="none";gas_vars("ad_client","pub-7957824725474864");a2a_gas_params={};var query=a2a_as_last.src.substring(a2a_as_last.src.indexOf("?")+1);var vars=query.split("&");for(var i=0;i<vars.length;i++){var pair=vars[i].split("=");a2a_gas_params[pair[0]]=pair[1]}if(a2a_gas_params.slotname){return}else{gas_vars("ad_width",a2a_gas_params.w);gas_vars("ad_height",a2a_gas_params.h);gas_vars("ad_format",a2a_gas_params.format);gas_vars("ad_type",a2a_gas_params.ad_type);gas_vars("ad_channel","2542620937");gas_vars("color_border",a2a_gas_params.color_border);gas_vars("color_bg",a2a_gas_params.color_bg);gas_vars("color_link",a2a_gas_params.color_link);gas_vars("color_text",a2a_gas_params.color_text);gas_vars("color_url",a2a_gas_params.color_url);gas_vars("ui_features",decodeURIComponent(a2a_gas_params.ui));var a2a_as_last_parent=a2a_as_last.parentNode;a2a_as_last_parent.removeChild(a2a_as_last);var prev_afs=window[g+"_prev_ad_formats_by_region"][""].split(","),last_client=a2a_gas_params.client.substr(3);prev_afs.pop();window[g+"_prev_ad_formats_by_region"][""]=prev_afs.join(",");gas_vars("unique_id",window[g+"_unique_id"]-1);gas_vars("num_ad_slots",window[g+"_num_ad_slots"]-1);window[g+"_num_slots_by_client"][last_client]=window[g+"_num_slots_by_client"][last_client]-1}if("https:"!=document.location.protocol){document.write(unescape("%3Cscript src='http://pagead2."+g+"syndication.com/pagead/show_ads.js' type='text/javascript'%3E%3C/script%3E"))}a2a_domready.ready(function(){var ifr=gas_ifrs(),our_ad=ifr[a2a_as_last_num];if(!our_ad){return}if("ins"==our_ad.parentNode.parentNode.tagName.toLowerCase()){our_ad.parentNode.parentNode.style.display="none"}a2a_as_last_parent.appendChild(our_ad);our_ad.style.zoom="1"})},track:function(b){var a=new Image(1,1);a.src=(b)?b:"http://www.shareaholic.com/api/share/?v=1&apitype=3&apikey=4aeb47485a0ed83ae7436f95e59f79b2&service=51&link="+a2a["n"+a2a.n].linkurl+"&title="+a2a["n"+a2a.n].linkname+"&notes="+a2a.selection();a.width=1;a.height=1},a2a_track:function(o,h){var q=(a2a.type!="feed")?"Share":"Subscribe";if(document.cookie.length>0){var m="__utma_a2a",s=document.cookie.indexOf(m+"=");if(s!=-1){s=s+m.length+1;var c=document.cookie.indexOf(";",s);if(c==-1){c=document.cookie.length}var p=unescape(document.cookie.substring(s,c))}}var k=new Date(),b=Math.round(k.getTime()/1000),d=Math.floor(Math.random()*9999999999),n=(p)?p.split("."):new Array(),r=n[1]||d,i=n[2]||b,j=n[4]||b,a=b,f=(n[5])?parseInt(n[5])+1:1,g="1."+r+"."+i+"."+j+"."+a+"."+f;k.setDate(k.getDate()+730);document.cookie="__utma_a2a="+escape(g)+"; expires="+k.toGMTString()+"; path=/";var l="http"+((a2a_ssl)?"s":"")+"://www.google-analytics.com/__utm.gif?&utmwv=4.3utmn="+d+"&utmhn="+window.location.hostname+"&utmt=event&utme=5("+q+"%20menu*"+encodeURIComponent(o)+((h)?"*"+encodeURIComponent(h):"")+")&utmcs="+((document.characterSet)?document.characterSet:document.charset)+"&utmsr="+screen.width+"x"+screen.height+"&utmsc="+screen.colorDepth+"-bit&utmul="+(navigator.browserLanguage||navigator.language).toLowerCase()+"&utmdt="+document.title+"&utmhid="+d+"&utmr="+((document.referrer)?document.referrer:"-")+"&utmp="+window.location.pathname+"&utmac="+((q=="Share")?"UA-1244922-3":"UA-1244922-4")+"&utmcc=__utma%3D"+g+"%3B";a2a.track(l)},GA:function(){var a=a2a.type;a2a.onLoad(function(){if(typeof urchinTracker=="function"){var g="old"}else{if(typeof pageTracker=="object"){var g="new"}else{return}}var h=a2a[a].all_services,c=h.length;if(a=="page"){h.push(a2a.gEl("a2apage_any_email"),a2a.gEl("a2apage_email_client"))}var m,b,d,j=(a=="feed")?"subscriptions":"pages",k=(a=="feed")?"AddToAny Subscribe Button":"AddToAny Share/Save Button",l;for(var f=0;f<c;f++){m=h[f];d=m.getAttribute("safename")||m.safename;if(g=="old"){l=(function(n,i){return function(){urchinTracker("/addtoany.com/"+i);urchinTracker("/addtoany.com/"+i+"/"+a2a["n"+a2a.n].linkurl);urchinTracker("/addtoany.com/services/"+n)}})(d,j)}else{b=m.getAttribute("servicename")||m.servicename;l=(function(p,o,i,n){return function(){pageTracker._trackEvent(n,p,a2a["n"+a2a.n].linkurl)}})(b,d,j,k)}a2a.add_event(m,"click",l)}})},show_srvcs:function(){var j=a2a.type,h=a2a[j].show_services,g=h.length;if(h){var a,c=a2a.get_all_a2a_dd(),b=c[a2a.n];for(var d=0;d<g;d++){a=a2a.gEl("a2a"+j+"_"+h[d].toLowerCase());if(a){var f=a.id.substr(4+(String(j).length));var k=document.createElement("a");k.rel="nofollow";k.className="a2a_i a2a_ind";k.href="http://www.addtoany.com/add_to/"+f+"?linkurl="+encodeURIComponent(a2a["n"+a2a.n].linkurl).replace(/'/g,"%27")+"&type="+j+"&linkname="+encodeURIComponent(a2a["n"+a2a.n].linkname).replace(/'/g,"%27")+"&linknote=";k.target="_blank";k.appendChild(a2a_transparent_img.cloneNode(true));k.firstChild.className=a.firstChild.className;b.parentNode.insertBefore(k,b)}}}},add_srvcs:function(){var d=a2a.type;if(a2a[d].custom_services){var c=a2a[d].custom_services,a=c.length,g=a2a.mk_srvc,f=0;c.reverse();for(var b=0;b<a;b++){if(c[b]){f+=1;srvc=g(c[b][0],c[b][0].replace(" ","_"),false,false,false,c[b][1],c[b][2]);if(f%2!=0){a2a.gEl("a2a"+d+"_col1").insertBefore(srvc,a2a.gEl("a2a"+d+"_col1").firstChild)}else{a2a.gEl("a2a"+d+"_col2").insertBefore(srvc,a2a.gEl("a2a"+d+"_col2").firstChild)}}}}if(d=="page"&&a2a_add_services){var c=a2a_add_services,a=c.length,g=a2a.mk_srvc,f=0,h=a2a_ssl;for(var b=0;b<a;b++){if(c[b]){f+=1;if(h){c[b].icon=false}srvc=g(c[b].name,c[b].safe_name,c[b].home,false,false,false,c[b].icon);if(f%2!=0){a2a.gEl("a2a"+d+"_col1").insertBefore(srvc,a2a.gEl("a2a"+d+"_col1").firstChild)}else{a2a.gEl("a2a"+d+"_col2").insertBefore(srvc,a2a.gEl("a2a"+d+"_col2").firstChild)}}}}},prioritize_services:function(){if(!a2a_prioritize){return false}a2a_prioritize.reverse();var b=a2a_prioritize.length,d,c=0;for(var a=0;a<b;a++){d=a2a.gEl("a2a"+a2a.type+"_"+a2a_prioritize[a].toLowerCase());if(d){c+=1;if(c%2!=0){a2a.gEl("a2a"+a2a.type+"_col1").insertBefore(d,a2a.gEl("a2a"+a2a.type+"_col1").firstChild)}else{a2a.gEl("a2a"+a2a.type+"_col2").insertBefore(d,a2a.gEl("a2a"+a2a.type+"_col2").firstChild)}}}},user_services:function(){if(!window.postMessage||a2a_static_server!=((a2a_ssl)?a2a_ssl:"http://static.addtoany.com/menu")){a2a.history();return}var a=a2a.type,b=document.createElement("iframe");b.id="a2a"+a+"_sm_ifr";b.style.width=b.style.height=b.width=b.height=1;b.style.top=b.style.left=b.frameborder=b.style.border=0;b.style.position="absolute";b.style.zIndex=100000;b.setAttribute("transparency","true");b.setAttribute("allowTransparency","true");b.setAttribute("frameBorder","0");b.src=a2a_static_server+"/sm1.html#"+a+";"+location.href.split("#")[0];if(window.postMessage&&!a2a.message_event){a2a.add_event(window,"message",function(g){if(g.origin.substr(g.origin.length-13)==".addtoany.com"){var f=g.data,c=f.split("=")[1],d=f.substr(4,4);c=(c!="")?c.split(","):false;a2a.gEl("a2a"+d+"_sm_ifr").style.display="none";a2a.history(c,d)}});a2a.message_event=1}document.body.insertBefore(b,document.body.firstChild)},history:function(r,c){var l=c||a2a.type,v=a2a.getByClass("a2a_i",a2a.gEl("a2a"+l+"_col1")),u=a2a.getByClass("a2a_i",a2a.gEl("a2a"+l+"_col2")),h=new Array(),x=v.length+u.length,j=Math.abs(v.length-u.length);for(var o=0,b=v.length-1,a=u.length-1;o<x+j;o++){if(o%2&&o!=0&&u[a]){h[h.length]=u[a];a--}else{if(v[b]){h[h.length]=v[b];b--}}}var n=document.createElement("div");n.id="a2a_hist_list";n.style.width="1px";n.style.height="1px";n.style.overflow="hidden";document.body.insertBefore(n,document.body.firstChild);for(var o=0,d=0,g=h.length;o<g;o++){var m=h[o],k=m.homepage,w=document.createElement("a"),p=a2a.in_array,q=false;if(!r){w.style.clear=m.style.clear;w.href=k;w.innerHTML=k;n.appendChild(w);if(w.currentStyle){var f=w.currentStyle.clear}else{if(document.defaultView.getComputedStyle(w,null)){var f=document.defaultView.getComputedStyle(w,null).getPropertyValue("clear")}}w.parentNode.removeChild(w)}if(r&&p(m.safename,r,true)){q=true}if(q||(!r&&f=="right"&&k!="")){m.className=m.className+" a2a_sss";if(d%2&&d!=0){a2a.gEl("a2a"+l+"_col2").insertBefore(m,a2a.gEl("a2a"+l+"_col2").firstChild)}else{a2a.gEl("a2a"+l+"_col1").insertBefore(m,a2a.gEl("a2a"+l+"_col1").firstChild)}d++}}n.parentNode.removeChild(n);a2a.collections(l);a2a.default_services(l)},visOnly:function(f){var b=new Array(),d=f.length;for(var c=0,g=0;c<d;c++){if(f[c].style.display!="none"&&f[c].parentNode.style.display!="none"){b[g]=f[c];g++}}return b},moveFocus:function(a,d){var c=a2a[a2a.type].inFocus,b=a2a.getByClass("a2a_cols");presently_focused=a2a.visOnly(b[c[0]].getElementsByTagName("a"))[c[1]];presently_focused.blur();a2a[a2a.type].inFocus=[c[0]+a,c[1]+d];c=a2a[a2a.type].inFocus;to_focus=a2a.visOnly(b[c[0]].getElementsByTagName("a"))[c[1]];to_focus.focus();to_focus.onblur=function(){if(this!=presently_focused){a2a[a2a.type].inFocus=false;a2a.onMouseOut_delay()}}},checkKey:function(h){var h=h||window.event,j=h.which||h.keyCode,c=a2a[a2a.type].inFocus,a=false,b=a2a.getByClass("a2a_cols"),k=b.length,d=a2a.visOnly;if(j==13&&!c){for(var g=0;g<k;g++){if(d(b[g].getElementsByTagName("a")).length>0){a=g;break}}if(a===false){return false}a2a[a2a.type].inFocus=[a,0];a2a.moveFocus(0,0);return false}if(c){var f=d(b[c[0]].getElementsByTagName("a"));if(j==38){if(c[1]<1){if(typeof f[f.length-1]!="undefined"){a2a.moveFocus(0,f.length-1)}}else{if(typeof f[c[1]-1]!="undefined"){a2a.moveFocus(0,-1)}}return false}else{if(j==40){if(c[1]>f.length-2){a2a.moveFocus(0,-(c[1]))}else{a2a.moveFocus(0,1)}return false}else{if(j==37){if(c[0]<1){if(typeof d(b[b.length-1].getElementsByTagName("a"))[c[1]]!="undefined"){a2a.moveFocus(b.length-1,0)}}else{if(typeof d(b[c[0]-1].getElementsByTagName("a"))[c[1]]!="undefined"){a2a.moveFocus(-1,0)}}}else{if(j==39){if(c[0]>b.length-2){if(typeof d(b[0].getElementsByTagName("a"))[c[1]]!="undefined"){a2a.moveFocus(-(b.length-1),0)}}else{if(typeof d(b[c[0]+1].getElementsByTagName("a"))[c[1]]!="undefined"){a2a.moveFocus(1,0)}}}}}}}if(j==27&&a2a[a2a.type].tab=="DEFAULT"){a2a.gEl("a2a"+a2a.type+"_find").value="";a2a.do_find();a2a.focus_find()}else{if(j>40||j==32){a2a.focus_find()}}},css:function(){var f=a2a_color_main||"EEE",h=a2a_color_bg||"FFF",d=a2a_color_border||"CCC",a=a2a_color_link_text||"00F",g=a2a_color_link_text_hover||"000",j=a2a_color_link_text_hover||"999",b=a2a_color_link_text||"000",i=(f.toLowerCase()=="ffffff")?"EEE":f;a2a_find_text_color=a2a_color_link_text||"CCC";a2a_find_text_color_focused=a2a_color_link_text||"000";var c=".a2a_menu *{margin:0;padding:0}.a2a_menu,.a2a_menu_border{display:none;z-index:9999999;position:absolute;margin:0;padding:0;-webkit-border-radius:16px;-moz-border-radius:16px}.a2a_menu{display:none;direction:ltr;min-width:200px;background-color:#"+h+";font:12px Arial,Helvetica,sans-serif;color:#000;line-height:12px;border:1px solid #"+d+";vertical-align:baseline;padding:8px;overflow:hidden}.a2a_menu_border{border:1px solid #"+f+";background-color:#"+f+";opacity:.6;filter:alpha(opacity=60)}.a2a_menu a,#a2a_hist_list a,.a2a_tabs div{color:#"+a+";text-decoration:none;font:12px Arial,Helvetica,sans-serif;line-height:12px;height:auto;width:auto;clear:none;outline:none;-moz-outline:none;-webkit-border-radius:8px;-moz-border-radius:8px}.a2a_menu a:visited,#a2a_hist_list a:visited{color:#"+a+";clear:right}.a2a_menu a:hover,.a2a_menu a:active,.a2a_menu a.a2a_i:focus,.a2a_tabs div:hover{color:#"+g+";border:1px solid #"+d+";background-color:#"+f+";text-decoration:none}.a2a_menu img,.a2a_menu a img, a.a2a_ind img{width:16px;height:16px;border:0;padding:0;background:url("+a2a.icons_img_url+") no-repeat}.a2a_menu img{display:inline;vertical-align:middle;margin:0 4px 2px 0}.a2a_menu img.a2a_i_find{position:absolute;left:5px;top:2px}.a2a_menu_title_container{display:none;margin-bottom:2px;padding:6px}.a2a_menu_find_container{position:relative;text-align:left;margin:4px 1px;padding:1px 24px 1px 0;border:1px solid #"+a2a_find_text_color+";-webkit-border-radius:8px;-moz-border-radius:8px}input.a2a_menu_title{display:block;color:#"+a2a_find_text_color_focused+";background-color:#"+h+";border:0;margin:0;padding:0;width:100%}input.a2a_menu_find{display:block;position:relative;left:24px;color:#"+a2a_find_text_color+";font-size:12px;padding:2px 0;outline:0;border:0;background-color:transparent;_background-color:#"+h+";width:250px}.a2a_cols{width:50%;vertical-align:top;margin:0;padding:0;border:0;background-color:transparent;_background-color:#"+h+"}.a2a_cols_container tbody{border:0}.a2a_cols_container{border-collapse:collapse;border-spacing:0;border:0;width:auto;margin:0;padding:0}"+((typeof document.body.style.maxHeight!="undefined")?".a2a_clear{clear:both}":".a2a_clear{clear:both;height:0;width:0;line-height:0;font-size:0}")+".a2a_hr{margin:0 12px 12px;padding:1px;background:none;background-color:#"+f+"}.a2a_nowrap{white-space:nowrap}.a2a_note{margin:0 auto;padding:9px;font-size:11px;text-align:center}.a2a_note .a2a_note_note{margin:0 0 9px;color:#"+b+"}.a2a_wide a{display:block;margin-top:3px;border:1px solid #"+i+";padding:3px;text-align:center}.a2a_tabs{float:left;margin:0 0 3px}.a2a_tabs a,.a2a_tabs div{margin:1px;background-color:#"+f+";border:1px solid #"+f+";font-size:11px;padding:6px 12px 2px;white-space:nowrap}.a2a_tabs a img, .a2a_tabs div img{margin-bottom:4px}.a2a_tabs a, .a2a_tabs a:visited, .a2a_tabs a:hover, .a2a_tabs div, .a2a_tabs div:hover{cursor:pointer;border-bottom:1px solid #"+f+";color:#"+g+";-webkit-border-bottom-left-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-right-radius:0;-moz-border-radius-bottomright:0}a.a2a_tab_selected,a.a2a_tab_selected:visited,a.a2a_tab_selected:hover,a.a2a_tab_selected:active,a.a2a_tab_selected:focus, div.a2a_tab_selected,div.a2a_tab_selected:hover{color:#"+a+";background-color:#"+h+";border:1px solid #"+d+";border-bottom:1px solid #"+h+"}a.a2a_i{display:block;padding:4px 6px 2px;border:1px solid #"+h+";text-align:left;white-space:nowrap}a.a2a_sss{font-weight:700}a.a2a_ind{display:inline;margin:0;padding:0}a.a2a_emailer{display:inline-block;border:1px solid #EEE;margin:0 9px;text-align:center}a.a2a_menu_show_more_less{margin:4px 0 8px;padding:0}a.a2a_menu_show_more_less img{vertical-align:baseline;height:12px}a.a2a_menu_powered_by,a.a2a_menu_powered_by:visited{background-color:#"+f+";font-size:9px;color:#"+j+"}";c+=".a2a_i_agregator{background-position:0 0 !important}.a2a_i_aiderss{background-position:0 -17px !important}.a2a_i_aim{background-position:0 -34px !important}.a2a_i_allvoices{background-position:0 -51px !important}.a2a_i_amazon{background-position:0 -68px !important}.a2a_i_aol{background-position:0 -85px !important}.a2a_i_apple_mail{background-position:0 -102px !important}.a2a_i_arto{background-position:0 -119px !important}.a2a_i_ask{background-position:0 -136px !important}.a2a_i_avantgo{background-position:0 -153px !important}.a2a_i_backflip{background-position:0 -170px !important}.a2a_i_bebo{background-position:0 -187px !important}.a2a_i_bibsonomy{background-position:0 -204px !important}.a2a_i_bitty{background-position:0 -221px !important}.a2a_i_blinklist{background-position:0 -238px !important}.a2a_i_blogger{background-position:0 -255px !important}.a2a_i_bloglines{background-position:0 -272px !important}.a2a_i_blogmarks{background-position:0 -289px !important}.a2a_i_blogrovr{background-position:0 -306px !important}.a2a_i_bookmark{background-position:0 -323px !important}.a2a_i_bookmarks_fr{background-position:0 -340px !important}.a2a_i_box{background-position:0 -357px !important}.a2a_i_buddymarks{background-position:0 -374px !important}.a2a_i_buzmob{background-position:0 -391px !important}.a2a_i_buzz{background-position:0 -408px !important}.a2a_i_bzzster{background-position:0 -425px !important}.a2a_i_care2{background-position:0 -442px !important}.a2a_i_citeulike{background-position:0 -459px !important}.a2a_i_clear{background-position:0 -476px !important}.a2a_i_connotea{background-position:0 -493px !important}.a2a_i_current{background-position:0 -510px !important}.a2a_i_dailyme{background-position:0 -527px !important}.a2a_i_dailyrotation{background-position:0 -544px !important}.a2a_i_darr{background-position:0 -561px !important}.a2a_i_darr_wt{background-position:0 -578px !important}.a2a_i_default{background-position:0 -595px !important}.a2a_i_delicious{background-position:0 -612px !important}.a2a_i_designfloat{background-position:0 -629px !important}.a2a_i_digg{background-position:0 -646px !important}.a2a_i_diglog{background-position:0 -663px !important}.a2a_i_diigo{background-position:0 -680px !important}.a2a_i_dzone{background-position:0 -697px !important}.a2a_i_email{background-position:0 -714px !important}.a2a_i_eskobo{background-position:0 -731px !important}.a2a_i_evernote{background-position:0 -748px !important}.a2a_i_excitemix{background-position:0 -765px !important}.a2a_i_expression{background-position:0 -782px !important}.a2a_i_facebook{background-position:0 -799px !important}.a2a_i_fark{background-position:0 -816px !important}.a2a_i_faves{background-position:0 -833px !important}.a2a_i_feed{background-position:0 -850px !important}.a2a_i_feedblitz{background-position:0 -867px !important}.a2a_i_feedbucket{background-position:0 -884px !important}.a2a_i_feedlounge{background-position:0 -901px !important}.a2a_i_feedm8{background-position:0 -918px !important}.a2a_i_feedmailer{background-position:0 -935px !important}.a2a_i_feedreader_net{background-position:0 -952px !important}.a2a_i_feedshow{background-position:0 -969px !important}.a2a_i_find{background-position:0 -986px !important}.a2a_i_fireant{background-position:0 -1003px !important}.a2a_i_flurry{background-position:0 -1020px !important}.a2a_i_folkd{background-position:0 -1037px !important}.a2a_i_foxiewire{background-position:0 -1054px !important}.a2a_i_friendfeed{background-position:0 -1071px !important}.a2a_i_friendster{background-position:0 -1088px !important}.a2a_i_funp{background-position:0 -1105px !important}.a2a_i_furl{background-position:0 -1122px !important}.a2a_i_fwicki{background-position:0 -1138px !important}.a2a_i_gabbr{background-position:0 -1155px !important}.a2a_i_global_grind{background-position:0 -1172px !important}.a2a_i_gmail{background-position:0 -1189px !important}.a2a_i_google{background-position:0 -1206px !important}.a2a_i_healthranker{background-position:0 -1223px !important}.a2a_i_hellotxt{background-position:0 -1240px !important}.a2a_i_hemidemi{background-position:0 -1257px !important}.a2a_i_hi5{background-position:0 -1274px !important}.a2a_i_hubdog{background-position:0 -1291px !important}.a2a_i_hugg{background-position:0 -1308px !important}.a2a_i_hyves{background-position:0 -1325px !important}.a2a_i_identica{background-position:0 -1342px !important}.a2a_i_im{background-position:0 -1359px !important}.a2a_i_imera{background-position:0 -1376px !important}.a2a_i_instapaper{background-position:0 -1393px !important}.a2a_i_iterasi{background-position:0 -1410px !important}.a2a_i_itunes{background-position:0 -1427px !important}.a2a_i_jamespot{background-position:0 -1444px !important}.a2a_i_jots{background-position:0 -1461px !important}.a2a_i_jumptags{background-position:0 -1478px !important}.a2a_i_khabbr{background-position:0 -1495px !important}.a2a_i_kledy{background-position:0 -1512px !important}.a2a_i_klipfolio{background-position:0 -1529px !important}.a2a_i_linkagogo{background-position:0 -1546px !important}.a2a_i_linkatopia{background-position:0 -1563px !important}.a2a_i_linkedin{background-position:0 -1580px !important}.a2a_i_live{background-position:0 -1597px !important}.a2a_i_livejournal{background-position:0 -1614px !important}.a2a_i_ma_gnolia{background-position:0 -1631px !important}.a2a_i_maple{background-position:0 -1648px !important}.a2a_i_meneame{background-position:0 -1665px !important}.a2a_i_mindbodygreen{background-position:0 -1682px !important}.a2a_i_miro{background-position:0 -1699px !important}.a2a_i_mister-wong{background-position:0 -1716px !important}.a2a_i_mixx{background-position:0 -1733px !important}.a2a_i_mobile{background-position:0 -1750px !important}.a2a_i_mozillaca{background-position:0 -1767px !important}.a2a_i_msdn{background-position:0 -1784px !important}.a2a_i_multiply{background-position:0 -1801px !important}.a2a_i_my_msn{background-position:0 -1818px !important}.a2a_i_mylinkvault{background-position:0 -1835px !important}.a2a_i_myspace{background-position:0 -1852px !important}.a2a_i_netimechannel{background-position:0 -1869px !important}.a2a_i_netlog{background-position:0 -1886px !important}.a2a_i_netomat{background-position:0 -1903px !important}.a2a_i_netvibes{background-position:0 -1920px !important}.a2a_i_netvouz{background-position:0 -1937px !important}.a2a_i_newgie{background-position:0 -1954px !important}.a2a_i_newsalloy{background-position:0 -1971px !important}.a2a_i_newscabby{background-position:0 -1988px !important}.a2a_i_newsgator{background-position:0 -2005px !important}.a2a_i_newshutch{background-position:0 -2022px !important}.a2a_i_newsisfree{background-position:0 -2039px !important}.a2a_i_newstrust{background-position:0 -2056px !important}.a2a_i_newsvine{background-position:0 -2073px !important}.a2a_i_nowpublic{background-position:0 -2090px !important}.a2a_i_odeo{background-position:0 -2107px !important}.a2a_i_oneview{background-position:0 -2124px !important}.a2a_i_openbm{background-position:0 -2141px !important}.a2a_i_orkut{background-position:0 -2158px !important}.a2a_i_outlook{background-position:0 -2175px !important}.a2a_i_pageflakes{background-position:0 -2192px !important}.a2a_i_pdf{background-position:0 -2209px !important}.a2a_i_phonefavs{background-position:0 -2226px !important}.a2a_i_ping{background-position:0 -2243px !important}.a2a_i_plaxo{background-position:0 -2260px !important}.a2a_i_plurk{background-position:0 -2277px !important}.a2a_i_plusmo{background-position:0 -2294px !important}.a2a_i_podnova{background-position:0 -2311px !important}.a2a_i_posterous{background-position:0 -2328px !important}.a2a_i_printfriendly{background-position:0 -2345px !important}.a2a_i_propeller{background-position:0 -2362px !important}.a2a_i_protopage{background-position:0 -2379px !important}.a2a_i_pusha{background-position:0 -2396px !important}.a2a_i_rapidfeeds{background-position:0 -2413px !important}.a2a_i_rasasa{background-position:0 -2430px !important}.a2a_i_reader{background-position:0 -2447px !important}.a2a_i_reddit{background-position:0 -2464px !important}.a2a_i_rssfwd{background-position:0 -2481px !important}.a2a_i_segnalo{background-position:0 -2498px !important}.a2a_i_share{background-position:0 -2515px !important}.a2a_i_shoutwire{background-position:0 -2532px !important}.a2a_i_shyftr{background-position:0 -2549px !important}.a2a_i_simpy{background-position:0 -2566px !important}.a2a_i_sitejot{background-position:0 -2583px !important}.a2a_i_skimbit{background-position:0 -2600px !important}.a2a_i_slashdot{background-position:0 -2617px !important}.a2a_i_smaknews{background-position:0 -2634px !important}.a2a_i_sodahead{background-position:0 -2651px !important}.a2a_i_sofomo{background-position:0 -2668px !important}.a2a_i_spaces{background-position:0 -2685px !important}.a2a_i_sphere{background-position:0 -2702px !important}.a2a_i_sphinn{background-position:0 -2718px !important}.a2a_i_spurl{background-position:0 -2735px !important}.a2a_i_squidoo{background-position:0 -2752px !important}.a2a_i_startaid{background-position:0 -2769px !important}.a2a_i_strands{background-position:0 -2786px !important}.a2a_i_stumbleupon{background-position:0 -2803px !important}.a2a_i_stumpedia{background-position:0 -2820px !important}.a2a_i_symbaloo{background-position:0 -2837px !important}.a2a_i_taggly{background-position:0 -2854px !important}.a2a_i_tagza{background-position:0 -2871px !important}.a2a_i_tailrank{background-position:0 -2888px !important}.a2a_i_technet{background-position:0 -2905px !important}.a2a_i_technorati{background-position:0 -2922px !important}.a2a_i_technotizie{background-position:0 -2939px !important}.a2a_i_thefreedictionary{background-position:0 -2956px !important}.a2a_i_thefreelibrary{background-position:0 -2973px !important}.a2a_i_thunderbird{background-position:0 -2990px !important}.a2a_i_tipd{background-position:0 -3007px !important}.a2a_i_toolbar_google{background-position:0 -3024px !important}.a2a_i_tumblr{background-position:0 -3041px !important}.a2a_i_twiddla{background-position:0 -3058px !important}.a2a_i_twine{background-position:0 -3075px !important}.a2a_i_twitter{background-position:0 -3092px !important}.a2a_i_txtvox{background-position:0 -3109px !important}.a2a_i_typepad{background-position:0 -3126px !important}.a2a_i_uarr{background-position:0 -3143px !important}.a2a_i_uarr_wt{background-position:0 -3160px !important}.a2a_i_unalog{background-position:0 -3177px !important}.a2a_i_viadeo{background-position:0 -3194px !important}.a2a_i_webnews{background-position:0 -3211px !important}.a2a_i_webwag{background-position:0 -3229px !important}.a2a_i_wikio{background-position:0 -3246px !important}.a2a_i_windows_mail{background-position:0 -3263px !important}.a2a_i_wink{background-position:0 -3280px !important}.a2a_i_winksite{background-position:0 -3297px !important}.a2a_i_wists{background-position:0 -3314px !important}.a2a_i_wordpress{background-position:0 -3331px !important}.a2a_i_xanga{background-position:0 -3348px !important}.a2a_i_xerpi{background-position:0 -3365px !important}.a2a_i_xianguo{background-position:0 -3382px !important}.a2a_i_yahoo{background-position:0 -3399px !important}.a2a_i_yample{background-position:0 -3416px !important}.a2a_i_yigg{background-position:0 -3433px !important}.a2a_i_yim{background-position:0 -3450px !important}.a2a_i_yoolink{background-position:0 -3467px !important}.a2a_i_youmob{background-position:0 -3484px !important}.a2a_i_yourminis{background-position:0 -3501px !important}.a2a_i_zaptxt{background-position:0 -3518px !important}.a2a_i_zhuaxia{background-position:0 -3535px !important}.a2a_i_zune{background-position:0 -3552px !important}";a2a_dd_css=document.createElement("style");a2a_dd_css.setAttribute("type","text/css");if(a2a_dd_css.styleSheet){a2a_dd_css.styleSheet.cssText=c}else{a2a_dd_css_tn=document.createTextNode(c);a2a_dd_css.appendChild(a2a_dd_css_tn)}a2a.head_tag.appendChild(a2a_dd_css)},mk_srvc:function(a,b,f,h,g,j,c){var k=document.createElement("a"),d=function(){a2a.linker(this,this.safename)},i=function(){a2a.track(a2a_tracking_url.replace(/A2A_SERVICENAME/,b))};k.id="a2a"+a2a.type+"_"+b;k.rel="nofollow";k.className="a2a_i";k.href="/";k.target="_blank";k.onmousedown=d;k.onkeydown=d;k.homepage=f;k.safename=b;k.servicename=a;k.serviceNameLowerCase=a.toLowerCase();k.appendChild(a2a_transparent_img.cloneNode(true));k.appendChild(document.createTextNode(a));a2a.add_event(k,"click",function(){a2a.a2a_track("testShare1",a);if(a2a_track_pub){a2a.a2a_track("z_"+a2a_track_pub+"Share",a)}});if(g){k.stype=g}if(a2a_tracking_url){a2a.add_event(k,"click",i)}if(j){k.customserviceuri=j}if(c){k.firstChild.style.backgroundImage="url("+c+")"}else{if(h){k.firstChild.className="a2a_i_"+h}else{k.firstChild.className="a2a_i_default"}}return k},i18n:function(){var c=["ar","id","bs","bg","ca-AD","ca-ES","cs","da","de","el","et","es","es-AR","es-VE","eo","en-US","fa","fr","fr-CA","he-IL","hi","hr","is","it","ja","ko-KR","lv","lt","hu","mk","nl","no","pl-PL","pt","pt-BR","pt-PT","ro","ru","sr","fi","sk","sl","sv-SE","ta","te","tr-TR","uk","vi","zh-CN","zh-TW"],d=(navigator.browserLanguage||navigator.language).toLowerCase(),b=a2a.in_array(d,c,true);if(!b){var a=d.indexOf("-");if(a!=-1){b=a2a.in_array(d.substr(0,a),c,true)}}if(d!="en-us"&&b){return b}else{return false}}};a2a.type=a2a_menu_type||"page";if(typeof window["a2a"+a2a.type+"_init"]=="undefined"){a2a[a2a.type]={};window.a2a_show_dropdown=a2a.show_dropdown;window.a2a_onMouseOut_delay=a2a.onMouseOut_delay;window.a2a_hrefs=a2a.hrefs;window.a2a_fluids=a2a.fluids;window.a2a_init=a2a.init;a2a.create_page_dropdown=function(){a2a.type=(a2a_email_menu)?"mail":"page";var l=a2a.type;a2a.css();a2a_localize={Share:a2a_localize.Share||"Share",Save:a2a_localize.Save||"Save",Subscribe:a2a_localize.Subscribe||"Subscribe",Email:a2a_localize.Email||"E-mail",Bookmark:a2a_localize.Bookmark||"Bookmark",ShowAll:a2a_localize.ShowAll||"Show all",ShowLess:a2a_localize.ShowLess||"Show less",FindServices:a2a_localize.FindServices||"Find service(s)...",FindAnyServiceToAddTo:a2a_localize.FindAnyServiceToAddTo||"Instantly find any service to add to",PoweredBy:a2a_localize.PoweredBy||"Powered by",AnyEmail:"Any e-mail",ShareViaEmail:a2a_localize.ShareViaEmail||"Share via e-mail",SubscribeViaEmail:a2a_localize.SubscribeViaEmail||"Subscribe via email",BookmarkInYourBrowser:a2a_localize.BookmarkInYourBrowser||"Bookmark in your browser",BookmarkInstructions:a2a_localize.BookmarkInstructions||"Press Ctrl+D or &#8984;+D to bookmark this page",AddToYourFavorites:a2a_localize.AddToYourFavorites||"Add to Favorites",SendFromWebOrProgram:a2a_localize.SendFromWebOrProgram||"Send from any other e-mail address or e-mail program",EmailProgram:a2a_localize.EmailProgram||"E-mail program"};var a='<div id="a2a'+l+'_border" class="a2a_menu_border" onmouseover="a2a.onMouseOver_stay()"'+((a2a[a2a.type].onclick)?"":' onmouseout="a2a.onMouseOut_delay()"')+"></div>";a+='<div id="a2a'+l+'_dropdown" class="a2a_menu" onmouseover="a2a.onMouseOver_stay()"'+((a2a[a2a.type].onclick)?"":' onmouseout="a2a.onMouseOut_delay()"')+">";a+='<div id="a2a'+l+'_title_container" class="a2a_menu_title_container"><input id="a2a'+l+'_title" class="a2a_menu_title"/></div>';if(l=="page"){a+='<div class="a2a'+l+'_wide a2a_wide">';a+='<div class="a2a_tabs"><div id="a2a'+l+'_DEFAULT" class="a2a_tab_selected" style="margin-right:1px" onclick="return a2a.tabs(\'DEFAULT\')"><img class="a2a_i_share" src="'+a2a.transparent_img_url+'"/>'+a2a_localize.Share+" / "+a2a_localize.Save+"</div></div>";a+='<div class="a2a_tabs"><div title="'+a2a_localize.ShareViaEmail+'" id="a2a'+l+'_EMAIL" style="margin-right:1px" onclick="return a2a.tabs(\'EMAIL\',true)"><img class="a2a_i_email" src="'+a2a.transparent_img_url+'"/>'+a2a_localize.Email+"</div></div>";a+='<div class="a2a_tabs"><div onclick="a2a.bmBrowser()" title="'+a2a_localize.BookmarkInYourBrowser+'" id="a2a'+l+'_BROWSER" style="margin-left:1px"><img class="a2a_i_bookmark" src="'+a2a.transparent_img_url+'"/>'+a2a.bmBrowser(1)+"</div></div>";a+='</div><div class="a2a_clear"></div>'}if(l=="page"){a+='<div id="a2a'+l+'_find_container" class="a2a_menu_find_container"><input id="a2a'+l+'_find" class="a2a_menu_find" type="text" onclick="a2a.focus_find()" onkeyup="a2a.do_find()" autocomplete="off" onfocus="a2a[\''+l+'\'].find_focused=true;a2a.onMouseOver_stay()" onblur="a2a.blur_find()" title="'+a2a_localize.FindAnyServiceToAddTo+'"><img id="a2a'+l+'_find_icon" class="a2a_i_find" src="'+a2a.transparent_img_url+'" onclick="a2a.focus_find()"/></div>'}a+='<table id="a2a'+l+'_cols_container" class="a2a_cols_container"><tr>';a+='<td class="a2a_cols">';a+='<div id="a2a'+l+'_col1"'+((l=="mail")?' style="display:none"':"")+"></div>";a+='<div id="a2a'+l+'_2_col1"'+((l!="mail")?' style="display:none"':"")+"></div></td>";a+='<td class="a2a_cols">';a+='<div id="a2a'+l+'_col2"'+((l=="mail")?' style="display:none"':"")+"></div>";a+='<div id="a2a'+l+'_2_col2"'+((l!="mail")?' style="display:none"':"")+"></div></td>";a+="</tr></table>";a+='<div id="a2a'+l+'_note_BROWSER" class="a2a_note" style="display:none"></div>';a+='<div id="a2a'+l+'_note_EMAIL" class="a2a_note"'+((l!="mail")?' style="display:none"':"")+">";a+='<div class="a2a_hr"></div><div class="a2a_note_note">'+a2a_localize.SendFromWebOrProgram+":</div>";a+='<div class="a2a_nowrap">';a+='<a href="/" id="a2a'+l+'_any_email" class="a2a_i a2a_emailer" target="_blank" servicename="Email (form)" safename="email_form" customserviceuri="http://www.addtoany.com/email?linkurl=A2A_LINKURL_ENC&amp;linkname=A2A_LINKNAME_ENC" onkeydown="a2a.linker(this)" onmousedown="a2a.linker(this)" onmouseup="a2a.a2a_track(\'testShare1\', \'Email\');if(a2a_track_pub)a2a.a2a_track(\'z_\'+a2a_track_pub+\'Share\', \'Email\')" style="margin-right:9px"><img class="a2a_i_email" src="'+a2a.transparent_img_url+'"/>'+a2a_localize.AnyEmail+"</a>";a+='<a href="/" class="a2a_i a2a_emailer" id="a2a'+l+'_email_client" servicename="Email (mailto)" safename="email_mailto" customserviceuri="mailto:?subject=A2A_LINKNAME_ENC&amp;body=A2A_LINKURL_ENC" onkeydown="a2a.linker(this)" onmousedown="a2a.linker(this)" onmouseup="a2a.a2a_track(\'testShare1\', \'Email\');if(a2a_track_pub)a2a.a2a_track(\'z_\'+a2a_track_pub+\'Share\', \'Email\')" onclick="a2a.track()" style="margin-left:9px"><img class="a2a_i_outlook" src="'+a2a.transparent_img_url+'"/><img class="a2a_i_windows_mail" src="'+a2a.transparent_img_url+'"/><img class="a2a_i_apple_mail" src="'+a2a.transparent_img_url+'"/><img class="a2a_i_thunderbird" src="'+a2a.transparent_img_url+'"/></a>';a+="</div>";a+="</div>";if(l!="mail"){a+='<div class="a2a'+l+'_wide a2a_wide"><a href="javascript:void(0)" id="a2a'+l+"_show_more_less\" class=\"a2a_menu_show_more_less\" onClick=\"return a2a.show_more_less(0)\" onmouseover=\"img=this.firstChild;if(a2a_color_arrow_hover=='fff'){if(img.className.indexOf('_wt')==-1)img.className+='_wt'}else img.className=img.className.replace(/_wt/,'')\" onmouseout=\"img=this.firstChild;if(a2a_color_arrow=='fff'){if(img.className.indexOf('_wt')==-1)img.className+='_wt'}else img.className=img.className.replace(/_wt/,'')\" title=\""+a2a_localize.ShowAll+'"><img  class="a2a_i_darr'+((a2a_color_arrow=="fff")?"_wt":"")+'" src="'+a2a.transparent_img_url+'"/></a></div>'}a+='<div class="a2a'+l+'_wide a2a_wide"><a href="http://www.addtoany.com/" id="a2a'+l+'_powered_by" class="a2a_menu_powered_by" target="_blank" title="Share &amp; Subscribe buttons" onmouseover="if(!window.opera)this.innerHTML=this.orig;this.style.textAlign=\'center\'">'+a2a_localize.PoweredBy+" AddToAny</a></div>";a+="</div>";var d=document.createElement("div"),j=function(i){if(!i){i=window.event}i.cancelBubble=true;if(i.stopPropagation){i.stopPropagation()}};d.onmouseup=j;d.onmousedown=j;d.style.position="static";d.innerHTML=a;document.body.insertBefore(d,document.body.firstChild);a2a_transparent_img=new Image();a2a_transparent_img.src=a2a.transparent_img_url;a2a_transparent_img.width=16;a2a_transparent_img.height=16;var m=new RegExp("[\\?&]awesm=([^&#]*)"),n=m.exec(window.location.href);if(n!=null){a2a_awesm=n[1]}else{a2a_awesm=false}var g,b=a2a.mk_srvc;var k=new Array(["Facebook","facebook","http://www.facebook.com/","facebook"],["Delicious","delicious","http://delicious.com/","delicious"],["Yahoo Buzz","yahoo_buzz","http://buzz.yahoo.com/","buzz"],["MySpace","myspace","http://www.myspace.com/","myspace"],["Windows Live Favorites","windows_live_favorites","http://favorites.live.com/","live"],["Yahoo Bookmarks","yahoo_bookmarks","http://bookmarks.yahoo.com/","yahoo"],["Mister-Wong","mister_wong","http://www.mister-wong.com/","mister-wong"],["Google Reader","google_reader","http://www.google.com/reader/","reader"],["Evernote","evernote","http://www.evernote.com/","evernote"],["Stumpedia","stumpedia","http://www.stumpedia.com/","stumpedia"],["Posterous","posterous","http://posterous.com","posterous"],["MSDN","msdn","http://social.msdn.microsoft.com/","msdn"],["Expression","expression","http://social.expression.microsoft.com/","expression"],["Tipd","tipd","http://tipd.com/","tipd"],["Plurk","plurk","http://www.plurk.com/","plurk"],["Yahoo Messenger","yahoo_messenger","http://messenger.yahoo.com/","yim"],["Mozillaca","mozillaca","http://www.mozillaca.com/","mozillaca"],["TypePad Post","typepad_post","http://www.typepad.com/","typepad"],["Mixx","mixx","http://mixx.com/","mixx"],["Technorati Favorites","technorati_favorites","http://technorati.com/","technorati"],["CiteULike","citeulike","http://www.citeulike.org/","citeulike"],["Windows Live Spaces","windows_live_spaces","http://spaces.live.com/","spaces"],["FunP","funp","http://funp.com/","funp"],["PhoneFavs","phonefavs","http://phonefavs.com/","phonefavs"],["Netvouz","netvouz","http://www.netvouz.com/","netvouz"],["Diigo","diigo","http://www.diigo.com/","diigo"],["Taggly","taggly","http://www.taggly.com/","taggly"],["Tailrank","tailrank","http://www.tailrank.com/","tailrank"],["Kledy","kledy","http://www.kledy.de/","kledy"],["Meneame","meneame","http://meneame.net/","meneame"],["Bookmarks.fr","bookmarks_fr","http://www.bookmarks.fr/","bookmarks_fr"],["NewsVine","newsvine","http://www.newsvine.com/","newsvine"],["FriendFeed","friendfeed","http://friendfeed.com/","friendfeed"],["Ping","ping","http://ping.fm/","ping"],["Protopage Bookmarks","protopage_bookmarks","http://www.protopage.com/","protopage"],["Faves","faves","http://faves.com/","faves"],["Webnews","webnews","http://www.webnews.de/","webnews"],["Pusha","pusha","http://www.pusha.se/","pusha"],["Slashdot","slashdot","http://slashdot.org/","slashdot"],["Allvoices","allvoices","http://www.allvoices.com/","allvoices"],["Imera Brazil","imera_brazil","http://imera.com.br/","imera"],["LinkaGoGo","linkagogo","http://www.linkagogo.com/","linkagogo"],["unalog","unalog","http://unalog.com/","unalog"],["Diglog","diglog","http://www.diglog.com/","diglog"],["Propeller","propeller","http://www.propeller.com/","propeller"],["LiveJournal","livejournal","http://www.livejournal.com/","livejournal"],["HelloTxt","hellotxt","http://hellotxt.com","hellotxt"],["Yample","yample","http://yample.com/","yample"],["Linkatopia","linkatopia","http://www.linkatopia.com/","linkatopia"],["LinkedIn","linkedin","http://www.linkedin.com/","linkedin"],["Ask.com MyStuff","ask_com_mystuff","http://mystuff.ask.com/","ask"],["Maple","maple","http://www.maple.nu/","maple"],["Connotea","connotea","http://www.connotea.org/","connotea"],["MyLinkVault","mylinkvault","http://www.mylinkvault.com/","mylinkvault"],["Sphinn","sphinn","http://sphinn.com/","sphinn"],["DZone","dzone","http://www.dzone.com/","dzone"],["Hyves","hyves","http://www.hyves.nl/","hyves"],["Bitty Browser","bitty_browser","http://www.bitty.com/","bitty"],["Symbaloo Feeds","symbaloo_feeds","http://www.symbaloo.com/","symbaloo"],["Foxiewire","foxiewire","http://www.foxiewire.com/","foxiewire"],["VodPod","vodpod","http://vodpod.com/","default"],["Amazon Wish List","amazon_wish_list","http://www.amazon.com/","amazon"],["Read It Later","read_it_later","http://readitlaterlist.com/","default"]);var h=new Array(["Google Gmail","google_gmail","","gmail","email"],["Hotmail","hotmail","","live","email"]);if(l!="mail"){for(var f=0,o=k.length;f<o;f++){g=b(k[f][0],k[f][1],k[f][2],k[f][3],k[f][4]);a2a.gEl("a2a"+l+"_col1").appendChild(g)}}for(var f=0,c=h.length;f<h.length;f++){g=b(h[f][0],h[f][1],h[f][2],h[f][3],h[f][4]);a2a.gEl("a2a"+l+"_2_col1").appendChild(g)}var k=new Array(["Twitter","twitter","http://twitter.com/","twitter"],["Digg","digg","http://digg.com/","digg"],["Google Bookmarks","google_bookmarks","http://www.google.com/bookmarks","google"],["Reddit","reddit","http://www.reddit.com/","reddit"],["StumbleUpon","stumbleupon","http://www.stumbleupon.com/","stumbleupon"],["Bebo","bebo","http://www.bebo.com/","bebo"],["WordPress","wordpress","http://wordpress.com/","wordpress"],["Orkut","orkut","http://www.orkut.com/","orkut"],["Netvibes Share","netvibes_share","http://www.netvibes.com/","netvibes"],["Strands","strands","http://www.strands.com/","strands"],["DailyMe","dailyme","http://dailyme.com/","dailyme"],["TechNet","technet","http://social.technet.microsoft.com/","technet"],["Arto","arto","http://www.arto.com/","arto"],["SmakNews","smaknews","http://smaknews.com/","smaknews"],["AIM","aim","http://www.aim.com/","aim"],["Identi.ca","identi_ca","http://identi.ca/","identica"],["Blogger Post","blogger_post","http://www.blogger.com/","blogger"],["Box.net","box_net","https://www.box.net/","box"],["Netlog","netlog","http://www.netlog.com/","netlog"],["Shoutwire","shoutwire","http://www.shoutwire.com/","shoutwire"],["Jumptags","jumptags","http://www.jumptags.com/","jumptags"],["Hemidemi","hemidemi","http://www.hemidemi.com/","hemidemi"],["Instapaper","instapaper","http://www.instapaper.com/","instapaper"],["Xerpi","xerpi","http://www.xerpi.com/","xerpi"],["Wink","wink","http://www.wink.com/","wink"],["BibSonomy","bibsonomy","http://www.bibsonomy.org/","bibsonomy"],["BlogMarks","blogmarks","http://blogmarks.net/","blogmarks"],["StartAid","startaid","http://www.startaid.com/","startaid"],["Khabbr","khabbr","http://www.khabbr.com/","khabbr"],["Yoolink","yoolink","http://www.yoolink.fr/","yoolink"],["Technotizie","technotizie","http://www.technotizie.it/","technotizie"],["Multiply","multiply","http://multiply.com/","multiply"],["Plaxo Pulse","plaxo_pulse","http://pulse.plaxo.com/pulse/","plaxo"],["Squidoo","squidoo","http://www.squidoo.com/","squidoo"],["Blinklist","blinklist","http://www.blinklist.com/","blinklist"],["YiGG","yigg","http://www.yigg.de/","yigg"],["Segnalo","segnalo","http://segnalo.alice.it/","segnalo"],["YouMob","youmob","http://youmob.com/","youmob"],["Fark","fark","http://www.fark.com/","fark"],["Jamespot","jamespot","http://www.jamespot.com/","jamespot"],["Twiddla","twiddla","http://www.twiddla.com/","twiddla"],["MindBodyGreen","mindbodygreen","http://www.mindbodygreen.com/","mindbodygreen"],["Hugg","hugg","http://www.hugg.com/","hugg"],["NowPublic","nowpublic","http://www.nowpublic.com/","nowpublic"],["Tumblr","tumblr","http://www.tumblr.com/","tumblr"],["Current","current","http://current.com/","current"],["Spurl","spurl","http://www.spurl.net/","spurl"],["Oneview","oneview","http://www.oneview.de/","oneview"],["Simpy","simpy","http://www.simpy.com/","simpy"],["BuddyMarks","buddymarks","http://www.buddymarks.com/","buddymarks"],["Viadeo","viadeo","http://www.viadeo.com/","viadeo"],["Wists","wists","http://www.wists.com/","wists"],["Backflip","backflip","http://www.backflip.com/","backflip"],["SiteJot","sitejot","http://www.sitejot.com/","sitejot"],["Health Ranker","health_ranker","http://www.healthranker.com/","healthranker"],["Care2 News","care2_news","http://www.care2.com/news/","care2"],["Sphere","sphere","http://www.sphere.com/","sphere"],["Gabbr","gabbr","http://www.gabbr.com/","gabbr"],["Tagza","tagza","http://www.tagza.com/","tagza"],["Folkd","folkd","http://www.folkd.com/","folkd"],["NewsTrust","newstrust","http://newstrust.net/","newstrust"],["PrintFriendly","printfriendly","http://www.printfriendly.com","printfriendly"]);var h=new Array(["Yahoo Mail","yahoo_mail","","yahoo","email"],["AOL Mail","aol_mail","","aol","email"]);if(l!="mail"){for(var f=0,o=k.length;f<o;f++){g=b(k[f][0],k[f][1],k[f][2],k[f][3],k[f][4]);a2a.gEl("a2a"+l+"_col2").appendChild(g)}}for(var f=0,c=h.length;f<h.length;f++){g=b(h[f][0],h[f][1],h[f][2],h[f][3],h[f][4]);a2a.gEl("a2a"+l+"_2_col2").appendChild(g)}if(l=="page"){a2a.statusbar(a2a.gEl("a2a"+l+"_DEFAULT"),a2a_localize.Share+" / "+a2a_localize.Save);a2a.statusbar(a2a.gEl("a2a"+l+"_EMAIL"),a2a_localize.ShareViaEmail);a2a.statusbar(a2a.gEl("a2a"+l+"_BROWSER"),a2a_localize.BookmarkInYourBrowser)}a2a.statusbar(a2a.gEl("a2a"+l+"_email_client"),a2a_localize.EmailProgram);if(l=="page"){a2a.statusbar(a2a.gEl("a2a"+l+"_show_more_less"),a2a_localize.ShowAll);a2a.statusbar(a2a.gEl("a2a"+l+"_find"),a2a_localize.FindAnyServiceToAddTo)}a2a.prioritize_services();a2a.add_srvcs();a2a.user_services();a2a.collections(l);a2a.default_services();a2a.GA()};a2a[a2a.type].find_focused=false;a2a[a2a.type].show_all=false;a2a[a2a.type].inFocus=false;a2a[a2a.type].prev_keydown=document.onkeydown||false;a2a[a2a.type].tab="DEFAULT";a2a[a2a.type].onclick=a2a_onclick||false;a2a[a2a.type].show_title=a2a_show_title||false;a2a[a2a.type].num_services=a2a_num_services||12;a2a[a2a.type].custom_services=a2a_custom_services||false;var a2a_locale=a2a.i18n();if(a2a_locale&&a2a_static_server==((a2a_ssl)?a2a_ssl:"http://static.addtoany.com/menu")){a2a.loadExtScript(a2a_static_server+"/locale/"+a2a_locale+".js",function(){return(a2a_localize!="")},function(){a2a.create_page_dropdown();a2a_menu_type=false;a2a_email_menu=false})}else{a2a.create_page_dropdown()}try{document.execCommand("BackgroundImageCache",false,true)}catch(e){}a2a.a2a_track("TestHit1");if(!a2a_ssl){a2a.track("http://map.media6degrees.com/orbserv/hbpix?pixId=2869&curl="+encodeURIComponent(location.href))}}a2a.domready_init();a2a.gas();a2a.init((a2a_email_menu)?"mail":false);;String.prototype.parseColor=function(){var color='#';if(this.slice(0,4)=='rgb('){var cols=this.slice(4,this.length-1).split(',');var i=0;do{color+=parseInt(cols[i]).toColorPart()}while(++i<3);}else{if(this.slice(0,1)=='#'){if(this.length==4)for(var i=1;i<4;i++)color+=(this.charAt(i)+this.charAt(i)).toLowerCase();if(this.length==7)color=this.toLowerCase();}}
return(color.length==7?color:(arguments[0]||this));};Element.collectTextNodes=function(element){return $A($(element).childNodes).collect(function(node){return(node.nodeType==3?node.nodeValue:(node.hasChildNodes()?Element.collectTextNodes(node):''));}).flatten().join('');};Element.collectTextNodesIgnoreClass=function(element,className){return $A($(element).childNodes).collect(function(node){return(node.nodeType==3?node.nodeValue:((node.hasChildNodes()&&!Element.hasClassName(node,className))?Element.collectTextNodesIgnoreClass(node,className):''));}).flatten().join('');};Element.setContentZoom=function(element,percent){element=$(element);element.setStyle({fontSize:(percent/100)+'em'});if(Prototype.Browser.WebKit)window.scrollBy(0,0);return element;};Element.getInlineOpacity=function(element){return $(element).style.opacity||'';};Element.forceRerendering=function(element){try{element=$(element);var n=document.createTextNode(' ');element.appendChild(n);element.removeChild(n);}catch(e){}};var Effect={_elementDoesNotExistError:{name:'ElementDoesNotExistError',message:'The specified DOM element does not exist, but is required for this effect to operate'},Transitions:{linear:Prototype.K,sinoidal:function(pos){return(-Math.cos(pos*Math.PI)/2)+.5;},reverse:function(pos){return 1-pos;},flicker:function(pos){var pos=((-Math.cos(pos*Math.PI)/4)+.75)+Math.random()/4;return pos>1?1:pos;},wobble:function(pos){return(-Math.cos(pos*Math.PI*(9*pos))/2)+.5;},pulse:function(pos,pulses){return(-Math.cos((pos*((pulses||5)-.5)*2)*Math.PI)/2)+.5;},spring:function(pos){return 1-(Math.cos(pos*4.5*Math.PI)*Math.exp(-pos*6));},none:function(pos){return 0;},full:function(pos){return 1;}},DefaultOptions:{duration:1.0,fps:100,sync:false,from:0.0,to:1.0,delay:0.0,queue:'parallel'},tagifyText:function(element){var tagifyStyle='position:relative';if(Prototype.Browser.IE)tagifyStyle+=';zoom:1';element=$(element);$A(element.childNodes).each(function(child){if(child.nodeType==3){child.nodeValue.toArray().each(function(character){element.insertBefore(new Element('span',{style:tagifyStyle}).update(character==' '?String.fromCharCode(160):character),child);});Element.remove(child);}});},multiple:function(element,effect){var elements;if(((typeof element=='object')||Object.isFunction(element))&&(element.length))
elements=element;else
elements=$(element).childNodes;var options=Object.extend({speed:0.1,delay:0.0},arguments[2]||{});var masterDelay=options.delay;$A(elements).each(function(element,index){new effect(element,Object.extend(options,{delay:index*options.speed+masterDelay}));});},PAIRS:{'slide':['SlideDown','SlideUp'],'blind':['BlindDown','BlindUp'],'appear':['Appear','Fade']},toggle:function(element,effect){element=$(element);effect=(effect||'appear').toLowerCase();var options=Object.extend({queue:{position:'end',scope:(element.id||'global'),limit:1}},arguments[2]||{});Effect[element.visible()?Effect.PAIRS[effect][1]:Effect.PAIRS[effect][0]](element,options);}};Effect.DefaultOptions.transition=Effect.Transitions.sinoidal;Effect.ScopedQueue=Class.create(Enumerable,{initialize:function(){this.effects=[];this.interval=null;},_each:function(iterator){this.effects._each(iterator);},add:function(effect){var timestamp=new Date().getTime();var position=Object.isString(effect.options.queue)?effect.options.queue:effect.options.queue.position;switch(position){case'front':this.effects.findAll(function(e){return e.state=='idle'}).each(function(e){e.startOn+=effect.finishOn;e.finishOn+=effect.finishOn;});break;case'with-last':timestamp=this.effects.pluck('startOn').max()||timestamp;break;case'end':timestamp=this.effects.pluck('finishOn').max()||timestamp;break;}
effect.startOn+=timestamp;effect.finishOn+=timestamp;if(!effect.options.queue.limit||(this.effects.length<effect.options.queue.limit))
this.effects.push(effect);if(!this.interval)
this.interval=setInterval(this.loop.bind(this),15);},remove:function(effect){this.effects=this.effects.reject(function(e){return e==effect});if(this.effects.length==0){clearInterval(this.interval);this.interval=null;}},loop:function(){var timePos=new Date().getTime();for(var i=0,len=this.effects.length;i<len;i++)
this.effects[i]&&this.effects[i].loop(timePos);}});Effect.Queues={instances:$H(),get:function(queueName){if(!Object.isString(queueName))return queueName;return this.instances.get(queueName)||this.instances.set(queueName,new Effect.ScopedQueue());}};Effect.Queue=Effect.Queues.get('global');Effect.Base=Class.create({position:null,start:function(options){if(options&&options.transition===false)options.transition=Effect.Transitions.linear;this.options=Object.extend(Object.extend({},Effect.DefaultOptions),options||{});this.currentFrame=0;this.state='idle';this.startOn=this.options.delay*1000;this.finishOn=this.startOn+(this.options.duration*1000);this.fromToDelta=this.options.to-this.options.from;this.totalTime=this.finishOn-this.startOn;this.totalFrames=this.options.fps*this.options.duration;this.render=(function(){function dispatch(effect,eventName){if(effect.options[eventName+'Internal'])
effect.options[eventName+'Internal'](effect);if(effect.options[eventName])
effect.options[eventName](effect);}
return function(pos){if(this.state==="idle"){this.state="running";dispatch(this,'beforeSetup');if(this.setup)this.setup();dispatch(this,'afterSetup');}
if(this.state==="running"){pos=(this.options.transition(pos)*this.fromToDelta)+this.options.from;this.position=pos;dispatch(this,'beforeUpdate');if(this.update)this.update(pos);dispatch(this,'afterUpdate');}};})();this.event('beforeStart');if(!this.options.sync)
Effect.Queues.get(Object.isString(this.options.queue)?'global':this.options.queue.scope).add(this);},loop:function(timePos){if(timePos>=this.startOn){if(timePos>=this.finishOn){this.render(1.0);this.cancel();this.event('beforeFinish');if(this.finish)this.finish();this.event('afterFinish');return;}
var pos=(timePos-this.startOn)/this.totalTime,frame=(pos*this.totalFrames).round();if(frame>this.currentFrame){this.render(pos);this.currentFrame=frame;}}},cancel:function(){if(!this.options.sync)
Effect.Queues.get(Object.isString(this.options.queue)?'global':this.options.queue.scope).remove(this);this.state='finished';},event:function(eventName){if(this.options[eventName+'Internal'])this.options[eventName+'Internal'](this);if(this.options[eventName])this.options[eventName](this);},inspect:function(){var data=$H();for(property in this)
if(!Object.isFunction(this[property]))data.set(property,this[property]);return'#<Effect:'+data.inspect()+',options:'+$H(this.options).inspect()+'>';}});Effect.Parallel=Class.create(Effect.Base,{initialize:function(effects){this.effects=effects||[];this.start(arguments[1]);},update:function(position){this.effects.invoke('render',position);},finish:function(position){this.effects.each(function(effect){effect.render(1.0);effect.cancel();effect.event('beforeFinish');if(effect.finish)effect.finish(position);effect.event('afterFinish');});}});Effect.Tween=Class.create(Effect.Base,{initialize:function(object,from,to){object=Object.isString(object)?$(object):object;var args=$A(arguments),method=args.last(),options=args.length==5?args[3]:null;this.method=Object.isFunction(method)?method.bind(object):Object.isFunction(object[method])?object[method].bind(object):function(value){object[method]=value};this.start(Object.extend({from:from,to:to},options||{}));},update:function(position){this.method(position);}});Effect.Event=Class.create(Effect.Base,{initialize:function(){this.start(Object.extend({duration:0},arguments[0]||{}));},update:Prototype.emptyFunction});Effect.Opacity=Class.create(Effect.Base,{initialize:function(element){this.element=$(element);if(!this.element)throw(Effect._elementDoesNotExistError);if(Prototype.Browser.IE&&(!this.element.currentStyle.hasLayout))
this.element.setStyle({zoom:1});var options=Object.extend({from:this.element.getOpacity()||0.0,to:1.0},arguments[1]||{});this.start(options);},update:function(position){this.element.setOpacity(position);}});Effect.Move=Class.create(Effect.Base,{initialize:function(element){this.element=$(element);if(!this.element)throw(Effect._elementDoesNotExistError);var options=Object.extend({x:0,y:0,mode:'relative'},arguments[1]||{});this.start(options);},setup:function(){this.element.makePositioned();this.originalLeft=parseFloat(this.element.getStyle('left')||'0');this.originalTop=parseFloat(this.element.getStyle('top')||'0');if(this.options.mode=='absolute'){this.options.x=this.options.x-this.originalLeft;this.options.y=this.options.y-this.originalTop;}},update:function(position){this.element.setStyle({left:(this.options.x*position+this.originalLeft).round()+'px',top:(this.options.y*position+this.originalTop).round()+'px'});}});Effect.MoveBy=function(element,toTop,toLeft){return new Effect.Move(element,Object.extend({x:toLeft,y:toTop},arguments[3]||{}));};Effect.Scale=Class.create(Effect.Base,{initialize:function(element,percent){this.element=$(element);if(!this.element)throw(Effect._elementDoesNotExistError);var options=Object.extend({scaleX:true,scaleY:true,scaleContent:true,scaleFromCenter:false,scaleMode:'box',scaleFrom:100.0,scaleTo:percent},arguments[2]||{});this.start(options);},setup:function(){this.restoreAfterFinish=this.options.restoreAfterFinish||false;this.elementPositioning=this.element.getStyle('position');this.originalStyle={};['top','left','width','height','fontSize'].each(function(k){this.originalStyle[k]=this.element.style[k];}.bind(this));this.originalTop=this.element.offsetTop;this.originalLeft=this.element.offsetLeft;var fontSize=this.element.getStyle('font-size')||'100%';['em','px','%','pt'].each(function(fontSizeType){if(fontSize.indexOf(fontSizeType)>0){this.fontSize=parseFloat(fontSize);this.fontSizeType=fontSizeType;}}.bind(this));this.factor=(this.options.scaleTo-this.options.scaleFrom)/100;this.dims=null;if(this.options.scaleMode=='box')
this.dims=[this.element.offsetHeight,this.element.offsetWidth];if(/^content/.test(this.options.scaleMode))
this.dims=[this.element.scrollHeight,this.element.scrollWidth];if(!this.dims)
this.dims=[this.options.scaleMode.originalHeight,this.options.scaleMode.originalWidth];},update:function(position){var currentScale=(this.options.scaleFrom/100.0)+(this.factor*position);if(this.options.scaleContent&&this.fontSize)
this.element.setStyle({fontSize:this.fontSize*currentScale+this.fontSizeType});this.setDimensions(this.dims[0]*currentScale,this.dims[1]*currentScale);},finish:function(position){if(this.restoreAfterFinish)this.element.setStyle(this.originalStyle);},setDimensions:function(height,width){var d={};if(this.options.scaleX)d.width=width.round()+'px';if(this.options.scaleY)d.height=height.round()+'px';if(this.options.scaleFromCenter){var topd=(height-this.dims[0])/2;var leftd=(width-this.dims[1])/2;if(this.elementPositioning=='absolute'){if(this.options.scaleY)d.top=this.originalTop-topd+'px';if(this.options.scaleX)d.left=this.originalLeft-leftd+'px';}else{if(this.options.scaleY)d.top=-topd+'px';if(this.options.scaleX)d.left=-leftd+'px';}}
this.element.setStyle(d);}});Effect.Highlight=Class.create(Effect.Base,{initialize:function(element){this.element=$(element);if(!this.element)throw(Effect._elementDoesNotExistError);var options=Object.extend({startcolor:'#ffff99'},arguments[1]||{});this.start(options);},setup:function(){if(this.element.getStyle('display')=='none'){this.cancel();return;}
this.oldStyle={};if(!this.options.keepBackgroundImage){this.oldStyle.backgroundImage=this.element.getStyle('background-image');this.element.setStyle({backgroundImage:'none'});}
if(!this.options.endcolor)
this.options.endcolor=this.element.getStyle('background-color').parseColor('#ffffff');if(!this.options.restorecolor)
this.options.restorecolor=this.element.getStyle('background-color');this._base=$R(0,2).map(function(i){return parseInt(this.options.startcolor.slice(i*2+1,i*2+3),16)}.bind(this));this._delta=$R(0,2).map(function(i){return parseInt(this.options.endcolor.slice(i*2+1,i*2+3),16)-this._base[i]}.bind(this));},update:function(position){this.element.setStyle({backgroundColor:$R(0,2).inject('#',function(m,v,i){return m+((this._base[i]+(this._delta[i]*position)).round().toColorPart());}.bind(this))});},finish:function(){this.element.setStyle(Object.extend(this.oldStyle,{backgroundColor:this.options.restorecolor}));}});Effect.ScrollTo=function(element){var options=arguments[1]||{},scrollOffsets=document.viewport.getScrollOffsets(),elementOffsets=$(element).cumulativeOffset();if(options.offset)elementOffsets[1]+=options.offset;return new Effect.Tween(null,scrollOffsets.top,elementOffsets[1],options,function(p){scrollTo(scrollOffsets.left,p.round());});};Effect.Fade=function(element){element=$(element);var oldOpacity=element.getInlineOpacity();var options=Object.extend({from:element.getOpacity()||1.0,to:0.0,afterFinishInternal:function(effect){if(effect.options.to!=0)return;effect.element.hide().setStyle({opacity:oldOpacity});}},arguments[1]||{});return new Effect.Opacity(element,options);};Effect.Appear=function(element){element=$(element);var options=Object.extend({from:(element.getStyle('display')=='none'?0.0:element.getOpacity()||0.0),to:1.0,afterFinishInternal:function(effect){effect.element.forceRerendering();},beforeSetup:function(effect){effect.element.setOpacity(effect.options.from).show();}},arguments[1]||{});return new Effect.Opacity(element,options);};Effect.Puff=function(element){element=$(element);var oldStyle={opacity:element.getInlineOpacity(),position:element.getStyle('position'),top:element.style.top,left:element.style.left,width:element.style.width,height:element.style.height};return new Effect.Parallel([new Effect.Scale(element,200,{sync:true,scaleFromCenter:true,scaleContent:true,restoreAfterFinish:true}),new Effect.Opacity(element,{sync:true,to:0.0})],Object.extend({duration:1.0,beforeSetupInternal:function(effect){Position.absolutize(effect.effects[0].element);},afterFinishInternal:function(effect){effect.effects[0].element.hide().setStyle(oldStyle);}},arguments[1]||{}));};Effect.BlindUp=function(element){element=$(element);element.makeClipping();return new Effect.Scale(element,0,Object.extend({scaleContent:false,scaleX:false,restoreAfterFinish:true,afterFinishInternal:function(effect){effect.element.hide().undoClipping();}},arguments[1]||{}));};Effect.BlindDown=function(element){element=$(element);var elementDimensions=element.getDimensions();return new Effect.Scale(element,100,Object.extend({scaleContent:false,scaleX:false,scaleFrom:0,scaleMode:{originalHeight:elementDimensions.height,originalWidth:elementDimensions.width},restoreAfterFinish:true,afterSetup:function(effect){effect.element.makeClipping().setStyle({height:'0px'}).show();},afterFinishInternal:function(effect){effect.element.undoClipping();}},arguments[1]||{}));};Effect.SwitchOff=function(element){element=$(element);var oldOpacity=element.getInlineOpacity();return new Effect.Appear(element,Object.extend({duration:0.4,from:0,transition:Effect.Transitions.flicker,afterFinishInternal:function(effect){new Effect.Scale(effect.element,1,{duration:0.3,scaleFromCenter:true,scaleX:false,scaleContent:false,restoreAfterFinish:true,beforeSetup:function(effect){effect.element.makePositioned().makeClipping();},afterFinishInternal:function(effect){effect.element.hide().undoClipping().undoPositioned().setStyle({opacity:oldOpacity});}});}},arguments[1]||{}));};Effect.DropOut=function(element){element=$(element);var oldStyle={top:element.getStyle('top'),left:element.getStyle('left'),opacity:element.getInlineOpacity()};return new Effect.Parallel([new Effect.Move(element,{x:0,y:100,sync:true}),new Effect.Opacity(element,{sync:true,to:0.0})],Object.extend({duration:0.5,beforeSetup:function(effect){effect.effects[0].element.makePositioned();},afterFinishInternal:function(effect){effect.effects[0].element.hide().undoPositioned().setStyle(oldStyle);}},arguments[1]||{}));};Effect.Shake=function(element){element=$(element);var options=Object.extend({distance:20,duration:0.5},arguments[1]||{});var distance=parseFloat(options.distance);var split=parseFloat(options.duration)/10.0;var oldStyle={top:element.getStyle('top'),left:element.getStyle('left')};return new Effect.Move(element,{x:distance,y:0,duration:split,afterFinishInternal:function(effect){new Effect.Move(effect.element,{x:-distance*2,y:0,duration:split*2,afterFinishInternal:function(effect){new Effect.Move(effect.element,{x:distance*2,y:0,duration:split*2,afterFinishInternal:function(effect){new Effect.Move(effect.element,{x:-distance*2,y:0,duration:split*2,afterFinishInternal:function(effect){new Effect.Move(effect.element,{x:distance*2,y:0,duration:split*2,afterFinishInternal:function(effect){new Effect.Move(effect.element,{x:-distance,y:0,duration:split,afterFinishInternal:function(effect){effect.element.undoPositioned().setStyle(oldStyle);}});}});}});}});}});}});};Effect.SlideDown=function(element){element=$(element).cleanWhitespace();var oldInnerBottom=element.down().getStyle('bottom');var elementDimensions=element.getDimensions();return new Effect.Scale(element,100,Object.extend({scaleContent:false,scaleX:false,scaleFrom:window.opera?0:1,scaleMode:{originalHeight:elementDimensions.height,originalWidth:elementDimensions.width},restoreAfterFinish:true,afterSetup:function(effect){effect.element.makePositioned();effect.element.down().makePositioned();if(window.opera)effect.element.setStyle({top:''});effect.element.makeClipping().setStyle({height:'0px'}).show();},afterUpdateInternal:function(effect){effect.element.down().setStyle({bottom:(effect.dims[0]-effect.element.clientHeight)+'px'});},afterFinishInternal:function(effect){effect.element.undoClipping().undoPositioned();effect.element.down().undoPositioned().setStyle({bottom:oldInnerBottom});}},arguments[1]||{}));};Effect.SlideUp=function(element){element=$(element).cleanWhitespace();var oldInnerBottom=element.down().getStyle('bottom');var elementDimensions=element.getDimensions();return new Effect.Scale(element,window.opera?0:1,Object.extend({scaleContent:false,scaleX:false,scaleMode:'box',scaleFrom:100,scaleMode:{originalHeight:elementDimensions.height,originalWidth:elementDimensions.width},restoreAfterFinish:true,afterSetup:function(effect){effect.element.makePositioned();effect.element.down().makePositioned();if(window.opera)effect.element.setStyle({top:''});effect.element.makeClipping().show();},afterUpdateInternal:function(effect){effect.element.down().setStyle({bottom:(effect.dims[0]-effect.element.clientHeight)+'px'});},afterFinishInternal:function(effect){effect.element.hide().undoClipping().undoPositioned();effect.element.down().undoPositioned().setStyle({bottom:oldInnerBottom});}},arguments[1]||{}));};Effect.Squish=function(element){return new Effect.Scale(element,window.opera?1:0,{restoreAfterFinish:true,beforeSetup:function(effect){effect.element.makeClipping();},afterFinishInternal:function(effect){effect.element.hide().undoClipping();}});};Effect.Grow=function(element){element=$(element);var options=Object.extend({direction:'center',moveTransition:Effect.Transitions.sinoidal,scaleTransition:Effect.Transitions.sinoidal,opacityTransition:Effect.Transitions.full},arguments[1]||{});var oldStyle={top:element.style.top,left:element.style.left,height:element.style.height,width:element.style.width,opacity:element.getInlineOpacity()};var dims=element.getDimensions();var initialMoveX,initialMoveY;var moveX,moveY;switch(options.direction){case'top-left':initialMoveX=initialMoveY=moveX=moveY=0;break;case'top-right':initialMoveX=dims.width;initialMoveY=moveY=0;moveX=-dims.width;break;case'bottom-left':initialMoveX=moveX=0;initialMoveY=dims.height;moveY=-dims.height;break;case'bottom-right':initialMoveX=dims.width;initialMoveY=dims.height;moveX=-dims.width;moveY=-dims.height;break;case'center':initialMoveX=dims.width/2;initialMoveY=dims.height/2;moveX=-dims.width/2;moveY=-dims.height/2;break;}
return new Effect.Move(element,{x:initialMoveX,y:initialMoveY,duration:0.01,beforeSetup:function(effect){effect.element.hide().makeClipping().makePositioned();},afterFinishInternal:function(effect){new Effect.Parallel([new Effect.Opacity(effect.element,{sync:true,to:1.0,from:0.0,transition:options.opacityTransition}),new Effect.Move(effect.element,{x:moveX,y:moveY,sync:true,transition:options.moveTransition}),new Effect.Scale(effect.element,100,{scaleMode:{originalHeight:dims.height,originalWidth:dims.width},sync:true,scaleFrom:window.opera?1:0,transition:options.scaleTransition,restoreAfterFinish:true})],Object.extend({beforeSetup:function(effect){effect.effects[0].element.setStyle({height:'0px'}).show();},afterFinishInternal:function(effect){effect.effects[0].element.undoClipping().undoPositioned().setStyle(oldStyle);}},options));}});};Effect.Shrink=function(element){element=$(element);var options=Object.extend({direction:'center',moveTransition:Effect.Transitions.sinoidal,scaleTransition:Effect.Transitions.sinoidal,opacityTransition:Effect.Transitions.none},arguments[1]||{});var oldStyle={top:element.style.top,left:element.style.left,height:element.style.height,width:element.style.width,opacity:element.getInlineOpacity()};var dims=element.getDimensions();var moveX,moveY;switch(options.direction){case'top-left':moveX=moveY=0;break;case'top-right':moveX=dims.width;moveY=0;break;case'bottom-left':moveX=0;moveY=dims.height;break;case'bottom-right':moveX=dims.width;moveY=dims.height;break;case'center':moveX=dims.width/2;moveY=dims.height/2;break;}
return new Effect.Parallel([new Effect.Opacity(element,{sync:true,to:0.0,from:1.0,transition:options.opacityTransition}),new Effect.Scale(element,window.opera?1:0,{sync:true,transition:options.scaleTransition,restoreAfterFinish:true}),new Effect.Move(element,{x:moveX,y:moveY,sync:true,transition:options.moveTransition})],Object.extend({beforeStartInternal:function(effect){effect.effects[0].element.makePositioned().makeClipping();},afterFinishInternal:function(effect){effect.effects[0].element.hide().undoClipping().undoPositioned().setStyle(oldStyle);}},options));};Effect.Pulsate=function(element){element=$(element);var options=arguments[1]||{},oldOpacity=element.getInlineOpacity(),transition=options.transition||Effect.Transitions.linear,reverser=function(pos){return 1-transition((-Math.cos((pos*(options.pulses||5)*2)*Math.PI)/2)+.5);};return new Effect.Opacity(element,Object.extend(Object.extend({duration:2.0,from:0,afterFinishInternal:function(effect){effect.element.setStyle({opacity:oldOpacity});}},options),{transition:reverser}));};Effect.Fold=function(element){element=$(element);var oldStyle={top:element.style.top,left:element.style.left,width:element.style.width,height:element.style.height};element.makeClipping();return new Effect.Scale(element,5,Object.extend({scaleContent:false,scaleX:false,afterFinishInternal:function(effect){new Effect.Scale(element,1,{scaleContent:false,scaleY:false,afterFinishInternal:function(effect){effect.element.hide().undoClipping().setStyle(oldStyle);}});}},arguments[1]||{}));};Effect.Morph=Class.create(Effect.Base,{initialize:function(element){this.element=$(element);if(!this.element)throw(Effect._elementDoesNotExistError);var options=Object.extend({style:{}},arguments[1]||{});if(!Object.isString(options.style))this.style=$H(options.style);else{if(options.style.include(':'))
this.style=options.style.parseStyle();else{this.element.addClassName(options.style);this.style=$H(this.element.getStyles());this.element.removeClassName(options.style);var css=this.element.getStyles();this.style=this.style.reject(function(style){return style.value==css[style.key];});options.afterFinishInternal=function(effect){effect.element.addClassName(effect.options.style);effect.transforms.each(function(transform){effect.element.style[transform.style]='';});};}}
this.start(options);},setup:function(){function parseColor(color){if(!color||['rgba(0, 0, 0, 0)','transparent'].include(color))color='#ffffff';color=color.parseColor();return $R(0,2).map(function(i){return parseInt(color.slice(i*2+1,i*2+3),16);});}
this.transforms=this.style.map(function(pair){var property=pair[0],value=pair[1],unit=null;if(value.parseColor('#zzzzzz')!='#zzzzzz'){value=value.parseColor();unit='color';}else if(property=='opacity'){value=parseFloat(value);if(Prototype.Browser.IE&&(!this.element.currentStyle.hasLayout))
this.element.setStyle({zoom:1});}else if(Element.CSS_LENGTH.test(value)){var components=value.match(/^([\+\-]?[0-9\.]+)(.*)$/);value=parseFloat(components[1]);unit=(components.length==3)?components[2]:null;}
var originalValue=this.element.getStyle(property);return{style:property.camelize(),originalValue:unit=='color'?parseColor(originalValue):parseFloat(originalValue||0),targetValue:unit=='color'?parseColor(value):value,unit:unit};}.bind(this)).reject(function(transform){return((transform.originalValue==transform.targetValue)||(transform.unit!='color'&&(isNaN(transform.originalValue)||isNaN(transform.targetValue))));});},update:function(position){var style={},transform,i=this.transforms.length;while(i--)
style[(transform=this.transforms[i]).style]=transform.unit=='color'?'#'+
(Math.round(transform.originalValue[0]+
(transform.targetValue[0]-transform.originalValue[0])*position)).toColorPart()+
(Math.round(transform.originalValue[1]+
(transform.targetValue[1]-transform.originalValue[1])*position)).toColorPart()+
(Math.round(transform.originalValue[2]+
(transform.targetValue[2]-transform.originalValue[2])*position)).toColorPart():(transform.originalValue+
(transform.targetValue-transform.originalValue)*position).toFixed(3)+
(transform.unit===null?'':transform.unit);this.element.setStyle(style,true);}});Effect.Transform=Class.create({initialize:function(tracks){this.tracks=[];this.options=arguments[1]||{};this.addTracks(tracks);},addTracks:function(tracks){tracks.each(function(track){track=$H(track);var data=track.values().first();this.tracks.push($H({ids:track.keys().first(),effect:Effect.Morph,options:{style:data}}));}.bind(this));return this;},play:function(){return new Effect.Parallel(this.tracks.map(function(track){var ids=track.get('ids'),effect=track.get('effect'),options=track.get('options');var elements=[$(ids)||$$(ids)].flatten();return elements.map(function(e){return new effect(e,Object.extend({sync:true},options))});}).flatten(),this.options);}});Element.CSS_PROPERTIES=$w('backgroundColor backgroundPosition borderBottomColor borderBottomStyle '+'borderBottomWidth borderLeftColor borderLeftStyle borderLeftWidth '+'borderRightColor borderRightStyle borderRightWidth borderSpacing '+'borderTopColor borderTopStyle borderTopWidth bottom clip color '+'fontSize fontWeight height left letterSpacing lineHeight '+'marginBottom marginLeft marginRight marginTop markerOffset maxHeight '+'maxWidth minHeight minWidth opacity outlineColor outlineOffset '+'outlineWidth paddingBottom paddingLeft paddingRight paddingTop '+'right textIndent top width wordSpacing zIndex');Element.CSS_LENGTH=/^(([\+\-]?[0-9\.]+)(em|ex|px|in|cm|mm|pt|pc|\%))|0$/;String.__parseStyleElement=document.createElement('div');String.prototype.parseStyle=function(){var style,styleRules=$H();if(Prototype.Browser.WebKit)
style=new Element('div',{style:this}).style;else{String.__parseStyleElement.innerHTML='<div style="'+this+'"></div>';style=String.__parseStyleElement.childNodes[0].style;}
Element.CSS_PROPERTIES.each(function(property){if(style[property])styleRules.set(property,style[property]);});if(Prototype.Browser.IE&&this.include('opacity'))
styleRules.set('opacity',this.match(/opacity:\s*((?:0|1)?(?:\.\d*)?)/)[1]);return styleRules;};if(document.defaultView&&document.defaultView.getComputedStyle){Element.getStyles=function(element){var css=document.defaultView.getComputedStyle($(element),null);return Element.CSS_PROPERTIES.inject({},function(styles,property){styles[property]=css[property];return styles;});};}else{Element.getStyles=function(element){element=$(element);var css=element.currentStyle,styles;styles=Element.CSS_PROPERTIES.inject({},function(results,property){results[property]=css[property];return results;});if(!styles.opacity)styles.opacity=element.getOpacity();return styles;};}
Effect.Methods={morph:function(element,style){element=$(element);new Effect.Morph(element,Object.extend({style:style},arguments[2]||{}));return element;},visualEffect:function(element,effect,options){element=$(element);var s=effect.dasherize().camelize(),klass=s.charAt(0).toUpperCase()+s.substring(1);new Effect[klass](element,options);return element;},highlight:function(element,options){element=$(element);new Effect.Highlight(element,options);return element;}};$w('fade appear grow shrink fold blindUp blindDown slideUp slideDown '+'pulsate shake puff squish switchOff dropOut').each(function(effect){Effect.Methods[effect]=function(element,options){element=$(element);Effect[effect.charAt(0).toUpperCase()+effect.substring(1)](element,options);return element;};});$w('getInlineOpacity forceRerendering setContentZoom collectTextNodes collectTextNodesIgnoreClass getStyles').each(function(f){Effect.Methods[f]=Element[f];});Element.addMethods(Effect.Methods);;function evalFunc(){this.input=evalFunc_input;this.output=evalFunc_output;this.parseInt=evalFunc_parseInt;this.getNumChars=evalFunc_getNumChars;this.parseDouble=evalFunc_parseDouble;this.noSpace=evalFunc_noSpace;this.getSecs=evalFunc_getSecs;this.getYear=evalFunc_getYear;this.getTimeSecs=evalFunc_getTimeSecs;this.getTime=evalFunc_getTime;this.getDate=evalFunc_getDate;this.getTimestamp=evalFunc_getTimestamp;this.caseSwitch=evalFunc_caseSwitch;this.evalObjValue=evalFunc_evalObjValue;this.outputObjValue=evalFunc_outputObjValue;this.split=evalFunc_splitStr;this.pol=evalFunc_pol;this.ltrim=evalFunc_ltrim;this.btrim=evalFunc_btrim;var today=new Date();this.lastYear=this.getYear(today);this.lastDate=this.getDate(today);this.lastTime=this.getTimestamp(today);this.refDate=today;this.isInString='';this.USmode=0;}
function evalFunc_pol(fortegn,value){return eval(((fortegn=="-")?'-':'')+value);}
function evalFunc_evalObjValue(FObj,value){var evallist=FObj.evallist;this.isInString=(FObj.is_in)?''+FObj.is_in:'';var index=1;var theEvalType=(FObj.evallist)?this.split(evallist,",",index):false;var newValue=value;while(theEvalType){if(theEvalType.slice(0,3)=='tx_'){if(typeof window[theEvalType]=='function'){newValue=window[theEvalType](newValue);}}else{newValue=evalFunc.input(theEvalType,newValue);}
index++;theEvalType=this.split(evallist,",",index);}
return newValue;}
function evalFunc_outputObjValue(FObj,value){var evallist=FObj.evallist;var index=1;var theEvalType=this.split(evallist,",",index);var newValue=value;while(theEvalType){if(theEvalType!='required'){newValue=evalFunc.output(theEvalType,value,FObj);}
index++;theEvalType=this.split(evallist,",",index);}
return newValue;}
function evalFunc_caseSwitch(type,inVal){var theVal=''+inVal;var newString='';switch(type){case"alpha":case"num":case"alphanum":case"alphanum_x":for(var a=0;a<theVal.length;a++){var theChar=theVal.substr(a,1);var special=(theChar=='_'||theChar=='-');var alpha=(theChar>='a'&&theChar<='z')||(theChar>='A'&&theChar<='Z');var num=(theChar>='0'&&theChar<='9');switch(type){case"alphanum":special=0;break;case"alpha":num=0;special=0;break;case"num":alpha=0;special=0;break;}
if(alpha||num||theChar==' '||special){newString+=theChar;}}
break;case"is_in":if(this.isInString){for(var a=0;a<theVal.length;a++){var theChar=theVal.substr(a,1);if(this.isInString.indexOf(theChar)!=-1){newString+=theChar;}}}else{newString=theVal;}
break;case"nospace":newString=this.noSpace(theVal);break;case"upper":newString=theVal.toUpperCase();break;case"lower":newString=theVal.toLowerCase();break;default:return inVal;}
return newString;}
function evalFunc_parseInt(value){var theVal=''+value;if(!value)return 0;for(var a=0;a<theVal.length;a++){if(theVal.substr(a,1)!='0'){return parseInt(theVal.substr(a,theVal.length))||0;}}
return 0;}
function evalFunc_getNumChars(value){var theVal=''+value;if(!value)return 0;var outVal="";for(var a=0;a<theVal.length;a++){if(theVal.substr(a,1)==parseInt(theVal.substr(a,1))){outVal+=theVal.substr(a,1);}}
return outVal;}
function evalFunc_parseDouble(value){var theVal=''+value;var dec=0;if(!value)return 0;for(var a=theVal.length;a>0;a--){if(theVal.substr(a-1,1)=='.'||theVal.substr(a-1,1)==','){dec=theVal.substr(a);theVal=theVal.substr(0,a-1);break;}}
dec=this.getNumChars(dec)+'00';theVal=this.parseInt(this.noSpace(theVal))+TS.decimalSign+dec.substr(0,2);return theVal;}
function evalFunc_noSpace(value){var theVal=''+value;var newString="";for(var a=0;a<theVal.length;a++){var theChar=theVal.substr(a,1);if(theChar!=' '){newString+=theChar;}}
return newString;}
function evalFunc_ltrim(value){var theVal=''+value;if(!value)return'';for(var a=0;a<theVal.length;a++){if(theVal.substr(a,1)!=' '){return theVal.substr(a,theVal.length);}}
return'';}
function evalFunc_btrim(value){var theVal=''+value;if(!value)return'';for(var a=theVal.length;a>0;a--){if(theVal.substr(a-1,1)!=' '){return theVal.substr(0,a);}}
return'';}
function evalFunc_splitSingle(value){var theVal=''+value;this.values=new Array();this.pointer=3;this.values[1]=theVal.substr(0,2);this.values[2]=theVal.substr(2,2);this.values[3]=theVal.substr(4,10);}
function evalFunc_split(value){this.values=new Array();this.valPol=new Array();this.pointer=0;var numberMode=0;var theVal="";value+=" ";for(var a=0;a<value.length;a++){var theChar=value.substr(a,1);if(theChar<"0"||theChar>"9"){if(numberMode){this.pointer++;this.values[this.pointer]=theVal;theVal="";numberMode=0;}
if(theChar=="+"||theChar=="-"){this.valPol[this.pointer+1]=theChar;}}else{theVal+=theChar;numberMode=1;}}}
function evalFunc_input(type,inVal){if(type=="md5"){return MD5(inVal);}
if(type=="trim"){return this.ltrim(this.btrim(inVal));}
if(type=="int"){return this.parseInt(inVal);}
if(type=="double2"){return this.parseDouble(inVal);}
var today=new Date();var add=0;var value=this.ltrim(inVal);var values=new evalFunc_split(value);var theCmd=value.substr(0,1);value=this.caseSwitch(type,value);if(value==""){return"";return 0;}
switch(type){case"datetime":switch(theCmd){case"d":case"t":case"n":if(values.valPol[1]){add=this.pol(values.valPol[1],this.parseInt(values.values[1]));}
break;case"+":case"-":if(values.valPol[1]){add=this.pol(values.valPol[1],this.parseInt(values.values[1]));}
break;default:var index=value.indexOf(' ');if(index!=-1){var dateVal=this.input("date",value.substr(index,value.length));this.refDate=new Date(dateVal*1000);this.lastTime=dateVal+this.input("time",value.substr(0,index));}}
this.lastTime+=add*24*60*60;return this.lastTime;break;case"year":switch(theCmd){case"d":case"t":case"n":if(values.valPol[1]){add=this.pol(values.valPol[1],this.parseInt(values.values[1]));}
break;case"+":case"-":if(values.valPol[1]){add=this.pol(values.valPol[1],this.parseInt(values.values[1]));}
break;default:if(values.valPol[2]){add=this.pol(values.valPol[2],this.parseInt(values.values[2]));}
var year=(values.values[1])?this.parseInt(values.values[1]):this.getYear(today);if((year>=0&&year<38)||(year>=70&&year<100)||(year>=1902&&year<2038)){if(year<100){year=(year<38)?year+=2000:year+=1900;}}else{year=this.getYear(today);}
this.lastYear=year}
this.lastYear+=add;return this.lastYear;break;case"date":switch(theCmd){case"d":case"t":case"n":if(values.valPol[1]){add=this.pol(values.valPol[1],this.parseInt(values.values[1]));}
break;case"+":case"-":if(values.valPol[1]){add=this.pol(values.valPol[1],this.parseInt(values.values[1]));}
break;default:var index=4;if(values.valPol[index]){add=this.pol(values.valPol[index],this.parseInt(values.values[index]));}
if(values.values[1]&&values.values[1].length>2){if(values.valPol[2]){add=this.pol(values.valPol[2],this.parseInt(values.values[2]));}
var temp=values.values[1];values=new evalFunc_splitSingle(temp);}
var year=(values.values[3])?this.parseInt(values.values[3]):this.getYear(today);if((year>=0&&year<38)||(year>=70&&year<100)||(year>=1902&&year<2038)){if(year<100){year=(year<38)?year+=2000:year+=1900;}}else{year=this.getYear(today);}
var month=(values.values[this.USmode?1:2])?this.parseInt(values.values[this.USmode?1:2]):today.getUTCMonth()+1;var day=(values.values[this.USmode?2:1])?this.parseInt(values.values[this.USmode?2:1]):today.getUTCDate();var theTime=new Date(parseInt(year),parseInt(month)-1,parseInt(day));this.lastDate=this.getTimestamp(theTime);theTime.setTime((this.lastDate-theTime.getTimezoneOffset()*60)*1000);this.lastDate=this.getTimestamp(theTime);}
this.lastDate+=add*24*60*60;return this.lastDate;break;case"time":case"timesec":switch(theCmd){case"d":case"t":case"n":if(values.valPol[1]){add=this.pol(values.valPol[1],this.parseInt(values.values[1]));}
break;case"+":case"-":if(values.valPol[1]){add=this.pol(values.valPol[1],this.parseInt(values.values[1]));}
break;default:var index=(type=="timesec")?4:3;if(values.valPol[index]){add=this.pol(values.valPol[index],this.parseInt(values.values[index]));}
if(values.values[1]&&values.values[1].length>2){if(values.valPol[2]){add=this.pol(values.valPol[2],this.parseInt(values.values[2]));}
var temp=values.values[1];values=new evalFunc_splitSingle(temp);}
var sec=(values.values[3])?this.parseInt(values.values[3]):today.getUTCSeconds();if(sec>59){sec=59;}
var min=(values.values[2])?this.parseInt(values.values[2]):today.getUTCMinutes();if(min>59){min=59;}
var hour=(values.values[1])?this.parseInt(values.values[1]):today.getUTCHours();if(hour>23){hour=23;}
var theTime=new Date(this.getYear(this.refDate),this.refDate.getUTCMonth(),this.refDate.getUTCDate(),hour,min,((type=="timesec")?sec:0));this.lastTime=this.getTimestamp(theTime);theTime.setTime((this.lastTime-theTime.getTimezoneOffset()*60)*1000);this.lastTime=this.getTime(theTime);}
this.lastTime+=add*60;if(this.lastTime<0){this.lastTime+=24*60*60;}
return this.lastTime;break;default:return value;}}
function evalFunc_output(type,value,FObj){var theString="";switch(type){case"date":if(!parseInt(value)){return'';}
var theTime=new Date(parseInt(value)*1000);if(this.USmode){theString=(theTime.getUTCMonth()+1)+'-'+theTime.getUTCDate()+'-'+this.getYear(theTime);}else{theString=theTime.getUTCDate()+'-'+(theTime.getUTCMonth()+1)+'-'+this.getYear(theTime);}
break;case"datetime":if(!parseInt(value)){return'';}
theString=this.output("time",value)+' '+this.output("date",value);break;case"time":case"timesec":if(!parseInt(value)){return'';}
var theTime=new Date(parseInt(value)*1000);var h=theTime.getUTCHours();var m=theTime.getUTCMinutes();var s=theTime.getUTCSeconds();theString=h+':'+((m<10)?'0':'')+m+((type=="timesec")?':'+((s<10)?'0':'')+s:'');break;case"password":theString=(value)?TS.passwordDummy:"";break;case"int":theString=(FObj.checkbox&&value==FObj.checkboxValue)?'':value;break;default:theString=value;}
return theString;}
function evalFunc_getSecs(timeObj){return Math.round(timeObj.getUTCSeconds()/1000);}
function evalFunc_getTime(timeObj){return timeObj.getUTCHours()*60*60+timeObj.getUTCMinutes()*60+Math.round(timeObj.getUTCSeconds()/1000);}
function evalFunc_getYear(timeObj){return timeObj.getUTCFullYear();}
function evalFunc_getTimeSecs(timeObj){return timeObj.getHours()*60*60+timeObj.getMinutes()*60+timeObj.getSeconds();}
function evalFunc_getDate(timeObj){var theTime=new Date(this.getYear(timeObj),timeObj.getUTCMonth(),timeObj.getUTCDate());return this.getTimestamp(theTime);}
function evalFunc_dummy(evallist,is_in,checkbox,checkboxValue){this.evallist=evallist;this.is_in=is_in;this.checkboxValue=checkboxValue;this.checkbox=checkbox;}
function evalFunc_splitStr(theStr1,delim,index){var theStr=''+theStr1;var lengthOfDelim=delim.length;sPos=-lengthOfDelim;if(index<1){index=1;}
for(a=1;a<index;a++){sPos=theStr.indexOf(delim,sPos+lengthOfDelim);if(sPos==-1){return null;}}
ePos=theStr.indexOf(delim,sPos+lengthOfDelim);if(ePos==-1){ePos=theStr.length;}
return(theStr.substring(sPos+lengthOfDelim,ePos));}
function evalFunc_getTimestamp(timeObj){return Date.parse(timeObj)/1000;}