/*
 * (c) ES/TXL 2008
 */
var $=String.prototype;$.trim=function(){return this.replace(/^\s*/,"").replace(/\s*$/,"")};$.spaces_del=function(){return this.replace(/ /g,"")};$.is_email=function(){return/^[\w,!#\$%&'\*\+/=\?\^_`\{\|}~-]+(\.[\w,!#\$%&'\*\+/=\?\^_`\{\|}~-]+)*@[\w-]+(\.[\w-]+)*\.([a-zA-Z]{2,})$/.test(this)
};$=(function(){function v(H){return document.getElementById(H)}function G(H){return document.getElementsByTagName(H)}var b=(function(){var H=[],I=function(){var J;while(J=H.shift()){J()}};I.add=function(J){H.push(J)
};return I})();function z(I,H){if(I&&I.target){return{src:I.target,dst:I.relatedTarget}}else{return{src:event.srcElement,dst:(H?event.fromElement:event.toElement)}}}function k(H){H=H||event;if(H.preventDefault){return H.preventDefault()
}H.returnValue=false}function E(I,H){while(I){if(I===H){return true}I=I.parentNode}return false}function w(I){var H=I.offsetLeft,J=I.offsetTop;while(I=I.offsetParent){H+=I.offsetLeft;J+=I.offsetTop}return{x:H,y:J}
}img_cache_images=[];function l(I){var H=new Image();H.src=I;img_cache_images.push(H)}var m=(function(){function J(L){var M=z(L).src;while(M.className!="popup"){M=M.parentNode;if(M==null){return false}}return M
}function K(L){while(L){L=L.nextSibling;if(L.className=="popup"){return L}}return null}function H(O){var N,L,M,P=J(O);if(!P){return}if(!P.popupObj){L=document.createElement("img");L.src="/imgs/popl.png";
M=L.style;M.position="absolute";M.left="-16px";M.top="10px";(P.popupObj=K(P)).appendChild(L)}N=w(P);M=P.popupObj.style;M.left=N.x+20+P.offsetWidth+"px";M.top=N.y-4+"px";M.display="block"}function I(L){var M=J(L);
if(M&&M.popupObj){M.popupObj.style.display="none"}}return function(){b.add(function(){l("/imgs/popl.png")});var L,M=G("A");for(L=M.length;--L>=0;){if(M[L].className=="popup"){M[L].onmouseover=H;M[L].onmouseout=I
}}}})();function j(){var J,M,I=["dl","Delicious","del.icio.us/save?v=5&noui&jump=close&url=*u&t=*t","dg","Digg","digg.com/submit?url=*u&title=*t&bodytext=*d","fb","Facebook","facebook.com/sharer.php?u=*u&t=*t","li","LinkedIn","linkedin.com/shareArticle?mini=true&source=&url=*u&title=*t&summary=*d","ms","MySpace","myspace.com/modules/postto/pages/?u=*u&t=*t&c=*d","ri","Reddit","reddit.com/submit?url=*u&title=*t","su","StumbleUpon","www.stumbleupon.com/submit?url=*u&title=*t","tw","Twitter","twitter.com/home?status=*d"];
function H(Q){var S=z(Q).src,N="",P,O,R="";if(S.className=="title"){if(!M){M=document.createElement("div");M.className="ext";M.onclick=L;O=G("meta");for(P=O.length;--P>=0;){if(O[P].name=="description"){R=O[P].content
}}for(P=0;P<I.length;P+=3){O=encodeURIComponent;if(I[P]=="tw"){R="@ "+window.location+" # "+document.title+" - "+R;if(R.length>140){R=R.substr(0,137)+"..."}}N+='<a href="http://'+I[P+2].replace("*u",O(window.location)).replace("*t",O(document.title)).replace("*d",O(R))+'" target=_blank><span style="background-position:0 '+(-16*P/3)+'px;"></span>'+I[P+1]+"</a>"
}M.innerHTML=N;S.parentNode.appendChild(M)}M.style.display="block"}}function K(N){N=z(N,0);if(M&&E(N.src,J)&&!E(N.dst,J)){M.style.display="none"}}function L(N){var O=z(N).src;k(N);if(O.tagName=="A"){window.open(O.href)
}}if(J=v("share")){l("/imgs/i_shares.png");J.onmouseover=H;J.onmouseout=K}}var p=(function(){var J=[35,127,221,301,385,499,641,751,813,867],T,R,I,N,P,L,O=0,H=0,Q=1;function K(){if(!I){return}H+=Q;if(H>=J.length){H=0
}else{if(H<0){H=J.length-1}}L=N-J[H];if(T){clearInterval(T)}T=setInterval(M,40)}function M(){if(O==L){clearInterval(T);return}O+=(L<O)?-1:1;O+=Math.round((L-O)/12);I.style.left=O+"px"}function S(U){if(!U){U=event
}clearInterval(R);R=setInterval(K,3000);Q=(U.clientX-P<N)?-1:1;K()}return function(){I=$.id("hslide");if(!I){return}I.onclick=S;P=w(I).x;N=Math.floor(I.clientWidth/2);J[0]=N;I=I.childNodes[0];R=setInterval(K,3000)
}})();function o(J,I){if(I.href.search(/\.jpg$/i)<0){return}k(J);var H="toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1";if(navigator.userAgent.indexOf("MSIE")>=0){H+=",left=0,top=0,width=1024,height=768"
}window.open("image.htm?"+encodeURI(I.href.match(/.*(\/files.*)\./)[1]+"&"+I.title),(J.shiftKey?"_blank":"imgwin"),H).focus()}function r(K){var I=K.href,J,H="^"+window.location.protocol+"//"+window.location.hostname;
if(I.search(H)<0){I="/ext-link/"+I.split("://").pop()}else{I=I.substr(H.length-1);if(J=I.match(/(?:p=)?redir\/(.+?)([&?]|$)/)){I="/ext-buy/"+J[1]}else{if(I.search(/\.(jpg|pdf)$/i)<0){return}}}pageTracker._trackPageview(I)
}function d(I){var H=2,J=z(I).src;while(J.tagName!="A"&&(J=J.parentNode)&&H--){}if(J.tagName!="A"){return}o(I,J);r(J)}function D(K){K=z(K,1);var J,H,I,L=K.src;if(L.tagName!="A"){return}I=L.offsetHeight;
H=L.offsetWidth;J=w(L);L=v("m-"+L.id.substr(2));if(L){if(L.offsetWidth<H){L.style.width=H+"px"}L.style.left=(J.x+(H-L.offsetWidth)/2)+"px";L.style.top=(J.y+I)+"px";L.style.visibility="visible"}}function h(H){H=z(H,0);
var I=v("m-"+H.src.id.substr(2));if(I&&!E(H.dst,I)){i(I)}}function i(H){H.style.width="";H.style.visibility="hidden"}function a(J,I){var H=v("b-"+I.id.substr(2));J=z(J,0).dst;if(!E(J,I)&&!E(J,H)){i(I)}}function x(){var J=$dyn.submenus,H,M,I,K,L="";
for(H=J.length;--H>=0;){L+=("<table class=submenu id=m-"+J[H][0]+' onmouseout="$.menu_out(event, this)"><tr><td><ul>');K=J[H][1];for(M=0;M<K.length;M++){I="";if(K[M][2]==1){I="cat"}if(M+1==K.length){I="btmmost"
}if(M==0){I+=" topmost"}if(I){I='class="'+I+'"'}L+=("<li "+I+'><a href="'+K[M][0]+'">'+K[M][1]+"</a></li>")}L+=("</ul></table>")}document.write(L)}var g;function u(I,H){I.style.backgroundColor=H?"#fdd":"";
if(H){g=I}}function e(H){H=H||event;if(H&&H.altKey&&H.ctrlKey){return true}g=null}function B(H){if(g){alert(H);g.focus()}return !g}function c(K,L){if(e(L)){return true}var N=K.elements,J=N.namedItem("fName"),I=N.namedItem("fEmail"),H=N.namedItem("fSubj"),M=N.namedItem("fMsg");
I.value=I.value.spaces_del();J.value=J.value.trim();H.value=H.value.trim();u(M,M.value.length<4);u(H,H.value.length<3);u(I,!I.value.is_email());u(J,J.value.length<2);return B("Please fill or correct the marked fields.")
}function C(I,J){if(e(J)){return true}var H=I.elements[0];H.value=H.value.spaces_del();u(H,!H.value.is_email());return B("Please correct the address.")}function F(){var H,I=G("form")[0];I.onsubmit=function(J){return c(this,J)
};I=I.elements;for(H=0;H<I.length;H++){if(I[H].value.length==0){I[H].focus();break}}}function y(){var H=G("form")[0],I=H.elements[0];H.onsubmit=function(J){return C(this,J)};if((I.value+"").length){I.focus()
}m()}function s(J){var H=J.getElementsByTagName("img")[0],I=H.cloneNode(false);J.imgs=[H,I];H=J.className.match(/rotmax-(\d+)/);if(H==null){return}J.rot_max=H[1];J.fade_pos=0;J.fade_dir=9;J.style.position="relative";
H=I.style;H.position="absolute";H.top=I.style.left="0px";H.opacity=0;H.filter="alpha(opacity=0)";n(J,1);J.getElementsByTagName("a")[0].appendChild(I)}function n(H,K){var J=H.imgs[1-K].src,I=J.match(/\d+/);
if(++I>H.rot_max){I=1}J=J.replace(/\d+/,I);if(H.imgs[K].src==J){q(H)}else{if(!H.imgs[K].onload){H.imgs[K].onload=function(){q(H)}}H.imgs[K].src=J}}var A=0;function q(I,H){if(A){return}A=1;if(!H){H=6500
}setTimeout(function(){f(I)},H)}function f(J){var I,H,L,K=1;A=0;L=J.fade_pos+J.fade_dir;if(L<0||L>100){L=(L<0)?0:100;J.fade_dir=-J.fade_dir;K=0;n(J,1-(L/100));return}J.fade_pos=L;I=(1000+L)+"";H=J.imgs[1].style;
H.filter="alpha(opacity="+L+")";H.opacity=I.substr(1,1)+"."+I.substr(2);if(K){q(J,20)}}function t(){if(window._gat){pageTracker=_gat._getTracker("UA-5358296-1");pageTracker._trackPageview()}else{pageTracker={_trackPageview:function(H){}}
}}b.add(function(){try{document.execCommand("BackgroundImageCache",false,true)}catch(H){}var I=v("btns");I.onmouseover=D;I.onmouseout=h;x()});window.onload=function(){var H=v("rot-1");if(H){s(H)}p();j()
};return{id:v,tag:G,evget:z,dom_init:b,h_click:d,menu_out:a,form_init_nl:y,form_init_co:F,ga_init:t}})();