// Create new HTML5 elements ===================================================
// -----------------------------------------------------------------------------
// This script should load before any others. We want the new elements to be
// parsed before pretty much anything happens.
// Plus, IE does not behave otherwise. The cost of being progressive...
// -----------------------------------------------------------------------------

document.createElement("article");
document.createElement("aside");
document.createElement("audio");
document.createElement("canvas");
document.createElement("command");
document.createElement("datalist");
document.createElement("details");
document.createElement("embed");
document.createElement("figcaption");
document.createElement("figure");
document.createElement("footer");
document.createElement("header");
document.createElement("hgroup");
document.createElement("keygen");
document.createElement("mark");
document.createElement("meter");
document.createElement("nav");
document.createElement("output");
document.createElement("progress");
document.createElement("rp");
document.createElement("rt");
document.createElement("ruby");
document.createElement("section");
document.createElement("source");
document.createElement("summary");
document.createElement("time");
document.createElement("video");
/*
 * Copyright (c) 2009 Simo Kinnunen.
 * Licensed under the MIT license.
 * cufon-yui.js
 * @version 1.09i
 */
var Cufon=(function(){var m=function(){return m.replace.apply(null,arguments)};var x=m.DOM={ready:(function(){var C=false,E={loaded:1,complete:1};var B=[],D=function(){if(C){return}C=true;for(var F;F=B.shift();F()){}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",D,false);window.addEventListener("pageshow",D,false)}if(!window.opera&&document.readyState){(function(){E[document.readyState]?D():setTimeout(arguments.callee,10)})()}if(document.readyState&&document.createStyleSheet){(function(){try{document.body.doScroll("left");D()}catch(F){setTimeout(arguments.callee,1)}})()}q(window,"load",D);return function(F){if(!arguments.length){D()}else{C?F():B.push(F)}}})(),root:function(){return document.documentElement||document.body}};var n=m.CSS={Size:function(C,B){this.value=parseFloat(C);this.unit=String(C).match(/[a-z%]*$/)[0]||"px";this.convert=function(D){return D/B*this.value};this.convertFrom=function(D){return D/this.value*B};this.toString=function(){return this.value+this.unit}},addClass:function(C,B){var D=C.className;C.className=D+(D&&" ")+B;return C},color:j(function(C){var B={};B.color=C.replace(/^rgba\((.*?),\s*([\d.]+)\)/,function(E,D,F){B.opacity=parseFloat(F);return"rgb("+D+")"});return B}),fontStretch:j(function(B){if(typeof B=="number"){return B}if(/%$/.test(B)){return parseFloat(B)/100}return{"ultra-condensed":0.5,"extra-condensed":0.625,condensed:0.75,"semi-condensed":0.875,"semi-expanded":1.125,expanded:1.25,"extra-expanded":1.5,"ultra-expanded":2}[B]||1}),getStyle:function(C){var B=document.defaultView;if(B&&B.getComputedStyle){return new a(B.getComputedStyle(C,null))}if(C.currentStyle){return new a(C.currentStyle)}return new a(C.style)},gradient:j(function(F){var G={id:F,type:F.match(/^-([a-z]+)-gradient\(/)[1],stops:[]},C=F.substr(F.indexOf("(")).match(/([\d.]+=)?(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)/ig);for(var E=0,B=C.length,D;E<B;++E){D=C[E].split("=",2).reverse();G.stops.push([D[1]||E/(B-1),D[0]])}return G}),quotedList:j(function(E){var D=[],C=/\s*((["'])([\s\S]*?[^\\])\2|[^,]+)\s*/g,B;while(B=C.exec(E)){D.push(B[3]||B[1])}return D}),recognizesMedia:j(function(G){var E=document.createElement("style"),D,C,B;E.type="text/css";E.media=G;try{E.appendChild(document.createTextNode("/**/"))}catch(F){}C=g("head")[0];C.insertBefore(E,C.firstChild);D=(E.sheet||E.styleSheet);B=D&&!D.disabled;C.removeChild(E);return B}),removeClass:function(D,C){var B=RegExp("(?:^|\\s+)"+C+"(?=\\s|$)","g");D.className=D.className.replace(B,"");return D},supports:function(D,C){var B=document.createElement("span").style;if(B[D]===undefined){return false}B[D]=C;return B[D]===C},textAlign:function(E,D,B,C){if(D.get("textAlign")=="right"){if(B>0){E=" "+E}}else{if(B<C-1){E+=" "}}return E},textShadow:j(function(F){if(F=="none"){return null}var E=[],G={},B,C=0;var D=/(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)|(-?[\d.]+[a-z%]*)|,/ig;while(B=D.exec(F)){if(B[0]==","){E.push(G);G={};C=0}else{if(B[1]){G.color=B[1]}else{G[["offX","offY","blur"][C++]]=B[2]}}}E.push(G);return E}),textTransform:(function(){var B={uppercase:function(C){return C.toUpperCase()},lowercase:function(C){return C.toLowerCase()},capitalize:function(C){return C.replace(/\b./g,function(D){return D.toUpperCase()})}};return function(E,D){var C=B[D.get("textTransform")];return C?C(E):E}})(),whiteSpace:(function(){var D={inline:1,"inline-block":1,"run-in":1};var C=/^\s+/,B=/\s+$/;return function(H,F,G,E){if(E){if(E.nodeName.toLowerCase()=="br"){H=H.replace(C,"")}}if(D[F.get("display")]){return H}if(!G.previousSibling){H=H.replace(C,"")}if(!G.nextSibling){H=H.replace(B,"")}return H}})()};n.ready=(function(){var B=!n.recognizesMedia("all"),E=false;var D=[],H=function(){B=true;for(var K;K=D.shift();K()){}};var I=g("link"),J=g("style");function C(K){return K.disabled||G(K.sheet,K.media||"screen")}function G(M,P){if(!n.recognizesMedia(P||"all")){return true}if(!M||M.disabled){return false}try{var Q=M.cssRules,O;if(Q){search:for(var L=0,K=Q.length;O=Q[L],L<K;++L){switch(O.type){case 2:break;case 3:if(!G(O.styleSheet,O.media.mediaText)){return false}break;default:break search}}}}catch(N){}return true}function F(){if(document.createStyleSheet){return true}var L,K;for(K=0;L=I[K];++K){if(L.rel.toLowerCase()=="stylesheet"&&!C(L)){return false}}for(K=0;L=J[K];++K){if(!C(L)){return false}}return true}x.ready(function(){if(!E){E=n.getStyle(document.body).isUsable()}if(B||(E&&F())){H()}else{setTimeout(arguments.callee,10)}});return function(K){if(B){K()}else{D.push(K)}}})();function s(D){var C=this.face=D.face,B={"\u0020":1,"\u00a0":1,"\u3000":1};this.glyphs=D.glyphs;this.w=D.w;this.baseSize=parseInt(C["units-per-em"],10);this.family=C["font-family"].toLowerCase();this.weight=C["font-weight"];this.style=C["font-style"]||"normal";this.viewBox=(function(){var F=C.bbox.split(/\s+/);var E={minX:parseInt(F[0],10),minY:parseInt(F[1],10),maxX:parseInt(F[2],10),maxY:parseInt(F[3],10)};E.width=E.maxX-E.minX;E.height=E.maxY-E.minY;E.toString=function(){return[this.minX,this.minY,this.width,this.height].join(" ")};return E})();this.ascent=-parseInt(C.ascent,10);this.descent=-parseInt(C.descent,10);this.height=-this.ascent+this.descent;this.spacing=function(L,N,E){var O=this.glyphs,M,K,G,P=[],F=0,J=-1,I=-1,H;while(H=L[++J]){M=O[H]||this.missingGlyph;if(!M){continue}if(K){F-=G=K[H]||0;P[I]-=G}F+=P[++I]=~~(M.w||this.w)+N+(B[H]?E:0);K=M.k}P.total=F;return P}}function f(){var C={},B={oblique:"italic",italic:"oblique"};this.add=function(D){(C[D.style]||(C[D.style]={}))[D.weight]=D};this.get=function(H,I){var G=C[H]||C[B[H]]||C.normal||C.italic||C.oblique;if(!G){return null}I={normal:400,bold:700}[I]||parseInt(I,10);if(G[I]){return G[I]}var E={1:1,99:0}[I%100],K=[],F,D;if(E===undefined){E=I>400}if(I==500){I=400}for(var J in G){if(!k(G,J)){continue}J=parseInt(J,10);if(!F||J<F){F=J}if(!D||J>D){D=J}K.push(J)}if(I<F){I=F}if(I>D){I=D}K.sort(function(M,L){return(E?(M>=I&&L>=I)?M<L:M>L:(M<=I&&L<=I)?M>L:M<L)?-1:1});return G[K[0]]}}function r(){function D(F,G){if(F.contains){return F.contains(G)}return F.compareDocumentPosition(G)&16}function B(G){var F=G.relatedTarget;if(!F||D(this,F)){return}C(this,G.type=="mouseover")}function E(F){C(this,F.type=="mouseenter")}function C(F,G){setTimeout(function(){var H=d.get(F).options;m.replace(F,G?h(H,H.hover):H,true)},10)}this.attach=function(F){if(F.onmouseenter===undefined){q(F,"mouseover",B);q(F,"mouseout",B)}else{q(F,"mouseenter",E);q(F,"mouseleave",E)}}}function u(){var C=[],D={};function B(H){var E=[],G;for(var F=0;G=H[F];++F){E[F]=C[D[G]]}return E}this.add=function(F,E){D[F]=C.push(E)-1};this.repeat=function(){var E=arguments.length?B(arguments):C,F;for(var G=0;F=E[G++];){m.replace(F[0],F[1],true)}}}function A(){var D={},B=0;function C(E){return E.cufid||(E.cufid=++B)}this.get=function(E){var F=C(E);return D[F]||(D[F]={})}}function a(B){var D={},C={};this.extend=function(E){for(var F in E){if(k(E,F)){D[F]=E[F]}}return this};this.get=function(E){return D[E]!=undefined?D[E]:B[E]};this.getSize=function(F,E){return C[F]||(C[F]=new n.Size(this.get(F),E))};this.isUsable=function(){return !!B}}function q(C,B,D){if(C.addEventListener){C.addEventListener(B,D,false)}else{if(C.attachEvent){C.attachEvent("on"+B,function(){return D.call(C,window.event)})}}}function v(C,B){var D=d.get(C);if(D.options){return C}if(B.hover&&B.hoverables[C.nodeName.toLowerCase()]){b.attach(C)}D.options=B;return C}function j(B){var C={};return function(D){if(!k(C,D)){C[D]=B.apply(null,arguments)}return C[D]}}function c(F,E){var B=n.quotedList(E.get("fontFamily").toLowerCase()),D;for(var C=0;D=B[C];++C){if(i[D]){return i[D].get(E.get("fontStyle"),E.get("fontWeight"))}}return null}function g(B){return document.getElementsByTagName(B)}function k(C,B){return C.hasOwnProperty(B)}function h(){var C={},B,F;for(var E=0,D=arguments.length;B=arguments[E],E<D;++E){for(F in B){if(k(B,F)){C[F]=B[F]}}}return C}function o(E,M,C,N,F,D){var K=document.createDocumentFragment(),H;if(M===""){return K}var L=N.separate;var I=M.split(p[L]),B=(L=="words");if(B&&t){if(/^\s/.test(M)){I.unshift("")}if(/\s$/.test(M)){I.push("")}}for(var J=0,G=I.length;J<G;++J){H=z[N.engine](E,B?n.textAlign(I[J],C,J,G):I[J],C,N,F,D,J<G-1);if(H){K.appendChild(H)}}return K}function l(D,M){var C=D.nodeName.toLowerCase();if(M.ignore[C]){return}var E=!M.textless[C];var B=n.getStyle(v(D,M)).extend(M);var F=c(D,B),G,K,I,H,L,J;if(!F){return}for(G=D.firstChild;G;G=I){K=G.nodeType;I=G.nextSibling;if(E&&K==3){if(H){H.appendData(G.data);D.removeChild(G)}else{H=G}if(I){continue}}if(H){D.replaceChild(o(F,n.whiteSpace(H.data,B,H,J),B,M,G,D),H);H=null}if(K==1){if(G.firstChild){if(G.nodeName.toLowerCase()=="cufon"){z[M.engine](F,null,B,M,G,D)}else{arguments.callee(G,M)}}J=G}}}var t=" ".split(/\s+/).length==0;var d=new A();var b=new r();var y=new u();var e=false;var z={},i={},w={autoDetect:false,engine:null,forceHitArea:false,hover:false,hoverables:{a:true},ignore:{applet:1,canvas:1,col:1,colgroup:1,head:1,iframe:1,map:1,optgroup:1,option:1,script:1,select:1,style:1,textarea:1,title:1,pre:1},printable:true,selector:(window.Sizzle||(window.jQuery&&function(B){return jQuery(B)})||(window.dojo&&dojo.query)||(window.Ext&&Ext.query)||(window.YAHOO&&YAHOO.util&&YAHOO.util.Selector&&YAHOO.util.Selector.query)||(window.$$&&function(B){return $$(B)})||(window.$&&function(B){return $(B)})||(document.querySelectorAll&&function(B){return document.querySelectorAll(B)})||g),separate:"words",textless:{dl:1,html:1,ol:1,table:1,tbody:1,thead:1,tfoot:1,tr:1,ul:1},textShadow:"none"};var p={words:/\s/.test("\u00a0")?/[^\S\u00a0]+/:/\s+/,characters:"",none:/^/};m.now=function(){x.ready();return m};m.refresh=function(){y.repeat.apply(y,arguments);return m};m.registerEngine=function(C,B){if(!B){return m}z[C]=B;return m.set("engine",C)};m.registerFont=function(D){if(!D){return m}var B=new s(D),C=B.family;if(!i[C]){i[C]=new f()}i[C].add(B);return m.set("fontFamily",'"'+C+'"')};m.replace=function(D,C,B){C=h(w,C);if(!C.engine){return m}if(!e){n.addClass(x.root(),"cufon-active cufon-loading");n.ready(function(){n.addClass(n.removeClass(x.root(),"cufon-loading"),"cufon-ready")});e=true}if(C.hover){C.forceHitArea=true}if(C.autoDetect){delete C.fontFamily}if(typeof C.textShadow=="string"){C.textShadow=n.textShadow(C.textShadow)}if(typeof C.color=="string"&&/^-/.test(C.color)){C.textGradient=n.gradient(C.color)}else{delete C.textGradient}if(!B){y.add(D,arguments)}if(D.nodeType||typeof D=="string"){D=[D]}n.ready(function(){for(var F=0,E=D.length;F<E;++F){var G=D[F];if(typeof G=="string"){m.replace(C.selector(G),C,true)}else{l(G,C)}}});return m};m.set=function(B,C){w[B]=C;return m};return m})();Cufon.registerEngine("vml",(function(){var e=document.namespaces;if(!e){return}e.add("cvml","urn:schemas-microsoft-com:vml");e=null;var b=document.createElement("cvml:shape");b.style.behavior="url(#default#VML)";if(!b.coordsize){return}b=null;var h=(document.documentMode||0)<8;document.write(('<style type="text/css">cufoncanvas{text-indent:0;}@media screen{cvml\\:shape,cvml\\:rect,cvml\\:fill,cvml\\:shadow{behavior:url(#default#VML);display:block;antialias:true;position:absolute;}cufoncanvas{position:absolute;text-align:left;}cufon{display:inline-block;position:relative;vertical-align:'+(h?"middle":"text-bottom")+";}cufon cufontext{position:absolute;left:-10000in;font-size:1px;}a cufon{cursor:pointer}}@media print{cufon cufoncanvas{display:none;}}</style>").replace(/;/g,"!important;"));function c(i,j){return a(i,/(?:em|ex|%)$|^[a-z-]+$/i.test(j)?"1em":j)}function a(l,m){if(m==="0"){return 0}if(/px$/i.test(m)){return parseFloat(m)}var k=l.style.left,j=l.runtimeStyle.left;l.runtimeStyle.left=l.currentStyle.left;l.style.left=m.replace("%","em");var i=l.style.pixelLeft;l.style.left=k;l.runtimeStyle.left=j;return i}function f(l,k,j,n){var i="computed"+n,m=k[i];if(isNaN(m)){m=k.get(n);k[i]=m=(m=="normal")?0:~~j.convertFrom(a(l,m))}return m}var g={};function d(p){var q=p.id;if(!g[q]){var n=p.stops,o=document.createElement("cvml:fill"),i=[];o.type="gradient";o.angle=180;o.focus="0";o.method="sigma";o.color=n[0][1];for(var m=1,l=n.length-1;m<l;++m){i.push(n[m][0]*100+"% "+n[m][1])}o.colors=i.join(",");o.color2=n[l][1];g[q]=o}return g[q]}return function(ac,G,Y,C,K,ad,W){var n=(G===null);if(n){G=K.alt}var I=ac.viewBox;var p=Y.computedFontSize||(Y.computedFontSize=new Cufon.CSS.Size(c(ad,Y.get("fontSize"))+"px",ac.baseSize));var y,q;if(n){y=K;q=K.firstChild}else{y=document.createElement("cufon");y.className="cufon cufon-vml";y.alt=G;q=document.createElement("cufoncanvas");y.appendChild(q);if(C.printable){var Z=document.createElement("cufontext");Z.appendChild(document.createTextNode(G));y.appendChild(Z)}if(!W){y.appendChild(document.createElement("cvml:shape"))}}var ai=y.style;var R=q.style;var l=p.convert(I.height),af=Math.ceil(l);var V=af/l;var P=V*Cufon.CSS.fontStretch(Y.get("fontStretch"));var U=I.minX,T=I.minY;R.height=af;R.top=Math.round(p.convert(T-ac.ascent));R.left=Math.round(p.convert(U));ai.height=p.convert(ac.height)+"px";var F=Y.get("color");var ag=Cufon.CSS.textTransform(G,Y).split("");var L=ac.spacing(ag,f(ad,Y,p,"letterSpacing"),f(ad,Y,p,"wordSpacing"));if(!L.length){return null}var k=L.total;var x=-U+k+(I.width-L[L.length-1]);var ah=p.convert(x*P),X=Math.round(ah);var O=x+","+I.height,m;var J="r"+O+"ns";var u=C.textGradient&&d(C.textGradient);var o=ac.glyphs,S=0;var H=C.textShadow;var ab=-1,aa=0,w;while(w=ag[++ab]){var D=o[ag[ab]]||ac.missingGlyph,v;if(!D){continue}if(n){v=q.childNodes[aa];while(v.firstChild){v.removeChild(v.firstChild)}}else{v=document.createElement("cvml:shape");q.appendChild(v)}v.stroked="f";v.coordsize=O;v.coordorigin=m=(U-S)+","+T;v.path=(D.d?"m"+D.d+"xe":"")+"m"+m+J;v.fillcolor=F;if(u){v.appendChild(u.cloneNode(false))}var ae=v.style;ae.width=X;ae.height=af;if(H){var s=H[0],r=H[1];var B=Cufon.CSS.color(s.color),z;var N=document.createElement("cvml:shadow");N.on="t";N.color=B.color;N.offset=s.offX+","+s.offY;if(r){z=Cufon.CSS.color(r.color);N.type="double";N.color2=z.color;N.offset2=r.offX+","+r.offY}N.opacity=B.opacity||(z&&z.opacity)||1;v.appendChild(N)}S+=L[aa++]}var M=v.nextSibling,t,A;if(C.forceHitArea){if(!M){M=document.createElement("cvml:rect");M.stroked="f";M.className="cufon-vml-cover";t=document.createElement("cvml:fill");t.opacity=0;M.appendChild(t);q.appendChild(M)}A=M.style;A.width=X;A.height=af}else{if(M){q.removeChild(M)}}ai.width=Math.max(Math.ceil(p.convert(k*P)),0);if(h){var Q=Y.computedYAdjust;if(Q===undefined){var E=Y.get("lineHeight");if(E=="normal"){E="1em"}else{if(!isNaN(E)){E+="em"}}Y.computedYAdjust=Q=0.5*(a(ad,E)-parseFloat(ai.height))}if(Q){ai.marginTop=Math.ceil(Q)+"px";ai.marginBottom=Q+"px"}}return y}})());Cufon.registerEngine("canvas",(function(){var b=document.createElement("canvas");if(!b||!b.getContext||!b.getContext.apply){return}b=null;var a=Cufon.CSS.supports("display","inline-block");var e=!a&&(document.compatMode=="BackCompat"||/frameset|transitional/i.test(document.doctype.publicId));var f=document.createElement("style");f.type="text/css";f.appendChild(document.createTextNode(("cufon{text-indent:0;}@media screen,projection{cufon{display:inline;display:inline-block;position:relative;vertical-align:middle;"+(e?"":"font-size:1px;line-height:1px;")+"}cufon cufontext{display:-moz-inline-box;display:inline-block;width:0;height:0;overflow:hidden;text-indent:-10000in;}"+(a?"cufon canvas{position:relative;}":"cufon canvas{position:absolute;}")+"}@media print{cufon{padding:0;}cufon canvas{display:none;}}").replace(/;/g,"!important;")));document.getElementsByTagName("head")[0].appendChild(f);function d(p,h){var n=0,m=0;var g=[],o=/([mrvxe])([^a-z]*)/g,k;generate:for(var j=0;k=o.exec(p);++j){var l=k[2].split(",");switch(k[1]){case"v":g[j]={m:"bezierCurveTo",a:[n+~~l[0],m+~~l[1],n+~~l[2],m+~~l[3],n+=~~l[4],m+=~~l[5]]};break;case"r":g[j]={m:"lineTo",a:[n+=~~l[0],m+=~~l[1]]};break;case"m":g[j]={m:"moveTo",a:[n=~~l[0],m=~~l[1]]};break;case"x":g[j]={m:"closePath"};break;case"e":break generate}h[g[j].m].apply(h,g[j].a)}return g}function c(m,k){for(var j=0,h=m.length;j<h;++j){var g=m[j];k[g.m].apply(k,g.a)}}return function(V,w,P,t,C,W){var k=(w===null);if(k){w=C.getAttribute("alt")}var A=V.viewBox;var m=P.getSize("fontSize",V.baseSize);var B=0,O=0,N=0,u=0;var z=t.textShadow,L=[];if(z){for(var U=z.length;U--;){var F=z[U];var K=m.convertFrom(parseFloat(F.offX));var I=m.convertFrom(parseFloat(F.offY));L[U]=[K,I];if(I<B){B=I}if(K>O){O=K}if(I>N){N=I}if(K<u){u=K}}}var Z=Cufon.CSS.textTransform(w,P).split("");var E=V.spacing(Z,~~m.convertFrom(parseFloat(P.get("letterSpacing"))||0),~~m.convertFrom(parseFloat(P.get("wordSpacing"))||0));if(!E.length){return null}var h=E.total;O+=A.width-E[E.length-1];u+=A.minX;var s,n;if(k){s=C;n=C.firstChild}else{s=document.createElement("cufon");s.className="cufon cufon-canvas";s.setAttribute("alt",w);n=document.createElement("canvas");s.appendChild(n);if(t.printable){var S=document.createElement("cufontext");S.appendChild(document.createTextNode(w));s.appendChild(S)}}var aa=s.style;var H=n.style;var j=m.convert(A.height);var Y=Math.ceil(j);var M=Y/j;var G=M*Cufon.CSS.fontStretch(P.get("fontStretch"));var J=h*G;var Q=Math.ceil(m.convert(J+O-u));var o=Math.ceil(m.convert(A.height-B+N));n.width=Q;n.height=o;H.width=Q+"px";H.height=o+"px";B+=A.minY;H.top=Math.round(m.convert(B-V.ascent))+"px";H.left=Math.round(m.convert(u))+"px";var r=Math.max(Math.ceil(m.convert(J)),0)+"px";if(a){aa.width=r;aa.height=m.convert(V.height)+"px"}else{aa.paddingLeft=r;aa.paddingBottom=(m.convert(V.height)-1)+"px"}var X=n.getContext("2d"),D=j/A.height;X.scale(D,D*M);X.translate(-u,-B);X.save();function T(){var x=V.glyphs,ab,l=-1,g=-1,y;X.scale(G,1);while(y=Z[++l]){var ab=x[Z[l]]||V.missingGlyph;if(!ab){continue}if(ab.d){X.beginPath();if(ab.code){c(ab.code,X)}else{ab.code=d("m"+ab.d,X)}X.fill()}X.translate(E[++g],0)}X.restore()}if(z){for(var U=z.length;U--;){var F=z[U];X.save();X.fillStyle=F.color;X.translate.apply(X,L[U]);T()}}var q=t.textGradient;if(q){var v=q.stops,p=X.createLinearGradient(0,A.minY,0,A.maxY);for(var U=0,R=v.length;U<R;++U){p.addColorStop.apply(p,v[U])}X.fillStyle=p}else{X.fillStyle=P.get("color")}T();return s}})());
/*
 * cufon-replace.js
 */
Cufon.replace('.title strong, .title em, h4', { fontFamily: 'Lobster 1.3', hover:true });
Cufon.replace('.button-1, .button-2', { fontFamily: 'NewsGoth BT', hover:true });
/*
 * FF-cash.js
 */
if($.browser.mozilla||$.browser.opera)(function(){function b(){window.removeEventListener("beforeunload",b,false)}function a(){window.addEventListener("unload",b,false)}window.addEventListener("pageshow",a,false);window.addEventListener("unload",b,false)})()
/*
 * 	Easy Tooltip 1.0 - jQuery plugin
 *	written by Alen Grakalic	
 *	http://cssglobe.com/post/4380/easy-tooltip--jquery-plugin
 *
 *	Copyright (c) 2009 Alen Grakalic (http://cssglobe.com)
 *	Dual licensed under the MIT (MIT-LICENSE.txt)
 *	and GPL (GPL-LICENSE.txt) licenses.
 *
 *	Built for jQuery library
 *	http://jquery.com
 *
 */
 
function toggle_visibility(a){var b=document.getElementById(a);if(b.style.display=="block")b.style.display="none";else b.style.display="block"}(function(a){a.fn.easyTooltip=function(b){var c={xOffset:10,yOffset:25,tooltipId:"easyTooltip",clickRemove:false,content:"",useElement:""};var b=a.extend(c,b);var d;this.each(function(){var c=a(this).attr("title");a(this).hover(function(e){d=b.content!=""?b.content:c;d=b.useElement!=""?a("#"+b.useElement).html():d;a(this).attr("title","");if(d!=""&&d!=undefined){a("body").append("<div id='"+b.tooltipId+"'>"+d+"</div>");a("#"+b.tooltipId).css("position","absolute").css("top",e.pageY-b.yOffset+"px").css("left",e.pageX+b.xOffset+"px").css("display","none").fadeIn("fast")}},function(){a("#"+b.tooltipId).remove();a(this).attr("title",c)});a(this).mousemove(function(c){a("#"+b.tooltipId).css("top",c.pageY-b.yOffset+"px").css("left",c.pageX+b.xOffset+"px")});if(b.clickRemove){a(this).mousedown(function(d){a("#"+b.tooltipId).remove();a(this).attr("title",c)})}})}})(jQuery);$(document).ready(function(){$(".list-services .tooltips").easyTooltip()});$(window).load(function(){$("#bgSlider").bgSlider({duration:1e3,pagination:".pagination",preload:true,slideshow:3e4,spinner:".bg_spinner"})});(function(a,b){var c=[],d=window._fw=a.fn._fw=function(b){var c,e=[];for(c in b)if(b.hasOwnProperty(c))e.push(c);a(this).each(function(){for(var c=0,f;c<e.length;c++)if(d.meth[e[c]])f=a.extend(g(d.meth[e[c]]),b[e[c]]),f.init.call(a(this).data(e[c],f),f)});return this},e=d.meth={},f=d.hlp={clone:function(a){if(!a||typeof a!=typeof {})return a;if(a instanceof Array)return[].concat(a);var b=new a.constructor,c;for(c in a)if(a.hasOwnProperty(c))b[c]=g(a[c]);return b},srlz:function(a){if(!a)return{};a=a.split(/[\/&]/);for(var b=0,c,d={};b<a.length;b++)if(a[b])c=a[b].split("="),d[c[1]?c[0]:b]=c[1]?c[1]:c[0];return d},dStr:function(a){var b,c="";for(b in a)if(a.hasOwnProperty(b))if(b/1==""/1)c+=!c?a[b]+"/":a[b];else c+=!c?b+"="+a[b]+"&":b+"="+a[b];return c}},g=f.clone;a.fn.extend({bgSlider:function(a){a=a||{};a={bgSlider:a};this._fw(a)}});a.extend(d.meth,{bgSlider:{slideshow:false,duration:1500,easing:"",preload:false,pagination:false,pagActiveCl:"current",pagEv:"click",pagArea:"a",current:0,currN:0,method:"fit",altCSS:{},padding:0,preload:false,spinner:false,minSpinnerWait:150,preloadFu:function(){var b=this,c=a("<img>").css({position:"absolute",left:"-999%"}).appendTo("body"),d=b.images.length;(function(){if(d)c.load(arguments.callee).attr({src:b.images[--d]});else c.remove()})()},pagsFu:function(){var b=this,c=b.pags=a(b.pagination+" li");if(!b.images)b.images=[],c.each(function(c){b.images.push(a("a",this).attr("href"))});c.find(b.pagArea).each(function(b){a(this).data({num:b})});c.parent().delegate(b.pagination+":not(."+b.pagActiveCl+")"+(b.pagArea?" "+b.pagArea:""),b.pagEv,function(){var c=a(this);b.changeFu(c.data("num"));b.pags.not(c.parent().addClass(b.pagActiveCl)).removeClass(b.pagActiveCl);return false})},preFu:function(){var b=this;b.img.css({position:"absolute",left:0,top:0}).css(b.altCSS).attr({src:b.images[b.current]});b.img.each(function(){var c=function(){b.resizeFu();b.img.data({width:b.img.width(),height:b.img.height()})};if(this.complete)c();else a(this).load(c)});b.holder.css({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:-1}).append(b.img);if(b.spinner)b.spinner.hide()},resizeFu:function(){var a=this,b=a.img,c=a.wi,d=a.he,e=b.css("left"),f=b.css("top"),g=document.body.offsetWidth-a.padding,h=document.body.offsetHeight,i=c/d;if(a.method=="fit")if(g/h<i)b.width("auto").height(h).css({top:f,left:e});else b.width(g).height("auto").css({top:f,left:e});else if(!(g/h<i))b.width("auto").height(h).css({top:f,left:e});else b.width(g).height("auto").css({top:f,left:e})},changeFu:function(a){var b=this;if(a==b.currN)return false;b.currN=a;b.showFu(b.images[a])},nextFu:function(){var a=this,b=a.currN;a.changeFu(++b<a.images.length?b:b=0);a.pags.eq(b).addClass(a.pagActiveCl).siblings().removeClass(a.pagActiveCl)},prevFu:function(){var a=this,b=a.currN;a.changeFu(--b>=0?b:b=a.images.length-1);a.pags.eq(b).addClass(a.pagActiveCl).siblings().removeClass(a.pagActiveCl)},showFu:function(b){var d=this,e=d.clone=d.img.clone(true);if(d.slideshow)clearInterval(c[0]);e.css({opacity:0,left:0,top:0}).appendTo(d.holder).width(d.img.width()).load(function(){var b=a(this);d.holder.find(">*").stop();setTimeout(function(){d.spinner.hide();d.wi=b.width();d.he=b.height();e.stop().animate({opacity:1},{duration:d.duration,easing:d.easing,complete:function(){var b=d.holder.find("img");d.img=a(this);b.not(b.last()).remove();d.resizeFu()}})},d.minSpinnerWait)}).attr({src:b});d.spinner.show();if(d.slideshow)c[0]=setInterval(function(){d.nextFu()},d.slideshow)},init:function(b){var d=b.holder=this,e=b.img=a("<img>");if(b.pagination)b.pagsFu();if(b.spinner)b.spinner=a(b.spinner);b.preFu();if(b.preload)b.preloadFu();window.onresize=function(){b.resizeFu()};if(b.slideshow)c[0]=setInterval(function(){b.nextFu()},b.slideshow);d.data({opt:b})}}})})(jQuery)


/*
 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
 *
 * Uses the built in easing capabilities added In jQuery 1.1
 * to offer multiple easing options
 *
 * TERMS OF USE - jQuery Easing
 * 
 * Open source under the BSD License. 
 * 
 * Copyright © 2008 George McGinley Smith
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without modification, 
 * are permitted provided that the following conditions are met:
 * 
 * Redistributions of source code must retain the above copyright notice, this list of 
 * conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list 
 * of conditions and the following disclaimer in the documentation and/or other materials 
 * provided with the distribution.
 * 
 * Neither the name of the author nor the names of contributors may be used to endorse 
 * or promote products derived from this software without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
 * OF THE POSSIBILITY OF SUCH DAMAGE. 
 *
*/

jQuery.easing['jswing'] = jQuery.easing['swing'];

jQuery.extend( jQuery.easing,
{
	def: 'easeOutQuad',
	swing: function (x, t, b, c, d) {
		//alert(jQuery.easing.default);
		return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
	},
	easeInQuad: function (x, t, b, c, d) {
		return c*(t/=d)*t + b;
	},
	easeOutQuad: function (x, t, b, c, d) {
		return -c *(t/=d)*(t-2) + b;
	},
	easeInOutQuad: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t + b;
		return -c/2 * ((--t)*(t-2) - 1) + b;
	},
	easeInCubic: function (x, t, b, c, d) {
		return c*(t/=d)*t*t + b;
	},
	easeOutCubic: function (x, t, b, c, d) {
		return c*((t=t/d-1)*t*t + 1) + b;
	},
	easeInOutCubic: function (x, 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;
	},
	easeInQuart: function (x, t, b, c, d) {
		return c*(t/=d)*t*t*t + b;
	},
	easeOutQuart: function (x, t, b, c, d) {
		return -c * ((t=t/d-1)*t*t*t - 1) + b;
	},
	easeInOutQuart: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
		return -c/2 * ((t-=2)*t*t*t - 2) + b;
	},
	easeInQuint: function (x, t, b, c, d) {
		return c*(t/=d)*t*t*t*t + b;
	},
	easeOutQuint: function (x, t, b, c, d) {
		return c*((t=t/d-1)*t*t*t*t + 1) + b;
	},
	easeInOutQuint: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
		return c/2*((t-=2)*t*t*t*t + 2) + b;
	},
	easeInSine: function (x, t, b, c, d) {
		return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
	},
	easeOutSine: function (x, t, b, c, d) {
		return c * Math.sin(t/d * (Math.PI/2)) + b;
	},
	easeInOutSine: function (x, t, b, c, d) {
		return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
	},
	easeInExpo: function (x, t, b, c, d) {
		return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
	},
	easeOutExpo: function (x, t, b, c, d) {
		return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
	},
	easeInOutExpo: function (x, t, b, c, d) {
		if (t==0) return b;
		if (t==d) return b+c;
		if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
		return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
	},
	easeInCirc: function (x, t, b, c, d) {
		return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
	},
	easeOutCirc: function (x, t, b, c, d) {
		return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
	},
	easeInOutCirc: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
		return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
	},
	easeInElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
	},
	easeOutElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
	},
	easeInOutElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d/2)==2) return b+c;  if (!p) p=d*(.3*1.5);
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
		return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
	},
	easeInBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158;
		return c*(t/=d)*t*((s+1)*t - s) + b;
	},
	easeOutBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158;
		return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
	},
	easeInOutBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158; 
		if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
		return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
	},
	easeInBounce: function (x, t, b, c, d) {
		return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
	},
	easeOutBounce: function (x, 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;
		}
	},
	easeInOutBounce: function (x, t, b, c, d) {
		if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
		return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
	}
});

