TINY={};TINY.box=function(){var c,d,f,g,a,b=0;return{show:function(e){a={opacity:70,close:1,animate:1,fixed:1,mask:1,maskid:"",boxid:"",topsplit:2,url:0,post:0,height:0,width:0,html:0,iframe:0};for(s in e)a[s]=e[s];if(b){if(c.style.display="none",clearTimeout(b.ah),g.v)b.removeChild(g),g.v=0}else c=document.createElement("div"),c.className="tbox",b=document.createElement("div"),b.className="tinner",f=document.createElement("div"),f.className="tcontent",d=document.createElement("div"),d.className="tmask",g=document.createElement("div"),g.className="tclose",g.v=0,document.body.appendChild(d),document.body.appendChild(c),c.appendChild(b),b.appendChild(f),d.onclick=g.onclick=TINY.box.hide,window.onresize=TINY.box.resize;b.id=a.boxid;d.id=a.maskid;c.style.position=a.fixed?"fixed":"absolute";a.html&&!a.animate?(b.style.backgroundImage="none",f.innerHTML=a.html,f.style.display="",b.style.width=a.width?a.width+"px":"auto",b.style.height=a.height?a.height+"px":"auto"):(f.style.display="none",!a.animate&&a.width&&a.height?(b.style.width=a.width+"px",b.style.height=a.height+"px"):b.style.width=b.style.height="105px");a.mask?(this.mask(),this.alpha(d,1,a.opacity)):this.alpha(c,1,100);a.autohide?b.ah=setTimeout(TINY.box.hide,1E3*a.autohide):document.onkeyup=TINY.box.esc},fill:function(e,i,h,j,c,f){if(i)if(a.image){var g=new Image;g.onload=function(){c=c||g.width;f=f||g.height;TINY.box.psh(g,j,c,f)};g.src=a.image}else if(a.iframe)this.psh('<iframe src="'+a.iframe+'" width="'+a.width+'" frameborder="0" height="'+a.height+'"></iframe>',j,c,f);else{var d=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");d.onreadystatechange=function(){if(d.readyState==4&&d.status==200)b.style.backgroundImage="",TINY.box.psh(d.responseText,j,c,f)};h?(d.open("POST",e,true),d.setRequestHeader("Content-type","application/x-www-form-urlencoded"),d.send(h)):(d.open("GET",e,true),d.send(null))}else this.psh(e,j,c,f)},psh:function(a,i,h,c){typeof a=="object"?f.appendChild(a):f.innerHTML=a;var a=b.style.width,d=b.style.height;if(!h||!c)b.style.width=h?h+"px":"",b.style.height=c?c+"px":"",f.style.display="",c||(c=parseInt(f.offsetHeight)),h||(h=parseInt(f.offsetWidth)),f.style.display="none";b.style.width=a;b.style.height=d;this.size(h,c,i)},esc:function(a){a=a||window.event;a.keyCode==27&&TINY.box.hide()},hide:function(){TINY.box.alpha(c,-1,0,3);document.onkeypress=null;a.closejs&&a.closejs()},resize:function(){TINY.box.pos();TINY.box.mask()},mask:function(){d.style.height=this.total(1)+"px";d.style.width=this.total(0)+"px"},pos:function(){var e;typeof a.top!="undefined"?e=a.top:(e=this.height()/a.topsplit-c.offsetHeight/2,e=e<20?20:e);!a.fixed&&!a.top&&(e+=this.top());c.style.top=e+"px";c.style.left=typeof a.left!="undefined"?a.left+"px":this.width()/2-c.offsetWidth/2+"px"},alpha:function(a,b,c){clearInterval(a.ai);if(b)a.style.opacity=0,a.style.filter="alpha(opacity=0)",a.style.display="block",TINY.box.pos();a.ai=setInterval(function(){TINY.box.ta(a,c,b)},20)},ta:function(e,i,h){var g=Math.round(e.style.opacity*100);g==i?(clearInterval(e.ai),h==-1?(e.style.display="none",e==c?TINY.box.alpha(d,-1,0,2):f.innerHTML=b.style.backgroundImage=""):e==d?this.alpha(c,1,100):(c.style.filter="",TINY.box.fill(a.html||a.url,a.url||a.iframe||a.image,a.post,a.animate,a.width,a.height))):(i-=Math.floor(Math.abs(i-g)*0.5)*h,e.style.opacity=i/100,e.style.filter="alpha(opacity="+i+")")},size:function(e,c,h){if(h){clearInterval(b.si);var d=parseInt(b.style.width)>e?-1:1,k=parseInt(b.style.height)>c?-1:1;b.si=setInterval(function(){TINY.box.ts(e,d,c,k)},20)}else{b.style.backgroundImage="none";if(a.close)b.appendChild(g),g.v=1;b.style.width=e+"px";b.style.height=c+"px";f.style.display="";this.pos();a.openjs&&a.openjs()}},ts:function(c,d,h,j){var k=parseInt(b.style.width),l=parseInt(b.style.height);if(k==c&&l==h){clearInterval(b.si);b.style.backgroundImage="none";f.style.display="block";if(a.close)b.appendChild(g),g.v=1;a.openjs&&a.openjs()}else{if(k!=c)b.style.width=c-Math.floor(Math.abs(c-k)*0.6)*d+"px";if(l!=h)b.style.height=h-Math.floor(Math.abs(h-l)*0.6)*j+"px";this.pos()}},top:function(){return document.documentElement.scrollTop||document.body.scrollTop},width:function(){return self.innerWidth||document.documentElement.clientWidth||document.body.clientWidth},height:function(){return self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight},total:function(a){var b=document.body,c=document.documentElement;return a?Math.max(Math.max(b.scrollHeight,c.scrollHeight),Math.max(b.clientHeight,c.clientHeight)):Math.max(Math.max(b.scrollWidth,c.scrollWidth),Math.max(b.clientWidth,c.clientWidth))}}}();var a=a||[];a.push(["_setAccount","UA-27536958-1"]);a.push(["_trackPageview"]);var b=document.createElement("script");b.type="text/javascript";b.async=!0;b.src=("https:"==document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js";var c=document.getElementsByTagName("script")[0];c.parentNode.insertBefore(b,c);
