if(window.FD){FD.Triplem=function(e){var a={};var d=$.extend(true,a,e);(function(){c();g()})();function c(){var h=$("form.frmSearch input");
if(h.length){h.each(function(j,m){var l=$(m);if(l.attr("type")=="text"){if(l.val()!=""){l.addClass("userInput")}l.bind("focus",function(){var n=$(this);
if(n.attr("type")=="text"&&n.val()==n.attr("defaultValue")){n.val("");n.addClass("userInput")}});l.bind("blur",function(){var n=$(this);
if(n.attr("type")=="text"&&f.val()==""){n.val(n.attr("defaultValue"));n.removeClass("userInput")}})}})}}function g(){var n=$(".rounded-1");
if(n.length>=1){n.last().addClass("noborder")}var l=$(".panel .poll");l.each(function(o,p){var r=$(p);if(r.parent().get(0).className!="mainCol"){r.attr("id","pollWrap"+o);
var s=document.createElement("div");s.className="rounded-poll";var q=document.getElementById("pollWrap"+o);s.appendChild(q.cloneNode(true));
q.parentNode.replaceChild(s,q)}});var h=$("ul.pagination");h.each(function(o,s){var p=$(s);p.attr("id","p"+o);var u=document.createElement("del");
u.className="pagination_centre";u.id="paginationwrap"+o;var t=document.getElementById("p"+o);u.appendChild(t.cloneNode(true));
t.parentNode.replaceChild(u,t);var r=document.createElement("div");r.style.textAlign="center";var q=document.getElementById("paginationwrap"+o);
r.appendChild(q.cloneNode(true));q.parentNode.replaceChild(r,q)});var m=$("submit_search");if(m.length){m.get(0).value=""
}if($(".membershipcontroltab")){if($(".fRows").first()){$(".fRows").first().addClass("white")}}if(window.ActiveXObject&&document.getElementById&&!window.XMLHttpRequest){var j=document.getElementsByTagName("ul");
for(i=0;i<j.length;i++){if(j[i].parentNode.className=="hover"||j[i].parentNode.className=="panel showheader"){b(j[i])}}}}function b(j){listItems=j.getElementsByTagName("li");
for(k=0;k<listItems.length;k++){var h=listItems[k];h.onmouseover=function(){this.className+=" over"};h.onmouseout=function(){this.className=this.className.replace(" over","")
}}}};$(function(){var a=new FD.Triplem()})}if(!window.IEPNGFix){window.IEPNGFix={}}IEPNGFix.tileBG=function(h,u,q){var I=this.data[h.uniqueID],b=Math.max(h.clientWidth,h.scrollWidth),j=Math.max(h.clientHeight,h.scrollHeight),m=h.currentStyle.backgroundPositionX,l=h.currentStyle.backgroundPositionY,r=h.currentStyle.backgroundRepeat;
if(!I.tiles){I.tiles={src:"",cache:[],img:new Image(),old:{}}}var E=I.tiles,z=E.img.width,c=E.img.height;if(u){if(!q&&u!=E.src){E.img.onload=function(){this.onload=null;
IEPNGFix.tileBG(h,u,1)};return E.img.src=u}}else{if(E.src){q=1}z=c=0}E.src=u;if(!q&&b==E.old.w&&j==E.old.h&&m==E.old.x&&l==E.old.y&&r==E.old.r){return
}var e={top:"0%",left:"0%",center:"50%",bottom:"100%",right:"100%"},o,n,a;o=e[m]||m;n=e[l]||l;if(a=o.match(/(\d+)%/)){o=Math.round((b-z)*(parseInt(a[1])/100))
}if(a=n.match(/(\d+)%/)){n=Math.round((j-c)*(parseInt(a[1])/100))}o=parseInt(o);n=parseInt(n);var G={repeat:1,"repeat-x":1}[r],D={repeat:1,"repeat-y":1}[r];
if(G){o%=z;if(o>0){o-=z}}if(D){n%=c;if(n>0){n-=c}}this.hook.enabled=0;if(!({relative:1,absolute:1}[h.currentStyle.position])){h.style.position="relative"
}var g=0,p,C=G?b:o+0.1,v,A=D?j:n+0.1,B,t,F;if(z&&c){for(p=o;p<C;p+=z){for(v=n;v<A;v+=c){F=0;if(!E.cache[g]){E.cache[g]=document.createElement("div");
F=1}var w=(p+z>b?b-p:z),H=(v+c>j?j-v:c);B=E.cache[g];t=B.style;t.behavior="none";t.left=p+"px";t.top=v+"px";t.width=w+"px";
t.height=H+"px";t.clip="rect("+(v<0?0-v:0)+"px,"+w+"px,"+H+"px,"+(p<0?0-p:0)+"px)";t.display="block";if(F){t.position="absolute";
t.zIndex=-999;if(h.firstChild){h.insertBefore(B,h.firstChild)}else{h.appendChild(B)}}this.fix(B,u,0);g++}}}while(g<E.cache.length){this.fix(E.cache[g],"",0);
E.cache[g++].style.display="none"}this.hook.enabled=1;E.old={w:b,h:j,x:m,y:l,r:r}};function setCookie(c,e,a,h,d,g){var b=c+"="+escape(e)+(a?"; expires="+a:"")+(h?"; path="+h:"")+(d?"; domain="+d:"")+(g?"secure":"");
document.cookie=b}function getCookie(b){var e=b+"=";var h=document.cookie;var a="";var d=h.indexOf(e);if(d==-1){return a}var g=h.indexOf(";",d+e.length);
if(g==-1){g=h.length}return unescape(h.substring(d+e.length,g))}function deleteCookie(a,c,b){if(getCookie(a)){document.cookie=a+"="+((c)?"; path="+c:"")+((b)?"; domain="+b:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT"
}}function fixDate(b){var c=new Date(0);var a=c.getTime();if(a>0){b.setTime(b.getTime()-a)}}function rememberMe(b){var a=new Date();
fixDate(a);a.setTime(a.getTime()+365*24*60*60*1000);a=a.toGMTString();if(b.author!=undefined){setCookie("mtcmtauth",b.author.value,a,"/","","")
}if(b.email!=undefined){setCookie("mtcmtmail",b.email.value,a,"/","","")}if(b.url!=undefined){setCookie("mtcmthome",b.url.value,a,"/","","")
}}function forgetMe(a){deleteCookie("mtcmtmail","/","");deleteCookie("mtcmthome","/","");deleteCookie("mtcmtauth","/","");
a.email.value="";a.author.value="";a.url.value=""};