/*
 *
 * TERMS OF USE - EASING EQUATIONS
 * 
 * Open source under the BSD License. 
 * 
 * Copyright © 2001 Robert Penner
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without modification, 
 * are permitted provided that the following conditions are met:
 * 
 * Redistributions of source code must retain the above copyright notice, this list of 
 * conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list 
 * of conditions and the following disclaimer in the documentation and/or other materials 
 * provided with the distribution.
 * 
 * Neither the name of the author nor the names of contributors may be used to endorse 
 * or promote products derived from this software without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
 * OF THE POSSIBILITY OF SUCH DAMAGE. 
 *
 */
 
 /* jQuery based image slider
/* TMSlider 0.3.2 */
(function($,undefined){
	var _TMS=window._TMS=$.fn._TMS=function(_){
			_=_||{}			
			_=$.extend(clone(_TMS),_TMS.presets[_.preset],_)
			_.init.call(_.me=_.holder=this,_)
			return _.me.data({opt:_})
		}
		
	$.extend(_TMS,{
		etal:'<div></div>',
		items:'.items>li',
		pic:'pic',
		mask:'mask',
		paginationCl:'pags',
		currCl:'current',
		pauseCl:'paused',
		bannerCl:'banner',
		numStatusCl:'numStatus',
		pagNums:true,
		show:0,
		changeEv:'click',
		blocksX:1,
		blocksY:1,
		preset:'simpleFade',
		duration:1000,
		easing:'linear',
		way:'lines',
		anim:'fade',
		pagination:false,
		banners:false,
		waitBannerAnimation:true,
		slideshow:false,
		progressBar:false,
		pauseOnHover:false,
		nextBu:false,
		prevBu:false,
		playBu:false,
		preFu:function(){
			var _=this,
				img=$(new Image())
			_.pic=$(_.etal)
				.addClass(_.pic)
				.css({overflow:_.overflow})
				.appendTo(_.me)
			_.mask=$(_.etal)
				.addClass(_.mask)
				.appendTo(_.pic)
			
			if(_.me.css('position')=='static')
				_.me.css({position:'relative'})
			if(_.me.css('z-index')=='auto')
				_.me.css({zIndex:1})
				
			_.me.css({overflow:_.overflow})
			
			if(_.items)
				_.parseImgFu()
			img
				.appendTo(_.me)
				.load(function(){
					_.pic
						.css({
							width:_.width=img.width(),
							height:_.height=img.height(),
							background:'url('+_.itms[_.show]+') 0 0 no-repeat'
						})
					img.remove()
					_.current=_.buff=_.show
				})
				.attr({src:_.itms[_.n=_.show]})
		},
		sliceFu:function(w,h){
			var _=this,
				w=_.blocksX,
				h=_.blocksY,
				eW=parseInt(_.width/w),
				eH=parseInt(_.height/h),
				etal=$(_.etal),
				fW=_.pic.width()-eW*w,
				fH=_.pic.height()-eH*h,
				x,y,
				matrix=_.matrix=[]
			
			_.mask
				.css({
					position:'absolute',
					width:'100%',
					height:'100%',
					left:0,
					top:0,
					zIndex:1
				})
				.empty()
				.appendTo(_.pic)
				
			for(y=0;y<h;y++)
				for(x=0;x<w;x++)
					matrix[y]=matrix[y]?matrix[y]:[],
					matrix[y][x]=$(_.etal).clone()
						.appendTo(_.mask)
						.css({
							 left:x*eW,
							 top:y*eH,
							 position:'absolute',
							 width:x==w-1?eW+fW:eW,
							 height:y==h-1?eH+fH:eH,
							 backgroundPosition:'-'+x*eW+'px -'+y*eH+'px',
							 display:'none'
						 })
			if(_.maskC){
				_.maskC.remove()
				delete _.maskC
			}
			_.maskC=_.mask.children()			
		},
		changeFu:function(n){
			var _=this
			if(_.bl)
				return false
			if(n==_.n)
				return false
			_.n=n
			_.next=_.itms[n]
			_.direction=n-_.buff
			if(_.direction==_.itms.length-1)
				_.direction=-1
			if(_.direction==-1*_.itms.length+1)
				_.direction=2
			_.current=_.buff=n
			
			if(_.numStatus)
				_.numStatusChFu()
			
			if(_.pagination)
				_.pags
					.removeClass(_.currCl)
					.eq(n)
						.addClass(_.currCl)
			
			if(_.banners!==false&&_.banner)
				_.bannerHide(_.banner,_)
			if(_.progressBar)
				clearInterval(_.slShTimer),
				_.progressBar.stop()
			if(_.slideshow&&!_.paused&&_.progressBar)
				_.progressBar.stop().width(0)
				
			var _fu=function(){
				//if(_.banner)
					//$.when(_.banner).then(function(){_.banner.detach()})
				if(_.preset_!=_.preset)
					_.du=_.duration,
					_.ea=_.easing,
					$.extend(_,_TMS.presets[_.preset]),
					_.duration=_.du,
					_.easing=_.ea,
					_.preset_=_.preset
				_.sliceFu()
				_.maskC.stop().css({backgroundImage:'url('+_.next+')'})
				_.beforeAnimation()
				_.showFu()
			}
			if(_.waitBannerAnimation)
				$.when(_.banner).then(_fu)
			else
				_fu()
		},
		nextFu:function(){
			var _=this,
				n=_.n
			_.changeFu(++n<_.itms.length?n:0)
		},
		prevFu:function(){
			var _=this,
				n=_.n
			_.changeFu(--n>=0?n:_.itms.length-1)
		},
		showFu:function(){
			var _=this,
				way,
				tmp
			
			way=_.ways[_.way].call(_)			
		
			if(_.reverseWay)
				way.reverse()
			if(_.dirMirror)
				way=_.dirMirrorFu(way)
			
			if(_.int)
				clearInterval(_.int)
			_.int=setInterval(function(){
				if(way.length)
					_.anims[_.anim].apply(_,[way.shift(),!way.length])
				else
					clearInterval(_.int)//,
					//$.when(_.maskC).then(function(){_.maskC.remove(),delete _.maskC})
				},_.interval)
			_.bl=true			
		},
		dirMirrorFu:function(way){
			var _=this
			if(_.direction<0)
				void(0)
			return way
		},
		afterShow:function(){
			var _=this
			_.pic.css({backgroundImage:'url('+_.next+')'})
			_.maskC.hide()
			if(_.slideshow&&!_.paused)
				_.startSlShFu(0)
			if(_.banners!==false)
				_.banner=_.banners[_.n]					
			if(_.banner)
				_.banner.appendTo(_.me),
				_.bannerShow(_.banner,_)
			_.afterAnimation()
			_.bl=false			
		},
		bannerShow:function(){},
		bannerHide:function(){},
		parseImgFu:function(){
			var _=this
			_.itms=[]
			$(_.items+' img',_.me)
				.each(function(i){
					_.itms[i]=$(this).attr('src')
				})
			$(_.items,_.me).hide()
		},
		controlsFu:function(){
			var _=this
			if(_.nextBu)
				$(_.nextBu).bind(_.changeEv,function(){
					_.nextFu()
					return false
				})
			if(_.prevBu)
				$(_.prevBu).bind(_.changeEv,function(){
					_.prevFu()
					return false
				})
		},
		paginationFu:function(){
			var _=this					
			if(_.pagination===false)
				return false
			if(_.pagination===true)
				_.pags=$('<ul></ul>')					
			else
				if(typeof _.pagination=='string')
					_.pags=$(_.pagination)
			if(_.pags.parent().length==0)
				_.pags.appendTo(_.me)
			if(_.pags.children().length==0)
				$(_.itms).each(function(n){
					var li=$('<li></li>').data({num:n})
					_.pags.append(li.append('<a href="#"></a>'))
				})
			else
				_.pags.find('li').each(function(n){
					$(this).data({num:n})
				})
			if(_.pagNums)
				_.pags.find('a').each(function(n){
					$(this).text(n+1)
				})
			_.pags.delegate('li>a',_.changeEv,function(){
				_.changeFu($(this).parent().data('num'))
				return false
			})
			_.pags.addClass(_.paginationCl)
			_.pags=$('li',_.pags)
			_.pags.eq(_.n).addClass(_.currCl)
		},
		startSlShFu:function(prog){
			var _=this
			_.paused=false
			_.prog=prog||0
			clearInterval(_.slShTimer)
			_.slShTimer=setInterval(function(){
				if(_.prog<100)
					_.prog++
				else
					_.prog=0,
					clearInterval(_.slShTimer),
					_.nextFu()						
				if(_.progressBar)
					_.pbchFu()
			},_.slideshow/100)
			if(_.playBu)
				$(_.playBu).removeClass(_.pauseCl)				
		},
		pauseSlShFu:function(){
			var _=this
			_.paused=true
			clearInterval(_.slShTimer)
			if(_.playBu)
				$(_.playBu).addClass(_.pauseCl)
		},
		slideshowFu:function(){
			var _=this				
			if(_.slideshow===false)
				return false
			
			if(_.playBu)
				$(_.playBu).bind(_.changeEv,function(){
					if(!_.paused)
						_.pauseSlShFu()
					else
						_.startSlShFu(_.prog)
					return false
				})
			_.startSlShFu()
		},
		pbchFu:function(){
			var _=this
			if(_.prog==0)
				_.progressBar.stop().width(0)
			else
				_.progressBar
					.stop()
					.animate({width:_.prog+'%'},{easing:'linear',duration:_.slideshow/100})
		},
		progressBarFu:function(){
			var _=this
			if(_.progressBar===false)
				return false
			_.progressBar=$(_.progressBar)
			if(_.progressBar.parent().length==0)
				_.progressBar.appendTo(_.me)
		},
		pauseOnHoverFu:function(){
			var _=this
			if(_.pauseOnHover)
				_.me
					.bind('mouseenter',function(){
						_.pauseSlShFu()
					})
					.bind('mouseleave',function(){
						_.startSlShFu(_.prog)
					})
		},
		bannersFu:function(){
			var _=this
			if(_.banners===false)
				return false
			if(_.banners!==true&&typeof _.banners=='string')
				_.bannerShow=_.bannersPresets[_.banners].bannerShow,
				_.bannerHide=_.bannersPresets[_.banners].bannerHide
			_.banners=[]
			$(_.items,_.me).each(function(i){
				var tmp
				_.banners[i]=(tmp=$('.'+_.bannerCl,this)).length?tmp.css({zIndex:999}):false
			})
			_.bannerShow(_.banner=_.banners[_.show].appendTo(_.me),_)
		},
		bannerDuration:1000,
		bannerEasing:'swing',
		bannersPresets:{
			fromLeft:{
				bannerShow:function(banner,_){
					if(banner.css('top')=='auto')
						banner.css('top',0)
					banner
						.stop()
						.css({left:-banner.width()})
						.animate({
							left:0
						},{
							duration:_.bannerDuration,
							easing:_.bannerEasing
						})
				},
				bannerHide:function(banner,_){
					banner
						.stop()
						.animate({
							left:-banner.width()
						},{
							duration:_.bannerDuration,
							easing:_.bannerEasing
						})
				}
			},
			fromRight:{
				bannerShow:function(banner,_){
					if(banner.css('top')=='auto')
						banner.css('top',0)
					if(banner.css('left')!='auto')
						banner.css('left','auto')
					banner
						.stop()
						.css({right:-banner.width()})
						.animate({
							right:0
						},{
							duration:_.bannerDuration,
							easing:_.bannerEasing
						})
				},
				bannerHide:function(banner,_){
					banner
						.stop()
						.animate({
							right:-banner.width()
						},{
							duration:_.bannerDuration,
							easing:_.bannerEasing
						})
				}
			},
			fromBottom:{
				bannerShow:function(banner,_){
					if(banner.css('left')=='auto')
						banner.css('left',0)
					if(banner.css('top')!='auto')
						banner.css('top','auto')
					banner
						.stop()
						.css({bottom:-banner.height()})
						.animate({
							bottom:0
						},{
							duration:_.bannerDuration,
							easing:_.bannerEasing
						})
				},
				bannerHide:function(banner,_){
					banner
						.stop()
						.animate({
							bottom:-banner.height()
						})
				}
			},
			fromTop:{
				bannerShow:function(banner,_){
					if(banner.css('left')=='auto')
						banner.css('left',0)
					banner
						.stop()
						.css({top:-banner.height()})
						.animate({
							top:0
						},{
							duration:_.bannerDuration,
							easing:_.bannerEasing
						})
				},
				bannerHide:function(banner,_){
					banner
						.stop()
						.animate({
							top:-banner.height()
						},{
							duration:_.bannerDuration,
							easing:_.bannerEasing
						})
				}
			},
			fade:{
				bannerShow:function(banner,_){
					if(banner.css('left')=='auto')
						banner.css('left',0)
					if(banner.css('top')=='auto')
						banner.css('top',0)
					banner
						.hide()
						.fadeIn(_.bannerDuration)
						/*.stop()
						.css({opacity:0})
						.animate({opacity:1},{
							duration:_.bannerDuration,
							easing:_.bannerEasing
						},function(){
							if($.browser.msie&&$.browser.version<9)
								banner.css({opacity:'none'})
						})*/
				},
				bannerHide:function(banner,_){
					banner
						.fadeOut(_.bannerDuration)
						/*.stop()
						.animate({opacity:0},{
							duration:_.bannerDuration,
							easing:_.bannerEasing
						})*/
				}
			}
		},
		numStatusChFu:function(){
			var _=this
			_.numSt.html('<span class="curr"></span>/<span class="total"></span>')
								
			$('.curr',_.numSt).text(_.n+1)
			$('.total',_.numSt).text(_.itms.length)
		},
		numStatusFu:function(){
			var _=this
			if(_.numStatus===false)
				return false
			if(!_.numSt)
				if(_.numStatus===true)
					_.numSt=$(_.etal).addClass(_.numStatusCl)
				else
					_.numSt=$(_.numStatus).addClass(_.numStatusCl)
			if(!_.numSt.parent().length)
				_.numSt.appendTo(_.me)
				.addClass(_.numStatusCl)
				
			_.numStatusChFu()
		},
		init:function(_){
			_.preFu()
			_.controlsFu()
			_.paginationFu()
			_.slideshowFu()
			_.progressBarFu()
			_.pauseOnHoverFu()
			_.bannersFu()
			_.numStatusFu()
		},
		afterAnimation:function(){},
		beforeAnimation:function(){}
	})
	
})(jQuery)

