function submitenter(C,B){var A;if(window.event){A=window.event.keyCode}else{if(B){A=B.which}else{return true}}if(A==13){C.form.submit();return false}else{return true}}var isDOM=document.getElementById?1:0,isIE=document.all?1:0,isNS4=navigator.appName=="Netscape"&&!isDOM?1:0,isOp=self.opera?1:0,isDyn=isDOM||isIE||isNS4;function getRef(A,B){B=!B?document:B.navigator?B.document:B;return isIE?B.all[A]:isDOM?(B.getElementById?B:B.ownerDocument).getElementById(A):isNS4?B.layers[A]:null}function getSty(A,C){var B=getRef(A,C);return B?isNS4?B:B.style:null}if(!self.LayerObj){var LayerObj=new Function("i","p","this.ref=getRef(i,p);this.sty=getSty(i,p);return this")}function getLyr(A,B){return new LayerObj(A,B)}function LyrFn(B,A){LayerObj.prototype[B]=new Function('var a=arguments,p=a[0],px=isNS4||isOp?0:"px";with(this){'+A+"}")}LyrFn("x","if(!isNaN(p))sty.left=p+px;else return parseInt(sty.left)");LyrFn("y","if(!isNaN(p))sty.top=p+px;else return parseInt(sty.top)");if(typeof addEvent!="function"){var addEvent=function(B,J,F,E){var G="addEventListener",C="on"+J,I=B,H=J,D=F,A=E;if(B[G]&&!E){return B[G](J,F,false)}if(!B._evts){B._evts={}}if(!B._evts[J]){B._evts[J]=B[C]?{b:B[C]}:{};B[C]=new Function("e",'var r=true,o=this,a=o._evts["'+J+'"],i;for(i in a){o._f=a[i];r=o._f(e||window.event)!=false&&r;o._f=null}return r');if(J!="unload"){addEvent(window,"unload",function(){removeEvent(I,H,D,A)})}}if(!F._i){F._i=addEvent._i++}B._evts[J][F._i]=F};addEvent._i=1;var removeEvent=function(E,B,C,A){var D="removeEventListener";if(E[D]&&!A){return E[D](B,C,false)}if(E._evts&&E._evts[B]&&C._i){delete E._evts[B][C._i]}}}function FSMenu(B,E,C,D,A){this.myName=B;this.nested=E;this.cssProp=C;this.cssVis=D;this.cssHid=A;this.cssLitClass="highlighted";this.menus={root:new FSMenuNode("root",true,this)};this.menuToShow=[];this.mtsTimer=null;this.showDelay=0;this.switchDelay=125;this.hideDelay=500;this.showOnClick=0;this.hideOnClick=true;this.animInSpeed=0.2;this.animOutSpeed=0.2;this.animations=[]}FSMenu.prototype.show=function(mN){with(this){menuToShow.length=arguments.length;for(var i=0;i<arguments.length;i++){menuToShow[i]=arguments[i]}clearTimeout(mtsTimer);if(!nested){mtsTimer=setTimeout(myName+".menus.root.over()",10)}}};FSMenu.prototype.hide=function(mN){with(this){clearTimeout(mtsTimer);if(menus[mN]){menus[mN].out()}}};FSMenu.prototype.hideAll=function(){with(this){for(var m in menus){if(menus[m].visible&&!menus[m].isRoot){menus[m].hide(true)}}}};function FSMenuNode(id,isRoot,obj){this.id=id;this.isRoot=isRoot;this.obj=obj;this.lyr=this.child=this.par=this.timer=this.visible=null;this.args=[];var node=this;this.over=function(evt){with(node){with(obj){if(isNS4&&evt&&lyr.ref){lyr.ref.routeEvent(evt)}clearTimeout(timer);clearTimeout(mtsTimer);if(!isRoot&&!visible){node.show()}if(menuToShow.length){var a=menuToShow,m=a[0];if(!menus[m]||!menus[m].lyr.ref){menus[m]=new FSMenuNode(m,false,obj)}var c=menus[m];if(c==node){menuToShow.length=0;return }clearTimeout(c.timer);if(c!=child&&c.lyr.ref){c.args.length=a.length;for(var i=0;i<a.length;i++){c.args[i]=a[i]}var delay=child?switchDelay:showDelay;c.timer=setTimeout("with("+myName+'){menus["'+c.id+'"].par=menus["'+node.id+'"];menus["'+c.id+'"].show()}',delay?delay:1)}menuToShow.length=0}if(!nested&&par){par.over()}}}};this.out=function(evt){with(node){with(obj){if(isNS4&&evt&&lyr&&lyr.ref){lyr.ref.routeEvent(evt)}clearTimeout(timer);if(!isRoot&&hideDelay>=0){timer=setTimeout(myName+'.menus["'+id+'"].hide()',hideDelay);if(!nested&&par){par.out()}}}}};if(this.id!="root"){with(this){with(lyr=getLyr(id)){if(ref){if(isNS4){ref.captureEvents(Event.MOUSEOVER|Event.MOUSEOUT)}addEvent(ref,"mouseover",this.over);addEvent(ref,"mouseout",this.out);if(obj.nested){addEvent(ref,"focus",this.over);addEvent(ref,"click",this.over);addEvent(ref,"blur",this.out)}}}}}}FSMenuNode.prototype.show=function(forced){with(this){with(obj){if(!lyr||!lyr.ref){return }if(par){if(par.child&&par.child!=this){par.child.hide()}par.child=this}var offR=args[1],offX=args[2],offY=args[3],lX=0,lY=0,doX=""+offX!="undefined",doY=""+offY!="undefined";if(self.page&&offR&&(doX||doY)){with(page.elmPos(offR,par.lyr?par.lyr.ref:0)){lX=x,lY=y}if(doX){lyr.x(lX+eval(offX))}if(doY){lyr.y(lY+eval(offY))}}if(offR){lightParent(offR,1)}visible=1;if(obj.onshow){obj.onshow(id)}lyr.ref.parentNode.style.zIndex="2";setVis(1,forced)}}};FSMenuNode.prototype.hide=function(forced){with(this){with(obj){if(!lyr||!lyr.ref||!visible){return }if(isNS4&&self.isMouseIn&&isMouseIn(lyr.ref)){return show()}if(args[1]){lightParent(args[1],0)}if(child){child.hide()}if(par&&par.child==this){par.child=null}if(lyr){visible=0;if(obj.onhide){obj.onhide(id)}lyr.ref.parentNode.style.zIndex="1";setVis(0,forced)}}}};FSMenuNode.prototype.lightParent=function(elm,lit){with(this){with(obj){if(!cssLitClass||isNS4){return }if(lit){elm.className+=(elm.className?" ":"")+cssLitClass}else{elm.className=elm.className.replace(new RegExp("(\\s*"+cssLitClass+")+$"),"")}}}};FSMenuNode.prototype.setVis=function(sh,forced){with(this){with(obj){if(lyr.forced&&!forced){return }lyr.forced=forced;lyr.timer=lyr.timer||0;lyr.counter=lyr.counter||0;with(lyr){clearTimeout(timer);if(sh&&!counter){sty[cssProp]=cssVis}var speed=sh?animInSpeed:animOutSpeed;if(isDOM&&speed<1){for(var a=0;a<animations.length;a++){animations[a](ref,counter,sh)}}counter+=speed*(sh?1:-1);if(counter>1){counter=1;lyr.forced=false}else{if(counter<0){counter=0;sty[cssProp]=cssHid;lyr.forced=false}else{if(isDOM){timer=setTimeout(myName+'.menus["'+id+'"].setVis('+sh+","+forced+")",50)}}}}}}};FSMenu.animSwipeDown=function(D,B,A){if(A&&(B==0)){D._fsm_styT=D.style.top;D._fsm_styMT=D.style.marginTop;D._fsm_offT=D.offsetTop||0}var E=Math.pow(Math.sin(Math.PI*B/2),0.75);var C=D.offsetHeight*(1-E);D.style.clip=(B==1?((window.opera||navigator.userAgent.indexOf("KHTML")>-1)?"":"rect(auto,auto,auto,auto)"):"rect("+C+"px,"+D.offsetWidth+"px,"+D.offsetHeight+"px,0)");if(B==1||(B<0.01&&!A)){D.style.top=D._fsm_styT;D.style.marginTop=D._fsm_styMT}else{D.style.top=((0-C)+(D._fsm_offT))+"px";D.style.marginTop="0"}};FSMenu.animFade=function(D,C,B){var A=(C==1);if(D.filters){var E=!A?" alpha(opacity="+parseInt(C*100)+")":"";if(D.style.filter.indexOf("alpha")==-1){D.style.filter+=E}else{D.style.filter=D.style.filter.replace(/\s*alpha\([^\)]*\)/i,E)}}else{D.style.opacity=D.style.MozOpacity=C/1.001}};FSMenu.animClipDown=function(C,B,A){var D=Math.pow(Math.sin(Math.PI*B/2),0.75);C.style.clip=(B==1?((window.opera||navigator.userAgent.indexOf("KHTML")>-1)?"":"rect(auto,auto,auto,auto)"):"rect(0,"+C.offsetWidth+"px,"+(C.offsetHeight*D)+"px,0)")};FSMenu.prototype.activateMenu=function(id,subInd){with(this){if(!isDOM||!document.documentElement){return }var fsmFB=getRef("fsmenu-fallback");if(fsmFB){fsmFB.rel="alternate stylesheet";fsmFB.disabled=true}var a,ul,li,parUL,mRoot=getRef(id),nodes,count=1;var lists=mRoot.getElementsByTagName("ul");for(var i=0;i<lists.length;i++){li=ul=lists[i];while(li){if(li.nodeName.toLowerCase()=="li"){break}li=li.parentNode}if(!li){continue}parUL=li;while(parUL){if(parUL.nodeName.toLowerCase()=="ul"){break}parUL=parUL.parentNode}a=null;for(var j=0;j<li.childNodes.length;j++){if(li.childNodes[j].nodeName.toLowerCase()=="a"){a=li.childNodes[j]}}if(!a){continue}var menuID=myName+"-id-"+count++;if(ul.id){menuID=ul.id}else{ul.setAttribute("id",menuID)}var sOC=(showOnClick==1&&li.parentNode==mRoot)||(showOnClick==2);var evtProp=navigator.userAgent.indexOf("Safari")>-1||isOp?"safRtnVal":"returnValue";var eShow=new Function("with("+myName+'){var m=menus["'+menuID+'"],pM=menus["'+parUL.id+'"];'+(sOC?"if((pM&&pM.child)||(m&&m.visible))":"")+' show("'+menuID+'",this)}');var eHide=new Function("e","if(e."+evtProp+"!=false)"+myName+'.hide("'+menuID+'")');addEvent(a,"mouseover",eShow);addEvent(a,"focus",eShow);addEvent(a,"mouseout",eHide);addEvent(a,"blur",eHide);if(sOC){addEvent(a,"click",new Function("e",myName+'.show("'+menuID+'",this);if(e.cancelable&&e.preventDefault)e.preventDefault();e.'+evtProp+"=false;return false"))}if(subInd){a.insertBefore(subInd.cloneNode(true),a.firstChild)}}if(isIE&&!isOp){var aNodes=mRoot.getElementsByTagName("a");for(var i=0;i<aNodes.length;i++){addEvent(aNodes[i],"focus",new Function("e","var node=this.parentNode;while(node){if(node.onfocus)node.onfocus(e);node=node.parentNode}"));addEvent(aNodes[i],"blur",new Function("e","var node=this.parentNode;while(node){if(node.onblur)node.onblur(e);node=node.parentNode}"))}}if(hideOnClick){addEvent(mRoot,"click",new Function(myName+".hideAll()"))}menus[id]=new FSMenuNode(id,true,this)}};var page={win:self,minW:0,minH:0,MS:isIE&&!isOp,db:document.compatMode&&document.compatMode.indexOf("CSS")>-1?"documentElement":"body"};page.elmPos=function(D,C){var A=0,E=0,B=C?C:this.win;D=D?(D.substr?(isNS4?B.document.anchors[D]:getRef(D,B)):D):C;if(isNS4){if(D&&(D!=C)){A=D.x;E=D.y}if(C){A+=C.pageX;E+=C.pageY}}if(D&&this.MS&&navigator.platform.indexOf("Mac")>-1&&D.tagName=="A"){D.onfocus=new Function("with(event){self.tmpX=clientX-offsetX;self.tmpY=clientY-offsetY}");D.focus();A=tmpX;E=tmpY;D.blur()}else{while(D){A+=D.offsetLeft;E+=D.offsetTop;D=D.offsetParent}}return{x:A,y:E}};if(isNS4){var fsmMouseX,fsmMouseY,fsmOR=self.onresize,nsWinW=innerWidth,nsWinH=innerHeight;document.fsmMM=document.onmousemove;self.onresize=function(){if(fsmOR){fsmOR()}if(nsWinW!=innerWidth||nsWinH!=innerHeight){location.reload()}};document.captureEvents(Event.MOUSEMOVE);document.onmousemove=function(A){fsmMouseX=A.pageX;fsmMouseY=A.pageY;return document.fsmMM?document.fsmMM(A):document.routeEvent(A)};function isMouseIn(sty){with(sty){return((fsmMouseX>left)&&(fsmMouseX<left+clip.width)&&(fsmMouseY>top)&&(fsmMouseY<top+clip.height))}}}var email_ajax_url="http://www.pastryshoescollection.com/wordpress/wp-content/plugins/wp-email/wp-email.php";var email_max_allowed="5";var email_verify="";var email_text_error="The Following Error Occurs:";var email_text_name_invalid="- Your Name is empty/invalid";var email_text_email_invalid="- Your Email is empty/invalid";var email_text_remarks_invalid="- Your Remarks is invalid";var email_text_friend_names_empty="- Friend Name(s) is empty";var email_text_friend_name_invalid="- Friend Name is empty/invalid:";var email_text_max_friend_names_allowed="- Maximum 5 Friend Name(s) allowed";var email_text_friend_emails_empty="- Friend Email(s) is empty";var email_text_friend_email_invalid="- Friend Email is invalid:";var email_text_max_friend_emails_allowed="- Maximum 5 Friend Email(s) allowed";var email_text_friends_tally="- Friend Name(s) count does not tally with Friend Email(s) count";var email_text_image_verify_empty="- Image Verification is empty";function sack(file){this.xmlhttp=null;this.resetData=function(){this.method="POST";this.queryStringSeparator="?";this.argumentSeparator="&";this.URLString="";this.encodeURIString=true;this.execute=false;this.element=null;this.elementObj=null;this.requestFile=file;this.vars=new Object();this.responseStatus=new Array(2)};this.resetFunctions=function(){this.onLoading=function(){};this.onLoaded=function(){};this.onInteractive=function(){};this.onCompletion=function(){};this.onError=function(){};this.onFail=function(){}};this.reset=function(){this.resetFunctions();this.resetData()};this.createAJAX=function(){try{this.xmlhttp=new ActiveXObject("Msxml2.XMLHTTP")}catch(e1){try{this.xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")}catch(e2){this.xmlhttp=null}}if(!this.xmlhttp){if(typeof XMLHttpRequest!="undefined"){this.xmlhttp=new XMLHttpRequest()}else{this.failed=true}}};this.setVar=function(name,value){this.vars[name]=Array(value,false)};this.encVar=function(name,value,returnvars){if(true==returnvars){return Array(encodeURIComponent(name),encodeURIComponent(value))}else{this.vars[encodeURIComponent(name)]=Array(encodeURIComponent(value),true)}};this.processURLString=function(string,encode){encoded=encodeURIComponent(this.argumentSeparator);regexp=new RegExp(this.argumentSeparator+"|"+encoded);varArray=string.split(regexp);for(i=0;i<varArray.length;i++){urlVars=varArray[i].split("=");if(true==encode){this.encVar(urlVars[0],urlVars[1])}else{this.setVar(urlVars[0],urlVars[1])}}};this.createURLString=function(urlstring){if(this.encodeURIString&&this.URLString.length){this.processURLString(this.URLString,true)}if(urlstring){if(this.URLString.length){this.URLString+=this.argumentSeparator+urlstring}else{this.URLString=urlstring}}this.setVar("rndval",new Date().getTime());urlstringtemp=new Array();for(key in this.vars){if(false==this.vars[key][1]&&true==this.encodeURIString){encoded=this.encVar(key,this.vars[key][0],true);delete this.vars[key];this.vars[encoded[0]]=Array(encoded[1],true);key=encoded[0]}urlstringtemp[urlstringtemp.length]=key+"="+this.vars[key][0]}if(urlstring){this.URLString+=this.argumentSeparator+urlstringtemp.join(this.argumentSeparator)}else{this.URLString+=urlstringtemp.join(this.argumentSeparator)}};this.runResponse=function(){eval(this.response)};this.runAJAX=function(urlstring){if(this.failed){this.onFail()}else{this.createURLString(urlstring);if(this.element){this.elementObj=document.getElementById(this.element)}if(this.xmlhttp){var self=this;if(this.method=="GET"){totalurlstring=this.requestFile+this.queryStringSeparator+this.URLString;this.xmlhttp.open(this.method,totalurlstring,true)}else{this.xmlhttp.open(this.method,this.requestFile,true);try{this.xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}catch(e){}}this.xmlhttp.onreadystatechange=function(){switch(self.xmlhttp.readyState){case 1:self.onLoading();break;case 2:self.onLoaded();break;case 3:self.onInteractive();break;case 4:self.response=self.xmlhttp.responseText;self.responseXML=self.xmlhttp.responseXML;self.responseStatus[0]=self.xmlhttp.status;self.responseStatus[1]=self.xmlhttp.statusText;if(self.execute){self.runResponse()}if(self.elementObj){elemNodeName=self.elementObj.nodeName;elemNodeName.toLowerCase();if(elemNodeName=="input"||elemNodeName=="select"||elemNodeName=="option"||elemNodeName=="textarea"){self.elementObj.value=self.response}else{self.elementObj.innerHTML=self.response}}if(self.responseStatus[0]=="200"){self.onCompletion()}else{self.onError()}self.URLString="";break}};this.xmlhttp.send(this.URLString)}}};this.reset();this.createAJAX()}var email=new sack(email_ajax_url);var email_p=0;var email_pageid=0;var email_yourname="";var email_youremail="";var email_yourremarks="";var email_friendname="";var email_friendemail="";var email_friendnames="";var email_friendemails="";var email_imageverify="";function validate_email_form(){var B=false;var A=email_text_error+"\n";A=A+"__________________________________\n\n";if(document.getElementById("yourname")){if(isEmpty(email_yourname)||!is_valid_name(email_yourname)){A=A+email_text_name_invalid+"\n";B=true}}if(document.getElementById("youremail")){if(isEmpty(email_youremail)||!is_valid_email(email_youremail)){A=A+email_text_email_invalid+"\n";B=true}}if(document.getElementById("yourremarks")){if(!isEmpty(email_yourremarks)){if(!is_valid_remarks(email_yourremarks)){A=A+email_text_remarks_invalid+"\n";B=true}}}if(document.getElementById("friendname")){if(isEmpty(email_friendname)){A=A+email_text_friend_names_empty+"\n";B=true}else{for(i=0;i<email_friendnames.length;i++){if(isEmpty(email_friendnames[i])||!is_valid_name(email_friendnames[i])){A=A+email_text_friend_name_invalid+email_friendnames[i]+"\n";B=true}}}if(email_friendnames.length>email_max_allowed){A=A+email_text_max_friend_names_allowed+"\n";B=true}}if(isEmpty(email_friendemail)){A=A+email_text_friend_emails_empty+"\n";B=true}else{for(i=0;i<email_friendemails.length;i++){if(isEmpty(email_friendemails[i])||!is_valid_email(email_friendemails[i])){A=A+email_text_friend_email_invalid+"\n";B=true}}}if(email_friendemails.length>email_max_allowed){A=A+email_text_max_friend_emails_allowed+"\n";B=true}if(document.getElementById("friendname")){if(email_friendnames.length!=email_friendemails.length){A=A+email_text_friends_tally+"\n";B=true}}if(document.getElementById("imageverify")){if(isEmpty(email_imageverify)){A=A+email_text_image_verify_empty+"\n";B=true}}if(B==true){alert(A);return false}else{return true}}function isEmpty(A){if(trim(A)==""){return true}return false}function trim(A){while(A.substring(0,1)==" "){A=A.substring(1,A.length)}while(A.substring(A.length-1,A.length)==" "){A=A.substring(0,A.length-1)}return A}function is_valid_name(A){var A=trim(A);var B=/[(\*\(\)\[\]\+\,\/\?\:\;\'\"\`\~\\#\$\%\^\&\<\>)+]/;return !B.test(A)}function is_valid_email(A){var A=trim(A);var B=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;return B.test(A)}function is_valid_remarks(B){var B=trim(B);var A=new Array("apparently-to","cc","bcc","boundary","charset","content-disposition","content-type","content-transfer-encoding","errors-to","in-reply-to","message-id","mime-version","multipart/mixed","multipart/alternative","multipart/related","reply-to","x-mailer","x-sender","x-uidl");for(i=0;i<A.length;i++){if(B.indexOf(A[i])!=-1){return false}}return true}function email_popup(A){window.open(A,"_blank","width=500,height=500,toolbar=0,menubar=0,location=0,resizable=0,scrollbars=1,status=0")}function email_form(){if(document.getElementById("yourname")){email_yourname=document.getElementById("yourname").value}if(document.getElementById("youremail")){email_youremail=document.getElementById("youremail").value}if(document.getElementById("yourremarks")){email_yourremarks=document.getElementById("yourremarks").value}if(document.getElementById("friendname")){email_friendname=document.getElementById("friendname").value;email_friendnames=email_friendname.split(",")}email_friendemail=document.getElementById("friendemail").value;email_friendemails=email_friendemail.split(",");if(document.getElementById("imageverify")){email_imageverify=document.getElementById("imageverify").value}if(document.getElementById("p")){email_p=document.getElementById("p").value}if(document.getElementById("page_id")){email_pageid=document.getElementById("page_id").value}if(validate_email_form()){document.getElementById("wp-email-submit").disabled=true;document.getElementById("wp-email-loading").style.display="block";email.reset();if(document.getElementById("yourname")){email.setVar("yourname",email_yourname);document.getElementById("yourname").disabled=true}if(document.getElementById("youremail")){email.setVar("youremail",email_youremail);document.getElementById("youremail").disabled=true}if(document.getElementById("yourremarks")){email.setVar("yourremarks",email_yourremarks);document.getElementById("yourremarks").disabled=true}if(document.getElementById("friendname")){email.setVar("friendname",email_friendname);document.getElementById("friendname").disabled=true}email.setVar("friendemail",email_friendemail);document.getElementById("friendemail").disabled=true;if(document.getElementById("imageverify")){email.setVar("imageverify",email_imageverify);document.getElementById("imageverify").disabled=true}if(document.getElementById("p")){email.setVar("p",email_p)}if(document.getElementById("page_id")){email.setVar("page_id",email_pageid)}email.setVar("wp-email","1");email.setVar("popup",document.getElementById("popup").value);email.method="POST";email.element="wp-email";email.runAJAX()}}var polls_ajax_url="http://www.pastryshoescollection.com/wordpress/wp-content/plugins/wp-polls/wp-polls.php";var polls_text_wait="Your last request is still being processed. Please wait a while ...";var polls_text_valid="Please choose a valid poll answer.";var polls_text_multiple="Maximum number of choices allowed:";var poll_show_loading=1;var poll_show_fading=1;var polls=new sack(polls_ajax_url);var poll_id=0;var poll_answer_id="";var poll_fadein_opacity=0;var poll_fadeout_opacity=100;var is_ie=(document.all&&document.getElementById);var is_moz=(!document.all&&document.getElementById);var is_opera=(navigator.userAgent.indexOf("Opera")>-1);var is_being_voted=false;function poll_vote(current_poll_id){if(!is_being_voted){is_being_voted=true;poll_id=current_poll_id;poll_form=document.getElementById("polls_form_"+poll_id);poll_answer=eval("poll_form.poll_"+poll_id);poll_answer_id="";if(document.getElementById("poll_multiple_ans_"+poll_id)){poll_multiple_ans=parseInt(document.getElementById("poll_multiple_ans_"+poll_id).value)}else{poll_multiple_ans=0}poll_multiple_ans_count=0;if(poll_answer.length!=null){for(i=0;i<poll_answer.length;i++){if(poll_answer[i].checked){if(poll_multiple_ans>0){poll_answer_id=poll_answer[i].value+","+poll_answer_id;poll_multiple_ans_count++}else{poll_answer_id=parseInt(poll_answer[i].value)}}}}else{poll_answer_id=poll_answer.value}if(poll_multiple_ans>0){if(poll_multiple_ans_count>0&&poll_multiple_ans_count<=poll_multiple_ans){poll_answer_id=poll_answer_id.substring(0,(poll_answer_id.length-1));poll_loading_text();poll_process()}else{if(poll_multiple_ans_count==0){is_being_voted=false;alert(polls_text_valid)}else{is_being_voted=false;alert(polls_text_multiple+" "+poll_multiple_ans+".")}}}else{if(poll_answer_id>0){poll_loading_text();poll_process()}else{is_being_voted=false;alert(polls_text_valid)}}}else{alert(polls_text_wait)}}function poll_result(A){if(!is_being_voted){is_being_voted=true;poll_id=A;poll_loading_text();poll_process_result()}else{alert(polls_text_wait)}}function poll_booth(A){if(!is_being_voted){is_being_voted=true;poll_id=A;poll_loading_text();poll_process_booth()}else{alert(polls_text_wait)}}function poll_fadein_text(){if(poll_fadein_opacity==90){poll_unloading_text()}if(poll_fadein_opacity<100){poll_fadein_opacity+=10;if(is_opera){poll_fadein_opacity=100;poll_unloading_text()}else{if(is_ie){if(poll_show_fading){document.getElementById("polls-"+poll_id+"-ans").style.filter="alpha(opacity="+poll_fadein_opacity+")"}else{poll_fadein_opacity=100;poll_unloading_text()}}else{if(is_moz){if(poll_show_fading){document.getElementById("polls-"+poll_id+"-ans").style.MozOpacity=(poll_fadein_opacity/100)}else{poll_fadein_opacity=100;poll_unloading_text()}}}}setTimeout("poll_fadein_text()",100)}else{poll_fadein_opacity=100;is_being_voted=false}}function poll_loading_text(){if(poll_show_loading){document.getElementById("polls-"+poll_id+"-loading").style.display="block"}}function poll_unloading_text(){if(poll_show_loading){document.getElementById("polls-"+poll_id+"-loading").style.display="none"}}function poll_process(){if(poll_fadeout_opacity>0){poll_fadeout_opacity-=10;if(is_opera){poll_fadeout_opacity=0}else{if(is_ie){if(poll_show_fading){document.getElementById("polls-"+poll_id+"-ans").style.filter="alpha(opacity="+poll_fadeout_opacity+")"}else{poll_fadeout_opacity=0}}else{if(is_moz){if(poll_show_fading){document.getElementById("polls-"+poll_id+"-ans").style.MozOpacity=(poll_fadeout_opacity/100)}else{poll_fadeout_opacity=0}}}}setTimeout("poll_process()",100)}else{poll_fadeout_opacity=0;polls.reset();polls.setVar("vote",true);polls.setVar("poll_id",poll_id);polls.setVar("poll_"+poll_id,poll_answer_id);polls.method="POST";polls.element="polls-"+poll_id+"-ans";polls.onCompletion=poll_fadein_text;polls.runAJAX();poll_fadein_opacity=0;poll_fadeout_opacity=100}}function poll_process_result(){if(poll_fadeout_opacity>0){poll_fadeout_opacity-=10;if(is_opera){poll_fadeout_opacity=0}else{if(is_ie){if(poll_show_fading){document.getElementById("polls-"+poll_id+"-ans").style.filter="alpha(opacity="+poll_fadeout_opacity+")"}else{poll_fadeout_opacity=0}}else{if(is_moz){if(poll_show_fading){document.getElementById("polls-"+poll_id+"-ans").style.MozOpacity=(poll_fadeout_opacity/100)}else{poll_fadeout_opacity=0}}}}setTimeout("poll_process_result()",100)}else{poll_fadeout_opacity=0;polls.reset();polls.setVar("pollresult",poll_id);polls.method="GET";polls.element="polls-"+poll_id+"-ans";polls.onCompletion=poll_fadein_text;polls.runAJAX();poll_fadein_opacity=0;poll_fadeout_opacity=100}}function poll_process_booth(){if(poll_fadeout_opacity>0){poll_fadeout_opacity-=10;if(is_opera){poll_fadeout_opacity=0}else{if(is_ie){if(poll_show_fading){document.getElementById("polls-"+poll_id+"-ans").style.filter="alpha(opacity="+poll_fadeout_opacity+")"}else{poll_fadeout_opacity=0}}else{if(is_moz){if(poll_show_fading){document.getElementById("polls-"+poll_id+"-ans").style.MozOpacity=(poll_fadeout_opacity/100)}else{poll_fadeout_opacity=0}}}}setTimeout("poll_process_booth()",100)}else{poll_fadeout_opacity=0;polls.reset();polls.setVar("pollbooth",poll_id);polls.method="GET";polls.element="polls-"+poll_id+"-ans";polls.onCompletion=poll_fadein_text;polls.runAJAX();poll_fadein_opacity=0;poll_fadeout_opacity=100}}function poll_disable_voting(A){poll_form=document.getElementById("polls_form_"+A);for(i=0;i<poll_form.length;i++){poll_form[i].disabled=true}}var ratings_plugin_url="http://www.pastryshoescollection.com/wordpress/wp-content/plugins/wp-postratings";var ratings_ajax_url="http://www.pastryshoescollection.com/wordpress/wp-content/plugins/wp-postratings/wp-postratings.php";var ratings_text_wait="Please rate only 1 post at a time.";var ratings_image="stars";var ratings_max=5;var ratings_mouseover_image=new Image();ratings_mouseover_image.src=ratings_plugin_url+"/images/"+ratings_image+"/rating_over.gif";var ratings_show_loading=1;var ratings_show_fading=1;var ratings_custom=0;var ratings=new sack(ratings_ajax_url);var post_id=0;var post_rating=0;var rate_fadein_opacity=0;var rate_fadeout_opacity=100;var is_ie=(document.all&&document.getElementById);var is_moz=(!document.all&&document.getElementById);var is_opera=(navigator.userAgent.indexOf("Opera")>-1);var is_being_rated=false;function rade_fadein_text(){if(rate_fadein_opacity<100){rate_fadein_opacity+=10;if(is_opera){rate_fadein_opacity=100}else{if(is_ie){if(ratings_show_fading){document.getElementById("post-ratings-"+post_id).style.filter="alpha(opacity="+rate_fadein_opacity+")"}else{rate_fadein_opacity=100}}else{if(is_moz){if(ratings_show_fading){document.getElementById("post-ratings-"+post_id).style.MozOpacity=(rate_fadein_opacity/100)}else{rate_fadein_opacity=100}}}}setTimeout("rade_fadein_text()",100)}else{rate_fadein_opacity=100;rate_unloading_text();is_being_rated=false}}function current_rating(id,rating,rating_text){if(!is_being_rated){post_id=id;post_rating=rating;if(ratings_custom&&ratings_max==2){document.images["rating_"+post_id+"_"+rating].src=eval("ratings_"+rating+"_mouseover_image.src")}else{for(i=1;i<=rating;i++){if(ratings_custom){document.images["rating_"+post_id+"_"+i].src=eval("ratings_"+i+"_mouseover_image.src")}else{document.images["rating_"+post_id+"_"+i].src=eval("ratings_mouseover_image.src")}}}if(document.getElementById("ratings_"+post_id+"_text")){document.getElementById("ratings_"+post_id+"_text").style.display="inline";document.getElementById("ratings_"+post_id+"_text").innerHTML=rating_text}}}function ratings_off(A,B){if(!is_being_rated){for(i=1;i<=ratings_max;i++){if(i<=A){if(ratings_custom){document.images["rating_"+post_id+"_"+i].src=ratings_plugin_url+"/images/"+ratings_image+"/rating_"+i+"_on.gif"}else{document.images["rating_"+post_id+"_"+i].src=ratings_plugin_url+"/images/"+ratings_image+"/rating_on.gif"}}else{if(i==B){if(ratings_custom){document.images["rating_"+post_id+"_"+i].src=ratings_plugin_url+"/images/"+ratings_image+"/rating_"+i+"_half.gif"}else{document.images["rating_"+post_id+"_"+i].src=ratings_plugin_url+"/images/"+ratings_image+"/rating_half.gif"}}else{if(ratings_custom){document.images["rating_"+post_id+"_"+i].src=ratings_plugin_url+"/images/"+ratings_image+"/rating_"+i+"_off.gif"}else{document.images["rating_"+post_id+"_"+i].src=ratings_plugin_url+"/images/"+ratings_image+"/rating_off.gif"}}}}if(document.getElementById("ratings_"+post_id+"_text")){document.getElementById("ratings_"+post_id+"_text").style.display="none";document.getElementById("ratings_"+post_id+"_text").innerHTML=""}}}function rate_loading_text(){if(ratings_show_loading){document.getElementById("post-ratings-"+post_id+"-loading").style.display="block"}}function rate_unloading_text(){if(ratings_show_loading){document.getElementById("post-ratings-"+post_id+"-loading").style.display="none"}}function rate_post(){if(!is_being_rated){is_being_rated=true;rate_loading_text();rate_process()}else{alert(ratings_text_wait)}}function rate_process(){if(rate_fadeout_opacity>0){rate_fadeout_opacity-=10;if(is_opera){rate_fadein_opacity=0}else{if(is_ie){if(ratings_show_fading){document.getElementById("post-ratings-"+post_id).style.filter="alpha(opacity="+rate_fadeout_opacity+")"}else{rate_fadein_opacity=0}}else{if(is_moz){if(ratings_show_fading){document.getElementById("post-ratings-"+post_id).style.MozOpacity=(rate_fadeout_opacity/100)}else{rate_fadein_opacity=0}}}}setTimeout("rate_process()",100)}else{rate_fadeout_opacity=0;ratings.reset();ratings.setVar("pid",post_id);ratings.setVar("rate",post_rating);ratings.method="GET";ratings.element="post-ratings-"+post_id;ratings.onCompletion=rade_fadein_text;ratings.runAJAX();rate_fadein_opacity=0;rate_fadeout_opacity=100}};