var animatedcollapse={divholders:{},divgroups:{},lastactiveingroup:{},preloadimages:[],show:function(b){if(typeof b=="object"){for(var a=0;a<b.length;a++){this.showhide(b[a],"show")}}else{this.showhide(b,"show")}},hide:function(b){if(typeof b=="object"){for(var a=0;a<b.length;a++){this.showhide(b[a],"hide")}}else{this.showhide(b,"hide")}},toggle:function(a){if(typeof a=="object"){a=a[0]}this.showhide(a,"toggle")},addDiv:function(b,a){this.divholders[b]=({id:b,$divref:null,attrs:a});this.divholders[b].getAttr=function(d){var c=new RegExp(d+"=([^,]+)","i");return(c.test(this.attrs)&&parseInt(RegExp.$1)!=0)?RegExp.$1:null};this.currentid=b;return this},showhide:function(d,c){var a=this.divholders[d].$divref;if(this.divholders[d]&&a.length==1){var b=this.divgroups[a.attr("groupname")];if(a.attr("groupname")&&b.count>1&&(c=="show"||c=="toggle"&&a.css("display")=="none")){if(b.lastactivedivid&&b.lastactivedivid!=d){this.slideengine(b.lastactivedivid,"hide")}this.slideengine(d,"show");b.lastactivedivid=d}else{this.slideengine(d,c)}}},slideengine:function(e,d){var a=this.divholders[e].$divref;var b=this.divholders[e].$togglerimage;if(this.divholders[e]&&a.length==1){var c={height:d};if(a.attr("fade")){c.opacity=d}a.animate(c,a.attr("speed")?parseInt(a.attr("speed")):500,function(){if(b){b.attr("src",(a.css("display")=="none")?b.data("srcs").closed:b.data("srcs").open)}if(animatedcollapse.ontoggle){try{animatedcollapse.ontoggle(jQuery,a.get(0),a.css("display"))}catch(f){alert('An error exists inside your "ontoggle" function:\n\n'+f+"\n\nAborting execution of function.")}}});return false}},generatemap:function(){var b={};for(var a=0;a<arguments.length;a++){if(arguments[a][1]!=null){b[arguments[a][0]]=arguments[a][1]}}return b},init:function(){var a=this;jQuery(document).ready(function(e){animatedcollapse.ontoggle=animatedcollapse.ontoggle||null;var f=animatedcollapse.urlparamselect();var b=a.getCookie("acopendivids");var d=a.getCookie("acgroupswithpersist");if(b!=null){b=(b=="nada")?[]:b.split(",")}d=(d==null||d=="nada")?[]:d.split(",");jQuery.each(a.divholders,function(){this.$divref=e("#"+this.id);if((this.getAttr("persist")||jQuery.inArray(this.getAttr("group"),d)!=-1)&&b!=null){var h=(jQuery.inArray(this.id,b)!=-1)?"block":"none"}else{var h=this.getAttr("hide")?"none":null}if(f[0]=="all"||jQuery.inArray(this.id,f)!=-1){h="block"}else{if(f[0]=="none"){h="none"}}this.$divref.css(a.generatemap(["height",this.getAttr("height")],["display",h]));this.$divref.attr(a.generatemap(["groupname",this.getAttr("group")],["fade",this.getAttr("fade")],["speed",this.getAttr("speed")]));if(this.getAttr("group")){var g=a.divgroups[this.getAttr("group")]||(a.divgroups[this.getAttr("group")]={});g.count=(g.count||0)+1;if(jQuery.inArray(this.id,f)!=-1){g.lastactivedivid=this.id;g.overridepersist=1}if(!g.lastactivedivid&&this.$divref.css("display")!="none"||h=="block"&&typeof g.overridepersist=="undefined"){g.lastactivedivid=this.id}this.$divref.css({display:"none"})}});jQuery.each(a.divgroups,function(){if(this.lastactivedivid&&f[0]!="none"){a.divholders[this.lastactivedivid].$divref.show()}});if(animatedcollapse.ontoggle){jQuery.each(a.divholders,function(){animatedcollapse.ontoggle(jQuery,this.$divref.get(0),this.$divref.css("display"))})}var c=e("a[rel]").filter('[rel^="collapse["], [rel^="expand["], [rel^="toggle["]');c.each(function(){this._divids=this.getAttribute("rel").replace(/(^\w+)|(\s+)/g,"").replace(/[\[\]']/g,"");if(this.getElementsByTagName("img").length==1&&a.divholders[this._divids]){animatedcollapse.preloadimage(this.getAttribute("data-openimage"),this.getAttribute("data-closedimage"));$togglerimage=e(this).find("img").eq(0).data("srcs",{open:this.getAttribute("data-openimage"),closed:this.getAttribute("data-closedimage")});a.divholders[this._divids].$togglerimage=e(this).find("img").eq(0);a.divholders[this._divids].$togglerimage.attr("src",(a.divholders[this._divids].$divref.css("display")=="none")?$togglerimage.data("srcs").closed:$togglerimage.data("srcs").open)}e(this).click(function(){var g=this.getAttribute("rel");var h=(this._divids=="")?[]:this._divids.split(",");if(h.length>0){animatedcollapse[/expand/i.test(g)?"show":/collapse/i.test(g)?"hide":"toggle"](h);return false}})});e(window).bind("unload",function(){a.uninit()})})},uninit:function(){var b="",a="";jQuery.each(this.divholders,function(){if(this.$divref.css("display")!="none"){b+=this.id+","}if(this.getAttr("group")&&this.getAttr("persist")){a+=this.getAttr("group")+","}});b=(b=="")?"nada":b.replace(/,$/,"");a=(a=="")?"nada":a.replace(/,$/,"");this.setCookie("acopendivids",b);this.setCookie("acgroupswithpersist",a)},getCookie:function(a){var b=new RegExp(a+"=[^;]*","i");if(document.cookie.match(b)){return document.cookie.match(b)[0].split("=")[1]}return null},setCookie:function(b,c,d){if(typeof d!="undefined"){var a=new Date();a.setDate(a.getDate()+d);document.cookie=b+"="+c+"; path=/; expires="+a.toGMTString()}else{document.cookie=b+"="+c+"; path=/"}},urlparamselect:function(){window.location.search.match(/expanddiv=([\w\-_,]+)/i);return(RegExp.$1!="")?RegExp.$1.split(","):[]},preloadimage:function(){var a=this.preloadimages;for(var b=0;b<arguments.length;b++){if(arguments[b]&&arguments[b].length>0){a[a.length]=new Image();a[a.length-1].src=arguments[b]}}}};
var enl_gifpath="images/";var enl_brdsize=12;var enl_brdcolor="";var enl_brdbck="";var enl_brdround=0;var enl_maxstep=18;var enl_speed=12;var enl_ani=5;var enl_opaglide=0;var enl_shadow=1;var enl_shadowsize=1;var enl_shadowcolor="";var enl_shadowintens=9;var enl_dark=1;var enl_darkprct=80;var enl_darksteps=9;var enl_center=1;var enl_drgdrop=1;var enl_preload=1;var enl_titlebar=1;var enl_keynav=1;var enl_wheelnav=1;var enl_titletxtcol="";var enl_ajaxcolor="";var enl_usecounter=0;var enl_counterurl="";var enl_btnact="bact.png";var enl_btninact="binact.png";var enl_pluscur="pluscur.cur";var enl_minuscur="minuscur.cur";var enl_noflash="No flash plugin found!";var enl_canceltext="Click to cancel";var enl_buttonurl=new Array(),enl_buttontxt=new Array(),enl_buttonoff=new Array();enl_buttonurl[0]="close";enl_buttontxt[0]="Close";enl_buttonoff[0]=-126;enl_center=1;var enl_prldimg=new Array(),enl_button=new Array(),enl_stopload=0;var enl_butact,enl_butinact,enl_btnheight,enl_prldcnt=0,enl_darkened=0;var enl_nn6=document.getElementById&&!document.all;enl_drgmode=false;var enl_drgelem,enl_mvcnt=0,enl_isie=window.ActiveXObject,enl_hasmvd=false;var enl_brwsx,enl_brwsy,enl_scrollx,enl_scrolly,enl_infront="";var enl_firstcall=0,enl_inprogress=0,enl_zcnt=9700,enl_inmax=0,enl_ie6=0;var enl_request=false,enl_request2=false,enl_keepblack=0,enl_brdbckpic;function enl_init(){if(!enl_firstcall){enl_firstcall=1;if(typeof enl_buttonpress=="undefined"){enl_drgdrop=0}if(typeof enl_ajax=="undefined"){enl_usecounter=0}if(typeof enl_darken=="undefined"){enl_dark=0}if(typeof enl_dropshadow=="undefined"){enl_shadow=0}if(typeof enl_wheel=="undefined"){enl_wheelnav=0}if(typeof enl_keynavi=="undefined"){enl_keynav=0}if(typeof enl_mktitlebar=="undefined"){enl_titlebar=0}else{if(enl_buttonurl.length){enl_titlebar=1}}if(typeof enl_dofadein=="undefined"&&enl_ani==1){enl_ani=2}if(typeof enl_doglidein=="undefined"&&enl_ani>1){enl_ani=0}var enl_i=0;if(typeof enl_ajax!="undefined"){enl_ajaxprepare()}if(enl_titlebar){enl_preloadit(enl_gifpath+enl_btnact);enl_butact=enl_prldimg[enl_prldcnt];enl_preloadit(enl_gifpath+enl_btninact);enl_butinact=enl_prldimg[enl_prldcnt]}if(enl_brdbck){enl_preloadit(enl_gifpath+enl_brdbck)}enl_brdbckpic=enl_prldimg[enl_prldcnt];enl_ldr=enl_mkdiv("enl_ldr");enl_ldr.style.zIndex=9999;enl_ldrgif=new Image();enl_ldrgif.src=enl_gifpath+"loader.gif";enl_ldrgif.style.borderWidth="1px";enl_ldrgif.style.borderStyle="solid";enl_ldrgif.style.borderColor="black";enl_ldrgif.id="enl_ldrgif";enl_ldr.appendChild(enl_ldrgif);enl_brdm=enl_mkdiv("enl_brd");enl_brdm.name="ajax";enl_brdm.style.backgroundColor=(enl_brdcolor)?enl_brdcolor:"#ffffff";if(enl_brdbck){enl_brdm.style.backgroundImage="url("+enl_gifpath+enl_brdbck+")"}if(enl_brdround&&!enl_brdbck){enl_brdm.style.MozBorderRadius=enl_brdsize+"px";enl_brdm.style.khtmlBorderRadius=enl_brdsize+"px"}if(enl_shadow){enl_shdm=enl_mkdiv("enl_shd");enl_shdm.style.backgroundColor=(enl_shadowcolor)?enl_shadowcolor:"black";enl_setopa(enl_shdm,enl_shadowintens);if(enl_brdround&&!enl_brdbck){enl_shdm.style.MozBorderRadius=eval(enl_brdsize+1)+"px";enl_shdm.style.khtmlBorderRadius=eval(enl_brdsize+1)+"px"}}if(enl_dark){enl_darkenprepare()}if(enl_keynav){document.onkeyup=enl_keynavi;document.onkeydown=null}enl_imglist=document.getElementsByTagName("img");enl_imglist=document.getElementsByTagName("img");for(var enl_i=0;enl_i<enl_imglist.length;enl_i++){if(typeof enl_imglist[enl_i].onclick=="function"){enl_ui=eval(enl_imglist[enl_i].onclick).toString();if(enl_ui.search(/enlarge/)!=-1){enl_imglist[enl_i].title="";if(enl_isie){enl_imglist[enl_i].galleryimg="no"}if(!enl_imglist[enl_i].id){enl_imglist[enl_i].id="enl_autoid"+enl_i}enl_setcur(enl_imglist[enl_i],enl_pluscur,"pointer","hand")}}}enl_firstcall=2;enl_timetowait=(enl_isie)?750:100;if(typeof enl_openpic!="undefined"){setTimeout('enl_openthepic("'+enl_openpic+'")',enl_timetowait)}}}function enl_openthepic(a){enl_img=enl_geto(a);enlarge(enl_img)}function enl_setpos(e,d,c,a,b){e.style.left=d+"px";e.style.top=c+"px";if(a){e.style.width=a+"px";e.style.height=b+"px"}}function enl_setopa(b,a){b.style.opacity=a/100;b.style.MozOpacity=a/100;b.style.filter="alpha(opacity="+a+")"}function enl_geto(a){return document.getElementById(a)}function enl_preloadit(a){enl_prldcnt+=1;enl_prldimg[enl_prldcnt]=new Image();if(a.slice(3,5)!="::"){enl_prldimg[enl_prldcnt].src=a}else{if(!enl_isie){enl_prldimg[enl_prldcnt].src=a.split("::")[1]}}}function enl_visible(a){a.style.visibility="visible"}function enl_hide(a){a.style.visibility="hidden"}function enl_mkdiv(a){enl_div=document.createElement("div");enl_hide(enl_div);enl_div.id=a;enl_div.style.position="absolute";enl_setpos(enl_div,-5000,0,0,0);document.body.appendChild(enl_div);return enl_div}function enl_getbrwsxy(){if(typeof window.innerWidth!="undefined"){enl_brwsx=window.innerWidth-10;enl_brwsy=window.innerHeight}else{if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!=0){enl_brwsx=document.documentElement.clientWidth;enl_brwsy=document.documentElement.clientHeight}else{enl_brwsx=document.getElementsByTagName("body")[0].clientWidth;enl_brwsy=document.getElementsByTagName("body")[0].clientHeight}}enl_scrolly=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;enl_scrollx=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0}function enl_ctlslid(a){if(typeof realcopyspeed!="undefined"){copyspeed=(a?realcopyspeed:0)}}function enl_coord(a){var b={top:0,left:0,width:0,height:0};if(!a){return b}else{if(typeof a=="string"){a=enl_geto(a)}}if(typeof a!="object"){return b}if(typeof a.offsetTop!="undefined"){b.height=a.offsetHeight;b.width=a.offsetWidth;b.left=a.top=0;while(a&&a.tagName!="BODY"){b.top+=parseInt(a.offsetTop);b.left+=parseInt(a.offsetLeft);a=a.offsetParent}}return b}function enl_setcur(e,c,b,a){if(window.opera||(!c&&!enl_ie6)){try{e.style.cursor=b}catch(d){}}else{if(enl_ie6){try{e.style.cursor=a}catch(d){}}else{try{e.style.cursor="url("+enl_gifpath+c+"),"+b}catch(d){}}}}function enl_makedraggable(a){enl_infront=a;enl_img=enl_geto(a);enl_orig=enl_geto(enl_img.orig);enl_setcur(enl_orig,"","default","default");if(enl_drgdrop){enl_img.onmousedown=enl_buttonpress;enl_img.onmouseup=enl_enddrag}else{if(enl_img.ispic||!enl_titlebar){enl_img.onclick=function(){enl_shrink(a)}}}if(!enl_inmax&&enl_usecounter){setTimeout('enl_count("'+enl_orig.id+'")',40)}if(enl_drgdrop){enl_setcur(enl_img,enl_minuscur,"move","move")}else{enl_setcur(enl_img,enl_minuscur,"pointer","hand")}enl_inprogress=0;enl_ctlslid(1);if(enl_preload){for(var b=0;b<2;b++){enl_nextpic=enl_getnext(a,b);if(enl_nextpic){enl_pictoget=enl_nextpic.getAttribute("longdesc");setTimeout('enl_preloadit("'+enl_pictoget+'")',30)}}}}function enl_noevents(a){a.onmousedown=null;a.onclick=null;a.onmouseup=null}function enl_addLoad(b){var a=window.onload;if(typeof window.onload!="undefined"){window.onload=b}else{window.onload=function(){if(a){a()}b()}}}function enl_ajaxload(a){enl_ldr=enl_geto("enl_ldr");enl_r=enl_coord(a);enl_setpos(enl_ldr,enl_r.left+enl_r.width/2-17,enl_r.top+enl_r.height/2-17);enl_visible(enl_ldr)}function enl_ajaxldrhide(){enl_ldr=enl_geto("enl_ldr");enl_hide(enl_ldr);enl_setpos(enl_ldr,-5000,0)}function enl_getnext(b,d){enl_oripic=enl_geto(enl_geto(b).orig);if(enl_oripic.className){var e=document.body.getElementsByTagName("img");var a=0;if(!d){for(var c=0;c<e.length;c++){if((a==1)&&(e[c].className==enl_oripic.className)&&!e[c].orig){a=2;enl_nextObj=e[c]}if(enl_oripic==e[c]){a=1}}}else{for(var c=e.length;c>=0;c--){if((a==1)&&(e[c].className==enl_oripic.className)&&!e[c].orig){a=2;enl_nextObj=e[c]}if(enl_oripic==e[c]){a=1}}}if(a==2&&!enl_nextObj.isenlarged&&enl_oripic.className!="imgflowimg"&&enl_oripic.className!="sliderimg"){return enl_nextObj}else{return null}}}function enl_mkborder(enl_imgid){enl_img=enl_geto(enl_imgid);enl_brdclone=enl_geto(enl_imgid+"brd");if(enl_wheelnav){enl_wheelenable(enl_brdclone)}if(enl_titlebar&&enl_brdsize<enl_btnheight+4){enl_tmph=enl_img.newh+enl_brdsize+enl_btnheight+4;enl_tmpt=enl_img.newt-enl_brdsize-(enl_btnheight+4)+enl_brdsize}else{enl_tmph=enl_img.newh+enl_brdsize*2;enl_tmpt=enl_img.newt-enl_brdsize}enl_setpos(enl_brdclone,enl_img.newl-enl_brdsize,enl_tmpt);with(enl_brdclone.style){width=eval(enl_img.neww+enl_brdsize*2)+"px";height=enl_tmph+"px";visibility="visible";zIndex=enl_zcnt-1}if(enl_shadow){enl_dropshadow(enl_imgid)}if(typeof enl_hideselect!="undefined"){enl_hideselect(enl_brdclone,0)}}function enl_delborder(a){enl_brdm=enl_geto(a+"brd");if(typeof enl_hideselect!="undefined"){enl_hideselect(enl_brdclone,1)}enl_hide(enl_brdm);enl_setpos(enl_brdm,-5000,0);if(enl_shadow){enl_delshadow(a)}}function enlarge(b){if(!enl_firstcall){enl_init()}if(enl_firstcall==1||b.isenlarged){return false}if(enl_inprogress){setTimeout('enl_openthepic("'+b.id+'")',99);return false}if(enl_brdbck&&!enl_brdbckpic.complete){return false}if(enl_titlebar&&(!enl_butact.complete||!enl_butinact.complete)){return false}var a=b.getAttribute("longdesc");if(a.slice(3,5)=="::"&&typeof enl_checkflash=="undefined"){return false}enl_inprogress=1;b.isenlarged=1;enl_ctlslid(0);enl_preloadit(a);enl_imgid=b.getAttribute("id");enl_inmax=0;setTimeout('enl_chckready("'+enl_imgid+'")',10)}function enl_chckready(enl_imgid){enl_img=enl_geto(enl_imgid);enl_ldr=enl_geto("enl_ldr");var enl_getlongdesc=enl_img.getAttribute("longdesc");var enl_divtype=enl_getlongdesc.slice(0,5);if(enl_stopload){enl_geto("enl_ldrgif").onclick=null;enl_geto("enl_ldrgif").title="";enl_keepblack=0;if(enl_dark){enl_nodark()}enl_ajaxldrhide();enl_inprogress=0;enl_img.isenlarged=0;enl_ctlslid(1);enl_stopload=0;return false}var enl_ispreload=enl_prldimg[enl_prldcnt].complete;if((enl_ispreload&&enl_prldimg[enl_prldcnt].width)||(enl_ispreload&&enl_divtype=="swf::")||(enl_ispreload&&enl_divtype=="fl2::")||(enl_ispreload&&enl_divtype=="flv::")||enl_divtype=="dvx::"||enl_divtype=="ifr::"||(enl_isie&&(enl_divtype=="swf::"))||(enl_isie&&(enl_divtype=="fl2::"))||(enl_isie&&(enl_divtype=="flv::"))){enl_zcnt+=3;enl_ajaxldrhide();if(enl_divtype=="swf::"||enl_divtype=="fl2::"||enl_divtype=="flv::"){if(enl_checkflash()){enl_clone=enl_swfdiv(enl_img,enl_getlongdesc)}else{alert(enl_noflash);enl_inprogress=0;enl_img.isenlarged=0;enl_ctlslid(1);return false}}else{if(enl_divtype=="dvx::"){enl_clone=enl_dvxdiv(enl_img,enl_getlongdesc)}else{if(enl_divtype=="ifr::"){enl_clone=enl_ifrdiv(enl_img,enl_getlongdesc)}else{enl_clone=enl_img.cloneNode(true);enl_setpos(enl_clone,-5000,0);with(enl_clone){id=enl_img.id+"clone";style.visibility="hidden";style.position="absolute";style.borderWidth="0px";style.outlineWidth="0px";style.margin="0px";style.padding="0px"}document.body.appendChild(enl_clone)}}}enl_clone.orig=enl_img.id;enl_brddiv=enl_geto("enl_brd");enl_brdclone=enl_brddiv.cloneNode(true);enl_brdclone.id=enl_imgid+"clonebrd";enl_brdclone.style.zIndex=enl_zcnt-1;if(enl_shadow){enl_shddiv=enl_geto("enl_shd");enl_shdclone=enl_shddiv.cloneNode(true);enl_shdclone.id=enl_clone.id+"shd1";enl_shdclone2=enl_shddiv.cloneNode(true);enl_shdclone2.id=enl_clone.id+"shd2";document.body.appendChild(enl_shdclone);document.body.appendChild(enl_shdclone2)}document.body.appendChild(enl_brdclone);try{enl_img.blur()}catch(enl_err){}enl_clone.ispic=(enl_getlongdesc.slice(3,5)!="::")?1:0;setTimeout('enl_doenlarge("'+enl_clone.id+'")',50)}else{enl_ajaxload(enl_img);enl_geto("enl_ldrgif").onclick=function(){enl_stopload=1};enl_geto("enl_ldrgif").title=enl_canceltext;enl_visible(enl_ldr);try{enl_img.blur()}catch(enl_err){}setTimeout('enl_chckready("'+enl_imgid+'")',50)}}function enl_doenlarge(enl_imgid){enl_zcnt+=3;enl_getbrwsxy();if(typeof enl_butact!="undefined"){enl_btnheight=parseInt(enl_butact.height)}document.onselectstart=function(){return false};enl_img=enl_geto(enl_imgid);if(enl_wheelnav){enl_wheelenable(enl_img)}enl_orig=enl_geto(enl_img.orig);try{enl_orig.blur()}catch(enl_err){}enl_noevents(enl_img);enl_noevents(enl_orig);enl_fullimg=enl_orig.getAttribute("longdesc");enl_r=enl_coord(enl_orig);enl_img.style.zIndex=enl_zcnt;enl_img.oldt=enl_r.top;enl_img.oldl=enl_r.left;if(typeof cpgif_conf_reflection_p=="number"&&enl_geto(enl_img.orig).className=="imgflowimg"){enl_img.oldh=parseInt(enl_r.height/(1+cpgif_conf_reflection_p))}else{enl_img.oldh=enl_r.height}enl_img.oldw=enl_r.width;if(enl_img.oldw+enl_img.oldl>enl_brwsx-20){enl_img.oldl=enl_brwsx-enl_img.oldw-20}if(enl_img.ispic){enl_img.neww=parseInt(enl_prldimg[enl_prldcnt].width);enl_img.newh=parseInt(enl_prldimg[enl_prldcnt].height)}else{enl_img.neww=eval(enl_fullimg.split("::")[2]);enl_img.newh=eval(enl_fullimg.split("::")[3])}if(enl_img.neww>enl_brwsx-100){enl_img.newh=Math.round(enl_img.newh*(enl_brwsx-100)/enl_img.neww);enl_img.neww=enl_brwsx-100}if(enl_img.newh>enl_brwsy-80){enl_img.neww=Math.round(enl_img.neww*(enl_brwsy-80)/enl_img.newh);enl_img.newh=enl_brwsy-80}enl_img.newl=Math.round(enl_img.oldl-(enl_img.neww-enl_img.oldw)/2);enl_img.newt=Math.round(enl_img.oldt-(enl_img.newh-enl_img.oldh)/2);if(!enl_center){if(enl_img.newl<(50+enl_scrollx)){enl_img.newl=50+enl_scrollx}if(enl_img.newt<(40+enl_scrolly)){enl_img.newt=40+enl_scrolly}if(enl_img.newl+enl_img.neww>enl_brwsx+enl_scrollx-50){enl_img.newl=enl_brwsx+enl_scrollx-50-enl_img.neww}if(enl_img.newt+enl_img.newh>enl_brwsy+enl_scrolly-40){enl_img.newt=enl_brwsy+enl_scrolly-40-enl_img.newh}}else{enl_img.newl=Math.round(enl_brwsx/2+enl_scrollx-enl_img.neww/2);enl_img.newt=Math.round(enl_brwsy/2+enl_scrolly-enl_img.newh/2)}enl_img.steps=1;enl_img.thumbpic=enl_img.src;if(enl_titlebar){enl_mktitlebar(enl_imgid)}if(!enl_ani||!enl_img.ispic){enl_donoani(enl_imgid)}else{if(enl_ani==1){setTimeout('enl_dofadein("'+enl_imgid+'")',50)}else{setTimeout('enl_doglidein("'+enl_imgid+'")',50)}}}function enl_donoani(a){enl_img=enl_geto(a);enl_setpos(enl_img,enl_img.newl,enl_img.newt,enl_img.neww,enl_img.newh);enl_img.src=enl_fullimg;enl_img.style.position="absolute";enl_visible(enl_img);enl_mkborder(a);if(enl_titlebar){enl_showbtn(a)}enl_makedraggable(a);if(enl_dark){enl_darken()}}function enl_enable(c){enl_img=enl_geto(c);enl_orig=enl_geto(enl_img.orig);var a=enl_geto(enl_orig.id+"swfinner");var b=enl_orig.getAttribute("longdesc");if((b.slice(0,5)!="swf::")&&enl_isie){for(var d in a){if(typeof a[d]=="function"){a[d]=null}}}if(enl_titlebar){document.body.removeChild(enl_geto(c+"btns"))}document.body.removeChild(enl_geto(c+"brd"));if(enl_shadow){document.body.removeChild(enl_geto(c+"shd1"));document.body.removeChild(enl_geto(c+"shd2"))}enl_orig.isenlarged=0;enl_orig.onclick=function(){enlarge(this)};enl_setcur(enl_orig,enl_pluscur,"pointer","hand");document.body.removeChild(enl_img);enl_ctlslid(1);enl_inprogress=0;if(enl_inmax==1){enlarge(enl_orig)}}function enl_noaniremove(a){enl_hide(enl_geto(a));setTimeout('enl_enable("'+a+'")',10)}function enl_shrink(a){if(enl_inprogress){setTimeout('enl_shrink("'+a+'")',50);return false}enl_inprogress=1;enl_infront="";enl_ctlslid(0);enl_img=enl_geto(a);enl_setcur(enl_img,"","pointer","hand");enl_noevents(enl_img);enl_orig=enl_geto(enl_img.orig);enl_fullimg=enl_orig.getAttribute("longdesc");enl_visible(enl_img);enl_delborder(a);if(enl_titlebar){enl_hidebtn(a)}if(enl_dark){enl_nodark()}enl_keepblack=0;enl_r=enl_coord(enl_geto(enl_img.orig));enl_img.oldt=enl_r.top;enl_img.oldl=enl_r.left;if(enl_img.oldw+enl_img.oldl>enl_brwsx-20){enl_img.oldl=enl_brwsx-enl_img.oldw-20}if(!enl_ani||!enl_img.ispic){enl_noaniremove(a)}else{if(enl_ani==1){setTimeout('enl_dofadeout("'+a+'")',20)}else{setTimeout('enl_doglideout("'+a+'")',20)}}}enl_addLoad(enl_init);function enl_dropshadow(a){enl_img=enl_geto(a);enl_shdclone1=enl_geto(a+"shd1");enl_shdclone2=enl_geto(a+"shd2");enl_tmpw=enl_img.neww+enl_shadowsize+enl_brdsize*2+2;if(enl_titlebar&&enl_brdsize<enl_btnheight+4){enl_tmph=enl_img.newh+enl_shadowsize+enl_brdsize*2+6+enl_btnheight-enl_brdsize;enl_tmpt=enl_img.newt-enl_brdsize-1-(enl_btnheight+4)+enl_brdsize}else{enl_tmph=enl_img.newh+enl_shadowsize+enl_brdsize*2+2;enl_tmpt=enl_img.newt-enl_brdsize-1}enl_setpos(enl_shdclone1,enl_img.newl-enl_brdsize-1,enl_tmpt,enl_tmpw,enl_tmph);enl_shdclone1.style.zIndex=enl_zcnt-2;enl_visible(enl_shdclone1);enl_setpos(enl_shdclone2,enl_img.newl-enl_brdsize-2,enl_tmpt-1,enl_tmpw+2,enl_tmph+2);enl_shdclone2.style.zIndex=enl_zcnt-2;enl_visible(enl_shdclone2)}function enl_delshadow(a){enl_shd1=enl_geto(a+"shd1");enl_shd2=enl_geto(a+"shd2");enl_hide(enl_shd1);enl_setpos(enl_shd1,-5000,0);enl_hide(enl_shd2);enl_setpos(enl_shd2,-5000,0)}function enl_calcfact(a){var b;if(enl_ani==3){b=((-1*Math.cos(a-0.2))+0.98)*3.5}else{if(enl_ani==4){b=(Math.sin(1.5*Math.PI+a*Math.PI)+1)/2}else{if(enl_ani==5){b=Math.pow(a,Math.pow(2,2))}else{b=a}}}return b}function enl_doglideout(a){enl_img=enl_geto(a);enl_mvcnt=0;enl_img.steps++;if(enl_img.steps>=enl_maxstep){enl_visible(enl_geto(enl_img.orig));enl_hide(enl_img);enl_img.steps=1;setTimeout('enl_enable("'+a+'")',50)}else{var b=enl_calcfact((enl_maxstep-enl_img.steps)/enl_maxstep);enl_tmpw=Math.round(b*(enl_img.neww-enl_img.oldw)+enl_img.oldw);enl_tmph=Math.round(b*(enl_img.newh-enl_img.oldh)+enl_img.oldh);enl_tmpt=Math.round(enl_img.oldt+(enl_img.newt-enl_img.oldt)*b);enl_tmpl=Math.round(enl_img.oldl+(enl_img.newl-enl_img.oldl)*b);if(enl_tmpw<0){enl_tmpw=0}if(enl_tmph<0){enl_tmph=0}enl_setpos(enl_img,enl_tmpl,enl_tmpt,enl_tmpw,enl_tmph);if(enl_opaglide){enl_setopa(enl_img,Math.round((enl_maxstep-enl_img.steps)/enl_maxstep*100))}setTimeout('enl_doglideout("'+a+'")',enl_speed)}}function enl_doglidein(a){enl_img=enl_geto(a);enl_img.steps++;if(enl_img.steps>=enl_maxstep){enl_setpos(enl_img,enl_img.newl,enl_img.newt,enl_img.neww,enl_img.newh);enl_img.steps=1;if(enl_opaglide){enl_setopa(enl_img,100);enl_img.style.filter=""}setTimeout('enl_mkborder("'+a+'")',enl_speed);if(enl_dark){setTimeout("enl_darken()",enl_speed*4)}setTimeout('enl_makedraggable("'+a+'")',enl_speed*3);if(enl_titlebar){setTimeout('enl_showbtn("'+a+'")',enl_speed*2)}}else{if(enl_img.steps==2){enl_img.src=enl_fullimg;enl_img.style.position="absolute";if(enl_opaglide){enl_setopa(enl_img,0)}enl_visible(enl_img);if(!enl_opaglide){enl_hide(enl_geto(enl_img.orig))}}var b=enl_calcfact(enl_img.steps/enl_maxstep);enl_tmpw=Math.round(b*(enl_img.neww-enl_img.oldw)+enl_img.oldw);enl_tmph=Math.round(b*(enl_img.newh-enl_img.oldh)+enl_img.oldh);enl_tmpt=Math.round(enl_img.oldt+(enl_img.newt-enl_img.oldt)*b);enl_tmpl=Math.round(enl_img.oldl+(enl_img.newl-enl_img.oldl)*b);if(enl_tmpw<0){enl_tmpw=0}if(enl_tmph<0){enl_tmph=0}enl_setpos(enl_img,enl_tmpl,enl_tmpt,enl_tmpw,enl_tmph);if(enl_opaglide){enl_setopa(enl_img,Math.round(enl_img.steps/enl_maxstep*100))}setTimeout('enl_doglidein("'+a+'")',enl_speed)}}function enl_dofadeout(a){enl_img=enl_geto(a);enl_mvcnt=0;enl_img.steps++;if(enl_img.steps>=enl_maxstep){enl_img.steps=1;enl_hide(enl_img);setTimeout('enl_enable("'+a+'")',50)}else{enl_setopa(enl_img,(1-enl_img.steps/enl_maxstep)*100);setTimeout('enl_dofadeout("'+a+'")',enl_speed)}}function enl_dofadein(a){enl_brddiv=enl_geto(a+"brd");enl_img=enl_geto(a);enl_img.steps++;if(enl_img.steps==2){enl_setpos(enl_img,enl_img.newl,enl_img.newt,enl_img.neww,enl_img.newh);enl_setopa(enl_img,0);enl_img.src=enl_fullimg;enl_img.style.position="absolute";enl_visible(enl_img)}if(enl_img.steps>=enl_maxstep){enl_setopa(enl_img,100);enl_img.style.filter="";enl_img.steps=1;enl_mkborder(a);if(enl_titlebar){enl_showbtn(a)}setTimeout('enl_makedraggable("'+a+'")',30);if(enl_dark){setTimeout("enl_darken()",100)}}else{enl_setopa(enl_img,enl_img.steps/enl_maxstep*100);setTimeout('enl_dofadein("'+a+'")',enl_speed)}}function enl_mousemv(a){if(enl_drgmode&&enl_drgdrop){enl_tmpl=enl_nn6?enl_tx+a.clientX-enl_x:enl_tx+event.clientX-enl_x;enl_tmpt=enl_nn6?enl_ty+a.clientY-enl_y:enl_ty+event.clientY-enl_y;enl_setpos(enl_drgelem,enl_tmpl,enl_tmpt);if(enl_titlebar&&enl_brdsize<enl_btnheight+4){enl_setpos(enl_geto(enl_drgelem.id+"brd"),enl_tmpl-enl_brdsize,enl_tmpt-(enl_btnheight+4))}else{enl_setpos(enl_geto(enl_drgelem.id+"brd"),enl_tmpl-enl_brdsize,enl_tmpt-enl_brdsize)}if(enl_titlebar){enl_showbtn(enl_drgelem.id)}enl_mvcnt++;if(enl_mvcnt>3){enl_hasmvd=true}return false}}function enl_buttonpress(c){enl_drgelem=enl_nn6?c.target:event.srcElement;var b=enl_nn6?"HTML":"BODY";enl_hasmvd=false;while(enl_drgelem.tagName!=b&&!enl_drgelem.newh){enl_drgelem=enl_nn6?enl_drgelem.parentNode:enl_drgelem.parentElement}enl_drgmode=true;enl_zcnt+=3;var a=enl_drgelem.id;if(enl_titlebar){enl_geto(a+"btns").style.zIndex=enl_zcnt+1}enl_drgelem.style.zIndex=enl_zcnt;if(enl_shadow){enl_delshadow(a)}enl_geto(a+"brd").style.zIndex=enl_zcnt-1;enl_tx=parseInt(enl_drgelem.style.left+0);enl_ty=parseInt(enl_drgelem.style.top+0);enl_x=enl_nn6?c.clientX:event.clientX;enl_y=enl_nn6?c.clientY:event.clientY;enl_mvcnt=0;enl_drgelem.onmousemove=enl_mousemv;return false}function enl_enddrag(){enl_noevents(enl_drgelem);enl_drgelem.newt=parseInt(enl_drgelem.style.top);enl_drgelem.newl=parseInt(enl_drgelem.style.left);var a=enl_drgelem.id;if(enl_shadow){enl_dropshadow(a)}enl_drgmode=false;if(enl_hasmvd==true||!enl_drgelem.ispic){if(typeof enl_hideselect!="undefined"){enl_hideselect(0,1)}enl_mkborder(a);if(enl_titlebar){enl_showbtn(a)}enl_hasmvd=false;setTimeout('enl_makedraggable("'+a+'")',100)}else{setTimeout('enl_shrink("'+a+'")',10)}}function enl_makebtn(enl_id,enl_offset){enl_tempbtn=document.createElement("a");enl_tempbtn.id=enl_id;enl_setcur(enl_tempbtn,"","pointer","hand");with(enl_tempbtn.style){height=enl_btnheight+"px";width=enl_btnheight+"px";marginRight="3px";backgroundImage="url("+enl_gifpath+enl_btninact+")";backgroundRepeat="no-repeat";backgroundPosition=enl_offset+"px 0px";display="block";styleFloat="left";cssFloat="left"}return enl_tempbtn}function enl_mktitlebar(enl_imgid){enl_img=enl_geto(enl_imgid);enl_orig=enl_geto(enl_img.orig);enl_btns=enl_mkdiv(enl_imgid+"btns");enl_btns.style.padding="2px";enl_maxwidth=parseInt(enl_img.neww)-enl_buttonurl.length*(enl_btnheight+3);if(enl_maxwidth>100&&enl_orig.alt!=""){enl_title=document.createElement("div");with(enl_title.style){position="relative";styleFloat="left";cssFloat="left";textAlign="center";paddingTop="0px";fontFamily="Arial,Helvetica,sans-serif";fontSize="10pt";color=(enl_titletxtcol)?enl_titletxtcol:"#444444";whiteSpace="nowrap";fontWeight="bold"}enl_gettitle=enl_orig.alt;if(!enl_gettitle){enl_gettitle=""}if(enl_gettitle.length>Math.round(enl_maxwidth*0.08)){enl_gettitle=enl_gettitle.substring(0,Math.round(enl_maxwidth*0.08)-2)+"..."}enl_title.innerHTML=enl_gettitle;enl_title.style.width=enl_maxwidth+"px";enl_btns.appendChild(enl_title)}var enl_i=0;while(enl_i<enl_buttonurl.length){if(enl_buttonurl[enl_i]=="next"&&enl_getnext(enl_imgid,0)==null){enl_i++;continue}else{if(enl_buttonurl[enl_i]=="prev"&&enl_getnext(enl_imgid,1)==null){enl_i++;continue}else{if(((enl_buttonurl[enl_i]=="max")||(enl_buttonurl[enl_i]=="maxpop"))&&(enl_orig.getAttribute("longdesc").search(/normal_.+/)==-1)){enl_i++;continue}else{if(!enl_clone.ispic&&(enl_buttonurl[enl_i]=="enl_bbcode.php?pos=-"||enl_buttonurl[enl_i]=="enl_hist.php?pid=")){enl_i++;continue}}}}enl_button[enl_i]=enl_makebtn(enl_imgid+enl_i,enl_buttonoff[enl_i]);enl_button[enl_i].title=enl_buttontxt[enl_i];enl_button[enl_i].whichpic=enl_imgid;enl_button[enl_i].ajaxurl=enl_buttonurl[enl_i];if(enl_buttonurl[enl_i].slice(0,5)=="site:"){enl_button[enl_i].onclick=function(){enl_gotosite(this)}}else{switch(enl_buttonurl[enl_i]){case"close":enl_button[enl_i].onclick=function(){enl_shrink(enl_imgid);return false};break;case"max":enl_button[enl_i].onclick=function(){enl_max(enl_imgid)};break;case"maxpop":var enl_maxmeurl="displayimage.php?pid="+enl_orig.name;enl_button[enl_i].onclick=function(){window.open(enl_maxmeurl+"&fullsize=1","Max","scrollbars=yes,toolbar=no,status=no,resizable=yes,width=900,height=650");this.blur;return false};enl_button[enl_i].href=enl_maxmeurl+"&amp;fullsize=1";break;case"pic":enl_button[enl_i].onclick=function(){enl_btnpicture(enl_imgid)};break;case"prev":enl_button[enl_i].onclick=function(){enl_next(enl_imgid,1)};break;case"next":enl_button[enl_i].onclick=function(){enl_next(enl_imgid,0)};break;default:if(typeof enl_ajax!="undefined"){enl_button[enl_i].onclick=function(){enl_btnajax(this)}}break}}enl_button[enl_i].onmouseover=function(){enl_btnmover(this)};enl_button[enl_i].onmouseout=function(){enl_btnmout(this)};enl_btns.appendChild(enl_button[enl_i]);enl_i++}enl_img.btnw=enl_btns.offsetWidth}function enl_max(a){enl_img=enl_geto(a);enl_orig=enl_geto(enl_img.orig);enl_orig.setAttribute("longdesc",enl_orig.getAttribute("longdesc").replace(/normal_/,""));enl_orig.setAttribute("longDesc",enl_orig.getAttribute("longdesc").replace(/normal_/,""));enl_inmax=1;setTimeout('enl_shrink("'+a+'")',10)}function enl_next(a,b){if(enl_infront!=""){enl_nextPic=enl_getnext(a,b);if(enl_nextPic){if(enl_dark==2){enl_keepblack=1}enl_shrink(a);setTimeout('enl_openthepic("'+enl_nextPic.id+'")',50)}}}function enl_btnpicture(a){enl_img=enl_geto(a);enl_geto(a+"brd").innerHTML="";enl_visible(enl_img);enl_ajaxldrhide()}function enl_gotosite(a){enl_img=enl_geto(a.whichpic);enl_orig=enl_geto(enl_img.orig);enl_imgid=enl_img.id;enl_ajaxload(enl_img);enl_geturl=a.ajaxurl.slice(5);if(enl_orig.getAttribute("name")){enl_geturl+=enl_orig.getAttribute("name")}window.location=enl_geturl.replace(/pid=/,"pos=-")}function enl_btnmover(a){a.style.backgroundImage="url("+enl_gifpath+enl_btnact+")"}function enl_btnmout(a){a.style.backgroundImage="url("+enl_gifpath+enl_btninact+")"}function enl_showbtn(a){enl_btns=enl_geto(a+"btns");enl_img=enl_geto(a);enl_tmpl=parseInt(enl_img.style.left)+enl_img.neww-enl_img.btnw+5;enl_tmpt=(enl_titlebar&&enl_brdsize<enl_btnheight+4)?parseInt(enl_img.style.top)-(enl_btnheight+4):parseInt(enl_img.style.top)-enl_brdsize;enl_setpos(enl_btns,enl_tmpl,enl_tmpt);enl_btns.style.zIndex=enl_zcnt+1;enl_visible(enl_btns)}function enl_hidebtn(a){enl_btns=enl_geto(a+"btns");enl_hide(enl_btns);enl_setpos(enl_btns,-5000,0)}function enl_btnajax(a){enl_img=enl_geto(a.whichpic);enl_orig=enl_geto(enl_img.orig);enl_imgid=enl_img.id;enl_geturl=a.ajaxurl;if(enl_orig.getAttribute("name")){enl_geturl+=enl_orig.getAttribute("name")}enl_geturl+=(enl_geturl.indexOf("?")<0)?"?enl_img="+enl_imgid:"&enl_img="+enl_imgid;enl_ajax(enl_img,enl_geturl)}function enl_ajax(enl_img,enl_url){enl_brdm=enl_geto(enl_img.id+"brd");enl_brdm.innerHTML="";enl_ajaxload(enl_brdm);enl_hide(enl_img);var enl_randomizenumber=Math.round(9999*Math.random());var enl_randomizeit=(enl_url.indexOf("?")<0)?"?enl_rndit="+enl_randomizenumber:"&enl_rndit="+enl_randomizenumber;enl_geturl+=(enl_geturl.indexOf("?")<0)?"?enl_img="+enl_imgid:"&enl_img="+enl_imgid;try{enl_request.open("GET",enl_url+enl_randomizeit,true);enl_request.onreadystatechange=function(){if(enl_request.readyState==4){enl_ajaxldrhide();enl_answer=enl_request.responseText;enl_divh=enl_img.newh-2;enl_divw=enl_img.neww-2;var enl_myajaxcol=(enl_ajaxcolor)?enl_ajaxcolor:"#d0d0d0";enl_tmphtml='<div style="width:'+enl_divw+"px;height:"+enl_divh+"px;overflow:auto;border-color:#666677;border-width:1px;border-style:solid;background-color:"+enl_myajaxcol+";margin-left:"+enl_brdsize+"px;margin-bottom:"+enl_brdsize+"px;margin-right:"+enl_brdsize+"px;margin-top:";enl_tmphtml+=(enl_brdsize<enl_btnheight+4)?eval(enl_btnheight+4):enl_brdsize;enl_tmphtml+='px;">'+enl_answer+"</div>";enl_geto(enl_imgid+"brd").innerHTML=enl_tmphtml}};enl_request.send(null)}catch(enl_err){enl_ajaxldrhide();enl_geto(enl_imgid+"brd").innerHTML="<center><br/><br/><p style='font-size:12px;'>AJAX did not work"}}function enl_ajaxfollow(a){enl_link=a.name;enl_imgid=enl_link.split("enl_img=")[1];if(enl_imgid.indexOf("&")){enl_imgid=enl_imgid.split("&")[0]}enl_img=enl_geto(enl_imgid);enl_ajax(enl_img,enl_link)}function enl_ajaxprepare(){var b=false;if(window.XMLHttpRequest){var b=new XMLHttpRequest();if(enl_usecounter){var a=new XMLHttpRequest()}}else{if(enl_isie){try{var b=new ActiveXObject("Msxml2.XMLHTTP");if(enl_usecounter){var a=new ActiveXObject("Msxml2.XMLHTTP")}}catch(c){try{var b=new ActiveXObject("Microsoft.XMLHTTP");if(enl_usecounter){var a=new ActiveXObject("Microsoft.XMLHTTP")}}catch(c){}}}}}function enl_count(a){enl_img=enl_geto(a);enl_geturl=enl_counterurl;if(enl_img.getAttribute("name")){enl_geturl+=enl_img.getAttribute("name")}try{enl_request2.open("GET",enl_geturl,true);enl_request2.send(null)}catch(b){}}function enl_darken(a){enl_drk=enl_geto("enl_drk");if(enl_darkened==0){enl_setopa(enl_drk,0);enl_darkened=1;enl_visible(enl_drk);enl_resize();if(a){enl_fadedark(enl_darksteps-1)}else{enl_fadedark(0)}}}function enl_fadedark(a){if(enl_infront==""){enl_nodark}else{enl_drk=enl_geto("enl_drk");a++;enl_setopa(enl_drk,enl_darkprct/enl_darksteps*a);if(a<enl_darksteps){setTimeout("enl_fadedark("+a+")",4)}}}function enl_nodark(){if(!enl_keepblack){enl_drk=enl_geto("enl_drk");enl_hide(enl_drk);enl_setpos(enl_drk,-5000,0,0,0);enl_darkened=0}}function enl_addResize(b){var a=window.onresize;if(typeof window.onresize!="function"){window.onresize=b}else{window.onresize=function(){b();if(a){setTimeout('"+enl_oldonresize+"',25)}}}}function enl_resize(){if(enl_darkened){enl_drk=enl_geto("enl_drk");enl_setpos(enl_drk,0,0,0,0);enl_getbrwsxy();if(window.innerHeight&&window.scrollMaxY){enl_darkh=(window.innerHeight+window.scrollMaxY>enl_brwsy)?window.innerHeight+window.scrollMaxY:enl_brwsy}else{enl_darkh=(document.body.scrollHeight>document.body.offsetHeight)?document.body.scrollHeight:document.body.offsetHeight}enl_darkh=(enl_brwsy>enl_darkh)?enl_brwsy:enl_darkh;enl_setpos(enl_drk,0,0,document.body.scrollWidth,enl_darkh)}}function enl_darkenprepare(){enl_drk=enl_mkdiv("enl_drk");enl_drk.style.backgroundColor="black";enl_drk.style.zIndex=9670;enl_addResize(enl_resize);if(enl_wheelnav){enl_wheelenable(enl_drk)}}function enl_checkflash(){var b,a=0;try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");a=1}catch(c){}try{b=navigator.plugins["Shockwave Flash"];if(b){a=1}}catch(c){}return a}function enl_swfdiv(c,b){enl_clone=enl_mkdiv(c.id+"clone");enl_clone.style.overflow="hidden";if(b.slice(0,5)=="swf::"){var a=(enl_isie)?' id="'+c.id+'swfinner" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" data="'+b.split("::")[1]+'"':"";a+=' width="'+b.split("::")[2]+'" height="'+b.split("::")[3]+'"><param name="movie" value="'+b.split("::")[1]+'"><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></param>';a+='<embed id="'+c.id+'swfinneremb" src="'+b.split("::")[1]+'" type="application/x-shockwave-flash" width="'+b.split("::")[2]+'" allowFullScreen="true" wmode="opaque" height="'+b.split("::")[3]+'"></embed></object>'}else{if(b.slice(0,5)=="flv::"){var a=(enl_isie)?' id="'+c.id+'swfinner" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" data="'+enl_gifpath+'flvPlayer.swf"':"";a+=' width="'+b.split("::")[2]+'" height="'+b.split("::")[3]+'"><param name="movie" value="'+enl_gifpath+'flvPlayer.swf"></param><param name="allowFullScreen" value="true"></param><param name="FlashVars" value="flvPath='+b.split("::")[1]+'&flvTitle=FLV Video"></param>';a+='<embed id="'+c.id+'swfinneremb" src="'+enl_gifpath+'flvPlayer.swf" type="application/x-shockwave-flash" width="'+b.split("::")[2]+'" allowfullscreen="true" FlashVars="flvPath='+b.split("::")[1]+'&flvTitle=FLV Video" height="'+b.split("::")[3]+'"></embed></object>'}else{var a=(enl_isie)?' id="'+c.id+'swfinner" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" data="'+enl_gifpath+"player.swf?movie="+b.split("::")[1]+'&autoload=on&fgcolor=0xFF0000&bgcolor=0x000000&volume=70&autorewind=0"':"";a+=' width="'+b.split("::")[2]+'" height="'+b.split("::")[3]+'"><param name="movie" value="'+enl_gifpath+"player.swf?movie="+b.split("::")[1]+'&autoload=on&fgcolor=0xFF0000&bgcolor=0x000000&volume=70&autorewind=0"></param><param name="allowFullScreen" value="true"></param>';a+='<embed id="'+c.id+'swfinneremb" src="'+enl_gifpath+"player.swf?movie="+b.split("::")[1]+'&autoload=on&fgcolor=0xFF0000&bgcolor=0x000000&volume=70&autorewind=0" type="application/x-shockwave-flash" width="'+b.split("::")[2]+'" allowfullscreen="true" height="'+b.split("::")[3]+'"></embed></object>'}}if(enl_isie){enl_swfinnerdiv=document.createElement("div");enl_swfinnerdiv.id=c.id+"swfinner";enl_clone.appendChild(enl_swfinnerdiv);enl_swfinnerdiv.outerHTML='<object style="margin:0px;" '+a}else{enl_clone.innerHTML='<div style="margin:0px;overflow:hidden;"><object '+a+"</div>"}return enl_clone}function enl_ifrdiv(b,a){enl_clone=enl_mkdiv(b.id+"clone");enl_clone.style.overflow="hidden";enl_ifr=document.createElement("iframe");enl_ifr.src=a.split("::")[1];enl_ifr.style.margin="0px";enl_ifr.style.width=a.split("::")[2]+"px";enl_ifr.style.height=a.split("::")[3]+"px";enl_ifr.style.border="none";enl_ifr.style.frameborder="0";enl_clone.appendChild(enl_ifr);return enl_clone}function enl_dvxdiv(b,a){enl_clone=enl_mkdiv(b.id+"clone");enl_clone.style.overflow="hidden";enl_dvxhtml='<object classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616" id="'+b.id+'divxinner" width="'+a.split("::")[2]+'" height="'+a.split("::")[3]+'" codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab">';enl_dvxhtml+='<param name="src" value="'+a.split("::")[1]+'"/><param name="loop" value="true"/><param name="bannerEnabled" value="false"/><embed type="video/divx" src="'+a.split("::")[1]+'" width="'+a.split("::")[2]+'" loop="true" bannerEnabled="false" height="'+a.split("::")[3]+'" pluginspage="http://go.divx.com/plugin/download/"></embed></object>';enl_clone.innerHTML=enl_dvxhtml;return enl_clone}function enl_wheel(b){var a=0;if(!b){b=window.event}if(b.wheelDelta){a=b.wheelDelta}else{if(b.detail){a=-b.detail}}if(enl_infront!=""){if(a>0){enl_next(enl_infront,0)}if(a<0){enl_next(enl_infront,1)}}if(b.preventDefault){b.preventDefault()}b.returnValue=false;return false}function enl_wheelenable(a){if(window.addEventListener){a.addEventListener("DOMMouseScroll",enl_wheel,false)}else{a.onmousewheel=enl_wheel}}function enl_keynavi(a){if(enl_infront!=""){a=a||window.event;enl_key=a.keyCode;switch(enl_key){case 39:enl_next(enl_infront,0);break;case 37:enl_next(enl_infront,1);break;case 27:enl_shrink(enl_infront);break}}}function enl_hideselect(c,a){if(enl_ie6){if(!a){enl_objpos=enl_coord(c);enl_objpos.bottom=enl_objpos.top+enl_objpos.height;enl_objpos.right=enl_objpos.left+enl_objpos.width}enl_selectlist=document.getElementsByTagName("select");for(var b=0;b<enl_selectlist.length;b++){if(!a){enl_selectpos=enl_coord(enl_selectlist[b]);enl_selectpos.bottom=enl_selectpos.top+enl_selectpos.height;enl_selectpos.right=enl_selectpos.left+enl_selectpos.width;if((enl_selectpos.top>=enl_objpos.top&&enl_selectpos.top<=enl_objpos.bottom&&enl_selectpos.left>=enl_objpos.left&&enl_selectpos.left<=enl_objpos.right)||(enl_selectpos.bottom>=enl_objpos.top&&enl_selectpos.bottom<=enl_objpos.bottom&&enl_selectpos.right>=enl_objpos.left&&enl_selectpos.right<=enl_objpos.right)){enl_hide(enl_selectlist[b])}}else{enl_visible(enl_selectlist[b])}}}};
function createRequestObject(){if(window.ActiveXObject){try{return new ActiveXObject("MSXML2.XMLHTTP")}catch(a){try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(a){alert("Error creating XMLHttpRequest with ActiveXObject()");return false}}}if(window.XMLHttpRequest){try{return new XMLHttpRequest()}catch(a){alert("Error creating XMLHttpRequest with XMLHttpRequest()");return false}}alert("Your browser does not support AJAX.");return false}var osDatehttp=createRequestObject();function osDatehandleResponse(){if(osDatehttp.readyState==4){if(osDatehttp.status==200){var b=osDatehttp.responseText;if(b!="undefined"&&b!=""){if(b.indexOf("|||")!=-1){var d=b.split("|||");for(var c=1;c<d.length;c++){var a=d[c].split("|:|");if(a[0]!="undefined"&&a[0]!=""&&document.getElementById(a[0])){document.getElementById(a[0]).innerHTML=a[1]}}}}}}}function updateOnlineTime(){osDatehttp.open("GET","updateonlinetime.php");osDatehttp.send(null);setTimeout("updateOnlineTime()",60000)}function updateOnlineCount(){osDatehttp.open("get","updateonlinecount.php");osDatehttp.onreadystatechange=osDatehandleResponse;osDatehttp.send(null);setTimeout("updateOnlineCount()",60000)}function featuredProfilesDisplay(a){osDatehttp.open("POST","featured_profiles_display.php",false);osDatehttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");osDatehttp.send("gender="+a+"&send=1");osDatehandleResponse()}function newestProfilesDisplay(a){osDatehttp.open("POST","newest_profiles_display.php",false);osDatehttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");osDatehttp.send("npgender="+a+"&send=1");osDatehandleResponse()}function recentActiveProfilesDisplay(a){osDatehttp.open("POST","recent_active_profiles_display.php",false);osDatehttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");osDatehttp.send("apgender="+a+"&send=1");osDatehandleResponse()}function newUserListDisplay(a){osDatehttp.open("POST","newuserlist_display.php",false);osDatehttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");osDatehttp.send("nulgender="+a+"&send=1");osDatehandleResponse()}function randomProfilesDisplay(a){osDatehttp.open("POST","random_profiles_display.php",false);osDatehttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");osDatehttp.send("rpgender="+a+"&send=1");osDatehandleResponse()}function iplocationProfilesDisplay(a){osDatehttp.open("POST","iplocation_profiles_display.php",false);osDatehttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");osDatehttp.send("iplgender="+a+"&send=1");osDatehandleResponse()}function birthdayProfilesDisplay(a){osDatehttp.open("POST","birthday_profiles_display.php",false);osDatehttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");osDatehttp.send("bdpgender="+a+"&send=1");osDatehandleResponse()}function profpicsDisplay(a){osDatehttp.open("POST","newest_profpics_display.php",false);osDatehttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");osDatehttp.send("profpicgender="+a+"&send=1");osDatehandleResponse()}if(use_popups==undefined){var use_popups=true}function isValidEmail(a){if(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,7})+$/.test(a)){return true}return false}function isValidURL(a){if(a==null){return false}var b="^ *";b=b+"(?:([Hh][Tt][Tt][Pp](?:[Ss]?))(?::\\/\\/))?";b=b+"(?:(\\w+\\:\\w+)(?:\\@))?";b=b+"([0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}|localhost|([Ww][Ww][Ww].|[a-zA-Z0-9].)[a-zA-Z0-9\\-\\.]+\\.[a-zA-Z]{2,6})";b=b+"(\\:\\d+)?";b=b+"((?:\\/.*)*\\/?)?";b=b+"(.*?\\.(\\w{2,4}))?";b=b+"(\\?(?:[^\\#\\?]+)*)?";b=b+"(\\#.*)?";b=b+" *$";return a.match(b)}function isValidString(a,c){if(!c){var c=""}var b=true;for(i=0;i<a.length;i++){ch=a.charAt(i);for(j=0;j<c.length;j++){if(ch==c.charAt(j)){break}}if(j==c.length){b=false;break}}return b}var alphabeticChars="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";var numericChars="0123456789";function isNumeric(a){if(/[0-9]/.test(a)){return true}return false}function isNumeric(b,a){return isValidString(b,numericChars+a)}function isAlphabetic(a){if(/[A-Za-z]/.test(a)){return true}return false}function isAlphabetic(b,a){return isValidString(b,alphabeticChars+a)}function isAlphaNumeric(a){if(/\w/.test(a)){return true}return false}function isAlphaNumeric(b,a){return isValidString(b,alphabeticChars+numericChars+a)}function DispDispHide(c,b,a){if(a){a.style.display="none"}if(c){c.style.display="inline"}if(b){b.style.display="inline"}}function DispHideHide(a,c,b){if(c){c.style.display="none"}if(b){b.style.display="none"}if(a){a.style.display="inline"}}function showHide(b,a){if(b.value=="US"){a.rows.row_usstates.style.display="inline"}else{a.rows.row_usstates.style.display="none"}if(b.value=="CA"){a.rows.row_castates.style.display="inline"}else{a.rows.row_castates.style.display="none"}if(b.value=="AU"){a.rows.row_austates.style.display="inline"}else{a.rows.row_austates.style.display="none"}if(b.value=="GB"){a.rows.row_gbstates.style.display="inline"}else{a.rows.row_gbstates.style.display="none"}}function showHide(a){if(a=="US"){document.getElementById("row_usstates").style.display="inline"}else{document.getElementById("row_usstates").style.display="none"}if(a=="CA"){document.getElementById("row_castates").style.display="inline"}else{document.getElementById("row_castates").style.display="none"}if(a=="AU"){document.getElementById("row_austates").style.display="inline"}else{document.getElementById("row_austates").style.display="none"}if(a=="GB"){document.getElementById("row_gbstates").style.display="inline"}else{document.getElementById("row_gbstates").style.display="none"}}function showHidePref(b,a){if(b.value=="US"){a.rows.row_lookusstates.style.display="inline"}else{a.rows.row_lookusstates.style.display="none"}if(b.value=="CA"){a.rows.row_lookcastates.style.display="inline"}else{a.rows.row_lookcastates.style.display="none"}if(b.value=="AU"){a.rows.row_lookaustates.style.display="inline"}else{a.rows.row_lookaustates.style.display="none"}if(b.value=="GB"){a.rows.row_lookgbstates.style.display="inline"}else{a.rows.row_lookgbstates.style.display="none"}}function showHidePref(a){if(a=="US"){document.getElementById("row_lookusstates").style.display="inline"}else{document.getElementById("row_lookusstates").style.display="none"}if(a=="CA"){document.getElementById("row_lookcastates").style.display="inline"}else{document.getElementById("row_lookcastates").style.display="none"}if(a=="AU"){document.getElementById("row_lookaustates").style.display="inline"}else{document.getElementById("row_lookaustates").style.display="none"}if(a=="GB"){document.getElementById("row_lookgbstates").style.display="inline"}else{document.getElementById("row_lookgbstates").style.display="none"}}function openWin(e){if(use_popups==false){window.location.href="viewresult.php?pollid="+e;return}var b=550;var a=378;var d=(screen.width/2)-b/2;var c=(screen.height/2)-a/2;openpopup=window.open("viewresult.php?pollid="+e,"","width="+b+",height="+a+",left="+d+",top="+c+",resizable=yes,scrollbars=yes,status=no");openpopup.opener.name="abc"}function previousPolls(){if(use_popups==false){window.location.href="previouspolls.php";return}var b=600;var a=378;var d=(screen.width/2)-b/2;var c=(screen.height/2)-a/2;openpopup=window.open("previouspolls.php","popupwin","width="+b+",height="+a+",left="+d+",top="+c+",resizable=yes,scrollbars=yes,status=no");openpopup.opener.name="abc"}function launchTellFriend(){if(use_popups==false){window.location.href="tellafriend.php";return}var c=(screen.width/2)-400/2;var b=(screen.height/2)-400/2;var a="width=300,height=250,left="+c+",top="+b+",copyhistory=no,directories=no,menubar=no,location=no,resizable=yes,scrollbars=no";window.open("tellafriend.php","tellfriend",a)}function launchTellFriendProfile(a){if(use_popups==false){window.location.href="tellafriend.php?ID="+a;return}var d=(screen.width/2)-280/2;var c=(screen.height/2)-280/2;var b="width=280,height=300,left="+d+",top="+c+",copyhistory=no,directories=no,menubar=no,location=no,resizable=yes,scrollbars=yes";window.open("tellfriend.php?ID="+a,"tellfriendprofile",b)}var popUpWin=0;function popUpWindowMessage(g,f,b,a,c){b=450;a=450;if(use_popups==false){window.location.href=g;return}if(f=="center"){var e=(screen.width/2)-b/2;var d=(screen.height/2)-a/2}else{var e=0;var d=0}popUpWin=open(g,"popUpWin"+c,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width="+b+",height="+a+",left="+e+", top="+d+",screenX="+e+",screenY="+d+"")}function showIM(a){popUpWindow("showinstantmsg.php?id="+a,"center",320,260,a)}function popUpWindow(g,f,b,a,c){if(use_popups==false){window.location.href=g;return}if(f=="center"){var e=(screen.width/2)-b/2;var d=(screen.height/2)-a/2}else{var e=0;var d=0}popUpWin=open(g,"popUpWin"+c,"toolbar=no, status=no,menubar=no,scrollbar=no,resizable=yes,copyhistory=yes,width="+b+",height="+a+",left="+e+", top="+d+",screenX="+e+",screenY="+d+"");popUpWin.opener.name="abc1"}function popUpScrollWindow(f,e,a,b){if(use_popups==false){window.location.href=f;return}height=screen.height-150;height=Math.min(height,b);if(e=="center"){var d=(screen.width/2)-a/2;var c=(screen.height/2)-height/2}else{if(e=="top"){var d=(screen.width/2)-a/2;var c=0}else{var d=0;var c=0}}popUpWin=open(f,"popUpWin","toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width="+a+",height="+height+",left="+d+", top="+c+",screenX="+d+",screenY="+c+"")}function popUpScrollWindow2(f,e,a,b){if(use_profilepopups==false){window.location.href=f;return}height=screen.height-150;height=Math.min(height,b);if(e=="center"){var d=(screen.width/2)-a/2;var c=(screen.height/2)-height/2}else{if(e=="top"){var d=(screen.width/2)-a/2;var c=0}else{var d=0;var c=0}}popUpWin=open(f,"popUpWin","toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width="+a+",height="+height+",left="+d+", top="+c+",screenX="+d+",screenY="+c+"");popUpWin.opener.name="rest11"}var prevRow=null;function toggleRow(b,a){if(prevRow!=null){prevRow.style.display="none"}prevRow=obj=document.getElementById(b);obj.style.display="inline";for(i=0;i<document.getElementById("tblSelect").length;i++){if(i==a){document.getElementById("tblSelect")[i].className="s_table_blue"}else{document.getElementById("tblSelect")[i].className="s_table_white"}}}function votesubmit(h,g){var c=600;var a=378;var f=(screen.width/2)-c/2;var e=(screen.height/2)-a/2;nop=document.frmpoll.rdo.length;var b,d;d="0";for(b=0;b<nop;b++){if(document.frmpoll.rdo[b].checked){d=document.frmpoll.rdo[b].value}}if(use_popups==false){if(d==""){window.location.href="viewresult.php?t="+g+"&pollid="+h}else{window.location.href="votehere.php?t="+g+"&rdo="+d+"&pollid="+h}return}if(d==""){openpopup=window.open("viewresult.php?t="+g+"&pollid="+h,"","width="+c+",height="+a+",left="+f+",top="+e+",resizable=yes,scrollbars=yes,status=no");openpopup.opener.name="abc"}else{openpopup=window.open("votehere.php?t="+g+"&rdo="+d+"&pollid="+h,"","width="+c+",height="+a+",left="+f+",top="+e+",resizable=yes,scrollbars=yes,status=no");openpopup.opener.name="abc"}}function selectRdo(b,a){for(i=0;i<b.length;i++){if(b.elements[i].type=="radio"&&b.elements[i].name=="searchby"&&b.elements[i].value==a){b.elements[i].checked=true}}}function checkAll(b,a,c){for(i=0;i<b.length;i++){if(b.elements[i].type=="checkbox"&&b.elements[i].name==a){b.elements[i].checked=c}}}function datefromtovalid(m,d,k,h,b,e,c){month=new Array("JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC");var l=m[m.selectedIndex].value;var n=d[d.selectedIndex].value;var p=k[k.selectedIndex].value;var o=h[h.selectedIndex].value;var g=b[b.selectedIndex].value;var a=e[e.selectedIndex].value;for(var f=0;f<12;f++){if((n==month[f])){n=f}if((g==month[f])){g=f}}from_date=new Date(l,n,p);to_date=new Date(o,g,a);if(from_date>to_date){alert(c);return false}return true}function DateCheck(c,a,b,d){hdt=b[b.selectedIndex].value;hmt=a[a.selectedIndex].value;hyr=c[c.selectedIndex].value;hms_maxval=31;if((hmt=="APR")||(hmt=="JUN")||(hmt=="SEP")||(hmt=="NOV")){hms_maxval=30}if((hmt=="FEB")&&(hyr%4)==0){hms_maxval=29}if((hmt=="FEB")&&(hyr%4)!=0){hms_maxval=28}if(parseInt(hdt)>hms_maxval){alert(d);return false}return true}function validateLogin(a){ErrorMsg=new Array();ErrorMsg[0]="------------------------- The Following Errors Occured -------------------------"+String.fromCharCode(13);CheckFieldString("noblank",a.txtusername,"{$lang.signup_js_errors.username_email_noblank}");CheckFieldString("noblank",a.txtpassword,"{$lang.signup_js_errors.password_noblank}");CheckFieldString("alphanum",a.txtusername,"{$lang.signup_js_errors.username_charset}");CheckFieldString("alphanum",a.txtpassword,"{$lang.signup_js_errors.password_charset}");result="";if(ErrorCount>0){alert(ErrorMsg[1]);return false}return true}function confirmLink(c,a){var b=confirm(a);if(b){c.href+="&delete=Y"}return b}function confirmButton(a){var b=confirm(a);return b}function countCheck(a){if(document.frmCmt.comment.value.length>a){alert("Too many characters in the comment box!");document.frmCmt.comment.focus();return false}else{return true}}function countText(a){var b=document.frmCmt.counter.value;document.frmCmt.counter.value=document.frmCmt.comment.value.length;if(document.frmCmt.counter.value>a&&b<=a){alert("Too many characters in the comment box!");if(document.styleSheets){document.frmCmt.counter.style.fontWeight="bold";document.frmCmt.counter.style.color="#ff0000"}}else{if(document.frmCmt.counter.value<=a&&b>a&&document.styleSheets){document.frmCmt.counter.style.fontWeight="normal";document.frmCmt.counter.style.color="#000000"}}}function openInParentWindow(a){window.opener.document.location.href=a;window.opener.focus()}function CheckFieldString(f,k,g){var e;var h=k.value;var a=true;var d=false;var c,b;if(f=="noblank"){if(h==""){ErrorCount++;ErrorMsg[ErrorCount]=g}}else{if(f=="integer"){e="0123456789"}else{if(f=="decimal"){e="0123456789."}else{if(f=="text"){e=text_chars}else{if(f=="alphanumeric"){e=alphanumeric_chars}else{if(f=="full"){e=full_chars}else{if(f=="alphanum"){e=alphanum_chars}else{if(f=="email"){e="0123456789_-@.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";if(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,7})+$/.test(h)){}else{ErrorCount++;ErrorMsg[ErrorCount]=g}}else{if(f=="phone"){e="0123456789-+"}else{if(f=="URL"){e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.:/\\"}else{if(f=="path"){e="0123456789.+-_#,/ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz () \\ "}else{ErrorCount++;ErrorMsg[ErrorCount]="Check Validation one of the mentioned validation type is wrong";return 1}}}}}}}}}}for(i=0;i<h.length;i++){ch=h.charAt(i);for(j=0;j<e.length;j++){if(ch==e.charAt(j)){break}if(j==e.length-1){a=false;break}}if(f=="decimal"){for(t=0;t<h.length;t++){dot=h.charAt(t);if(dot=="."&&d==false){d=true}else{if(dot=="."&&d==true){ErrorCount++;ErrorMsg[ErrorCount]=g;break}}}}if(!a){ErrorCount++;ErrorMsg[ErrorCount]=g;break}}}}function reloadCaptcha(){now=new Date();var a=document.getElementById("spam_code_img");if(a){a.src=a.src+(a.src.indexOf("?")>-1?"&":"?")+Math.ceil(Math.random()*(now.getTime()))}}var disappeardelay=250;var enableanchorlink=0;var hidemenu_onclick=1;var ie5=document.all;var ns6=document.getElementById&&!document.all;function getposOffset(d,c){var b=(c=="left")?d.offsetLeft:d.offsetTop;var a=d.offsetParent;while(a!=null){b=(c=="left")?b+a.offsetLeft:b+a.offsetTop;a=a.offsetParent}return b}function showhide(c,b,d,a){if(ie5||ns6){dropmenuobj.style.left=dropmenuobj.style.top=-500}if(b.type=="click"&&c.visibility==a||b.type=="mouseover"){c.visibility=d}else{if(b.type=="click"){c.visibility=a}}}function iecompattest(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}function clearbrowseredge(e,c){var b=0;if(c=="rightedge"){var d=ie5&&!window.opera?iecompattest().scrollLeft+iecompattest().clientWidth-15:window.pageXOffset+window.innerWidth-15;dropmenuobj.contentmeasure=dropmenuobj.offsetWidth;if(d-dropmenuobj.x<dropmenuobj.contentmeasure){b=dropmenuobj.contentmeasure-e.offsetWidth}}else{var a=ie5&&!window.opera?iecompattest().scrollTop:window.pageYOffset;var d=ie5&&!window.opera?iecompattest().scrollTop+iecompattest().clientHeight-15:window.pageYOffset+window.innerHeight-18;dropmenuobj.contentmeasure=dropmenuobj.offsetHeight;if(d-dropmenuobj.y<dropmenuobj.contentmeasure){b=dropmenuobj.contentmeasure+e.offsetHeight;if((dropmenuobj.y-a)<dropmenuobj.contentmeasure){b=dropmenuobj.y+e.offsetHeight-a}}}return b}function dropdownmenu(c,b,a){if(window.event){event.cancelBubble=true}else{if(b.stopPropagation){b.stopPropagation()}}if(typeof dropmenuobj!="undefined"){dropmenuobj.style.visibility="hidden"}clearhidemenu();if(ie5||ns6){c.onmouseout=delayhidemenu;dropmenuobj=document.getElementById(a);if(hidemenu_onclick){dropmenuobj.onclick=function(){dropmenuobj.style.visibility="hidden"}}dropmenuobj.onmouseover=clearhidemenu;dropmenuobj.onmouseout=ie5?function(){dynamichide(event)}:function(d){dynamichide(d)};showhide(dropmenuobj.style,b,"visible","hidden");dropmenuobj.x=getposOffset(c,"left");dropmenuobj.y=getposOffset(c,"top");dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(c,"rightedge")+"px";dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(c,"bottomedge")+c.offsetHeight+"px"}return clickreturnvalue()}function clickreturnvalue(){if((ie5||ns6)&&!enableanchorlink){return false}else{return true}}function contains_ns6(d,c){while(c.parentNode){if((c=c.parentNode)==d){return true}}return false}function dynamichide(a){if(ie5&&!dropmenuobj.contains(a.toElement)){delayhidemenu()}else{if(ns6&&a.currentTarget!=a.relatedTarget&&!contains_ns6(a.currentTarget,a.relatedTarget)){delayhidemenu()}}}function delayhidemenu(){delayhide=setTimeout("dropmenuobj.style.visibility='hidden'",disappeardelay)}function clearhidemenu(){if(typeof delayhide!="undefined"){clearTimeout(delayhide)}}function mainLink(a){window.opener.document.location.href=a;window.opener.focus()}function PopupCenter(f,g,a,c){var e=(screen.width/2)-(a/2);var d=(screen.height/2)-(c/2);var b=window.open(f,g,"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width="+a+", height="+c+", top="+d+", left="+e)};
(function(){var W=this,ab,F=W.jQuery,S=W.$,T=W.jQuery=W.$=function(b,a){return new T.fn.init(b,a)},M=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,ac=/^.[^:#\[\.,]*$/;T.fn=T.prototype={init:function(e,b){e=e||document;if(e.nodeType){this[0]=e;this.length=1;this.context=e;return this}if(typeof e==="string"){var c=M.exec(e);if(c&&(c[1]||!b)){if(c[1]){e=T.clean([c[1]],b)}else{var a=document.getElementById(c[3]);if(a&&a.id!=c[3]){return T().find(e)}var d=T(a||[]);d.context=document;d.selector=e;return d}}else{return T(b).find(e)}}else{if(T.isFunction(e)){return T(document).ready(e)}}if(e.selector&&e.context){this.selector=e.selector;this.context=e.context}return this.setArray(T.isArray(e)?e:T.makeArray(e))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(a){return a===ab?Array.prototype.slice.call(this):this[a]},pushStack:function(c,a,d){var b=T(c);b.prevObject=this;b.context=this.context;if(a==="find"){b.selector=this.selector+(this.selector?" ":"")+d}else{if(a){b.selector=this.selector+"."+a+"("+d+")"}}return b},setArray:function(a){this.length=0;Array.prototype.push.apply(this,a);return this},each:function(a,b){return T.each(this,a,b)},index:function(a){return T.inArray(a&&a.jquery?a[0]:a,this)},attr:function(c,a,b){var d=c;if(typeof c==="string"){if(a===ab){return this[0]&&T[b||"attr"](this[0],c)}else{d={};d[c]=a}}return this.each(function(e){for(c in d){T.attr(b?this.style:this,c,T.prop(this,d[c],b,e,c))}})},css:function(b,a){if((b=="width"||b=="height")&&parseFloat(a)<0){a=ab}return this.attr(b,a,"curCSS")},text:function(a){if(typeof a!=="object"&&a!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(a))}var b="";T.each(a||this,function(){T.each(this.childNodes,function(){if(this.nodeType!=8){b+=this.nodeType!=1?this.nodeValue:T.fn.text([this])}})});return b},wrapAll:function(b){if(this[0]){var a=T(b,this[0].ownerDocument).clone();if(this[0].parentNode){a.insertBefore(this[0])}a.map(function(){var c=this;while(c.firstChild){c=c.firstChild}return c}).append(this)}return this},wrapInner:function(a){return this.each(function(){T(this).contents().wrapAll(a)})},wrap:function(a){return this.each(function(){T(this).wrapAll(a)})},append:function(){return this.domManip(arguments,true,function(a){if(this.nodeType==1){this.appendChild(a)}})},prepend:function(){return this.domManip(arguments,true,function(a){if(this.nodeType==1){this.insertBefore(a,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this.nextSibling)})},end:function(){return this.prevObject||T([])},push:[].push,sort:[].sort,splice:[].splice,find:function(b){if(this.length===1){var a=this.pushStack([],"find",b);a.length=0;T.find(b,this[0],a);return a}else{return this.pushStack(T.unique(T.map(this,function(c){return T.find(b,c)})),"find",b)}},clone:function(b){var d=this.map(function(){if(!T.support.noCloneEvent&&!T.isXMLDoc(this)){var f=this.outerHTML;if(!f){var e=this.ownerDocument.createElement("div");e.appendChild(this.cloneNode(true));f=e.innerHTML}return T.clean([f.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(b===true){var a=this.find("*").andSelf(),c=0;d.find("*").andSelf().each(function(){if(this.nodeName!==a[c].nodeName){return}var g=T.data(a[c],"events");for(var e in g){for(var f in g[e]){T.event.add(this,e,g[e][f],g[e][f].data)}}c++})}return d},filter:function(a){return this.pushStack(T.isFunction(a)&&T.grep(this,function(b,c){return a.call(b,c)})||T.multiFilter(a,T.grep(this,function(b){return b.nodeType===1})),"filter",a)},closest:function(c){var a=T.expr.match.POS.test(c)?T(c):null,b=0;return this.map(function(){var d=this;while(d&&d.ownerDocument){if(a?a.index(d)>-1:T(d).is(c)){T.data(d,"closest",b);return d}d=d.parentNode;b++}})},not:function(b){if(typeof b==="string"){if(ac.test(b)){return this.pushStack(T.multiFilter(b,this,true),"not",b)}else{b=T.multiFilter(b,this)}}var a=b.length&&b[b.length-1]!==ab&&!b.nodeType;return this.filter(function(){return a?T.inArray(this,b)<0:this!=b})},add:function(a){return this.pushStack(T.unique(T.merge(this.get(),typeof a==="string"?T(a):T.makeArray(a))))},is:function(a){return !!a&&T.multiFilter(a,this).length>0},hasClass:function(a){return !!a&&this.is("."+a)},val:function(c){if(c===ab){var i=this[0];if(i){if(T.nodeName(i,"option")){return(i.attributes.value||{}).specified?i.value:i.text}if(T.nodeName(i,"select")){var e=i.selectedIndex,b=[],a=i.options,f=i.type=="select-one";if(e<0){return null}for(var h=f?e:0,d=f?e+1:a.length;h<d;h++){var g=a[h];if(g.selected){c=T(g).val();if(f){return c}b.push(c)}}return b}return(i.value||"").replace(/\r/g,"")}return ab}if(typeof c==="number"){c+=""}return this.each(function(){if(this.nodeType!=1){return}if(T.isArray(c)&&/radio|checkbox/.test(this.type)){this.checked=(T.inArray(this.value,c)>=0||T.inArray(this.name,c)>=0)}else{if(T.nodeName(this,"select")){var j=T.makeArray(c);T("option",this).each(function(){this.selected=(T.inArray(this.value,j)>=0||T.inArray(this.text,j)>=0)});if(!j.length){this.selectedIndex=-1}}else{this.value=c}}})},html:function(a){return a===ab?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(a)},replaceWith:function(a){return this.after(a).remove()},eq:function(a){return this.slice(a,+a+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(a){return this.pushStack(T.map(this,function(b,c){return a.call(b,c,b)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(d,a,b){if(this[0]){var e=(this[0].ownerDocument||this[0]).createDocumentFragment(),h=T.clean(d,(this[0].ownerDocument||this[0]),e),f=e.firstChild;if(f){for(var g=0,i=this.length;g<i;g++){b.call(c(this[g],f),this.length>1||g>0?e.cloneNode(true):e)}}if(h){T.each(h,E)}}return this;function c(k,j){return a&&T.nodeName(k,"table")&&T.nodeName(j,"tr")?(k.getElementsByTagName("tbody")[0]||k.appendChild(k.ownerDocument.createElement("tbody"))):k}}};T.fn.init.prototype=T.fn;function E(b,a){if(a.src){T.ajax({url:a.src,async:false,dataType:"script"})}else{T.globalEval(a.text||a.textContent||a.innerHTML||"")}if(a.parentNode){a.parentNode.removeChild(a)}}function ad(){return +new Date}T.extend=T.fn.extend=function(){var c=arguments[0]||{},e=1,d=arguments.length,h=false,f;if(typeof c==="boolean"){h=c;c=arguments[1]||{};e=2}if(typeof c!=="object"&&!T.isFunction(c)){c={}}if(d==e){c=this;--e}for(;e<d;e++){if((f=arguments[e])!=null){for(var g in f){var b=c[g],a=f[g];if(c===a){continue}if(h&&a&&typeof a==="object"&&!a.nodeType){c[g]=T.extend(h,b||(a.length!=null?[]:{}),a)}else{if(a!==ab){c[g]=a}}}}}return c};var ag=/z-?index|font-?weight|opacity|zoom|line-?height/i,Q=document.defaultView||{},L=Object.prototype.toString;T.extend({noConflict:function(a){W.$=S;if(a){W.jQuery=F}return T},isFunction:function(a){return L.call(a)==="[object Function]"},isArray:function(a){return L.call(a)==="[object Array]"},isXMLDoc:function(a){return a.nodeType===9&&a.documentElement.nodeName!=="HTML"||!!a.ownerDocument&&T.isXMLDoc(a.ownerDocument)},globalEval:function(a){if(a&&/\S/.test(a)){var b=document.getElementsByTagName("head")[0]||document.documentElement,c=document.createElement("script");c.type="text/javascript";if(T.support.scriptEval){c.appendChild(document.createTextNode(a))}else{c.text=a}b.insertBefore(c,b.firstChild);b.removeChild(c)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()==b.toUpperCase()},each:function(e,a,f){var g,d=0,c=e.length;if(f){if(c===ab){for(g in e){if(a.apply(e[g],f)===false){break}}}else{for(;d<c;){if(a.apply(e[d++],f)===false){break}}}}else{if(c===ab){for(g in e){if(a.call(e[g],g,e[g])===false){break}}}else{for(var b=e[0];d<c&&a.call(b,d,b)!==false;b=e[++d]){}}}return e},prop:function(b,a,c,d,e){if(T.isFunction(a)){a=a.call(b,d)}return typeof a==="number"&&c=="curCSS"&&!ag.test(e)?a+"px":a},className:{add:function(b,a){T.each((a||"").split(/\s+/),function(d,c){if(b.nodeType==1&&!T.className.has(b.className,c)){b.className+=(b.className?" ":"")+c}})},remove:function(b,a){if(b.nodeType==1){b.className=a!==ab?T.grep(b.className.split(/\s+/),function(c){return !T.className.has(a,c)}).join(" "):""}},has:function(a,b){return a&&T.inArray(b,(a.className||a).toString().split(/\s+/))>-1}},swap:function(b,c,a){var e={};for(var d in c){e[d]=b.style[d];b.style[d]=c[d]}a.call(b);for(var d in c){b.style[d]=e[d]}},css:function(e,g,c,h){if(g=="width"||g=="height"){var a,f={position:"absolute",visibility:"hidden",display:"block"},b=g=="width"?["Left","Right"]:["Top","Bottom"];function d(){a=g=="width"?e.offsetWidth:e.offsetHeight;if(h==="border"){return}T.each(b,function(){if(!h){a-=parseFloat(T.curCSS(e,"padding"+this,true))||0}if(h==="margin"){a+=parseFloat(T.curCSS(e,"margin"+this,true))||0}else{a-=parseFloat(T.curCSS(e,"border"+this+"Width",true))||0}})}if(e.offsetWidth!==0){d()}else{T.swap(e,f,d)}return Math.max(0,Math.round(a))}return T.curCSS(e,g,c)},curCSS:function(e,h,g){var b,i=e.style;if(h=="opacity"&&!T.support.opacity){b=T.attr(i,"opacity");return b==""?"1":b}if(h.match(/float/i)){h=H}if(!g&&i&&i[h]){b=i[h]}else{if(Q.getComputedStyle){if(h.match(/float/i)){h="float"}h=h.replace(/([A-Z])/g,"-$1").toLowerCase();var a=Q.getComputedStyle(e,null);if(a){b=a.getPropertyValue(h)}if(h=="opacity"&&b==""){b="1"}}else{if(e.currentStyle){var d=h.replace(/\-(\w)/g,function(k,j){return j.toUpperCase()});b=e.currentStyle[h]||e.currentStyle[d];if(!/^\d+(px)?$/i.test(b)&&/^\d/.test(b)){var f=i.left,c=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left;i.left=b||0;b=i.pixelLeft+"px";i.left=f;e.runtimeStyle.left=c}}}}return b},clean:function(g,b,d){b=b||document;if(typeof b.createElement==="undefined"){b=b.ownerDocument||b[0]&&b[0].ownerDocument||document}if(!d&&g.length===1&&typeof g[0]==="string"){var e=/^<(\w+)\s*\/?>$/.exec(g[0]);if(e){return[b.createElement(e[1])]}}var f=[],h=[],a=b.createElement("div");T.each(g,function(l,i){if(typeof i==="number"){i+=""}if(!i){return}if(typeof i==="string"){i=i.replace(/(<(\w+)[^>]*?)\/>/g,function(q,p,r){return r.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?q:p+"></"+r+">"});var m=i.replace(/^\s+/,"").substring(0,10).toLowerCase();var k=!m.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!m.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||m.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!m.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!m.indexOf("<td")||!m.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!m.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!T.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];a.innerHTML=k[1]+i+k[2];while(k[0]--){a=a.lastChild}if(!T.support.tbody){var j=/<tbody/i.test(i),n=!m.indexOf("<table")&&!j?a.firstChild&&a.firstChild.childNodes:k[1]=="<table>"&&!j?a.childNodes:[];for(var o=n.length-1;o>=0;--o){if(T.nodeName(n[o],"tbody")&&!n[o].childNodes.length){n[o].parentNode.removeChild(n[o])}}}if(!T.support.leadingWhitespace&&/^\s/.test(i)){a.insertBefore(b.createTextNode(i.match(/^\s*/)[0]),a.firstChild)}i=T.makeArray(a.childNodes)}if(i.nodeType){f.push(i)}else{f=T.merge(f,i)}});if(d){for(var c=0;f[c];c++){if(T.nodeName(f[c],"script")&&(!f[c].type||f[c].type.toLowerCase()==="text/javascript")){h.push(f[c].parentNode?f[c].parentNode.removeChild(f[c]):f[c])}else{if(f[c].nodeType===1){f.splice.apply(f,[c+1,0].concat(T.makeArray(f[c].getElementsByTagName("script"))))}d.appendChild(f[c])}}return h}return f},attr:function(c,f,b){if(!c||c.nodeType==3||c.nodeType==8){return ab}var e=!T.isXMLDoc(c),a=b!==ab;f=e&&T.props[f]||f;if(c.tagName){var g=/href|src|style/.test(f);if(f=="selected"&&c.parentNode){c.parentNode.selectedIndex}if(f in c&&e&&!g){if(a){if(f=="type"&&T.nodeName(c,"input")&&c.parentNode){throw"type property can't be changed"}c[f]=b}if(T.nodeName(c,"form")&&c.getAttributeNode(f)){return c.getAttributeNode(f).nodeValue}if(f=="tabIndex"){var d=c.getAttributeNode("tabIndex");return d&&d.specified?d.value:c.nodeName.match(/(button|input|object|select|textarea)/i)?0:c.nodeName.match(/^(a|area)$/i)&&c.href?0:ab}return c[f]}if(!T.support.style&&e&&f=="style"){return T.attr(c.style,"cssText",b)}if(a){c.setAttribute(f,""+b)}var h=!T.support.hrefNormalized&&e&&g?c.getAttribute(f,2):c.getAttribute(f);return h===null?ab:h}if(!T.support.opacity&&f=="opacity"){if(a){c.zoom=1;c.filter=(c.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(b)+""=="NaN"?"":"alpha(opacity="+b*100+")")}return c.filter&&c.filter.indexOf("opacity=")>=0?(parseFloat(c.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}f=f.replace(/-([a-z])/ig,function(j,i){return i.toUpperCase()});if(a){c[f]=b}return c[f]},trim:function(a){return(a||"").replace(/^\s+|\s+$/g,"")},makeArray:function(a){var c=[];if(a!=null){var b=a.length;if(b==null||typeof a==="string"||T.isFunction(a)||a.setInterval){c[0]=a}else{while(b){c[--b]=a[b]}}}return c},inArray:function(b,a){for(var d=0,c=a.length;d<c;d++){if(a[d]===b){return d}}return -1},merge:function(b,e){var d=0,c,a=b.length;if(!T.support.getAll){while((c=e[d++])!=null){if(c.nodeType!=8){b[a++]=c}}}else{while((c=e[d++])!=null){b[a++]=c}}return b},unique:function(a){var f=[],g={};try{for(var e=0,d=a.length;e<d;e++){var b=T.data(a[e]);if(!g[b]){g[b]=true;f.push(a[e])}}}catch(c){f=a}return f},grep:function(e,a,f){var d=[];for(var c=0,b=e.length;c<b;c++){if(!f!=!a(e[c],c)){d.push(e[c])}}return d},map:function(f,a){var e=[];for(var d=0,c=f.length;d<c;d++){var b=a(f[d],d);if(b!=null){e[e.length]=b}}return e.concat.apply([],e)}});var O=navigator.userAgent.toLowerCase();T.browser={version:(O.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(O),opera:/opera/.test(O),msie:/msie/.test(O)&&!/opera/.test(O),mozilla:/mozilla/.test(O)&&!/(compatible|webkit)/.test(O)};T.each({parent:function(a){return a.parentNode},parents:function(a){return T.dir(a,"parentNode")},next:function(a){return T.nth(a,2,"nextSibling")},prev:function(a){return T.nth(a,2,"previousSibling")},nextAll:function(a){return T.dir(a,"nextSibling")},prevAll:function(a){return T.dir(a,"previousSibling")},siblings:function(a){return T.sibling(a.parentNode.firstChild,a)},children:function(a){return T.sibling(a.firstChild)},contents:function(a){return T.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:T.makeArray(a.childNodes)}},function(b,a){T.fn[b]=function(d){var c=T.map(this,a);if(d&&typeof d=="string"){c=T.multiFilter(d,c)}return this.pushStack(T.unique(c),b,d)}});T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,a){T.fn[b]=function(h){var e=[],c=T(h);for(var d=0,g=c.length;d<g;d++){var f=(d>0?this.clone(true):this).get();T.fn[a].apply(T(c[d]),f);e=e.concat(f)}return this.pushStack(e,b,h)}});T.each({removeAttr:function(a){T.attr(this,a,"");if(this.nodeType==1){this.removeAttribute(a)}},addClass:function(a){T.className.add(this,a)},removeClass:function(a){T.className.remove(this,a)},toggleClass:function(a,b){if(typeof b!=="boolean"){b=!T.className.has(this,a)}T.className[b?"add":"remove"](this,a)},remove:function(a){if(!a||T.filter(a,[this]).length){T("*",this).add([this]).each(function(){T.event.remove(this);T.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){T(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(b,a){T.fn[b]=function(){return this.each(a,arguments)}});function Y(b,a){return b[0]&&parseInt(T.curCSS(b[0],a,true),10)||0}var aa="jQuery"+ad(),I=0,R={};T.extend({cache:{},data:function(c,d,b){c=c==W?R:c;var a=c[aa];if(!a){a=c[aa]=++I}if(d&&!T.cache[a]){T.cache[a]={}}if(b!==ab){T.cache[a][d]=b}return d?T.cache[a][d]:a},removeData:function(c,d){c=c==W?R:c;var a=c[aa];if(d){if(T.cache[a]){delete T.cache[a][d];d="";for(d in T.cache[a]){break}if(!d){T.removeData(c)}}}else{try{delete c[aa]}catch(b){if(c.removeAttribute){c.removeAttribute(aa)}}delete T.cache[a]}},queue:function(c,d,a){if(c){d=(d||"fx")+"queue";var b=T.data(c,d);if(!b||T.isArray(a)){b=T.data(c,d,T.makeArray(a))}else{if(a){b.push(a)}}}return b},dequeue:function(a,b){var d=T.queue(a,b),c=d.shift();if(!b||b==="fx"){c=d[0]}if(c!==ab){c.call(a)}}});T.fn.extend({data:function(d,b){var a=d.split(".");a[1]=a[1]?"."+a[1]:"";if(b===ab){var c=this.triggerHandler("getData"+a[1]+"!",[a[0]]);if(c===ab&&this.length){c=T.data(this[0],d)}return c===ab&&a[1]?this.data(a[0]):c}else{return this.trigger("setData"+a[1]+"!",[a[0],b]).each(function(){T.data(this,d,b)})}},removeData:function(a){return this.each(function(){T.removeData(this,a)})},queue:function(b,a){if(typeof b!=="string"){a=b;b="fx"}if(a===ab){return T.queue(this[0],b)}return this.each(function(){var c=T.queue(this,b,a);if(b=="fx"&&c.length==1){c[0].call(this)}})},dequeue:function(a){return this.each(function(){T.dequeue(this,a)})}});(function(){var b=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,h=0,l=Object.prototype.toString;var n=function(r,v,ai,D){ai=ai||[];v=v||document;if(v.nodeType!==1&&v.nodeType!==9){return[]}if(!r||typeof r!=="string"){return ai}var q=[],t,A,x,w,C,u,s=true;b.lastIndex=0;while((t=b.exec(r))!==null){q.push(t[1]);if(t[2]){u=RegExp.rightContext;break}}if(q.length>1&&g.exec(r)){if(q.length===2&&k.relative[q[0]]){A=j(q[0]+q[1],v)}else{A=k.relative[q[0]]?[v]:n(q.shift(),v);while(q.length){r=q.shift();if(k.relative[r]){r+=q.shift()}A=j(r,A)}}}else{var B=D?{expr:q.pop(),set:o(D)}:n.find(q.pop(),q.length===1&&v.parentNode?v.parentNode:v,c(v));A=n.filter(B.expr,B.set);if(q.length>0){x=o(A)}else{s=false}while(q.length){var y=q.pop(),z=y;if(!k.relative[y]){y=""}else{z=q.pop()}if(z==null){z=v}k.relative[y](x,z,c(v))}}if(!x){x=A}if(!x){throw"Syntax error, unrecognized expression: "+(y||r)}if(l.call(x)==="[object Array]"){if(!s){ai.push.apply(ai,x)}else{if(v.nodeType===1){for(var p=0;x[p]!=null;p++){if(x[p]&&(x[p]===true||x[p].nodeType===1&&i(v,x[p]))){ai.push(A[p])}}}else{for(var p=0;x[p]!=null;p++){if(x[p]&&x[p].nodeType===1){ai.push(A[p])}}}}}else{o(x,ai)}if(u){n(u,v,ai,D);if(m){hasDuplicate=false;ai.sort(m);if(hasDuplicate){for(var p=1;p<ai.length;p++){if(ai[p]===ai[p-1]){ai.splice(p--,1)}}}}}return ai};n.matches=function(q,p){return n(q,null,null,p)};n.find=function(p,w,x){var q,s;if(!p){return[]}for(var t=0,u=k.order.length;t<u;t++){var r=k.order[t],s;if((s=k.match[r].exec(p))){var v=RegExp.leftContext;if(v.substr(v.length-1)!=="\\"){s[1]=(s[1]||"").replace(/\\/g,"");q=k.find[r](s,w,x);if(q!=null){p=p.replace(k.match[r],"");break}}}}if(!q){q=w.getElementsByTagName("*")}return{set:q,expr:p}};n.filter=function(C,D,z,t){var u=C,x=[],p=D,r,w,q=D&&D[0]&&c(D[0]);while(C&&D.length){for(var ai in k.filter){if((r=k.match[ai].exec(C))!=null){var v=k.filter[ai],y,A;w=false;if(p==x){x=[]}if(k.preFilter[ai]){r=k.preFilter[ai](r,p,z,x,t,q);if(!r){w=y=true}else{if(r===true){continue}}}if(r){for(var s=0;(A=p[s])!=null;s++){if(A){y=v(A,r,s,p);var B=t^!!y;if(z&&y!=null){if(B){w=true}else{p[s]=false}}else{if(B){x.push(A);w=true}}}}}if(y!==ab){if(!z){p=x}C=C.replace(k.match[ai],"");if(!w){return[]}break}}}if(C==u){if(w==null){throw"Syntax error, unrecognized expression: "+C}else{break}}u=C}return p};var k=n.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(p){return p.getAttribute("href")}},relative:{"+":function(p,w,q){var s=typeof w==="string",x=s&&!/\W/.test(w),r=s&&!x;if(x&&!q){w=w.toUpperCase()}for(var t=0,u=p.length,v;t<u;t++){if((v=p[t])){while((v=v.previousSibling)&&v.nodeType!==1){}p[t]=r||v&&v.nodeName===w?v||false:v===w}}if(r){n.filter(w,p,true)}},">":function(u,r,t){var w=typeof r==="string";if(w&&!/\W/.test(r)){r=t?r:r.toUpperCase();for(var q=0,s=u.length;q<s;q++){var v=u[q];if(v){var p=v.parentNode;u[q]=p.nodeName===r?p:false}}}else{for(var q=0,s=u.length;q<s;q++){var v=u[q];if(v){u[q]=w?v.parentNode:v.parentNode===r}}if(w){n.filter(r,u,true)}}},"":function(p,r,t){var q=h++,s=a;if(!r.match(/\W/)){var u=r=t?r:r.toUpperCase();s=d}s("parentNode",r,q,p,u,t)},"~":function(p,r,t){var q=h++,s=a;if(typeof r==="string"&&!r.match(/\W/)){var u=r=t?r:r.toUpperCase();s=d}s("previousSibling",r,q,p,u,t)}},find:{ID:function(r,q,p){if(typeof q.getElementById!=="undefined"&&!p){var s=q.getElementById(r[1]);return s?[s]:[]}},NAME:function(q,u,t){if(typeof u.getElementsByName!=="undefined"){var r=[],v=u.getElementsByName(q[1]);for(var p=0,s=v.length;p<s;p++){if(v[p].getAttribute("name")===q[1]){r.push(v[p])}}return r.length===0?null:r}},TAG:function(q,p){return p.getElementsByTagName(q[1])}},preFilter:{CLASS:function(p,r,q,s,u,t){p=" "+p[1].replace(/\\/g,"")+" ";if(t){return p}for(var w=0,v;(v=r[w])!=null;w++){if(v){if(u^(v.className&&(" "+v.className+" ").indexOf(p)>=0)){if(!q){s.push(v)}}else{if(q){r[w]=false}}}}return false},ID:function(p){return p[1].replace(/\\/g,"")},TAG:function(q,r){for(var p=0;r[p]===false;p++){}return r[p]&&c(r[p])?q[1]:q[1].toUpperCase()},CHILD:function(q){if(q[1]=="nth"){var p=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(q[2]=="even"&&"2n"||q[2]=="odd"&&"2n+1"||!/\D/.test(q[2])&&"0n+"+q[2]||q[2]);q[2]=(p[1]+(p[2]||1))-0;q[3]=p[3]-0}q[0]=h++;return q},ATTR:function(v,r,q,s,u,t){var p=v[1].replace(/\\/g,"");if(!t&&k.attrMap[p]){v[1]=k.attrMap[p]}if(v[2]==="~="){v[4]=" "+v[4]+" "}return v},PSEUDO:function(u,r,q,s,t){if(u[1]==="not"){if(u[3].match(b).length>1||/^\w/.test(u[3])){u[3]=n(u[3],null,null,r)}else{var p=n.filter(u[3],r,q,true^t);if(!q){s.push.apply(s,p)}return false}}else{if(k.match.POS.test(u[0])||k.match.CHILD.test(u[0])){return true}}return u},POS:function(p){p.unshift(true);return p}},filters:{enabled:function(p){return p.disabled===false&&p.type!=="hidden"},disabled:function(p){return p.disabled===true},checked:function(p){return p.checked===true},selected:function(p){p.parentNode.selectedIndex;return p.selected===true},parent:function(p){return !!p.firstChild},empty:function(p){return !p.firstChild},has:function(p,q,r){return !!n(r[3],p).length},header:function(p){return/h\d/i.test(p.nodeName)},text:function(p){return"text"===p.type},radio:function(p){return"radio"===p.type},checkbox:function(p){return"checkbox"===p.type},file:function(p){return"file"===p.type},password:function(p){return"password"===p.type},submit:function(p){return"submit"===p.type},image:function(p){return"image"===p.type},reset:function(p){return"reset"===p.type},button:function(p){return"button"===p.type||p.nodeName.toUpperCase()==="BUTTON"},input:function(p){return/input|select|textarea|button/i.test(p.nodeName)}},setFilters:{first:function(p,q){return q===0},last:function(q,r,s,p){return r===p.length-1},even:function(p,q){return q%2===0},odd:function(p,q){return q%2===1},lt:function(p,q,r){return q<r[3]-0},gt:function(p,q,r){return q>r[3]-0},nth:function(p,q,r){return r[3]-0==q},eq:function(p,q,r){return r[3]-0==q}},filter:{PSEUDO:function(u,q,p,t){var r=q[1],w=k.filters[r];if(w){return w(u,p,q,t)}else{if(r==="contains"){return(u.textContent||u.innerText||"").indexOf(q[3])>=0}else{if(r==="not"){var v=q[3];for(var p=0,s=v.length;p<s;p++){if(v[p]===u){return false}}return true}}}},CHILD:function(w,t){var q=t[1],v=w;switch(q){case"only":case"first":while(v=v.previousSibling){if(v.nodeType===1){return false}}if(q=="first"){return true}v=w;case"last":while(v=v.nextSibling){if(v.nodeType===1){return false}}return true;case"nth":var u=t[2],x=t[3];if(u==1&&x==0){return true}var r=t[0],y=w.parentNode;if(y&&(y.sizcache!==r||!w.nodeIndex)){var s=0;for(v=y.firstChild;v;v=v.nextSibling){if(v.nodeType===1){v.nodeIndex=++s}}y.sizcache=r}var p=w.nodeIndex-x;if(u==0){return p==0}else{return(p%u==0&&p/u>=0)}}},ID:function(p,q){return p.nodeType===1&&p.getAttribute("id")===q},TAG:function(p,q){return(q==="*"&&p.nodeType===1)||p.nodeName===q},CLASS:function(p,q){return(" "+(p.className||p.getAttribute("class"))+" ").indexOf(q)>-1},ATTR:function(u,p){var q=p[1],s=k.attrHandle[q]?k.attrHandle[q](u):u[q]!=null?u[q]:u.getAttribute(q),t=s+"",v=p[2],r=p[4];return s==null?v==="!=":v==="="?t===r:v==="*="?t.indexOf(r)>=0:v==="~="?(" "+t+" ").indexOf(r)>=0:!r?t&&s!==false:v==="!="?t!=r:v==="^="?t.indexOf(r)===0:v==="$="?t.substr(t.length-r.length)===r:v==="|="?t===r||t.substr(0,r.length+1)===r+"-":false},POS:function(u,r,q,t){var s=r[2],p=k.setFilters[s];if(p){return p(u,q,r,t)}}}};var g=k.match.POS;for(var e in k.match){k.match[e]=RegExp(k.match[e].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var o=function(p,q){p=Array.prototype.slice.call(p);if(q){q.push.apply(q,p);return q}return p};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(f){o=function(t,p){var r=p||[];if(l.call(t)==="[object Array]"){Array.prototype.push.apply(r,t)}else{if(typeof t.length==="number"){for(var q=0,s=t.length;q<s;q++){r.push(t[q])}}else{for(var q=0;t[q];q++){r.push(t[q])}}}return r}}var m;if(document.documentElement.compareDocumentPosition){m=function(q,r){var p=q.compareDocumentPosition(r)&4?-1:q===r?0:1;if(p===0){hasDuplicate=true}return p}}else{if("sourceIndex" in document.documentElement){m=function(q,r){var p=q.sourceIndex-r.sourceIndex;if(p===0){hasDuplicate=true}return p}}else{if(document.createRange){m=function(p,r){var q=p.ownerDocument.createRange(),s=r.ownerDocument.createRange();q.selectNode(p);q.collapse(true);s.selectNode(r);s.collapse(true);var t=q.compareBoundaryPoints(Range.START_TO_END,s);if(t===0){hasDuplicate=true}return t}}}}(function(){var q=document.createElement("form"),p="script"+(new Date).getTime();q.innerHTML="<input name='"+p+"'/>";var r=document.documentElement;r.insertBefore(q,r.firstChild);if(!!document.getElementById(p)){k.find.ID=function(v,u,t){if(typeof u.getElementById!=="undefined"&&!t){var s=u.getElementById(v[1]);return s?s.id===v[1]||typeof s.getAttributeNode!=="undefined"&&s.getAttributeNode("id").nodeValue===v[1]?[s]:ab:[]}};k.filter.ID=function(t,s){var u=typeof t.getAttributeNode!=="undefined"&&t.getAttributeNode("id");return t.nodeType===1&&u&&u.nodeValue===s}}r.removeChild(q)})();(function(){var p=document.createElement("div");p.appendChild(document.createComment(""));if(p.getElementsByTagName("*").length>0){k.find.TAG=function(s,t){var u=t.getElementsByTagName(s[1]);if(s[1]==="*"){var q=[];for(var r=0;u[r];r++){if(u[r].nodeType===1){q.push(u[r])}}u=q}return u}}p.innerHTML="<a href='#'></a>";if(p.firstChild&&typeof p.firstChild.getAttribute!=="undefined"&&p.firstChild.getAttribute("href")!=="#"){k.attrHandle.href=function(q){return q.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var q=n,p=document.createElement("div");p.innerHTML="<p class='TEST'></p>";if(p.querySelectorAll&&p.querySelectorAll(".TEST").length===0){return}n=function(u,v,s,r){v=v||document;if(!r&&v.nodeType===9&&!c(v)){try{return o(v.querySelectorAll(u),s)}catch(t){}}return q(u,v,s,r)};n.find=q.find;n.filter=q.filter;n.selectors=q.selectors;n.matches=q.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var p=document.createElement("div");p.innerHTML="<div class='test e'></div><div class='test'></div>";if(p.getElementsByClassName("e").length===0){return}p.lastChild.className="e";if(p.getElementsByClassName("e").length===1){return}k.order.splice(1,0,"CLASS");k.find.CLASS=function(s,r,q){if(typeof r.getElementsByClassName!=="undefined"&&!q){return r.getElementsByClassName(s[1])}}})()}function d(v,q,r,x,p,y){var z=v=="previousSibling"&&!y;for(var t=0,u=x.length;t<u;t++){var w=x[t];if(w){if(z&&w.nodeType===1){w.sizcache=r;w.sizset=t}w=w[v];var s=false;while(w){if(w.sizcache===r){s=x[w.sizset];break}if(w.nodeType===1&&!y){w.sizcache=r;w.sizset=t}if(w.nodeName===q){s=w;break}w=w[v]}x[t]=s}}}function a(v,q,r,x,p,y){var z=v=="previousSibling"&&!y;for(var t=0,u=x.length;t<u;t++){var w=x[t];if(w){if(z&&w.nodeType===1){w.sizcache=r;w.sizset=t}w=w[v];var s=false;while(w){if(w.sizcache===r){s=x[w.sizset];break}if(w.nodeType===1){if(!y){w.sizcache=r;w.sizset=t}if(typeof q!=="string"){if(w===q){s=true;break}}else{if(n.filter(q,[w]).length>0){s=w;break}}}w=w[v]}x[t]=s}}}var i=document.compareDocumentPosition?function(p,q){return p.compareDocumentPosition(q)&16}:function(p,q){return p!==q&&(p.contains?p.contains(q):true)};var c=function(p){return p.nodeType===9&&p.documentElement.nodeName!=="HTML"||!!p.ownerDocument&&c(p.ownerDocument)};var j=function(s,u){var p=[],w="",v,q=u.nodeType?[u]:u;while((v=k.match.PSEUDO.exec(s))){w+=v[0];s=s.replace(k.match.PSEUDO,"")}s=k.relative[s]?s+"*":s;for(var t=0,r=q.length;t<r;t++){n(s,q[t],p)}return n.filter(w,p)};T.find=n;T.filter=n.filter;T.expr=n.selectors;T.expr[":"]=T.expr.filters;n.selectors.filters.hidden=function(p){return p.offsetWidth===0||p.offsetHeight===0};n.selectors.filters.visible=function(p){return p.offsetWidth>0||p.offsetHeight>0};n.selectors.filters.animated=function(p){return T.grep(T.timers,function(q){return p===q.elem}).length};T.multiFilter=function(p,r,q){if(q){p=":not("+p+")"}return n.matches(p,r)};T.dir=function(q,r){var s=[],p=q[r];while(p&&p!=document){if(p.nodeType==1){s.push(p)}p=p[r]}return s};T.nth=function(t,s,q,p){s=s||1;var r=0;for(;t;t=t[q]){if(t.nodeType==1&&++r==s){break}}return t};T.sibling=function(p,q){var r=[];for(;p;p=p.nextSibling){if(p.nodeType==1&&p!=q){r.push(p)}}return r};return;W.Sizzle=n})();T.event={add:function(c,f,d,a){if(c.nodeType==3||c.nodeType==8){return}if(c.setInterval&&c!=W){c=W}if(!d.guid){d.guid=this.guid++}if(a!==ab){var e=d;d=this.proxy(e);d.data=a}var g=T.data(c,"events")||T.data(c,"events",{}),b=T.data(c,"handle")||T.data(c,"handle",function(){return typeof T!=="undefined"&&!T.event.triggered?T.event.handle.apply(arguments.callee.elem,arguments):ab});b.elem=c;T.each(f.split(/\s+/),function(k,j){var i=j.split(".");j=i.shift();d.type=i.slice().sort().join(".");var h=g[j];if(T.event.specialAll[j]){T.event.specialAll[j].setup.call(c,a,i)}if(!h){h=g[j]={};if(!T.event.special[j]||T.event.special[j].setup.call(c,a,i)===false){if(c.addEventListener){c.addEventListener(j,b,false)}else{if(c.attachEvent){c.attachEvent("on"+j,b)}}}}h[d.guid]=d;T.event.global[j]=true});c=null},guid:1,global:{},remove:function(b,e,c){if(b.nodeType==3||b.nodeType==8){return}var f=T.data(b,"events"),g,h;if(f){if(e===ab||(typeof e==="string"&&e.charAt(0)==".")){for(var d in f){this.remove(b,d+(e||""))}}else{if(e.type){c=e.handler;e=e.type}T.each(e.split(/\s+/),function(m,k){var i=k.split(".");k=i.shift();var l=RegExp("(^|\\.)"+i.slice().sort().join(".*\\.")+"(\\.|$)");if(f[k]){if(c){delete f[k][c.guid]}else{for(var j in f[k]){if(l.test(f[k][j].type)){delete f[k][j]}}}if(T.event.specialAll[k]){T.event.specialAll[k].teardown.call(b,i)}for(g in f[k]){break}if(!g){if(!T.event.special[k]||T.event.special[k].teardown.call(b,i)===false){if(b.removeEventListener){b.removeEventListener(k,T.data(b,"handle"),false)}else{if(b.detachEvent){b.detachEvent("on"+k,T.data(b,"handle"))}}}g=null;delete f[k]}}})}for(g in f){break}if(!g){var a=T.data(b,"handle");if(a){a.elem=null}T.removeData(b,"events");T.removeData(b,"handle")}}},trigger:function(d,b,e,h){var f=d.type||d;if(!h){d=typeof d==="object"?d[aa]?d:T.extend(T.Event(f),d):T.Event(f);if(f.indexOf("!")>=0){d.type=f=f.slice(0,-1);d.exclusive=true}if(!e){d.stopPropagation();if(this.global[f]){T.each(T.cache,function(){if(this.events&&this.events[f]){T.event.trigger(d,b,this.handle.elem)}})}}if(!e||e.nodeType==3||e.nodeType==8){return ab}d.result=ab;d.target=e;b=T.makeArray(b);b.unshift(d)}d.currentTarget=e;var c=T.data(e,"handle");if(c){c.apply(e,b)}if((!e[f]||(T.nodeName(e,"a")&&f=="click"))&&e["on"+f]&&e["on"+f].apply(e,b)===false){d.result=false}if(!h&&e[f]&&!d.isDefaultPrevented()&&!(T.nodeName(e,"a")&&f=="click")){this.triggered=true;try{e[f]()}catch(a){}}this.triggered=false;if(!d.isPropagationStopped()){var g=e.parentNode||e.ownerDocument;if(g){T.event.trigger(d,b,g,true)}}},handle:function(b){var c,h;b=arguments[0]=T.event.fix(b||W.event);b.currentTarget=this;var a=b.type.split(".");b.type=a.shift();c=!a.length&&!b.exclusive;var d=RegExp("(^|\\.)"+a.slice().sort().join(".*\\.")+"(\\.|$)");h=(T.data(this,"events")||{})[b.type];for(var f in h){var e=h[f];if(c||d.test(e.type)){b.handler=e;b.data=e.data;var g=e.apply(this,arguments);if(g!==ab){b.result=g;if(g===false){b.preventDefault();b.stopPropagation()}}if(b.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(c){if(c[aa]){return c}var e=c;c=T.Event(e);for(var d=this.props.length,a;d;){a=this.props[--d];c[a]=e[a]}if(!c.target){c.target=c.srcElement||document}if(c.target.nodeType==3){c.target=c.target.parentNode}if(!c.relatedTarget&&c.fromElement){c.relatedTarget=c.fromElement==c.target?c.toElement:c.fromElement}if(c.pageX==null&&c.clientX!=null){var b=document.documentElement,f=document.body;c.pageX=c.clientX+(b&&b.scrollLeft||f&&f.scrollLeft||0)-(b.clientLeft||0);c.pageY=c.clientY+(b&&b.scrollTop||f&&f.scrollTop||0)-(b.clientTop||0)}if(!c.which&&((c.charCode||c.charCode===0)?c.charCode:c.keyCode)){c.which=c.charCode||c.keyCode}if(!c.metaKey&&c.ctrlKey){c.metaKey=c.ctrlKey}if(!c.which&&c.button){c.which=(c.button&1?1:(c.button&2?3:(c.button&4?2:0)))}return c},proxy:function(a,b){b=b||function(){return a.apply(this,arguments)};b.guid=a.guid=a.guid||b.guid||this.guid++;return b},special:{ready:{setup:P,teardown:function(){}}},specialAll:{live:{setup:function(b,a){T.event.add(this,a[0],af)},teardown:function(a){if(a.length){var c=0,b=RegExp("(^|\\.)"+a[0]+"(\\.|$)");T.each((T.data(this,"events").live||{}),function(){if(b.test(this.type)){c++}});if(c<1){T.event.remove(this,a[0],af)}}}}}};T.Event=function(a){if(!this.preventDefault){return new T.Event(a)}if(a&&a.type){this.originalEvent=a;this.type=a.type}else{this.type=a}this.timeStamp=ad();this[aa]=true};function X(){return false}function J(){return true}T.Event.prototype={preventDefault:function(){this.isDefaultPrevented=J;var a=this.originalEvent;if(!a){return}if(a.preventDefault){a.preventDefault()}a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=J;var a=this.originalEvent;if(!a){return}if(a.stopPropagation){a.stopPropagation()}a.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=J;this.stopPropagation()},isDefaultPrevented:X,isPropagationStopped:X,isImmediatePropagationStopped:X};var ah=function(b){var c=b.relatedTarget;while(c&&c!=this){try{c=c.parentNode}catch(a){c=this}}if(c!=this){b.type=b.data;T.event.handle.apply(this,arguments)}};T.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(a,b){T.event.special[b]={setup:function(){T.event.add(this,a,ah,b)},teardown:function(){T.event.remove(this,a,ah)}}});T.fn.extend({bind:function(b,a,c){return b=="unload"?this.one(b,a,c):this.each(function(){T.event.add(this,b,c||a,c&&a)})},one:function(b,a,c){var d=T.event.proxy(c||a,function(e){T(this).unbind(e,d);return(c||a).apply(this,arguments)});return this.each(function(){T.event.add(this,b,d,c&&a)})},unbind:function(a,b){return this.each(function(){T.event.remove(this,a,b)})},trigger:function(b,a){return this.each(function(){T.event.trigger(b,a,this)})},triggerHandler:function(c,a){if(this[0]){var b=T.Event(c);b.preventDefault();b.stopPropagation();T.event.trigger(b,a,this[0]);return b.result}},toggle:function(a){var c=arguments,b=1;while(b<c.length){T.event.proxy(a,c[b++])}return this.click(T.event.proxy(a,function(d){this.lastToggle=(this.lastToggle||0)%b;d.preventDefault();return c[this.lastToggle++].apply(this,arguments)||false}))},hover:function(b,a){return this.mouseenter(b).mouseleave(a)},ready:function(a){P();if(T.isReady){a.call(document,T)}else{T.readyList.push(a)}return this},live:function(a,b){var c=T.event.proxy(b);c.guid+=this.selector+a;T(document).bind(Z(a,this.selector),this.selector,c);return this},die:function(a,b){T(document).unbind(Z(a,this.selector),b?{guid:b.guid+this.selector+a}:null);return this}});function af(a){var d=RegExp("(^|\\.)"+a.type+"(\\.|$)"),b=true,c=[];T.each(T.data(this,"events").live||[],function(g,f){if(d.test(f.type)){var e=T(a.target).closest(f.data)[0];if(e){c.push({elem:e,fn:f})}}});c.sort(function(e,f){return T.data(e.elem,"closest")-T.data(f.elem,"closest")});T.each(c,function(){if(this.fn.call(this.elem,a,this.fn.data)===false){return(b=false)}});return b}function Z(a,b){return["live",a,b.replace(/\./g,"`").replace(/ /g,"|")].join(".")}T.extend({isReady:false,readyList:[],ready:function(){if(!T.isReady){T.isReady=true;if(T.readyList){T.each(T.readyList,function(){this.call(document,T)});T.readyList=null}T(document).triggerHandler("ready")}}});var G=false;function P(){if(G){return}G=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);T.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);T.ready()}});if(document.documentElement.doScroll&&W==W.top){(function(){if(T.isReady){return}try{document.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}T.ready()})()}}}T.event.add(W,"load",T.ready)}T.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(a,b){T.fn[b]=function(c){return c?this.bind(b,c):this.trigger(b)}});T(W).bind("unload",function(){for(var a in T.cache){if(a!=1&&T.cache[a].handle){T.event.remove(T.cache[a].handle.elem)}}});(function(){T.support={};var f=document.documentElement,e=document.createElement("script"),a=document.createElement("div"),b="script"+(new Date).getTime();a.style.display="none";a.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var d=a.getElementsByTagName("*"),g=a.getElementsByTagName("a")[0];if(!d||!d.length||!g){return}T.support={leadingWhitespace:a.firstChild.nodeType==3,tbody:!a.getElementsByTagName("tbody").length,objectAll:!!a.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/red/.test(g.getAttribute("style")),hrefNormalized:g.getAttribute("href")==="/a",opacity:g.style.opacity==="0.5",cssFloat:!!g.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};e.type="text/javascript";try{e.appendChild(document.createTextNode("window."+b+"=1;"))}catch(c){}f.insertBefore(e,f.firstChild);if(W[b]){T.support.scriptEval=true;delete W[b]}f.removeChild(e);if(a.attachEvent&&a.fireEvent){a.attachEvent("onclick",function(){T.support.noCloneEvent=false;a.detachEvent("onclick",arguments.callee)});a.cloneNode(true).fireEvent("onclick")}T(function(){var h=document.createElement("div");h.style.width=h.style.paddingLeft="1px";document.body.appendChild(h);T.boxModel=T.support.boxModel=h.offsetWidth===2;document.body.removeChild(h).style.display="none"})})();var H=T.support.cssFloat?"cssFloat":"styleFloat";T.props={"for":"htmlFor","class":"className","float":H,cssFloat:H,styleFloat:H,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};T.fn.extend({_load:T.fn.load,load:function(e,b,a){if(typeof e!=="string"){return this._load(e)}var c=e.indexOf(" ");if(c>=0){var g=e.slice(c,e.length);e=e.slice(0,c)}var d="GET";if(b){if(T.isFunction(b)){a=b;b=null}else{if(typeof b==="object"){b=T.param(b);d="POST"}}}var f=this;T.ajax({url:e,type:d,dataType:"html",data:b,complete:function(i,h){if(h=="success"||h=="notmodified"){f.html(g?T("<div/>").append(i.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(g):i.responseText)}if(a){f.each(a,[i.responseText,h,i])}}});return this},serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?T.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(c,b){var a=T(this).val();return a==null?null:T.isArray(a)?T.map(a,function(d,e){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});T.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(b,a){T.fn[a]=function(c){return this.bind(a,c)}});var N=ad();T.extend({get:function(d,b,a,c){if(T.isFunction(b)){a=b;b=null}return T.ajax({type:"GET",url:d,data:b,success:a,dataType:c})},getScript:function(b,a){return T.get(b,null,a,"script")},getJSON:function(c,b,a){return T.get(c,b,a,"json")},post:function(d,b,a,c){if(T.isFunction(b)){a=b;b={}}return T.ajax({type:"POST",url:d,data:b,success:a,dataType:c})},ajaxSetup:function(a){T.extend(T.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return W.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(k){k=T.extend(true,k,T.extend(true,{},T.ajaxSettings,k));var a,r=/=\?(&|$)/g,f,b,q=k.type.toUpperCase();if(k.data&&k.processData&&typeof k.data!=="string"){k.data=T.param(k.data)}if(k.dataType=="jsonp"){if(q=="GET"){if(!k.url.match(r)){k.url+=(k.url.match(/\?/)?"&":"?")+(k.jsonp||"callback")+"=?"}}else{if(!k.data||!k.data.match(r)){k.data=(k.data?k.data+"&":"")+(k.jsonp||"callback")+"=?"}}k.dataType="json"}if(k.dataType=="json"&&(k.data&&k.data.match(r)||k.url.match(r))){a="jsonp"+N++;if(k.data){k.data=(k.data+"").replace(r,"="+a+"$1")}k.url=k.url.replace(r,"="+a+"$1");k.dataType="script";W[a]=function(u){b=u;o();l();W[a]=ab;try{delete W[a]}catch(t){}if(p){p.removeChild(d)}}}if(k.dataType=="script"&&k.cache==null){k.cache=false}if(k.cache===false&&q=="GET"){var s=ad();var c=k.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+s+"$2");k.url=c+((c==k.url)?(k.url.match(/\?/)?"&":"?")+"_="+s:"")}if(k.data&&q=="GET"){k.url+=(k.url.match(/\?/)?"&":"?")+k.data;k.data=null}if(k.global&&!T.active++){T.event.trigger("ajaxStart")}var g=/^(\w+:)?\/\/([^\/?#]+)/.exec(k.url);if(k.dataType=="script"&&q=="GET"&&g&&(g[1]&&g[1]!=location.protocol||g[2]!=location.host)){var p=document.getElementsByTagName("head")[0];var d=document.createElement("script");d.src=k.url;if(k.scriptCharset){d.charset=k.scriptCharset}if(!a){var i=false;d.onload=d.onreadystatechange=function(){if(!i&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){i=true;o();l();d.onload=d.onreadystatechange=null;p.removeChild(d)}}}p.appendChild(d);return ab}var m=false;var n=k.xhr();if(k.username){n.open(q,k.url,k.async,k.username,k.password)}else{n.open(q,k.url,k.async)}try{if(k.data){n.setRequestHeader("Content-Type",k.contentType)}if(k.ifModified){n.setRequestHeader("If-Modified-Since",T.lastModified[k.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}n.setRequestHeader("X-Requested-With","XMLHttpRequest");n.setRequestHeader("Accept",k.dataType&&k.accepts[k.dataType]?k.accepts[k.dataType]+", */*":k.accepts._default)}catch(e){}if(k.beforeSend&&k.beforeSend(n,k)===false){if(k.global&&!--T.active){T.event.trigger("ajaxStop")}n.abort();return false}if(k.global){T.event.trigger("ajaxSend",[n,k])}var j=function(v){if(n.readyState==0){if(h){clearInterval(h);h=null;if(k.global&&!--T.active){T.event.trigger("ajaxStop")}}}else{if(!m&&n&&(n.readyState==4||v=="timeout")){m=true;if(h){clearInterval(h);h=null}f=v=="timeout"?"timeout":!T.httpSuccess(n)?"error":k.ifModified&&T.httpNotModified(n,k.url)?"notmodified":"success";if(f=="success"){try{b=T.httpData(n,k.dataType,k)}catch(t){f="parsererror"}}if(f=="success"){var u;try{u=n.getResponseHeader("Last-Modified")}catch(t){}if(k.ifModified&&u){T.lastModified[k.url]=u}if(!a){o()}}else{T.handleError(k,n,f)}l();if(v){n.abort()}if(k.async){n=null}}}};if(k.async){var h=setInterval(j,13);if(k.timeout>0){setTimeout(function(){if(n&&!m){j("timeout")}},k.timeout)}}try{n.send(k.data)}catch(e){T.handleError(k,n,null,e)}if(!k.async){j()}function o(){if(k.success){k.success(b,f)}if(k.global){T.event.trigger("ajaxSuccess",[n,k])}}function l(){if(k.complete){k.complete(n,f)}if(k.global){T.event.trigger("ajaxComplete",[n,k])}if(k.global&&!--T.active){T.event.trigger("ajaxStop")}}return n},handleError:function(c,a,d,b){if(c.error){c.error(a,d,b)}if(c.global){T.event.trigger("ajaxError",[a,c,b])}},active:0,httpSuccess:function(a){try{return !a.status&&location.protocol=="file:"||(a.status>=200&&a.status<300)||a.status==304||a.status==1223}catch(b){}return false},httpNotModified:function(b,d){try{var a=b.getResponseHeader("Last-Modified");return b.status==304||a==T.lastModified[d]}catch(c){}return false},httpData:function(a,c,d){var e=a.getResponseHeader("content-type"),f=c=="xml"||!c&&e&&e.indexOf("xml")>=0,b=f?a.responseXML:a.responseText;if(f&&b.documentElement.tagName=="parsererror"){throw"parsererror"}if(d&&d.dataFilter){b=d.dataFilter(b,c)}if(typeof b==="string"){if(c=="script"){T.globalEval(b)}if(c=="json"){b=W["eval"]("("+b+")")}}return b},param:function(d){var b=[];function a(f,e){b[b.length]=encodeURIComponent(f)+"="+encodeURIComponent(e)}if(T.isArray(d)||d.jquery){T.each(d,function(){a(this.name,this.value)})}else{for(var c in d){if(T.isArray(d[c])){T.each(d[c],function(){a(c,this)})}else{a(c,T.isFunction(d[c])?d[c]():d[c])}}}return b.join("&").replace(/%20/g,"+")}});var V={},U,ae=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function K(b,c){var a={};T.each(ae.concat.apply([],ae.slice(0,c)),function(){a[this]=b});return a}T.fn.extend({show:function(c,a){if(c){return this.animate(K("show",3),c,a)}else{for(var e=0,g=this.length;e<g;e++){var h=T.data(this[e],"olddisplay");this[e].style.display=h||"";if(T.css(this[e],"display")==="none"){var f=this[e].tagName,b;if(V[f]){b=V[f]}else{var d=T("<"+f+" />").appendTo("body");b=d.css("display");if(b==="none"){b="block"}d.remove();V[f]=b}T.data(this[e],"olddisplay",b)}}for(var e=0,g=this.length;e<g;e++){this[e].style.display=T.data(this[e],"olddisplay")||""}return this}},hide:function(b,a){if(b){return this.animate(K("hide",3),b,a)}else{for(var c=0,d=this.length;c<d;c++){var e=T.data(this[c],"olddisplay");if(!e&&e!=="none"){T.data(this[c],"olddisplay",T.css(this[c],"display"))}}for(var c=0,d=this.length;c<d;c++){this[c].style.display="none"}return this}},_toggle:T.fn.toggle,toggle:function(a,b){var c=typeof a==="boolean";return T.isFunction(a)&&T.isFunction(b)?this._toggle.apply(this,arguments):a==null||c?this.each(function(){var d=c?a:T(this).is(":hidden");T(this)[d?"show":"hide"]()}):this.animate(K("toggle",3),a,b)},fadeTo:function(c,a,b){return this.animate({opacity:a},c,b)},animate:function(a,d,b,c){var e=T.speed(d,b,c);return this[e.queue===false?"each":"queue"](function(){var g=T.extend({},e),i,f=this.nodeType==1&&T(this).is(":hidden"),h=this;for(i in a){if(a[i]=="hide"&&f||a[i]=="show"&&!f){return g.complete.call(this)}if((i=="height"||i=="width")&&this.style){g.display=T.css(this,"display");g.overflow=this.style.overflow}}if(g.overflow!=null){this.style.overflow="hidden"}g.curAnim=T.extend({},a);T.each(a,function(o,k){var l=new T.fx(h,g,o);if(/toggle|show|hide/.test(k)){l[k=="toggle"?f?"show":"hide":k](a)}else{var m=k.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),j=l.cur(true)||0;if(m){var p=parseFloat(m[2]),n=m[3]||"px";if(n!="px"){h.style[o]=(p||1)+n;j=((p||1)/l.cur(true))*j;h.style[o]=j+n}if(m[1]){p=((m[1]=="-="?-1:1)*p)+j}l.custom(j,p,n)}else{l.custom(j,k,"")}}});return true})},stop:function(b,c){var a=T.timers;if(b){this.queue([])}this.each(function(){for(var d=a.length-1;d>=0;d--){if(a[d].elem==this){if(c){a[d](true)}a.splice(d,1)}}});if(!c){this.dequeue()}return this}});T.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(b,a){T.fn[b]=function(d,c){return this.animate(a,d,c)}});T.extend({speed:function(b,a,c){var d=typeof b==="object"?b:{complete:c||!c&&a||T.isFunction(b)&&b,duration:b,easing:c&&a||a&&!T.isFunction(a)&&a};d.duration=T.fx.off?0:typeof d.duration==="number"?d.duration:T.fx.speeds[d.duration]||T.fx.speeds._default;d.old=d.complete;d.complete=function(){if(d.queue!==false){T(this).dequeue()}if(T.isFunction(d.old)){d.old.call(this)}};return d},easing:{linear:function(b,a,d,c){return d+c*b},swing:function(b,a,d,c){return((-Math.cos(b*Math.PI)/2)+0.5)*c+d}},timers:[],fx:function(b,c,a){this.options=c;this.elem=b;this.prop=a;if(!c.orig){c.orig={}}}});T.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(T.fx.step[this.prop]||T.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var b=parseFloat(T.css(this.elem,this.prop,a));return b&&b>-10000?b:parseFloat(T.curCSS(this.elem,this.prop))||0},custom:function(a,b,c){this.startTime=ad();this.start=a;this.end=b;this.unit=c||this.unit||"px";this.now=this.start;this.pos=this.state=0;var e=this;function d(f){return e.step(f)}d.elem=this.elem;if(d()&&T.timers.push(d)&&!U){U=setInterval(function(){var f=T.timers;for(var g=0;g<f.length;g++){if(!f[g]()){f.splice(g--,1)}}if(!f.length){clearInterval(U);U=ab}},13)}},show:function(){this.options.orig[this.prop]=T.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());T(this.elem).show()},hide:function(){this.options.orig[this.prop]=T.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(c){var d=ad();if(c||d>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var f=true;for(var e in this.options.curAnim){if(this.options.curAnim[e]!==true){f=false}}if(f){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(T.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){T(this.elem).hide()}if(this.options.hide||this.options.show){for(var b in this.options.curAnim){T.attr(this.elem.style,b,this.options.orig[b])}}this.options.complete.call(this.elem)}return false}else{var a=d-this.startTime;this.state=a/this.options.duration;this.pos=T.easing[this.options.easing||(T.easing.swing?"swing":"linear")](this.state,a,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};T.extend(T.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){T.attr(a.elem.style,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null){a.elem.style[a.prop]=a.now+a.unit}else{a.elem[a.prop]=a.now}}}});if(document.documentElement.getBoundingClientRect){T.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return T.offset.bodyOffset(this[0])}var f=this[0].getBoundingClientRect(),c=this[0].ownerDocument,g=c.body,h=c.documentElement,a=h.clientTop||g.clientTop||0,b=h.clientLeft||g.clientLeft||0,d=f.top+(self.pageYOffset||T.boxModel&&h.scrollTop||g.scrollTop)-a,e=f.left+(self.pageXOffset||T.boxModel&&h.scrollLeft||g.scrollLeft)-b;return{top:d,left:e}}}else{T.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return T.offset.bodyOffset(this[0])}T.offset.initialized||T.offset.initialize();var f=this[0],i=f.offsetParent,j=f,a=f.ownerDocument,c,h=a.documentElement,e=a.body,d=a.defaultView,k=d.getComputedStyle(f,null),b=f.offsetTop,g=f.offsetLeft;while((f=f.parentNode)&&f!==e&&f!==h){c=d.getComputedStyle(f,null);b-=f.scrollTop,g-=f.scrollLeft;if(f===i){b+=f.offsetTop,g+=f.offsetLeft;if(T.offset.doesNotAddBorder&&!(T.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(f.tagName))){b+=parseInt(c.borderTopWidth,10)||0,g+=parseInt(c.borderLeftWidth,10)||0}j=i,i=f.offsetParent}if(T.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"){b+=parseInt(c.borderTopWidth,10)||0,g+=parseInt(c.borderLeftWidth,10)||0}k=c}if(k.position==="relative"||k.position==="static"){b+=e.offsetTop,g+=e.offsetLeft}if(k.position==="fixed"){b+=Math.max(h.scrollTop,e.scrollTop),g+=Math.max(h.scrollLeft,e.scrollLeft)}return{top:b,left:g}}}T.offset={initialize:function(){if(this.initialized){return}var c=document.body,i=document.createElement("div"),g,h,a,f,b,j,e=c.style.marginTop,d='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';b={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(j in b){i.style[j]=b[j]}i.innerHTML=d;c.insertBefore(i,c.firstChild);g=i.firstChild,h=g.firstChild,f=g.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(h.offsetTop!==5);this.doesAddBorderForTableAndCells=(f.offsetTop===5);g.style.overflow="hidden",g.style.position="relative";this.subtractsBorderForOverflowNotVisible=(h.offsetTop===-5);c.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(c.offsetTop===0);c.style.marginTop=e;c.removeChild(i);this.initialized=true},bodyOffset:function(c){T.offset.initialized||T.offset.initialize();var a=c.offsetTop,b=c.offsetLeft;if(T.offset.doesNotIncludeMarginInBodyOffset){a+=parseInt(T.curCSS(c,"marginTop",true),10)||0,b+=parseInt(T.curCSS(c,"marginLeft",true),10)||0}return{top:a,left:b}}};T.fn.extend({position:function(){var b=0,c=0,e;if(this[0]){var d=this.offsetParent(),a=this.offset(),f=/^body|html$/i.test(d[0].tagName)?{top:0,left:0}:d.offset();a.top-=Y(this,"marginTop");a.left-=Y(this,"marginLeft");f.top+=Y(d,"borderTopWidth");f.left+=Y(d,"borderLeftWidth");e={top:a.top-f.top,left:a.left-f.left}}return e},offsetParent:function(){var a=this[0].offsetParent||document.body;while(a&&(!/^body|html$/i.test(a.tagName)&&T.css(a,"position")=="static")){a=a.offsetParent}return T(a)}});T.each(["Left","Top"],function(b,c){var a="scroll"+c;T.fn[a]=function(d){if(!this[0]){return null}return d!==ab?this.each(function(){this==W||this==document?W.scrollTo(!b?d:T(W).scrollLeft(),b?d:T(W).scrollTop()):this[a]=d}):this[0]==W||this[0]==document?self[b?"pageYOffset":"pageXOffset"]||T.boxModel&&document.documentElement[a]||document.body[a]:this[0][a]}});T.each(["Height","Width"],function(b,d){var f=b?"Left":"Top",c=b?"Right":"Bottom",e=d.toLowerCase();T.fn["inner"+d]=function(){return this[0]?T.css(this[0],e,false,"padding"):null};T.fn["outer"+d]=function(g){return this[0]?T.css(this[0],e,false,g?"margin":"border"):null};var a=d.toLowerCase();T.fn[a]=function(g){return this[0]==W?document.compatMode=="CSS1Compat"&&document.documentElement["client"+d]||document.body["client"+d]:this[0]==document?Math.max(document.documentElement["client"+d],document.body["scroll"+d],document.documentElement["scroll"+d],document.body["offset"+d],document.documentElement["offset"+d]):g===ab?(this.length?T.css(this[0],a):null):this.css(a,typeof g==="string"?g:g+"px")}})})();
function doSubmit(){var a=document.frmSignup;if(a.txtusername.value==""){alert("Username is missing");a.txtusername.focus();return false}else{if(isNumeric(a.txtusername.value.charAt(0))){alert("Username must start with alphabet");a.txtusername.focus();return false}else{if(a.txtpassword.value==""){alert("Please input password");a.txtpassword.focus();return false}else{if(isNumeric(a.txtpassword.value.charAt(0))){alert("Password must start with alphabet");a.txtpassword.focus();return false}else{if(a.txtpassword2.value==""){alert("Please input confirm password");a.txtpassword2.focus();return false}else{if(isNumeric(a.txtpassword2.value.charAt(0))){alert("Confirm Password must start with alphabet");a.txtpassword2.focus();return false}else{if(a.txtpassword.value!=a.txtpassword2.value){alert("Password and Confirm Password must be same");a.txtpassword2.focus();return false}else{if(a.txtfirstname.value==""){alert("Please input first name");a.txtfirstname.focus();return false}else{if(isNumeric(a.txtfirstname.value.charAt(0))){alert("First name must start with alphabet");a.txtfirstname.focus();return false}else{if(!isAlphabetic(a.txtfirstname.value)){alert("First name should be alphabetic");a.txtfirstname.focus();return false}else{if(a.txtlastname.value==""){alert("Please input last name");a.txtlastname.focus();return false}else{if(isNumeric(a.txtlastname.value.charAt(0))){alert("Last name must start with alphabet");a.txtlastname.focus();return false}else{if(!isAlphabetic(a.txtlastname.value)){alert("Last name should be alphabetic");a.txtlastname.focus();return false}else{if(a.txtemail.value==""){alert("Please input email");a.txtemail.focus();return false}else{if(!isValidEmail(a.txtemail.value)){alert("Please input valid email");a.txtemail.focus();return false}else{if(a.txtcity.value==""){alert("Please input city");a.txtcity.focus();return false}else{if(isNumeric(a.txtcity.value.charAt(0))){alert("City name must start with alphabet");a.txtcity.focus();return false}else{if(a.txtstateprovince.value==""){alert("Please input state or province");a.txtstateprovince.focus();return false}else{if(a.txtzip.value==""){alert("Please input zip code");a.txtzip.focus();return false}else{if(a.txtaddress1.value==""){alert("Please input address line 1");a.txtaddress1.focus();return false}else{return true}}}}}}}}}}}}}}}}}}}}return false};