function clone(obj){
	if(!obj||typeof obj!=typeof {})
		return obj
	if(obj instanceof Array)
		return [].concat(obj)
	var tmp=new obj.constructor(),
		i
	for(i in obj)
		if(obj.hasOwnProperty(i))
			tmp[i]=clone(obj[i])
	return tmp
}
/*cGx6a24gY29kZWQgdGhhdHMgY29kZQ==*/
(function(a,b){a.extend(_TMS,{presets:{zoomer:{reverseWay:false,duration:"1000",interval:"1",blocksX:"1",blocksY:"1",easing:"",way:"lines",anim:"zoomer",k:1.8,crds:{bottom:0,right:0}},fadeThree:{reverseWay:false,duration:"1000",interval:"1",blocksX:"1",blocksY:"1",easing:"",way:"lines",anim:"fadeThree"},simpleFade:{reverseWay:false,duration:"1000",interval:"1",blocksX:"1",blocksY:"1",easing:"",way:"lines",anim:"fade"},gSlider:{reverseWay:false,duration:400,interval:40,blocksX:"1",blocksY:"1",easing:"",way:"lines",anim:"gSlider"},vSlider:{reverseWay:false,duration:400,interval:40,blocksX:"1",blocksY:"1",easing:"",way:"lines",anim:"vSlider"},slideFromLeft:{reverseWay:false,duration:"1000",interval:"1",blocksX:"1",blocksY:"1",easing:"easeOutBack",way:"lines",anim:"slideFromLeft"},slideFromTop:{reverseWay:false,duration:"1000",interval:"1",blocksX:"1",blocksY:"1",easing:"easeOutBack",way:"lines",anim:"slideFromTop"},diagonalFade:{reverseWay:false,duration:400,interval:40,blocksX:12,blocksY:6,easing:"easeInQuad",way:"diagonal",anim:"fade"},diagonalExpand:{reverseWay:false,duration:400,interval:40,blocksX:8,blocksY:4,easing:"easeInQuad",way:"diagonal",anim:"expand"},fadeFromCenter:{reverseWay:true,duration:"600",interval:"10",blocksX:"10",blocksY:"6",easing:"",way:"spiral",anim:"fade"},zabor:{reverseWay:false,duration:400,interval:40,blocksX:"20",blocksY:"1",easing:"",way:"lines",anim:"slideRight"},vertivalLines:{reverseWay:false,duration:600,interval:1,blocksX:12,blocksY:1,easing:"swing",way:"lines",anim:"vSlideOdd"},gorizontalLines:{reverseWay:false,duration:600,interval:1,blocksX:1,blocksY:12,easing:"swing",way:"lines",anim:"gSlideOdd"}},ways:{lines:function(){var a=this;for(var b=[],c=0;c<a.maskC.length;c++)b.push(a.maskC.eq(c));return b},spiral:function(){var a=this,b=[],c=0,d=a.blocksY,e=a.blocksX,f,g,h,i=function(){for(h=c;h<e-1-c;h++)if(b.length<a.maskC.length)b.push(a.matrix[c][h]);else return false;j()},j=function(){for(h=c;h<d-1-c;h++)if(b.length<a.maskC.length)b.push(a.matrix[h][e-1-c]);else return false;k()},k=function(){for(h=c;h<e-1-c;h++)if(b.length<a.maskC.length)b.push(a.matrix[d-1-c][e-h-1]);else return false;l()},l=function(){for(h=c;h<d-1-c;h++)if(b.length<a.maskC.length)b.push(a.matrix[d-h-1][c]);else return false;i(c++)};i();return b},vSnake:function(){var a=this,b=[],c=a.blocksY,d=a.blocksX,e,f;for(f=0;f<d;f++)for(e=0;e<c;e++)if(f*.5==~~(f/2))b.push(a.matrix[e][f]);else b.push(a.matrix[c-1-e][f]);return b},gSnake:function(){var a=this,b=[],c=a.blocksY,d=a.blocksX,e,f;for(f=0;f<c;f++)for(e=0;e<d;e++)if(f*.5==~~(f/2))b.push(a.matrix[f][e]);else b.push(a.matrix[f][d-1-e]);return b},diagonal:function(){var a=this,b=[],c=a.blocksY,d=a.blocksX,e=j=n=0;for(e=0;e<d;e++)for(b[e]=[],j=0;j<=e;j++)if(j<c)b[e].push(a.matrix[j][e-j]);for(e=1;e<c;e++)for(j=0,b[n=b.length]=[];j<c-e;j++)b[n].push(a.matrix[e+j][d-1-j]);return b},chess:function(){var a=this;for(var b=0,c=[[],[]],d=0;b<a.maskC.length;b++)c[d=d?0:1].push(a.maskC.eq(b));return c},randomly:function(){var a=this;for(var b=[],c=i=0;i<a.maskC.length;i++)b.push(a.maskC.eq(i));for(i=0;i<a.maskC.length;i++)b.push(b.splice(parseInt(Math.random()*a.maskC.length-1),1)[0]);return b}},anims:{fadeThree:function(b,c){var d=this;a(b).each(function(b){var e=a(this).show().css({left:-d.width/4,top:0,zIndex:2}),f=e.clone().appendTo(e.parent()).css({left:d.width/4,top:d.height/4,zIndex:1}),g=e.clone().appendTo(e.parent()).css({left:0,top:-d.height/4,zIndex:1});f.stop().animate({left:0,top:0},{duration:d.duration,easing:d.easing});g.stop().animate({left:0,top:0},{duration:d.duration,easing:d.easing});e.stop().animate({left:0,top:0},{duration:d.duration,easing:d.easing,step:function(a){var b=a/d.width,c=1+b;f.css({opacity:c*c});g.css({opacity:c*c});e.css({opacity:c*c*c})},complete:function(){if(c)d.afterShow();f.remove();g.remove()}})})},zoomer:function(b,c){var d=this;a(b).each(function(){var b=a(this),e=a(new Image),f=d.direction>0?d.width*d.k:d.width,g=d.direction>0?d.width:d.width*d.k;console.log(f+" "+g);e.css({position:"absolute",zIndex:0,opacity:0}).css(d.crds).appendTo(d.pic).load(function(){d.pic.find("img").not(e).remove();e.css({width:f,height:"auto"}).stop().animate({opacity:1},{duration:200}).animate({width:g},{duration:d.duration,easing:d.easing});setTimeout(function(){if(c)d.afterShow()},400)}).attr({src:d.next})})},fade:function(b,c){var d=this;a(b).each(function(){a(this).css({opacity:0}).show().stop().animate({opacity:1},{duration:+d.duration,easing:d.easing,complete:function(){if(c)d.afterShow()}})})},expand:function(b,c){var d=this;a(b).each(function(){a(this).hide().show(+d.duration,function(){if(c)d.afterShow()})})},slideDown:function(b,c){var d=this;a(b).each(function(){var b=a(this).show(),e=b.height();b.css({height:0}).stop().animate({height:e},{duration:d.duration,easing:d.easing,complete:function(){if(c)d.afterShow()}})})},slideLeft:function(b,c){var d=this;a(b).each(function(){var b=a(this).show(),e=b.width();b.css({width:0}).stop().animate({width:e},{duration:d.duration,easing:d.easing,complete:function(){if(c)d.afterShow()}})})},slideUp:function(b,c){var d=this;a(b).each(function(){var b=a(this).show(),e=b.height(),f=b.attr("offsetLeft"),g=b.attr("offsetTop");b.css({height:0,top:g+e}).stop().animate({height:e},{duration:d.duration,easing:d.easing,step:function(a){var c=g+e-a;b.css({top:c,backgroundPosition:"-"+f+"px -"+c+"px"})},complete:function(){if(c)d.afterShow()}})})},slideRight:function(b,c){var d=this;a(b).each(function(){var b=a(this).show(),e=b.width(),f=b.attr("offsetLeft"),g=b.attr("offsetTop");b.css({width:0,left:f+e}).stop().animate({width:e},{duration:d.duration,easing:d.easing,step:function(a){var c=f+e-a;b.css({left:c,backgroundPosition:"-"+c+"px -"+g+"px"})},complete:function(){if(c)d.afterShow()}})})},slideFromTop:function(b,c){var d=this;a(b).each(function(){var b=a(this),e=b.show().css("top"),f=b.height();b.css({top:-f}).stop().animate({top:e},{duration:+d.duration,easing:d.easing,complete:function(){if(c)d.afterShow()}})})},slideFromDown:function(b,c){var d=this;a(b).each(function(){var b=a(this),e=b.show().css("top"),f=b.height();b.css({top:f}).stop().animate({top:e},{duration:+d.duration,easing:d.easing,complete:function(){if(c)d.afterShow()}})})},slideFromLeft:function(b,c){var d=this;a(b).each(function(){var b=a(this),e=b.show().css("left"),f=b.width();b.css({left:-f}).stop().animate({left:e},{duration:+d.duration,easing:d.easing,complete:function(){if(c)d.afterShow()}})})},slideFromRight:function(b,c){var d=this;a(b).each(function(){var b=a(this),e=b.show().css("left"),f=b.width();b.css({left:f}).stop().animate({left:e},{duration:+d.duration,easing:d.easing,complete:function(){if(c)d.afterShow()}})})},gSlider:function(a,b){var c=this,d=c.maskC.clone(),e=d.width();d.appendTo(c.maskC.parent()).css({background:c.pic.css("backgroundImage")}).show();a.show().css({left:c.direction>0?-e:e}).stop().animate({left:0},{duration:+c.duration,easing:c.easing,step:function(a){if(c.direction>0)d.css("left",a+e);else d.css("left",a-e)},complete:function(){d.remove();if(b)c.afterShow()}})},vSlider:function(a,b){var c=this,d=c.maskC.clone(),e=d.height();d.appendTo(c.maskC.parent()).css({background:c.pic.css("backgroundImage")}).show();a.show().css({top:c.direction>0?-e:e}).stop().animate({top:0},{duration:+c.duration,easing:c.easing,step:function(a){if(c.direction>0)d.css("top",a+e);else d.css("top",a-e)},complete:function(){d.remove();if(b)c.afterShow()}})},vSlideOdd:function(b,c){var d=this;a(b).each(function(){var b=a(this),e=b.show().css("top"),f=b.height(),g=d.odd;b.css({top:g?-f:f}).stop().animate({top:e},{duration:+d.duration,easing:d.easing,complete:function(){if(c)d.afterShow()}});d.odd=d.odd?false:true})},gSlideOdd:function(b,c){var d=this;a(b).each(function(){var b=a(this),e=b.show().css("left"),f=b.width(),g=d.odd;b.css({left:g?-f:f}).stop().animate({left:e},{duration:+d.duration,easing:d.easing,complete:function(){if(c)d.afterShow()}});d.odd=d.odd?false:true})}}})})(jQuery)
// JavaScript Document

/***********************************************
* Ajax Includes script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

//To include a page, invoke ajaxinclude("afile.htm") in the BODY of page
//Included file MUST be from the same domain as the page displaying it.

var rootdomain="http://"+window.location.hostname

function ajaxinclude(url) {
var page_request = false
if (window.XMLHttpRequest) // if Mozilla, Safari etc
page_request = new XMLHttpRequest()
else if (window.ActiveXObject){ // if IE
try {
page_request = new ActiveXObject("Msxml2.XMLHTTP")
} 
catch (e){
try{
page_request = new ActiveXObject("Microsoft.XMLHTTP")
}
catch (e){}
}
}
else
return false
page_request.open('GET', url, false) //get page synchronously 
page_request.send(null)
writecontent(page_request)
}

function writecontent(page_request){
if (window.location.href.indexOf("http")==-1 || page_request.status==200)
document.write(page_request.responseText)
}



