var so=new Array();var focusedAlready=false;var redosearch=1;var productlistajax=true;var doInlineCartAdd=true;function valform(){if(document.journal.email.value.search("^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})$")==-1){showthismessage="Please enter a valid e-mail address";messaging.showwarning(showthismessage);return false}else{namevalue=document.journal.name.value;document.journal.submitted.value=1;document.journal.camefrom.value=this.location.href;return true}}function proceedJournalSignup(e){if(!document.journalsignupright){return false}var g=formData2QueryString(e)+"&jsview=1";var d=document.journalsignupright.email.value;if(!(d.search("^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})$")==-1)){customerEmail=d;var a="/commonDSP/dsp_popup_journalsignup.cfm?"+g;var c="Journal Signup";var f=250;var b=Position.cumulativeOffset(e);myLeft=b[0]-f;displayShipping.preproxy(a,c,f,b[1]+"-*-*-"+myLeft);document.journalsignupright.email.value=""}else{showthismessage="Please enter a valid email address";var b=Position.cumulativeOffset(e);myLeft=b[0]-300;messaging.showwarning(showthismessage,b[1]+"-*-*-"+myLeft)}return false}function getemailandverify(b,a){if(a==1){winPOPnomenu(jsRoot+"commonDSP/dsp_popup_journalsignup.cfm","journalsignup",400,200,0)}else{if(!(b.search("^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})$")==-1)){document.journalsignupright.email.value="";customerEmail=b;popURL="/commonDSP/dsp_popup_journalsignup.cfm?email="+customerEmail+"&emailtype=html&subscribe.x=1";winPOPnomenu(popURL,"journalsignup",400,200,0)}else{alert("Please enter a valid email address")}}}function openRingChart(){window.open("/art_expert/ringchart_selector.cfm","RingChart","width=350,height=200,toolbar=no,menubar=no,status=no,scrollbars=no,resizable=no")}function winPOPnomenu(d,c,b,a,g){if(g!=1){g=0}if(d.indexOf("dsp_popup_largepic.cfm")>=0||d.indexOf("largePicture.cfm")>=0){g=1}if(d.indexOf("/")==0){d=jsRoot+d.substring(1,d.length)}var f="toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars="+g+",copyhistory=0,width="+b+",height="+a+",top=10,left=10,resizable=1";var e=window.open(d,c,f);e.focus()}function writeWidth(c,d,a,e,f){var b="<td valign=top";if(c){b=b+" background="+c}else{if(d){b=b+" bgcolor="+d}}if(e){b=b+" class="+e}if(f){b=b+" align="+f}if(Winwidth>0){var g=Winwidth-a;if(g<420){g=420}b=b+" width="+g+">"}else{b=b+" width=99%>"}return b}function redirect(a){location.href=a}function setPermCookie(a,d,f){if(f==1){var c=new Date();c.setTime(c.getTime()+2000*24*60*60*1000);var b="; expires="+c.toGMTString()}else{var b=""}extraCookieString=";path=/;domain=.novica.com";document.cookie=a.toUpperCase()+"="+escape(d)+extraCookieString+b;var e=unescape(document.location).toLowerCase()}var ajaxURL="/CFC/wrapperCommon.cfm";var addingDot;var dots=0;var relocateOK=true;function reloadNoRefresh(){reloadProductPrices()}function reloadMiddleContent(){reloadNoRefresh()}function justreload(){messaging.showprogress(1);var a=window.location.href;if(a.indexOf("#")>=0){a=a.split("#")[0]}location.href=a}function reloadMe(){window.location.reload()}function restoreBtn(){if(document.getElementById("addtocartbutton")){document.getElementById("addtocartbutton").className="btnBlue";document.getElementById("addtocartbutton").disabled=false}else{if(document.getElementsByTagName("input")){var b=document.getElementsByTagName("input");for(var a=0;a<b.length;a++){if(b[a].className.indexOf("btnLoading")>=0){b[a].className=b[a].className.replace("btnLoading","btnBlue")}}}}}function ajaxResultSuccess(jsonData){var jsonObj=eval("("+jsonData.responseText+")");var reloadOnloadFunctions=false;var movetotop=false;if(jsonObj.namecheck){messaging.hide();if(document.getElementById("checkstatus")){if(jsonObj.urlname){if(document.getElementById("displayurl")){document.getElementById("displayurl").value=jsonObj.urlname}}if(jsonObj.success){document.getElementById("checkstatus").innerHTML="Page name you selected is available!";document.getElementById("checkstatus").className="tadsmaller nameOK";document.getElementById("checkstatus").style.display="block"}else{if(jsonObj.errormessage){document.getElementById("checkstatus").innerHTML=jsonObj.errormessage;document.getElementById("checkstatus").className="tadsmaller nameNOK";document.getElementById("checkstatus").style.display="block"}}}}else{if(jsonObj.targets){for(var y in jsonObj.targets){if(document.getElementById(y)){if(y=="productlistmain"){}document.getElementById(y).innerHTML=jsonObj.targets[y]}}reloadOnloadFunctions=true}if(jsonObj.donext){eval(jsonObj.donext+"()")}if(jsonObj.relocate){if(jsonObj.wrapperaction){if(jsonObj.wrapperaction=="search"){document.location.replace("#");if(document.forms.dosearchfilter){if(document.forms.dosearchfilter["keyword"]){document.forms.dosearchfilter["keyword"].value=""}}}}location.href=jsonObj.relocate}else{restoreBtn()}if(document.getElementById("itemRemaining")){var r=document.getElementById("itemRemaining");if(jsonObj.soldout){jsonObj.newqty=-1}if(jsonObj.newqty){if(jsonObj.newqty<1||jsonObj.newqty>15){r.style.display="none"}else{r.innerHTML="Items Remaining: "+jsonObj.newqty;if(document.getElementById("qtyselect")){var s=document.getElementById("qtyselect");var o="";for(var i=1;i<=jsonObj.newqty;i++){o+='<option value="'+i+'">'+i+"</option>"}s.innerHTML='<select name="qty_0" class="searchboxtop">'+o+"</select>"}}}}if(jsonObj.newattrib&&document.getElementById("attribSelection")){document.getElementById("attribSelection").innerHTML=jsonObj.newattrib;var s2=document.getElementsByTagName("select");for(var zz=0;zz<s2.length;zz++){if(s2[zz].className.indexOf("attribselect")>=0){var attribselect=s2[zz];populateAttribQty.getQty(attribselect);attribselect.onchange=function(){populateAttribQty.getQty(this)}}}}if(jsonObj.soldout&&document.getElementById("cartbtn")){document.getElementById("cartbtn").style.display="none";if(document.getElementById("backordercartbtn")){document.getElementById("backordercartbtn").style.display="none"}}if(jsonObj.secondary&&jsonObj.secondarytarget){if(jsonObj.secondarytarget=="rightNavCart"){document.getElementById(jsonObj.secondarytarget).innerHTML=jsonObj.secondary}else{document.getElementById(jsonObj.secondarytarget).innerHTML=jsonObj.secondary}if(jsonObj.secondarytarget=="wrapSearchError"&&jsonObj.secondary!=" "){document.location.replace("#")}if(jsonObj.targetshow){document.getElementById(jsonObj.secondarytarget).style.display="block"}if(jsonObj.targethide){document.getElementById(jsonObj.secondarytarget).style.display="none"}}if(jsonObj.content&&jsonObj.target&&document.getElementById(jsonObj.target)){var t=document.getElementById(jsonObj.target);var newcartinner=document.getElementById(jsonObj.target);if(jsonObj.targetshow){t.innerHTML=jsonObj.content;if(jsonObj.targetclass){t.className=jsonObj.targetclass}t.style.display="block";if(document.getElementById("cntrAssociatedProductsInner")){if(document.getElementById("loadingmsg")){showassociateditems(document.getElementById("cntrAssociatedProductsInner"),1)}}}else{if(jsonObj.target=="detailInCart"){fadeInOut.setIt(t,0);t.innerHTML=jsonObj.content;if(jsonObj.targetclass){t.className=jsonObj.targetclass}var myfade=new fadeInOut.init(t,1);if(jsonObj.targetclass=="justAdded"){reloadOnloadFunctions=true;iHaveCartItems=1}if(document.all){isinputfocused=false}}}if(addingDot){clearTimeout(addingDot);dots=0}if(document.getElementById("productdetail-attriberror")){document.getElementById("productdetail-attriberror").style.display="none"}}if(jsonObj.displaykeyword&&document.getElementById("labelSearch")){if(jsonObj.displaykeywordlink){document.getElementById("labelSearch").innerHTML='<span style="font-weight:normal;">Search results for </span>'+jsonObj.displaykeywordlink}else{document.getElementById("labelSearch").innerHTML='<span style="font-weight:normal;">Search results for </span>'+jsonObj.displaykeyword}document.forms.dosearchfilter.keyword.value="";document.forms.dosearchfilter.keywordoriginal.value=jsonObj.displaykeyword}if(jsonObj.sectionspecific&&jsonObj.sectionspecificcontent&&document.getElementById("leftNavSectionSpecific")){var ss=document.getElementById("leftNavSectionSpecific");document.forms.dosearchfilter.filterbyprice.value="";document.forms.dosearchfilter.filterbyregion.value="";if(jsonObj.sectionspecificcontent=="*"){ss.style.display="none"}else{ss.innerHTML=jsonObj.sectionspecificcontent;ss.style.display="block";if(jsonObj.resetfilterprice){document.forms.dosearchfilter.filterbyprice.value=jsonObj.resetfilterprice}if(jsonObj.resetfilterregion){document.forms.dosearchfilter.filterbyregion.value=jsonObj.resetfilterregion}}}if(jsonObj.newfilterbycategory){if(document.getElementById("wrapSearchFilterCategory")){var targetCatFilter=document.getElementById("wrapSearchFilterCategory");targetCatFilter.innerHTML=jsonObj.newfilterbycategory}}if(jsonObj.target){if(jsonObj.target.indexOf("search")>=0){var t=document.getElementById(jsonObj.target);t.className=t.className.replace("dimmed","")}if(jsonObj.target.toLowerCase().indexOf("phonedisplay")<0){reloadOnloadFunctions=true}if(jsonObj.target=="cntrMyNovicaHome"){memberFunctions.init();toolTipBubble.init()}}messaging.showprogress(0);if(jsonObj.linkscrawl){reloadOnloadFunctions=true}if(reloadOnloadFunctions){getLinks.init()}if(document.getElementById("navigationpaginationtop")){document.getElementById("navigationpaginationtop").className="navigationPagination"}if(document.getElementById("navigationpaginationbottom")){document.getElementById("navigationpaginationbottom").className="navigationPagination"}if(document.getElementById("navigationpaginationtop")||document.getElementById("navigationpaginationbottom")){inlineProductList.init()}if(movetotop){document.location.replace("#top")}}}function ajaxResultError(b){restoreBtn();var a="We're sorry but there has been an error while processing your request. Please try it again and if the problem persists, contact our customer service.";messaging.showwarning(a)}function ajaxDoNothing(a){var b=true}var ajaxFunctions={makeCall:function(e,c){var b=new Date();if(!c){c="ajaxResultSuccess"}var f=true;if(e=="wrapperaction=mynovicamenu"||e=="wrapperaction=homenewcustomerincentive"){f=false}var a=ajaxURL+"?"+e+"&rt="+b.getTime();var e="";if(f){var d=new Ajax.Request(a,{asynchronous:true,method:"get",parameters:e,onComplete:ajaxResultSuccess,onFailure:ajaxResultError})}else{var d=new Ajax.Request(a,{asynchronous:true,method:"get",parameters:e,onComplete:ajaxResultSuccess,onFailure:ajaxDoNothing})}}};function doAjax(b,a){ajaxFunctions.makeCall(b,a)}function addDot(){if(document.getElementById("addingDot")){dots++;var a=document.getElementById("addingDot");if(dots>=10){a.innerHTML="";dots=0}a.innerHTML+=".";addingDot=setTimeout("addDot()",100)}}function addToCart(g){var b=new Date();var c="ajaxResultSuccess";var a=ajaxURL+"?wrapperAction=addtocart";var f=formData2QueryString(g);if(document.getElementById("inCartInner")){var l=document.getElementById("inCartInner");l.innerHTML='<p class="iconInCart">Adding item to your cart<span id="addingDot"></span></p>';addDot()}var e=new Ajax.Request(a,{asynchronous:true,method:"post",parameters:f,onComplete:ajaxResultSuccess,onFailure:ajaxResultError})}function getLargePic(){if(document.getElementById("iamlargepic")){var b=document.getElementById("iamlargepic");w=b.width+200;if(document.getElementById("giftboxinsertpic")){h=b.height+450}else{h=b.height+220}window.resizeTo(w,h);if(document.getElementById("iamlargepictable")){var a=document.getElementById("iamlargepictable");a.className="loadingDone"}}}function relocateNclose(b,a,c){if(b=="artist"){if(c==1){newURL=b+"&aid="+a}else{newURL="/artistdetail/index.cfm?faid="+a}}else{if(c==1){newURL=b+"&pid="+a}else{newURL=a}}if(opener){opener.document.location=newURL;window.close()}}function confirmWSsignout(){var b=0;if(document.cookie){var a=document.cookie.split(";");for(var c=0;c<a.length;c++){if(a[c].toLowerCase().indexOf("wholesalecustomer")>=0){b=1}}}if(b&&iHaveCartItems){return confirm("You will not be able to receive wholesale pricing\non items currently in your cart.\n\nDo you wish to continue?\n\n")}else{return true}}function swapMeasurementUnits(b){targetunitshow=b;if(b=="us"){targetphrasehide="metric"}else{targetphrasehide="us"}var a=document.getElementsByTagName("p");for(var c=0;c<a.length;c++){if(a[c].className.indexOf("units"+targetphrasehide)>=0){a[c].style.display="none"}if(a[c].className.indexOf("units"+targetunitshow)>=0){a[c].style.display="block"}}}function detailExtraWin(b){if(document.getElementById("windowExtra")){var a=document.getElementById("windowExtra");if(b==0){a.style.display="none"}else{ajaxFunctions.makeCall("wrapperaction=exchangetoggler","");a.style.display="block"}}}function getnewexchangerate(a){ajaxFunctions.makeCall("wrapperaction=exchangetoggler&wrapperactionsubmitted=1&myLocale="+a,"reloadMe")}function flagMe(a){}function prepFlashMovie(){var b=document.getElementsByTagName("div");for(var a=0;a<b.length;a++){if(b[a].className=="swfholder"){useID=b[a].id;cID=b[a].id.split("-")[1];so[cID].write(useID)}}}function focusme(){focusedAlready=true}var signMeOut={ceasePing:function(){memberFunctions.init(1)},signoutLeft:function(c,a,b){c.onclick=function(){confirmedSignout=confirmWSsignout();if(confirmedSignout){messaging.showprogress(1);signMeOut.ceasePing();ajaxFunctions.makeCall("wrapperaction=leftsignout&isMN="+a+"&isWS="+b,"reloadMe")}return false}},signoutMyNovica:function(b,a){b.onclick=function(){messaging.showprogress(1);signMeOut.ceasePing();ajaxFunctions.makeCall("wrapperaction=signoutMynovica&isMN="+a,"reloadMe");return false}},signoutWholesale:function(c,b){var a="";c.onclick=function(){confirmedSignout=confirmWSsignout();if(confirmedSignout){messaging.showprogress(1);if(this.className.indexOf("preview")>=0){a="&endwholesalepreview=true"}else{a="&wholesalesignout=true"}ajaxFunctions.makeCall("wrapperaction="+this.className+"&isWS="+b+a,"reloadMe")}return false}},signoutPending:function(b,a){b.onclick=function(){messaging.showprogress(1);ajaxFunctions.makeCall("pendingsignout=true&wrapperaction=pendingsignout&isWS="+a,"reloadMe");return false}}};var getLinks={iconic:function(a){a.onclick=function(){if(this.id){var b=this.id.split("-")[0];setPermCookie("catIcon",b)}}},searchsubmit:function(a){a.onclick=function(){var b=this.href.split("?")[1];validateAndSearch(b);return false}},largerpicpopup:function(a){a.onmouseover=function(){var b="largepic"+this.id.split("-")[1].split("/")[1];document.getElementById(b).src="/images/p_etc/shadowlargepic102b.gif"};a.onmouseout=function(){var b="largepic"+this.id.split("-")[1].split("/")[1];document.getElementById(b).src="/images/p_etc/shadowlargepic102.gif"};a.onclick=function(){var d=this.id.split("-")[1].split("/")[1];var c=this.id.split("-")[1].split("/")[0];var b="/commonDSP/dsp_popup_largepic.cfm?pic=http://pics.novica.com/pictures/"+c+"/p"+d+"_2.jpg&extra=1&alink=/itemdetail/index.cfm?pid="+d;winPOPnomenu(b,"LargePicture",250,250,0);return false}},doXbox:function(a){a.onmouseover=function(){var b=this.childNodes[0];b.setAttribute("src","/images/xBoxRed.gif")};a.onmouseout=function(){var b=this.childNodes[0];b.setAttribute("src","/images/xBoxDark.gif")}},swapMeasurement:function(a){a.onclick=function(){var b=this.id.replace("unit_","");if(b=="us"||b=="metric"){var c="wtMode:"+b;swapMeasurementUnits(b);ajaxFunctions.makeCall("wrapperaction=setcookie&newCname=sitepreferences&newCval="+c,"")}return false}},currencyChanger:function(a){a.onclick=function(){return false}},changeCurrencyInline:function(a){a.onclick=function(){ajaxFunctions.makeCall("wrapperaction=exchangetoggler&wrapperactionsubmitted=1&myLocale="+this.id,"");if(document.getElementById("currencydropdownmain")){document.getElementById("currencydropdownmain").style.display="none"}if(document.getElementById("currencychangestaus")){document.getElementById("currencychangestaus").style.display="block";addDot()}return false}},markPriority:function(c){if(document.forms.wishlistdetail){var b=document.forms.wishlistdetail;var a=b.detail_priority_init.value}c.onclick=function(){if(document.forms.wishlistdetail){var e=document.forms.wishlistdetail;var d=this.id.replace("priority-","");switch(d){case"1":selectedPriorityDisplay=3;break;case"3":selectedPriorityDisplay=1;break;default:selectedPriorityDisplay=d}if(selectedPriorityDisplay!=e.detail_priority_init.value){alert(selectedPriorityDisplay)}}return false}},init:function(){var l=document.getElementsByTagName("a");var e=0;var g=0;var a;var f=0;if(unescape(document.location).toLowerCase().indexOf("/mynovica")>=0){e=1}if(unescape(document.location).toLowerCase().indexOf("/wholesale/")>=0){g=1}for(var d=0;d<l.length;d++){if(l[d].className.indexOf("iconic")>=0){this.iconic(l[d])}if(l[d].className.indexOf("searchsubmit")>=0){this.searchsubmit(l[d])}if(l[d].className.indexOf("largepicpop")>=0){this.largerpicpopup(l[d])}if(l[d].className.indexOf("wlpriority")>=0){wishStars.init(l[d])}if(l[d].className.indexOf("unitLink")>=0){this.swapMeasurement(l[d])}if(l[d].className.indexOf("storypop")>=0){longText.init(l[d])}else{if(l[d].className.indexOf("leftsignout")>=0){signMeOut.signoutLeft(l[d],e,g)}else{if(l[d].className.indexOf("mynovicasignout")>=0){signMeOut.signoutMyNovica(l[d],e)}else{if(l[d].className.indexOf("wholesalesignout")>=0){signMeOut.signoutWholesale(l[d],g)}else{if(l[d].className.indexOf("pendingsignout")>=0){signMeOut.signoutPending(l[d],g)}else{if(l[d].className.indexOf("changecurrency")>=0){this.changeCurrencyInline(l[d])}else{if(l[d].className.indexOf("signinline")>=0){signMeIn.init(l[d])}else{if(l[d].className.indexOf("shippingwindow")>=0){displayShipping.init(l[d])}else{if(l[d].className.indexOf("iconFreeShip")>=0){displayShipping.init(l[d])}else{if(l[d].className.indexOf("premiumbox")>=0){displayShipping.init(l[d])}else{if(l[d].className.indexOf("jewelrybox-")>=0){displayShipping.init(l[d])}else{if(l[d].className.indexOf("giftwrap-")>=0){displayShipping.init(l[d])}else{if(l[d].className.indexOf("about-")>=0){displayShipping.init(l[d])}else{if(l[d].className.indexOf("forgotpassword")>=0){displayShipping.init(l[d])}else{if(l[d].className.indexOf("currencychanger")>=0){displayShipping.init(l[d])}else{if(l[d].className.indexOf("signin")>=0){signInLeft.init(l[d])}else{if(l[d].className.indexOf("ecard")>=0){displayShipping.init(l[d])}else{if(l[d].className.indexOf("socialBookmarks")>=0){socialBookmarkFn.init(l[d])}else{if(l[d].className.indexOf("livechat")>=0){novicachat.init(l[d])}}}}}}}}}}}}}}}}}}}if(l[d].className.indexOf("removemyprofilepic")>=0){profilepics.init(l[d],"delete")}else{if(l[d].className.indexOf("uploadmyprofilepic")>=0){profilepics.init(l[d],"add")}}if(l[d].className.indexOf("detail2checkout")>=0){checkoutoverride(l[d])}if(l[d].className.indexOf("apNav")>=0){doInlineNav.init(l[d])}if(l[d].className.indexOf("showmore")>=0){expandFilter.init(l[d])}if(l[d].className.indexOf("showless")>=0){expandFilter.hideMore(l[d])}}var b=document.images;for(var c=0;c<b.length;c++){if(b[c].src.indexOf("iconFreeShipping")>=0){b[c].title="";b[c].className="iconFreeShipProdList";displayShipping.init(b[c])}}}};var expandFilter={hideMore:function(b){var a=expandFilter;b.onclick=function(){var c=this.parentNode;a.showMore(c,0);return false}},showMore:function(a,v){var g;var e;var A;var m=navigator.appName;var r=navigator.appVersion;var n=parseFloat(r);var p=false;if(document.all){var B=r.split(";");for(var b=0;b<B.length;b++){if(B[b].indexOf("MSIE")>=0){myVersion=parseFloat(B[b].replace("MSIE ",""));if(myVersion<7){p=true}break}}}if(v==1){thisDisplay="block";oppDisplay="none"}else{thisDisplay="none";oppDisplay="block"}if(p){A=a.getElementsByTagName("ul")}else{A=a.getElementsByTagName("div")}var c=a.getElementsByTagName("li");l_len=c.length;for(var f=0;f<c.length;f++){if(c[f].className.indexOf("overMax")>=0){c[f].style.display=thisDisplay}if(c[f].className.indexOf("initList")>=0){c[f].style.display=oppDisplay}}g=A[0];if(!p){g.className="holder";var C=a.getElementsByTagName("ul");for(var d=0;d<C.length;d++){if(C[d].className.indexOf("reg")>=0){e=C[d];break}}}if(v==1){g.style.width="164px";if(l_len<=7){g.style.position="relative";g.style.marginTop="5px"}else{if(p){g.style.height="120px";g.style.position="relative";g.style.overflowY="auto";g.style.overflowX="hidden"}else{e.className+=" scroll-pane";if(document.all){g.style.height="135px";g.style.paddingBottom="10px";e.style.height="150px"}else{g.style.height="122px";e.style.height="120px"}g.style.background="url(/images/bgExpandedNav.gif) bottom right no-repeat";if(document.all){e.style.width="164px"}else{e.style.width="181px"}jQuery(e).jScrollPane({showArrows:true,scrollbarWidth:15,scrollbarMargin:10})}}g.style.zIndex=1}else{if(document.all){g.style.position="relative"}else{g.style.width="auto"}g.style.height="auto";g.style.overflow="visible"}},ieFixPadding:function(){var c=document.getElementsByTagName("ul");for(var d=0;d<c.length;d++){if(c[d].className.indexOf("selected")>=0){var a=c[d].getElementsByTagName("li");for(var b=0;b<a.length;b++){a[b].style.paddingRight=0}break}}},hideClicked:function(b){var a=b.parentNode.parentNode;b.innerHTML="";b.parentNode.style.background="none"},manualclick:function(b){var a=expandFilter;if(document.all){a.ieFixPadding()}a.hideClicked(b);var c=b.parentNode.parentNode.parentNode;a.showMore(c,1);return false},init:function(b){var a=expandFilter;if(document.all){a.ieFixPadding()}b.onclick=function(){a.hideClicked(this);var c=this.parentNode.parentNode.parentNode;a.showMore(c,1);return false}}};function showChoices(a){}function showassociateditems(b,a){if(a==0){if(document.getElementById("loadingmsg")){document.getElementById("loadingmsg").style.display="block"}b.style.filter="alpha(opacity:40)";b.style.KHTMLOpacity="0.40";b.style.MozOpacity="0.40";b.style.opacity="0.40"}else{if(document.getElementById("loadingmsg")){document.getElementById("loadingmsg").style.display="none"}b.style.filter="alpha(opacity:100)";b.style.KHTMLOpacity="1";b.style.MozOpacity="1";b.style.opacity="1"}}var doInlineNav={hovering:function(a){alert(a.id);toolTipBubble.init(a.id.replace("apN","n"))},init:function(b){var a=doInlineNav;b.onclick=function(){if(document.getElementById("cntrAssociatedProductsInner")){showassociateditems(document.getElementById("cntrAssociatedProductsInner"),0)}var e=this.href+"&jsview=1";var d="";var c=new Ajax.Request(e,{asynchronous:true,method:"get",parameters:d,onComplete:ajaxResultSuccess,onFailure:ajaxResultError});return false}}};function checkoutoverride(a){if(typeof _proxy_jslib_THIS_HOST!="undefined"){a.onclick=function(){if(a.sesh2){a.href=a.href+"?"+a.sesh2;a.target="_top"}}}}var profilepics={checkackbox:function(d){var e=false;if(d.displayphotodisclaimer){if(d.displayphotodisclaimer.checked){e=true}}if(e){if(document.getElementById("uploadForm")&&document.getElementById("uploadProgress")){document.getElementById("uploadForm").style.display="none";document.getElementById("uploadProgress").style.display="block"}if(document.forms.profilebasic){var b=document.forms.uploadmypic;var f=document.forms.profilebasic;for(var c=0;c<f.elements.length;c++){formElem=f.elements[c];formElemName=formElem.name;formElemValue=formElem.value;if(formElem.type=="hidden"||formElem.type=="text"||formElem.type=="textarea"){if(!document.forms.uploadmypic[formElemName]&&formElemValue.length){var a=document.createElement("input");a.type="hidden";a.name=formElemName;a.value=formElemValue;b.appendChild(a)}}else{if(formElem.type=="checkbox"){if(formElem.checked){if(!document.forms.uploadmypic[formElemName]&&formElemValue.length){var a=document.createElement("input");a.type="hidden";a.name=formElemName;a.value=formElemValue;b.appendChild(a)}}}}}}}else{if(document.getElementById("uploaderror")){document.getElementById("uploaderror").innerHTML="Please make sure to check the box to indicate you agree to the Terms of Use.";document.getElementById("uploaderror").style.display="block"}}return e},deletepic:function(b){var a=profilepics;b.onclick=function(){messaging.showprogress(1);ajaxFunctions.makeCall("wrapperaction=removeprofilepic&profilepicid="+a.profileid,"");return false}},addpic:function(d){var b=profilepics;var a="/mynovica/uploadprofilepic.cfm?profileid="+b.profileid;var c="Upload a new photo";d.onclick=function(){displayShipping.preproxy(a,c,275);return false}},init:function(c,b){var a=profilepics;if(document.getElementById("myprofilepic")){a.profileid=document.getElementById("myprofilepic").className.split(" ")[1].replace("p","")}if(a.profileid.length){if(b=="delete"){a.deletepic(c)}else{if(b=="add"){a.addpic(c)}}}}};var novicachat={toggleIcon:function(a){if(a==1){newstate="block"}else{newstate="none"}if(document.getElementById("cntrChatWin")){document.getElementById("cntrChatWin").style.display=newstate}},openchatwindow:function(b){var a="/customerservice/chat.cfm?agentcount="+b;window.open(a,"two","width=455,height=310,toolbar=no,menubar=no,location=no,status=no")},init:function(b){var a=novicachat;if(typeof _proxy_jslib_THIS_HOST=="undefined"){if(typeof iHaveCartItems=="undefined"){iHaveCartItems=0}if(iHaveCartItems==1){if(typeof enable_novica_livechat=="undefined"){a.toggleIcon(0)}else{if(enable_novica_livechat==1){if(typeof agentCount=="undefined"){agentCount=0}b.onclick=function(){a.openchatwindow(agentCount);return false};a.toggleIcon(1)}else{a.toggleIcon(0)}}}else{a.toggleIcon(0)}}}};var socialBookmarkFn={browsermode:function(l,b){var d=navigator.userAgent.toLowerCase();var a=(d.indexOf("konqueror")!=-1);var c=(d.indexOf("webkit")!=-1);var f=(d.indexOf("mac")!=-1);var e=f?"Command/Cmd":"CTRL";var g="";if(window.external&&(!document.createTextNode||(typeof(window.external.AddFavorite)=="unknown"))){window.external.AddFavorite(b,l)}else{if(a){g="You need to press CTRL + B to bookmark our site.";alert(g)}else{if(window.home||c||window.opera){g="You need to press "+e+" + D to bookmark our site.";alert(g)}else{if(!window.print||f){g="You need to press Command/Cmd + D to bookmark our site.";alert(g)}else{g="In order to bookmark this site you need to do so manually through your browser.";alert(g)}}}}},sendAway:function(b){var a=b.className.replace("socialBookmarks bookmark","win");window.open(b.href,a,"location=yes,toolbar=yes,resizable=1,scrollbars=1,width=700,height=400")},init:function(b){var a=socialBookmarkFn;a.docUrl=window.location.href;a.docTitle=document.title;if(b.className.indexOf("bookmarkBrowser")>=0){b.onclick=function(){a.browsermode(a.docTitle,a.docUrl);return false}}else{b.onclick=function(){a.sendAway(this);return false}}}};var getDateString={init:function(){var a=new Date();return"&rt="+a.getTime()}};function reloadProductPrices(){justreload(0)}var signInLeft={getfmready:function(){var b=signInLeft;var a;var d="";var c="/mynovica/index.cfm";if(document.forms.mnLogin){a=document.forms.mnLogin;d="mynovica"}else{if(document.forms.wholesalelogin){a=document.forms.wholesalelogin;c="/wholesale/signin.cfm";d="wholesale"}}if(d!=""){a.onsubmit=function(){var l=false;try{if(d=="mynovica"){if(a.loginmode.value=="return"){var m=formData2QueryString(a)+"&jsview=1";l=true}else{l=false;a.jsview.value=""}}else{if(d=="wholesale"){var m=formData2QueryString(a)+"&jsview=1";l=true}}}catch(g){l=false}if(l){var f=c+"?"+m+"&"+getDateString.init();b.sendproxy(f);return false}}}},sendproxy:function(b){var a=signInLeft;messaging.hide();messaging.showprogress(1);a.send(b)},send:function(b){data="";var a=signInLeft;b+="&"+getDateString.init();var c=new Ajax.Request(b,{asynchronous:true,method:"get",parameters:data,onComplete:a.showsignin,onFailure:ajaxResultError})},swapLogo:function(){var a=new Ajax.Request("/CFC/wrapperCommon.cfm?wrapperaction=swaplogo",{asynchronous:true,method:"get",parameters:"",onComplete:ajaxResultSuccess,onFailure:ajaxResultError})},showsignin:function(jsonData){var self=signInLeft;var jsonObj=eval("("+jsonData.responseText+")");if(jsonObj.target&&document.getElementById(jsonObj.target)){var hideProgress=true;document.getElementById(jsonObj.target).innerHTML=jsonObj.content;if((document.getElementById("productlistWrapper")||document.getElementById("wrapperCart"))&&self.signinmode=="wholesale"){reloadProductPrices();hideProgress=false}if(self.signinmode=="wholesale"){self.swapLogo()}if(hideProgress){messaging.showprogress(0)}getLinks.init()}else{var self=signInLeft;var newpos="";var usewidth=350;messaging.showprogress(0);messaging.showmsg(jsonObj.content,self.useTitle,newpos,usewidth);getLinks.init();self.getfmready()}memberFunctions.init()},init:function(b){var a=signInLeft;b.onclick=function(){a.useTitle="Please sign in below";usethis=this.href.toLowerCase();if(typeof _proxy_jslib_THIS_HOST=="undefined"){usethis=usethis.replace("http://www.novica.com","");usethis=usethis.replace("https://secure.novica.com","");usethis=usethis.replace("//","/")}a.signinmode="";if(usethis.indexOf("/mynovica/")>=0){a.signinmode="mynovica"}else{if(usethis.indexOf("/wholesale/")>=0){a.signinmode="wholesale"}}var e=false;if(a.signinmode=="mynovica"){if(window.location.href.indexOf("/mynovica/")<0){a.submiturl=usethis+"?";messaging.hide();messaging.showprogress(1);var c=a.submiturl+"action=login&jsview=1&"+getDateString.init();var d="";e=true}}else{if(a.signinmode=="wholesale"){if(window.location.href.indexOf("/wholesale/")<0){a.submiturl=usethis+"?";messaging.hide();messaging.showprogress(1);var c=a.submiturl+"action=login&jsview=1&"+getDateString.init();var d="";e=true}}}if(e){a.send(c);return false}}}};var ecardfunctions={closewindow:function(){messaging.hide()},checkAllEcardFields:function(b,c){var a=ecardfunctions;if(b.sendername.value==""||b.senderemail.value==""||b.recipientname.value==""||b.recipientemail.value==""||b.message.value==""){return false}else{if(c!=1){b.action.value="send"}return true}},displayerror:function(a){if(document.getElementById("ecarderror")){document.getElementById("ecarderror").innerHTML=a;document.getElementById("ecarderror").style.display="block"}else{alert(a)}},sendecard:function(a){var c=formData2QueryString(a)+"&jsview=1";var b="/ecard/ecard.cfm?"+c;displayShipping.preproxy(b,"",500,"","noframe")},sendPreview:function(c,d){var a=ecardfunctions;var b=a.checkAllEcardFields(c,1);if(b){if(d==1){c.action.value="edit"}else{c.action.value="preview"}a.sendecard(c)}else{a.displayerror("Please complete all fields and try again.")}},init:function(){var a=ecardfunctions;if(document.forms.ecard){var b=document.forms.ecard;b.onsubmit=function(){var c=a.checkAllEcardFields(b);if(c){a.sendecard(b)}else{a.displayerror("Please complete all fields and try again.")}return false}}}};var displayShipping={showrates:function(jsonData){var jsonObj=eval("("+jsonData.responseText+")");var self=displayShipping;messaging.showprogress(0);usewidth="";if(self.overrideposition){newpos=self.overrideposition}else{newpos=""}if(self.fixedwidth){usewidth=self.fixedwidth}if(self.frameclass){useaswindowclass=self.frameclass}else{useaswindowclass=""}messaging.showmsg(jsonObj.content,self.useTitle,newpos,usewidth,useaswindowclass);if(self.useTitle.toLowerCase().indexOf("journal signup")>=0&&jsonObj.content.toLowerCase().indexOf("updates in your inbox")>=0&&document.getElementById("rightNavJournalSignup")){new Effect.Fade(document.getElementById("rightNavJournalSignup"),{duration:1})}if(document.forms.ecard){ecardfunctions.init()}},send:function(b){data="";var a=displayShipping;b+="&"+getDateString.init();var c=new Ajax.Request(b,{asynchronous:true,method:"get",parameters:data,onComplete:a.showrates,onFailure:ajaxResultError})},sendproxy:function(b,c,d){var a=displayShipping;messaging.hide();messaging.showprogress(1);if(c){a.useTitle=c}if(d){a.fixedwidth=d}a.send(b)},preproxy:function(e,d,b,f,a){var c=displayShipping;if(f){c.overrideposition=f}if(a){c.frameclass=a}c.fixedwidth=b;displayShipping.sendproxy(e,d,b)},showecard:function(b){var a=displayShipping;messaging.showprogress(1);shipurl="/ecard/ecardview.cfm?action=viewonpage&ecardid="+b+"&jsview=1";data="";a.useTitle="NOVICA eCard";a.send(shipurl);a.frameclass="noframe"},init:function(b){var a=displayShipping;b.onclick=function(){a.frameclass="";messaging.hide();if(this.title){messaging.showprogress(1);shipurl="/commonDSP/dsp_calculateShipping.cfm";shipstr=this.title.replace("shipping-","").split("-");shipaction=shipstr[0];if(shipaction=="product"){shippid=shipstr[1];shipurl+="?action="+shipaction+"&productID="+shippid}else{if(shipaction=="cart"){shipurl+="?action=cart"}}shipurl+="&jsview=1";data="";a.useTitle="Shipping Calculator";a.send(shipurl)}else{if(this.className.indexOf("ecard")>=0){messaging.showprogress(1);var f=this.id.replace("ecard-","");shipurl="/ecard/ecard.cfm?pid="+f+"&jsview=1";data="";a.useTitle="NOVICA eCard";a.send(shipurl);a.frameclass="noframe"}else{if(this.className.indexOf("iconFreeShip")>=0){messaging.showprogress(1);shipurl="/ap/freeshipping_detail.cfm?jsview=1";data="";a.useTitle="Free Shipping";a.send(shipurl)}else{if(this.className.indexOf("premiumbox")>=0){messaging.showprogress(1);shipurl="/commonDSP/premiumgiftbox.cfm?jsview=1";data="";a.useTitle="Museum Gift Box";a.send(shipurl)}else{if(this.className.indexOf("jewelrybox-")>=0){messaging.showprogress(1);useR=this.href.split("?")[1];shipurl="/commonDSP/jewelrybox.cfm?"+useR;shipurl+="&jsview=1";data="";a.useTitle="Free Jewelry Box";a.send(shipurl)}else{if(this.className.indexOf("giftwrap-")>=0){messaging.showprogress(1);useR=this.className.split("-")[1];shipurl="/commonDSP/giftwrap.cfm?rid="+useR;shipurl+="&jsview=1";data="";a.useTitle="Free Gift Wrap";a.send(shipurl)}else{if(this.className.indexOf("currencychanger")>=0){messaging.showprogress(1);shipurl="/commonDSP/myExchangeRate.cfm?jsview=1";data="";a.useTitle="Update Currency";a.send(shipurl)}else{if(this.className.indexOf("about-")>=0){messaging.showprogress(1);yy=this.className.split(" ");for(var c=0;c<yy.length;c++){if(yy[c].indexOf("about-")>=0){useAction=yy[c].split("-")[1];shipurl="/commonDSP/dsp_about.cfm?action="+useAction;shipurl+="&jsview=1";data="";a.fixedwidth=350;if(useAction.indexOf("testimonial")>=0){a.useTitle="How do I submit a testimonial for an artist?"}else{a.useTitle="Larger Picture"}a.send(shipurl)}}}else{if(this.className.indexOf("forgotpassword")>=0){messaging.showprogress(1);shipurl="/commonDSP/forgotpassword.cfm?jsview=1";var e=document.getElementsByTagName("input");for(var d=0;d<e.length;d++){if(e[d].name=="loginemail"){if(e[d].value){shipurl+="&email="+e[d].value;break}}}data="";a.useTitle="Forgot Password?";a.fixedwidth=350;a.send(shipurl)}}}}}}}}}return false}}};var fadeInOut={setIt:function(b,d){var a;if(d>0){a=d/100}else{a=0}b.style.filter="alpha(opacity:"+d+")";b.style.KHTMLOpacity=a;b.style.MozOpacity=a;b.style.opacity=a},setOpacity:function(){var a=fadeInOut;var b=true;a.currentval=a.currentval+a.diff;a.setIt(a.target,a.currentval);a.target.style.display="block";if(a.diff>0){if(a.currentval>=a.finalval){b=false}}else{if(a.currentval<=a.finalval){b=false}}if(b){a.fading=setTimeout(function(){a.setOpacity()},2)}else{clearTimeout(a.fading);if(a.diff<=0){a.target.style.display="none"}}},resetZ:function(){var b=document.getElementsByTagName("a");for(var a=0;a<b.length;a++){b[a].style.zIndex="1"}},init:function(c,b){var a=fadeInOut;a.target=c;if(b==1){a.diff=10;a.currentval=0;a.finalval=100}else{a.diff=-10;a.currentval=100;a.finalval=0}if(document.all){a.resetZ()}a.setOpacity()}};var longText={hideOthersFirst:function(e){var b=longText;var f=document.getElementsByTagName("div");for(var d=0;d<f.length;d++){if(f[d].id.indexOf("cntrFadePop")>=0){var a=f[d].getElementsByTagName("div");for(var c=0;c<a.length;c++){if(a[c].id.indexOf("-full")>=0&&a[c].id!=e){a[c].style.display="none"}}}}},swaptext:function(f,a){var e,d;var c=longText;d=f.title;if(f.className.indexOf("-product")>=0){e="productdetail-longdescription-full"}else{if(f.className.indexOf("-artist")>=0){e="productdetail-artist-story-full"}}mynewX=a[0]-20;mynewY=a[1]-20;if(e){if(document.getElementById(e)){var b=document.getElementById(e);myshowtext=b.innerHTML;messaging.showmsg(myshowtext,"hello",mynewY+"-*-*-"+mynewX,471,"longstorypop")}}},init:function(c){var a=longText;var b=document.getElementsByTagName("div");a.fademode=false;if(document.getElementById("cntrFadePop")||document.getElementById("cntrFadePop2")){a.fademode=true}c.onclick=function(){var d=Position.cumulativeOffset(c.parentNode.parentNode.parentNode);messaging.hide();a.swaptext(this,d);return false}}};var locator={getit:function(){var b,a;if(typeof(window.innerWidth)=="number"){b=window.innerWidth;a=window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){b=document.documentElement.clientWidth;a=document.documentElement.clientHeight}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){b=document.body.clientWidth;a=document.body.clientHeight}}}return[b,a]}};var signMeIn={locate:function(c){var a=0,d=0;var b=0;if(c==null){c=window.event}if(c.pageX||c.pageY){a=c.pageX;d=c.pageY}else{if(c.clientX||c.clientY){if(document.documentElement.scrollTop){a=c.clientX+document.documentElement.scrollLeft;d=c.clientY+document.documentElement.scrollTop}else{a=c.clientX+document.body.scrollLeft;d=c.clientY+document.body.scrollTop}}}if(typeof(window.innerWidth)=="number"){b=window.innerWidth}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){b=document.documentElement.clientWidth}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){b=document.body.clientWidth}}}document.getElementById("cntrSignIn").style.left=(b-350)/2+"px";document.getElementById("cntrSignIn").style.top=d-190+"px"},signin:function(b){var a=signMeIn;a.locate(b);document.getElementById("cntrSignIn").style.display="block";return false},hideme:function(a){},init:function(b){var a=signMeIn;if(!document.getElementById("cntrSignIn")){h=document.createElement("div");h.id="cntrSignIn";h.setAttribute("id","cntrSignIn");h.style.position="absolute";document.getElementsByTagName("body")[0].appendChild(h)}}};var wishStars={highlight:function(){var a=wishStars;var b=0;for(var c=3;c>=1;c--){b++;if(a.selectedPriorityDisplay>=c){document.getElementById("starpower-"+b).src="/images/star1.gif"}else{document.getElementById("starpower-"+b).src="/images/star0.gif"}}},reverseValues:function(b){var a;switch(b){case"1":a=3;break;case"3":a=1;break;default:a=b}return a},getPriority:function(c,a){var b=wishStars;if(a==1){b.selectedPriorityDisplay=b.selectedval.value;b.selectedPriority=b.reverseValues(b.selectedPriorityDisplay)}else{b.selectedPriority=c.id.replace("priority-","");b.selectedPriorityDisplay=b.reverseValues(b.selectedPriority)}},overme:function(b){var a=wishStars;a.getPriority(b);if(a.selectedPriorityDisplay!=a.selectedval.value){a.highlight()}},ousted:function(c){var a=wishStars;var b=0;for(var d=3;d>=1;d--){b++;if(a.selectedval.value>=d){document.getElementById("starpower-"+b).src="/images/star1.gif"}else{document.getElementById("starpower-"+b).src="/images/star0.gif"}}},clicked:function(b){var a=wishStars;a.getPriority(b);a.selectedval.value=a.selectedPriorityDisplay;a.highlight();a.f.detail_priority.value=a.selectedval.value;return false},init:function(b){var a=wishStars;if(document.forms.wishlistdetail){wishlistdetailupdate.init();a.f=document.forms.wishlistdetail;a.selectedval=a.f.detail_priority_init;b.onmouseover=function(){a.overme(this)};b.onmouseout=function(){a.ousted(this)};b.onclick=function(){a.clicked(this)}}}};var wishlistdetailupdate={showprogress:function(){var b=document.getElementsByTagName("a");for(var c=0;c<b.length;c++){if(b[c].className.indexOf("iconWishlist")>=0){b[c].innerHTML=b[c].innerHTML+'<span class="addingDot">.</span>';addDot()}}},init:function(){var a=wishlistdetailupdate;a.form=document.forms.wishlistdetail;a.form.onsubmit=function(){a.showprogress()}}};var inlineProductList={toggleBG:function(e){var c=document.getElementsByTagName("div");var a=inlineProductList;for(var b=0;b<c.length;b++){if(c[b].id.toLowerCase().indexOf("navigationpagination")>=0){if(!a.containerdiv){a.containerdiv=c[b].parentNode}if(e){addMyClass.init(c[b],e)}else{addMyClass.init(c[b],"navigationPagination")}}}},dimContainerDiv:function(){var a=inlineProductList;if(a.containerdiv.filters&&a.containerdiv.filters[0]){if(typeof a.containerdiv.filters[0].opacity=="number"){a.containerdiv.filters[0].opacity=a.opacitysetting*100}else{a.containerdiv.style.filter="alpha(opacity="+a.opacitysetting*100+")"}}else{if(typeof a.containerdiv.style.MozOpacity!="undefined"&&a.opacitystring!=""){a.containerdiv.style.MozOpacity=a.opacitysetting}else{a.opacitysetting=1}}},prep:function(d){var e=d;var b=e.getElementsByTagName("a");var a=inlineProductList;if(!a.containerdiv){a.opacitysetting=0.5;a.containerdiv=d.parentNode}for(var c=0;c<b.length;c++){if(b[c].className!="selectedPg"){b[c].onclick=function(){myUrl=this.href;var g=myUrl.split("/");var p="";for(var f=0;f<g.length;f++){if(g[f].indexOf(".cfm")>=0||g[f].indexOf(".htm")>=0){var n=g[f].split("?");if(n.length>=2){p=n[1];break}}else{if(g[f].indexOf("stz")>=0){p="pgnav="+g[f];break}}}if(p.length){document.location.replace("#"+p)}if(myUrl.indexOf("/artistdetail/")>=0||typeof doinlinepagination!="undefined"){if(myUrl.indexOf("nn/")>=0){myUrl=myUrl+"filter.htm?viewnow=1"}if(myUrl.indexOf("jsview")<0){myUrl=myUrl+"&jsview=1"}var l=new Date();myUrl=myUrl;data="";a.toggleBG("pleasewait");var m=new Ajax.Request(myUrl,{asynchronous:true,method:"get",parameters:data,onComplete:ajaxResultSuccess,onFailure:ajaxResultError});return false}}}}},init:function(){if(!productlistajax){return}var c=false;var b=inlineProductList;var f=document.getElementsByTagName("div");var a=unescape(document.location).toLowerCase();b.toggleBG();for(var e=0;e<f.length;e++){if(f[e].className=="navigationPagination"){b.prep(f[e])}}}};function domticker(e,b,d,c,a){this.donealready=0;this.content=e;this.tickerid=b;this.delay=c;this.mouseoverBol=0;this.pointer=1;this.opacitystring=(typeof a!="undefined")?"width: 100%; filter:progid:DXImageTransform.Microsoft.alpha(opacity=100); -moz-opacity: 1":"";if(this.opacitystring!=""){this.delay+=500}this.opacitysetting=0.2;document.getElementById(b).innerHTML='<div style="'+this.opacitystring+'">'+e[0]+"</div>";if(d){document.getElementById(b).className=d}if(c>0){var f=this;setTimeout(function(){f.initialize()},c)}}domticker.prototype.initialize=function(){var a=this;this.contentdiv=document.getElementById(this.tickerid).firstChild;document.getElementById(this.tickerid).onmouseover=function(){a.mouseoverBol=1};document.getElementById(this.tickerid).onmouseout=function(){a.mouseoverBol=0};this.rotatemsg()};domticker.prototype.rotatemsg=function(){this.donealready++;if((this.tickerid.indexOf("addtocart")>=0||this.tickerid=="detailInCart")&&this.donealready>1){if(this.contentdiv.filters&&this.contentdiv.filters[0]){if(typeof this.contentdiv.filters[0].opacity=="number"){this.contentdiv.filters[0].opacity=100}else{this.contentdiv.style.filter="alpha(opacity=100)"}}else{if(typeof this.contentdiv.style.MozOpacity!="undefined"){this.contentdiv.style.MozOpacity=1}}this.clearTimeout()}var a=this;if(this.mouseoverBol==1){setTimeout(function(){a.rotatemsg()},100)}else{this.fadetransition("reset");this.contentdiv.innerHTML=this.content[this.pointer];this.fadetimer1=setInterval(function(){a.fadetransition("up","fadetimer1")},100);this.pointer=(this.pointer<this.content.length-1)?this.pointer+1:0;setTimeout(function(){a.rotatemsg()},this.delay)}};domticker.prototype.fadetransition=function(a,c){var b=this.contentdiv;if(a=="reset"){this.opacitysetting=0.2}if(b.filters&&b.filters[0]){if(typeof b.filters[0].opacity=="number"){b.filters[0].opacity=this.opacitysetting*100}else{b.style.filter="alpha(opacity="+this.opacitysetting*100+")"}}else{if(typeof b.style.MozOpacity!="undefined"&&this.opacitystring!=""){b.style.MozOpacity=this.opacitysetting}else{this.opacitysetting=1}}if(a=="up"){this.opacitysetting+=0.2}if(a=="up"&&this.opacitysetting>1){clearInterval(this[c])}};function getTicker(){var s,t,to;var d=document.getElementsByTagName("div");for(var i=0;i<d.length;i++){if(d[i].className.indexOf("tickercomponent-")>=0){s=d[i].className.split("-");try{t=eval(s[1])}catch(e){t=""}if(typeof(t)=="object"){if(t.length==1){to=0}else{if(s.length==3){to=Math.round(s[2])}else{to=3000}}new domticker(t,d[i].id,"",to,"fadeit")}}}if(document.getElementById("phoneDisplayHome")){ajaxFunctions.makeCall("wrapperaction=tickerHome")}}function showandtell(e){var a="account,wishlist,artists,regions";var d=a.split(",");var c=e.split("?")[1].split("=")[1];for(var b=0;b<d.length;b++){collapsediv=document.getElementById("intro"+d[b]+"exp");showdiv=document.getElementById("intro"+d[b]);if(d[b]==c){collapsediv.style.display="block";showdiv.style.display="none"}else{collapsediv.style.display="none";showdiv.style.display="block"}}}function swapExpand(){var b=document.getElementsByTagName("a");for(var a=0;a<b.length;a++){if(b[a].className=="expand"){b[a].onclick=function(){showandtell(this.href);return false}}}}var populateAttribQty={populateBox:function(jsonData){var self=populateAttribQty;var jsonObj=eval("("+jsonData.responseText+")");var ableAddCart=false;if(jsonObj.uptoqty){if(document.getElementById("qty_0")){var t=document.getElementById("qty_0");if(document.all){t.length=10;t.length=0}else{t.innerHTML=""}var finalSelect="";for(var j=1;j<=parseInt(jsonObj.uptoqty);j++){if(document.all){o=document.createElement("option");o.setAttribute("value",j);o.appendChild(document.createTextNode(j));t.appendChild(o)}else{t.innerHTML+='<option value="'+j+'">'+j+"</option>"}}ableAddCart=true}}var isbackorderitem=0;if(jsonObj.itemisbackorder){isbackorderitem=jsonObj.itemisbackorder}if(document.getElementById("backordercartbtn")){var t=document.getElementById("backordercartbtn");if(isbackorderitem==1){document.getElementById("backorderitemname").innerHTML=self.selectedoptionname;t.style.display="block"}else{t.style.display="none"}}if(self.btnAdd){if(isbackorderitem==1){self.btnAdd.value=self.btnAdd.value.replace("ADD TO CART","Place Backorder")}else{self.btnAdd.value=self.btnAdd.value.replace("Place Backorder","ADD TO CART")}}if(document.forms.addtocart){var f=document.forms.addtocart;if(f.isBackOrder){f.isBackOrder.value=isbackorderitem}}if(ableAddCart){self.post()}else{self.prep()}},populateBoxDefault:function(){var a=populateAttribQty},post:function(){messaging.hide();var a=populateAttribQty;if(a.btnAdd){a.btnAdd.className="btnBlue";a.btnAdd.disabled=false}if(a.divCntr){a.divCntr.style.color="#000";if(a.dropdown){a.dropdown.style.color="#000";a.divCntr.disabled=false}a.divCntr.style.display="block"}},prep:function(){var a=populateAttribQty;if(a.btnAdd){a.btnAdd.className="btnGrey";a.btnAdd.disabled=true}if(a.divCntr){if(a.divCntr.style.display=="block"){a.divCntr.style.color="#CCC";if(a.dropdown){a.dropdown.style.color="#CCC";a.divCntr.disabled=true}}else{a.divCntr.style.display="none"}}if(document.getElementById("backordercartbtn")){document.getElementById("backordercartbtn").style.display="none"}},getBackorderItemName:function(b){var a=populateAttribQty;if(document.getElementById("attribtype")){var d=document.getElementById("attribtype");try{a.selectedoptionname=b.options[b.selectedIndex].text.replace("- ","").replace("(Backorder","|").split("|")[0];if(a.selectedoptionname){if(d.innerHTML){a.selectedoptionname=d.innerHTML+" "+a.selectedoptionname}}else{a.selectedoptionname="This item"}}catch(c){a.selectedoptionname="This item"}}},getQty:function(d){var a=populateAttribQty;a.selectbox=d;a.attribID=d.value;a.dropdown="";a.selectedoptionname="This item";if(document.getElementById("cntrQtySelect")){a.divCntr=document.getElementById("cntrQtySelect");a.dropdown=a.divCntr.getElementsByTagName("select")[0]}else{a.divCntr=""}if(document.getElementById("addtocartbutton")){a.btnAdd=document.getElementById("addtocartbutton")}else{a.btnAdd=""}a.prep();if(d.value>0){messaging.showprogress(1);a.getBackorderItemName(d);var b=new Date();var c="/detail/getAttribQtySelectBox.cfm?attribID="+d.value+"&rt="+b.getTime();var f="";var e=new Ajax.Request(c,{asynchronous:true,method:"get",parameters:f,onComplete:populateAttribQty.populateBox,onFailure:populateAttribQty.populateBoxDefault})}}};function addtocartFn(){var a=false;if(typeof _proxy_jslib_THIS_HOST!="undefined"){a=true}var n=true;if(navigator.userAgent){var r=navigator.userAgent.toLowerCase().split(";");for(var e=0;e<r.length;e++){if(r[e].indexOf("msie ")>=0){var c=r[e].replace("msie ","");if(c<5.5){n=false}break}}}if(n){if(!a){if(document.getElementsByTagName("input")){var p=document.getElementsByTagName("input");for(var e=0;e<p.length;e++){if(p[e].className.indexOf("multiSubmit")>=0){var l=document.forms.wishlistitems;p[e].onclick=function(){var d=this.id.replace("p-","").split("-");l.pid.value=d[0];l.attribYes.value=d[1];l.attb.value=d[2];l.qaattribid.value=d[3];l.shippingOverrideType.value=d[4];l.shippingOverride.value=d[5];l.wishlist_wishlistID.value=d[6];l.action.value="add";hideTargetName="addtocart-"+d[0]+"-"+d[2];if(document.getElementById(hideTargetName)){document.getElementById(hideTargetName).style.display="none"}this.className=this.className.replace("btnBlue","btnLoading");addToCart(l);return false}}}}}if(document.getElementById("addtocartbutton")){var g=document.getElementById("addtocartbutton");var v=document.getElementsByTagName("select");enableBtnNow=true;for(var b=0;b<v.length;b++){if(v[b].className.indexOf("attribselect")>=0){enableBtnNow=false;g.className="btnGrey";var f=v[b];if(f.value){populateAttribQty.getQty(f)}f.onchange=function(){populateAttribQty.getQty(this)}}}if(enableBtnNow){g.disabled=false}if(!a){if(document.getElementById("addtocart")){var l=document.forms.addtocart;l.onsubmit=function(){oktoContinue=true;if(l.AttribYes.value==1){if(l.attb.value<0){if(document.getElementById("attribtype")){showthismessage="Please select "+document.getElementById("attribtype").innerHTML.replace(":","").toLowerCase()+" and try again."}else{showthismessage="Please select an option and try again."}messaging.showwarning(showthismessage);oktoContinue=false}}if(oktoContinue){g.className="btnLoading";g.disabled=true;addToCart(l)}return false}}}}}}var addMyClass={addstyles:function(b,c){var c=c.split(";");for(var a=0;a<c.length;a++){if(c[a].length){tempstylename=c[a].split(":")[0];tempstylevalue=c[a].split(":")[1];b.style[tempstylename]=tempstylevalue}}},add:function(b,a){Element.addClassName(b,a)},init:function(c,a){var b=addMyClass;c.className+=" "+a;if(isIE6less){if(myIEclasses[a]){b.addstyles(c,myIEclasses[a])}}}};var messaging={toggleselectbar:function(c){var a;if(isIE6less){if(c){a="block"}else{a="none"}var d=document.getElementsByTagName("select");for(var b=0;b<d.length;b++){if(d[b].name!="ship2regiont"){d[b].style.display=a}}}},showprogress:function(c,d){var b=messaging;if(!document.getElementById("cntrMessages")){b.create()}var e=document.getElementById("cntrMessages");if(c==1){b.toggleselectbar(0);addMyClass.init(e,"temp");XYpos=locator.getit();Xpos=(XYpos[0]-174)/2;e.style.left=Xpos+"px";if(d){e.style.top="550px"}var a=new fadeInOut.init(e,1)}else{b.hide()}},showmsg:function(e,A,a,d,r,u){var B=messaging;var v=false;if(!document.getElementById("cntrMessages")){B.create()}var s=document.getElementById("cntrMessages");if(!A){A="Please review the following:"}if(r){addMyClass.init(s,r);if(r=="longstorypop"){v=false}}else{addMyClass.init(s,"msg")}if(!r){s.innerHTML="<div id='msgHead'><p class='msgClose'><a href='javascript:void(0)' onclick='messaging.hide();'><img src='/images/iconcloseboxtext.gif' width='42' height='13' border='0' /></a></p><p>"+A+"</p></div>"}s.innerHTML=s.innerHTML+"<div id='msgBody'>"+e+"</div>";var n=false;var g=500;if(d){g=d;s.style.width=g+"px"}if(u){try{Element.clonePosition(s,u)}catch(f){Element.clonePosition(s,u)}n=true;if(r){s.className=r}if(d){g=d;s.style.width=g+"px"}s.style.height="auto"}else{if(a){var b=a.split("-");for(var l=0;l<b.length;l++){if(b[l]!="*"){switch(l){case 0:s.style.top=b[l]+"px";break;case 1:s.style.right=b[l]+"px";n=true;break;case 2:s.style.bottom=b[l]+"px";break;case 3:s.style.left=b[l]+"px";n=true;break}}}s.style.position="absolute"}}if(!n){XYpos=locator.getit();Xpos=(XYpos[0]-g)/2;s.style.left=Xpos+"px"}B.toggleselectbar(0);var c=new fadeInOut.init(s,1);if(v){extendEffects.initDrag("cntrMessages")}},showwarning:function(a,g){var d=messaging;if(!document.getElementById("cntrMessages")){d.create()}var l=document.getElementById("cntrMessages");addMyClass.init(l,"warning");l.innerHTML="<div id='msgHead'><p class='msgClose'><a href='javascript:void(0)' onclick='messaging.hide();'><img src='/images/iconcloseboxtext.gif' width='42' height='13' border='0' /></a></p><p class='iconMessageWarning'>Please review the following:</p></div><div id='msgBody'>"+a+"</div>";var f=false;if(g){var c=g.split("-");for(var e=0;e<c.length;e++){if(c[e]!="*"){switch(e){case 0:l.style.top=c[e]+"px";break;case 1:l.style.right=c[e]+"px";f=true;break;case 2:l.style.bottom=c[e]+"px";break;case 3:l.style.left=c[e]+"px";f=true;break}}}l.style.position="absolute"}if(!f){XYpos=locator.getit();Xpos=(XYpos[0]-300)/2;l.style.left=Xpos+"px"}d.toggleselectbar(0);var b=new fadeInOut.init(l,1)},showerror:function(a){var b=messaging;if(!document.getElementById("cntrMessages")){b.create()}var c=document.getElementById("cntrMessages");addMyClass.init(c,"error");c.innerHTML=a;XYpos=locator.getit();Xpos=(XYpos[0]-300)/2;c.style.left=Xpos+"px";b.toggleselectbar(0);c.style.display="block"},hide:function(){var a=messaging;if(document.getElementById("cntrMessages")){var b=document.getElementById("cntrBody");b.removeChild(document.getElementById("cntrMessages"));a.toggleselectbar(1)}},create:function(c){if(document.getElementById("cntrCheckout")){var a=document.getElementById("cntrCheckout")}else{var a=document.getElementById("cntrBody")}var c=document.createElement("div");c.id="cntrMessages";c.setAttribute("id","cntrMessages");c.style.display="none";a.appendChild(c);if(document.getElementById("productdetail-attriberror")){document.getElementById("productdetail-attriberror").style.display="none"}}};var cssAdjusted=false;function adjustCSS(){if(document.getElementById("wrapMenuItems")&&!cssAdjusted){cssAdjusted=true;var c=document.getElementById("wrapMenuItems");var b=c.getElementsByTagName("li");for(var a=0;a<b.length;a++){b[a].style.paddingTop="4px"}}cssAdjusted=true}function eCardMe(){if(typeof eCardID!="undefined"){if(eCardID.length){window.open("/ecard/ecard.cfm?ecardID="+eCardID+"&action=popup","eCard","width=500,height=480,toolbar=no,resizable=no,scrollbars=no,left=10,top=10")}}}function doWSswap(f){var c=document.getElementById("signUpState");var b=document.getElementById("signUpProvince");if(f=="US"){c.style.display="block";b.style.display="none"}else{c.style.display="none";b.style.display="block";if(typeof EUcountries!="undefined"){var d=EUcountries.split(",");var e=false;for(var a=0;a<d.length;a++){if(d[a]==f){e=true}}if(e){document.getElementById("vat").style.display="block";document.getElementById("idnum").style.display="none"}else{document.getElementById("vat").style.display="none";document.getElementById("idnum").style.display="block"}}}}function doWSsignup(){if(document.getElementById("wsSignUpWrapper")){var a=document.getElementById("wsSignUpWrapper");if(document.forms.signup){var b=document.forms.signup;if(b.signupcountry){if(document.getElementById("signUpState")&&document.getElementById("signUpProvince")){doWSswap(b.signupcountry.value);b.signupcountry.onchange=function(){doWSswap(this.value)}}}}}}var alerted=0;var toolTipBubble={Locate:function(b){var a=0,c=0;if(b==null){b=window.event}if(b.pageX||b.pageY){a=b.pageX;c=b.pageY}else{if(b.clientX||b.clientY){if(document.documentElement.scrollTop){a=b.clientX+document.documentElement.scrollLeft;c=b.clientY+document.documentElement.scrollTop}else{a=b.clientX+document.body.scrollLeft;c=b.clientY+document.body.scrollTop}}}document.getElementById("btc").style.top=(c+10)+"px";document.getElementById("btc").style.left=(a-70)+"px"},showTooltip:function(b){var a=toolTipBubble;document.getElementById("btc").appendChild(this.tooltip);document.getElementById("btc").style.zIndex="450";a.Locate(b)},hideTooltip:function(a){var b=document.getElementById("btc");if(b.childNodes.length>0){b.removeChild(b.firstChild)}},setOpacity:function(a){a.style.filter="alpha(opacity:95)";a.style.KHTMLOpacity="0.95";a.style.MozOpacity="0.95";a.style.opacity="0.95";a.style.zIndex="400"},CreateEl:function(b,d){var a=document.createElement(b);a.className=d;a.style.display="block";return(a)},Prepare:function(f){var g,d,a,e,c,m;d=f.getAttribute("title");if(d==null||d.length==0){d="link:"}f.removeAttribute("title");if(f.className.indexOf("shipguarbox")>=0){m=f.className.replace("xBoxBubble ","").replace("shipguarbox","");g=this.CreateEl("span",m)}else{g=this.CreateEl("span","tooltip")}e=this.CreateEl("span","top");e.appendChild(document.createTextNode(d));g.appendChild(e);a=this.CreateEl("b","bottom");c=f.getAttribute("href");c="";if(c.length>28){c=c.substr(0,25)+"..."}g.appendChild(a);this.setOpacity(g);f.tooltip=g;f.onmouseover=this.showTooltip;f.onmouseout=this.hideTooltip;f.onmousemove=this.Locate},AddCss:function(){var a=this.CreateEl("link");a.setAttribute("type","text/css");a.setAttribute("rel","stylesheet");a.setAttribute("href","/css/bt.css");a.setAttribute("media","screen");document.getElementsByTagName("head")[0].appendChild(a)},init:function(e,d){var a,b,c;if(!document.getElementById||!document.getElementsByTagName){return}this.AddCss();c=document.createElement("span");c.id="btc";c.setAttribute("id","btc");c.style.position="absolute";document.getElementsByTagName("body")[0].appendChild(c);linksTemp=document.getElementsByTagName("a");if(e==null){a=document.getElementsByTagName("a")}else{if(e!=""){a=document.getElementById(e).getElementsByTagName("a")}else{a=document.getElementsByTagName("a")}}for(b=0;b<a.length;b++){if(d==null){if(a[b].className.indexOf("xBoxBubble")>=0){this.Prepare(a[b])}else{if(a[b].className.indexOf("memberOnline")>=0||a[b].className.indexOf("memberBusy")>=0||a[b].className.indexOf("memberOffline")>=0){this.Prepare(a[b])}}}else{if(a[b].className.indexOf("memberOnline")>=0||a[b].className.indexOf("memberBusy")>=0||a[b].className.indexOf("memberOffline")>=0){this.Prepare(a[b])}}}}};var myInputClass=new Object();function mnShowSignInError(a){if(document.getElementById("signinError")){document.getElementById("signinErrorItem").style.display="none";if(a){document.getElementById("signinErrorHeading").innerHTML="Please complete all required fields highlighted in red below and try again";document.getElementById("signinError").style.display="block"}else{document.getElementById("signinError").style.display="none"}}}function mnHighlightError(b,a){if(a){if(b.className.indexOf("myInputError")<0){b.className="myInputError"+b.className.replace("mnInput","")}}else{if(myInputClass[b.name].indexOf("myInputError")>=0){b.className="mnInput"+myInputClass[b.name].replace("myInputError","")}else{b.className=myInputClass[b.name]}}}function mnValidateReq(d){var a;mnShowSignInError(0);if(d.reqFields){a=d.reqFields.value}if(d.switching){if(d.switching.value){a=""}}if(a){var e=0;var c=a.split(",");for(var b=0;b<c.length;b++){var f=d[c[b]];if(!f.value.replace(/^\s+|\s+$/g,"")){e=1;mnHighlightError(d[c[b]],1)}else{mnHighlightError(d[c[b]],0)}}if(e){mnShowSignInError(1);return false}else{return true}}else{return true}}var myNOVICA={expandCollapse:function(c){var a=c.getElementsByTagName("a");for(var b=0;b<a.length;b++){if(a[b].className=="showDetail"){a[b].onclick=function(){mnSectionDetail(this.id);return false}}}},init:function(){if(document.getElementById("myNovicaSections")){this.expandCollapse(document.getElementById("myNovicaSections"))}}};function mnPrepDetail(){if(document.forms.mnLogin){var c=document.forms.mnLogin;var b=c.getElementsByTagName("input");for(var a=0;a<b.length;a++){if(b[a].className){myInputClass[b[a].name]=b[a].className}b[a].onblur=function(){if(this.className.indexOf("myInputError")>=0){if(this.value.replace(/^\s+|\s+$/g,"")){mnHighlightError(this,0)}}}}c.onsubmit=function(){return mnValidateReq(this)}}}function mnSectionDetail(e){var a=document.getElementById("myNovicaSections");var c=a.getElementsByTagName("span");var f=e+"1";var d=e+"0";for(var b=0;b<c.length;b++){if(c[b].className=="notShown"){c[b].style.display="none"}if(c[b].className=="firstShown"){c[b].style.display="block"}}document.getElementById(d).style.display="none";document.getElementById(f).style.display="block"}function checkAttribSelection(a){if(a==1){if(document.addtocart.attb){selectedVal=document.addtocart.attb.options[document.addtocart.attb.selectedIndex].value;if(selectedVal<0){alert("Please select an option and try again.");return false}}}}var initMarginTop="-150";function homeReposition(){if(document.getElementById("cntrHomeStuff")){var a=document.getElementById("cntrHomeStuff");myCurrentMargin=Math.ceil(a.style.marginTop.replace("px",""));myCurrentMargin+=5;if(myCurrentMargin<0){a.style.marginTop=myCurrentMargin+"px";setTimeout(function(){homeReposition()},5)}}}function getship2region(){tval=document.se.ship2regiont;t=tval.options[tval.selectedIndex].value.split("|");document.se.ship2ctid.value=t[0];document.se.ship2region.value=t[1];if(document.getElementById("cntrMessages")&&document.getElementById("cntrShippingCalculator")){var b=formData2QueryString(document.se);var a="/commonDSP/dsp_calculateShipping.cfm?"+b+"&jsview=1";messaging.hide();messaging.showprogress(1);displayShipping.send(a)}else{document.se.submit()}}function getProductAttribShiprate(){if(document.se){if(document.getElementById("cntrMessages")&&document.getElementById("cntrShippingCalculator")){var b=formData2QueryString(document.se);var a="/commonDSP/dsp_calculateShipping.cfm?"+b+"&jsview=1";messaging.hide();messaging.showprogress(1);displayShipping.send(a)}else{document.se.submit()}}}function DeselectOtherServices(rid,sl,sg){allservicesthisR=eval("document.se.thisregionallservices"+rid+".value");allservicesthisR=allservicesthisR.split(",");ClickedRadio=eval("document.se.shipServiceLevel"+rid);if(ClickedRadio.length){for(x=0;x<ClickedRadio.length;x++){if(ClickedRadio[x].checked){ClickedRadioVal=x}}}else{ClickedRadioVal=0}if(sg){baseDivCss="col3 padR";for(var i=1;i<=3;i++){targetdivname="radioval"+rid+"_"+i;if(document.getElementById(targetdivname)){if(sl==i){document.getElementById(targetdivname).className=baseDivCss+sg}else{document.getElementById(targetdivname).className=baseDivCss+" shipguarColor"}}}}for(zz=0;zz<allservicesthisR.length;zz++){whichRService="reg"+rid+"service"+allservicesthisR[zz];if(document.getElementById(whichRService)){if(ClickedRadioVal==zz){document.getElementById(whichRService).style.display="block"}else{document.getElementById(whichRService).style.display="none"}}}}function recalculate(r,idf,ar,sl,sg){var d=document.getElementsByTagName("input");DeselectOtherServices(r,sl,sg);allRegionsTemp=ar.split("-");totalThisPage=0;allRegions=ar.split("-");totalSaved=0;var divName,whichR,savedDiv;for(z=0;z<allRegions.length;z++){newValRegion=0;whichR=allRegions[z];thisRegion=eval("document.se.shipServiceLevel"+whichR);divName="regionTotal"+whichR;if(thisRegion.length){for(x=0;x<thisRegion.length;x++){if(thisRegion[x].checked){newValRegion=thisRegion[x].value}}}else{newValRegion=thisRegion.value}if(newValRegion.indexOf(idf)>=0){newValRegion=newValRegion.replace(idf,"")}totalThisPage=totalThisPage+newValRegion*100/100;if(whichR==r){if(newValRegion<=0){document.getElementById(divName).innerHTML="FREE"}else{document.getElementById(divName).innerHTML=idf+newValRegion}}savedDiv="yousaveamount"+whichR+"-"+sl}for(var i=0;i<d.length;i++){if(d[i].id.indexOf("yousaveamount")>=0){temp1=d[i].id.replace("yousaveamount","");tempregionid=temp1.split("-")[0];tempservicelevel=temp1.split("-")[1];tempradioname="shipServiceLevel"+tempregionid+"-"+tempservicelevel;if(document.getElementById(tempradioname)){if(document.getElementById(tempradioname).checked){totalSaved=totalSaved+parseFloat(d[i].value)}}}}if(document.getElementById("actualShownPriceTop")&&document.getElementById("actualShownPriceBottom")){if(totalThisPage<=0){document.getElementById("actualShownPriceTop").innerHTML="FREE";document.getElementById("actualShownPriceBottom").innerHTML="FREE"}else{document.getElementById("actualShownPriceTop").innerHTML=idf+totalThisPage.toFixed(2);document.getElementById("actualShownPriceBottom").innerHTML=idf+totalThisPage.toFixed(2)}if(totalSaved>0){if(document.getElementById("saved-actualShownPriceTop")){document.getElementById("saved-actualShownPriceTop").innerHTML="You save "+idf+totalSaved}if(document.getElementById("saved-actualShownPriceBottom")){document.getElementById("saved-actualShownPriceBottom").innerHTML="You save "+idf+totalSaved}}else{if(document.getElementById("saved-actualShownPriceTop")){document.getElementById("saved-actualShownPriceTop").innerHTML=""}if(document.getElementById("saved-actualShownPriceBottom")){document.getElementById("saved-actualShownPriceBottom").innerHTML=""}}}else{if(savedDiv&&divName&&whichR){if(document.getElementById(savedDiv)){document.getElementById(divName).innerHTML+='<br /><p id="yousave'+whichR+'" style="font-size:12px;color:#900;">You save '+idf+document.getElementById(savedDiv).value+"</p>"}}}}var rerouteFrm={init:function(){if(document.forms.se){alert("found!")}var a=document.forms.se;alert(a.name);a.onsubmit=function(){return false}}};var showingPreviewNow="";var homefunctions={setmapcoords:function(b){var a=document.getElementById("cntrHomeMap");myclassname="map"+b;addMyClass.init(a,myclassname);a.className="map"+b},map:function(){var a=homefunctions;var c=document.getElementById("cntrHomeMap");maplinks=c.getElementsByTagName("a");for(var b=0;b<maplinks.length;b++){if(maplinks[b].className.indexOf("homemap")>=0){maplinks[b].onmouseover=function(){a.setmapcoords(this.className.replace("homemap",""))};maplinks[b].onmouseout=function(){a.setmapcoords(0)}}}},mynovicamenu:function(){ajaxFunctions.makeCall("wrapperaction=mynovicamenu")},rightside:function(){grouporderoriginal="1,2,3,4";groupordernew="";for(i=1;i<=4;i++){temp="";groupArray=grouporderoriginal.split(",");k=groupArray.length;nowR=new Date();secR=nowR.getSeconds();whichRight=(secR%k);for(j=0;j<k;j++){if(j==whichRight){if(groupordernew==""){groupordernew=groupArray[j]}else{groupordernew=groupordernew+","+groupArray[j]}}else{if(temp==""){temp=groupArray[j]}else{temp=temp+","+groupArray[j]}}}grouporderoriginal=temp}masterorder=groupordernew.split(",");returnString="";spacer="<br><img src='/images/trans.gif' width=1 height=20><br>";for(y=0;y<masterorder.length;y++){whichmain=masterorder[y];counter=y+1;getCount=rightIMG[whichmain].length-1;nowtemp=new Date();sectemp=nowtemp.getSeconds();ranTemp=(sectemp%getCount)+1;itemcounttemp=masterorder[y].length;useThisImage=rightIMG[whichmain][ranTemp];returnString=returnString+useThisImage}return returnString},newcustomerincentive:function(){ajaxFunctions.makeCall("wrapperaction=homenewcustomerincentive")}};var prodlistFn={makePreview:function(){var a=prodlistFn;if(!document.getElementById("quickpreview")){q=document.createElement("span");q.id="quickpreview";q.setAttribute("id","quickpreview");q.style.position="absolute";q.style.display="none";document.getElementsByTagName("body")[0].appendChild(q)}},startPrep:function(e){var m=prodlistFn;if(!m.showing){parent=Position.offsetParent(e);delta=Position.page(parent);if(parent==document.body){delta[0]-=document.body.offsetLeft;delta[1]-=document.body.offsetTop}var c=Position.page(e);newX=(c[0]-5);newY=(c[1]-delta[1]+50);var d=e.childNodes[0].href;var a=e.childNodes[0].childNodes[0].src;var g=a.replace("_4.jpg","_1.jpg");var b=document.getElementById("quickpreview");var l=document.createElement("a");l.href=d;l.setAttribute("href",d);var f=document.createElement("img");f.src=g;f.style.width="200px";f.style.height="200px";f.setAttribute("src",g);f.className="pic100bordered";l.appendChild(f);b.style.top=newY+"px";b.style.left=newX+"px";b.appendChild(l);b.style.display="block";b.style.zIndex="400";m.showing=true;m.registerOut()}},registerOut:function(){var a=prodlistFn;if(document.getElementById("quickpreview")){var b=document.getElementById("quickpreview").firstChild;b.onmouseout=a.endPreview}},endPreview:function(){var a=prodlistFn;if(document.getElementById("quickpreview")){var b=document.getElementById("quickpreview");if(b.childNodes.length>0){b.removeChild(b.firstChild);b.style.display="none"}a.showing=false}},init:function(){var b=prodlistFn;b.makePreview();b.showing=false;if(document.getElementById("productlistmain")){var d=document.getElementById("productlistmain");var a=d.getElementsByTagName("p");for(var c=0;c<a.length;c++){if(a[c].className.indexOf("pListPic")>=0){a[c].onmouseover=function(){b.startPrep(this)};a[c].onmouseout=function(){b.endPreview}}}}}};var getNovicaUrl={init:function(){}};var logoHighlited=false;var isIE6less=false;var extendEffects={initDrag:function(a){Position.includeScrollOffsets=true;new Draggable(a,{ghosting:true})}};function imSpecial(c){if(navigator.userAgent.indexOf("MSIE")){if(parseFloat(navigator.userAgent.substring(navigator.userAgent.indexOf("MSIE")+4,navigator.userAgent.indexOf("MSIE")+8))<7){isIE6less=true}}if(document.getElementById("cntrHomeMap")){homefunctions.map()}if(document.forms.myfriends){}var b=unescape(document.location).toLowerCase();if(typeof _proxy_jslib_THIS_HOST!="undefined"){if(document.getElementById("cntrFooterSesh")){document.getElementById("cntrFooterSesh").style.display="block"}if(document.getElementById("gotosesh")){document.getElementById("gotosesh").style.display="none"}if(document.getElementById("seshbutton")){document.getElementById("seshbutton").disabled=true}if(document.getElementById("seshbutton2")){document.getElementById("seshbutton2").disabled=true}if(b.indexOf("/wholesale/")>=0){location.href="/wholesale/home.cfm"}}if(typeof _proxy_jslib_THIS_HOST=="undefined"){magicword.init()}if(typeof jsRoot=="undefined"){jsRoot="/"}if(typeof currentlyInCheckout=="undefined"){treasuresOfTheWorld.init();initContribution()}if(document.getElementById("cntrMyNovicaHome")){homefunctions.mynovicamenu()}if(document.getElementById("cntrNewCustomerIncentive")){homefunctions.newcustomerincentive()}if(typeof menuhover!="undefined"){menuhover.init()}if(typeof currentlyInCheckout!="undefined"){checkoutOnload()}if(typeof disabledInitSearch=="undefined"){disabledInitSearch=1}if(!disabledInitSearch){redosearch=0}addtocartFn();prepFlashMovie();getLargePic();getLinks.init();toolTipBubble.init();getNovicaUrl.init();preloadImg.init();if(typeof currentlyInCheckout=="undefined"){if(typeof getKeyword!="undefined"){getKeyword()}}doWSsignup();disabledInitSearch=0;swapExpand();mnPrepDetail();myNOVICA.init();if(document.getElementById("cntrFundraising")){gettb()}if(typeof displayecardid!="undefined"){displayShipping.showecard(displayecardid)}if(document.getElementById("displaysupportreason")||document.getElementById("displayaboutme")||document.getElementById("newphotodescription")){showMaxTyped.init()}if(typeof addanchor!="undefined"){location.replace("#"+addanchor)}if(document.getElementById("updatedPhoto")){myIcon=setTimeout("hideIcons()",2000)}if(typeof listmissingfields!="undefined"){markerrorfields()}if(document.getElementById("cntrFriends")){window.resizeTo(650,600)}if(document.getElementById("myFriendsSelectorWrap")){onlineFriends.init()}if(typeof currentlyInCheckout=="undefined"){memberFunctions.init();memberFunctions.keepStatusBatch()}var e=document.getElementsByTagName("input");for(var a=0;a<e.length;a++){if(e[a].className.indexOf("autosuggestit")>=0){var d=new AutoSuggest(e[a].id,options)}}}var preloadImg={loadImg:function(){var a=preloadImg;for(var b=0;b<a.imgs.length;b++){var c=new Image();c.src=a.imgs[b]}},init:function(){if(document.images){var b=preloadImg;b.imgs=new Array();if(document.getElementById("productdetail-bigpic-inline")){var a=document.getElementById("productdetail-bigpic-inline");var d=a.getElementsByTagName("a");if(d.length){var c=d[0].href.split("?")[1].replace("pic=","");if(c.indexOf(".jpg")>=0){if(c.indexOf("&")>=0){c=c.split("&")[0]}nn=b.imgs.length;b.imgs[nn]=c}}}if(b.imgs.length){b.loadImg()}}}};var windowFunctions={getDims:function(){var c,a;if(window.innerHeight&&window.scrollMaxY){c=window.innerWidth+window.scrollMaxX;a=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){c=document.body.scrollWidth;a=document.body.scrollHeight}else{c=document.body.offsetWidth;a=document.body.offsetHeight}}var b,d;if(self.innerHeight){if(document.documentElement.clientWidth){b=document.documentElement.clientWidth}else{b=self.innerWidth}d=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){b=document.documentElement.clientWidth;d=document.documentElement.clientHeight}else{if(document.body){b=document.body.clientWidth;d=document.body.clientHeight}}}if(a<d){pageHeight=d}else{pageHeight=a}if(c<b){pageWidth=c}else{pageWidth=b}return[pageWidth,pageHeight]}};function markerrorfields(){var c=listmissingfields.split(",");for(var a=0;a<c.length;a++){var b="t-"+c[a];if(document.getElementById(b)){document.getElementById(b).style.color="#900"}}}function checkphotoupload(a){var b=a;if(b.displayphotodisclaimer.checked&&b.newphoto.value){return true}else{messaging.showwarning("Please complete all required fields and try again.");return false}}function hideIcons(){var a=document.getElementById("updatedPhoto");var b=new fadeInOut.init(a,-1)}var showMaxTyped={trackTyped:function(b){var a=showMaxTyped;remainingchar=a.charLimit-b.value.length;if(b.value.length>remainingchar){b.value=b.value.substring(0,a.charLimit-1)}if(document.getElementById("typedlen-"+b.id)){targetspan=document.getElementById("typedlen-"+b.id);targetspan.innerHTML=remainingchar}},init:function(){var a=showMaxTyped;a.charLimit=1000;if(document.getElementById("displaysupportreason")){document.getElementById("displaysupportreason").onkeyup=function(){a.trackTyped(this)}}if(document.getElementById("displayaboutme")){document.getElementById("displayaboutme").onkeyup=function(){a.trackTyped(this)}}if(document.getElementById("newphotodescription")){document.getElementById("newphotodescription").onkeyup=function(){a.trackTyped(this)}}}};function lightLogo(){if(!document.getElementById("headerLogo")){return false}var a=document.getElementById("headerLogo");a.src="/images/logoTopLighted.gif";logoHighlited=true}function processforgotpassword(c){var e=formData2QueryString(c)+"&jsview=1";var a="/commonDSP/forgotpassword.cfm?"+e;var b="Forgot Password?";var d=350;displayShipping.sendproxy(a,b,d)}window.onload=imSpecial;function addandsubmit(d,c){document.updateCart.submit()}function popUp(a){sealWin=window.open(a,"win","toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=560,height=450");self.name="mainWin"}function checkAllEcardFields(a){var b=document.ecard;if(b.sendername.value==""||b.senderemail.value==""||b.recipientname.value==""||b.recipientemail.value==""||b.message.value==""){showecardError("Please complete all fields and try again");return false}else{if(a!=1){b.action.value="send"}return true}}function sendPreview(a,b){checked=checkAllEcardFields(1);if(checked){if(b==1){a.action.value="compose"}else{a.action.value="preview"}a.submit()}}function showecardError(a){messaging.showwarning(a)}function closeecardwindow(){messaging.hide()}function openExternalTrackingWin(a){window.open(a,"trackwin")}function checkdisplayname(a){messaging.showprogress(1);if(document.getElementById("displayurl")){if(document.getElementById("checkstatus")){document.getElementById("checkstatus").style.display="none"}if(document.getElementById("displayurl").value.length){var b="wrapperaction=checkdisplayname&displayurl="+document.getElementById("displayurl").value+"&profID="+a;ajaxFunctions.makeCall(b)}else{messaging.hide();messaging.showwarning("Please select a page name and try again.")}}else{messaging.hide();messaging.showwarning("There was an error. Please try again.")}}var cookieMe={read:function(d){var b=""+document.cookie;b=b.toLowerCase();d=d.toLowerCase();var c=b.indexOf(d);if(c==-1||d==""){return""}var a=b.indexOf(";",c);if(a==-1){a=b.length}return unescape(b.substring(c+d.length+1,a))}};magicwordkey="help";wordsinitialized=false;isinputfocused=false;document.wordtyped=new Array(1);document.wordtyped[0]=0;document.wordtyped[1]=0;document.wordtyped[2]=0;function handleKEvent(c){if(!wordsinitialized){magicword.charCodeList(magicwordkey)}if(!isinputfocused){var b=c.keyCode||c.charCode||c.which;var g=document.magicwords[document.magicwords.length-1].split(",");if((b==g[0]||b==g[1])&&document.getElementById("intercept")){submitformnow=1;for(var f=0;f<magicwordkey.length-1;f++){curindex=document.magicwords[magicwordkey.length-f-2].split(",");if(document.wordtyped[f]==curindex[0]||document.wordtyped[f]==curindex[1]){submitformnow++}}if(submitformnow==magicwordkey.length){seshFrm=document.getElementById("intercept");var a=cookieMe.read("cartID");if(a){if(!seshFrm.seshshopsession){var e=document.createElement("input");e.setAttribute("type","hidden");e.setAttribute("name","seshshopsession");e.setAttribute("value",a);seshFrm.appendChild(e)}}seshFrm.submit()}}for(var d=magicwordkey.length-1;d>=0;d--){if(d==0){document.wordtyped[d]=b}else{document.wordtyped[d]=document.wordtyped[d-1]}}c.cancelBubble=true}}var magicword={charCodeList:function(b){document.magicwords=new Array(1);for(var a=0;a<b.length;a++){character=b.substring(a,a+1);document.magicwords[a]=character.charCodeAt(0)+","+character.toUpperCase().charCodeAt(0)}wordsinitialized=true},createForm:function(){var r=magicword;var a=document.getElementById("cntrBody");var f=document.createElement("input");var l=false;f.setAttribute("type","hidden");f.setAttribute("name","name");f.setAttribute("value",r.username);f.setAttribute("id","intercept_name");if(location.href.indexOf("novica.com")>=0){if(location.href.indexOf("/member/")>=0){myuseUrl=location.href;l=true}else{if(location.href.indexOf("?")>=0){var e=location.href.split("?")[0];var d=location.href.split("?")[1].split("&");myuseUrl="";for(var m=0;m<d.length;m++){if(d[m].indexOf("shopSession")<0){myuseUrl=myuseUrl+"&"+d[m]}}myuseUrl=myuseUrl.replace("&","?");myuseUrl=e+myuseUrl}else{if(location.href=="http://www.novica.com/"){myuseUrl=location.href}else{if(location.href.indexOf("https")>=0){myuseUrl=location.href}else{if(location.href.indexOf(".cfm")>=0||location.href.indexOf(".htm")>=0){myuseUrl=location.href}else{var g=location.href.split("/");if(location.href.charAt(location.href.length-1)=="/"){isLastNum=g[g.length-2]}else{isLastNum=g[g.length-1]}if(isNaN(isLastNum)){var n=location.href.replace("http://","").split(".")[0].toLowerCase();if(n=="extranet"||n=="www"){myuseUrl=location.href}else{myuseUrl=location.href}}else{myuseUrl=location.href;l=true}}}}}}}else{myuseUrl=location.href}if(!myuseUrl){myuseUrl=location.href;if(mytempcookie){l=true}}var c=document.createElement("input");c.setAttribute("type","hidden");c.setAttribute("name","website");c.setAttribute("value",myuseUrl);var b=document.createElement("input");b.setAttribute("type","hidden");b.setAttribute("name","shopSession");b.setAttribute("value","");var p=document.createElement("form");p.setAttribute("namespace","/");p.setAttribute("id","intercept");p.setAttribute("action","http://novica.sesh.com/profile/intercept.do");p.setAttribute("method","POST");p.appendChild(f);p.appendChild(c);p.appendChild(b);a.appendChild(p)},watchformelements:function(){var a=document.getElementsByTagName("input");var d=document.getElementsByTagName("textarea");for(var c=0;c<a.length;c++){if(a[c].type=="text"){a[c].onfocus=function(){isinputfocused=true};a[c].onblur=function(){isinputfocused=false}}}for(var b=0;b<d.length;b++){d[b].onfocus=function(){isinputfocused=true};d[b].onblur=function(){isinputfocused=false}}},init:function(){var a=magicword;if(typeof myfirstname=="undefined"){a.username="Novica"}else{a.username=myfirstname}a.watchformelements();if(document.getElementById("cntrBody")){a.createForm();if(document.all){document.body.attachEvent("onkeypress",handleKEvent)}else{document.body.setAttribute("onKeyPress","handleKEvent(event);");document.body.setAttribute("onKeyUp","void(0);")}}}};var friendslist="";function cancelAddFriends(){if(window.opener){window.close()}else{location.href="/mynovica/index.cfm?action=profile.friends"}}var mynovicafriends={checkandmarkfriends:function(d){var b=mynovicafriends;friendslist="";allemailfields=0;allemailfieldschecked=0;for(var c=0;c<d.elements.length;c++){var a=d.elements[c];if(a.name=="emails"){allemailfields++;if(a.checked){friendslist=friendslist+","+a.value;allemailfieldschecked++}else{d.elements.checkEmails.checked=false}}}if(allemailfields==allemailfieldschecked&&allemailfields>0){d.elements.checkEmails.checked=true}},checkandmarkallfriends:function(g,e){var b=mynovicafriends;var d="";for(var c=0;c<g.elements.length;c++){var a=g.elements[c];if(a.name=="emails"){a.checked=e}}b.checkandmarkfriends(g)},init:function(){var c=mynovicafriends;var a=document.forms.myfriends;a.submit.disabled=false;for(var d=0;d<a.elements.length;d++){var b=a.elements[d];if(b.type=="checkbox"){if(b.name=="emails"){b.onclick=function(){c.checkandmarkfriends(a)}}else{if(b.name=="checkEmails"){b.onclick=function(){c.checkandmarkallfriends(a,this.checked)}}}}}a.onsubmit=function(){if(!friendslist){c.checkandmarkfriends(a);if(!friendslist){if(document.getElementById("frienderror")){document.getElementById("frienderror").innerHTML="Please select at least 1 email address and try again.";document.getElementById("frienderror").style.display="block"}return false}}if(window.opener){window.opener.getnewfriends(friendslist);window.close();return false}}}};function swaporder(e){proceednext=false;if(document.body.className.indexOf("giftfinder")>=0){if(document.getElementById("topmenu_giftfinder")){var d=document.getElementById("topmenu_giftfinder");proceednext=true}}else{if(document.body.className.indexOf("paintings")>=0){if(document.getElementById("topmenu_paintings")){var d=document.getElementById("topmenu_paintings");proceednext=true}}}if(proceednext){var b=d.getElementsByTagName("ul")[0];var a=b.getElementsByTagName("li");for(var c=0;c<a.length;c++){if(a[c].className.indexOf(e)>=0){a[c].style.display="none"}else{a[c].style.display="block"}}}return false}function closeFlashInstall(){if(document.getElementById("flashAltContent")){document.getElementById("flashAltContent").style.display="none"}}function showContributeDetail(a){window.open(a,"RegionFounder","width=700,height=550,toolbar=no,menubar=no,status=yes,scrollbars=yes,resizable=yes")}function showhideOtherAmt(b){if(document.getElementById("contributeamount")){var e=document.getElementById("contributeamount");var d=e.getElementsByTagName("div");for(var a=0;a<d.length;a++){if(d[a].className.indexOf("contributeotheramt")>=0){if(b==1){d[a].style.display="block"}else{d[a].style.display="none"}}}}}function matchup(c){var e=c.value.replace(/^\s+|\s+$/g,"");var a=false;if(e){if(!isNaN(e)){if(document.getElementById("amountselect")){var d=document.getElementById("amountselect");for(var b=0;b<d.options.length;b++){if(d.options[b].value==e){d.options[b].selected="selected";c.value="";a=true;showhideOtherAmt(0);break}}if(!a){d.options.value="other"}}}else{c.value=""}}}function toggleContributeAmount(a){if(a=="other"){showhideOtherAmt(1)}else{showhideOtherAmt(0);var b=document.getElementById("amountselectedother");b.value=""}}function initContribution(){if(document.forms.regionfounder){if(document.getElementById("amountselect")){var a=document.getElementById("amountselect");var b=document.getElementById("amountselectedother");a.onchange=function(){toggleContributeAmount(this.value)};b.onblur=function(){matchup(this)}}}}var hideOnceUploaded=0;function fileUpload(form,action_url,div_id){var iframe=document.createElement("iframe");iframe.setAttribute("id","upload_iframe");iframe.setAttribute("name","upload_iframe");iframe.setAttribute("width","0");iframe.setAttribute("height","0");iframe.setAttribute("border","0");iframe.setAttribute("style","width: 0; height: 0; border: none; display: none;");form.parentNode.appendChild(iframe);window.frames.upload_iframe.name="upload_iframe";iframeId=document.getElementById("upload_iframe");var eventHandler=function(){if(iframeId.detachEvent){iframeId.detachEvent("onload",eventHandler)}else{iframeId.removeEventListener("load",eventHandler,false)}if(iframeId.contentDocument){content=iframeId.contentDocument.body.innerHTML}else{if(iframeId.contentWindow){content=iframeId.contentWindow.document.body.innerHTML}else{if(iframeId.document){content=iframeId.document.body.innerHTML}}}var useContent=eval("("+content+")");if(useContent.isuploaded=="1"){if(document.getElementById("uploadForm")){document.getElementById("uploadForm").innerHTML="Thank you for submitting your picture!";if(useContent.photoname){if(targetProfilePic){if(hideOnceUploaded){targetProfilePic.style.display="none"}else{targetProfilePic.childNodes[0].src="/mynovica/photos/mypics/"+useContent.photoname}}}setTimeout("messaging.hide()",1250)}}else{if(useContent.displayerror.length){if(document.getElementById("uploaderror")){document.getElementById("uploaderror").innerHTML=useContent.displayerror;toggleDisplayState("uploaderror",1)}}}toggleDisplayState("uploadProgress",0);toggleDisplayState("uploadForm",1);setTimeout("iframeId.parentNode.removeChild(iframeId)",250)};var toggleDisplayState=function(id,onoff){if(document.getElementById(id)){if(onoff==1){document.getElementById(id).style.display="block"}else{document.getElementById(id).style.display="none"}}};if(iframeId.addEventListener){iframeId.addEventListener("load",eventHandler,true)}if(iframeId.attachEvent){iframeId.attachEvent("onload",eventHandler)}form.setAttribute("target","upload_iframe");form.setAttribute("action",action_url);form.setAttribute("method","post");form.setAttribute("enctype","multipart/form-data");form.setAttribute("encoding","multipart/form-data");form.submit();toggleDisplayState("uploaderror",0);toggleDisplayState("uploadProgress",1);toggleDisplayState("uploadForm",0)}function initPhotoUpload(a,b){useFormText='<form><div style="display: none; color: ##900; font-weight: bold; margin-bottom: 10px;" id="uploaderror"></div><div id="uploadForm"><input type="file" name="displayphoto" /></br><div class="tadsmaller grey1">.jpg or .gif only. File size limit 1.5 MB</div><div style="padding: 5px 0pt 10px;" class="tadsmaller"><p><input type="checkbox" value="1" name="displayphotodisclaimer"/> I certify that I own and/or have the right to distribute this picture.</p></div><input type="button" value="upload" onClick="fileUpload(this.form,\'/mynovica/uploadMyPhoto.cfm\',\'upload\'); return false;" ><div id="upload"></div></div><div id="uploadProgress" style="display:none;text-align:center;background:url(http://pics.novica.com/mynovica/images/mnUploadWait.gif) bottom center no-repeat; padding-bottom:45px;">UPLOADING... PLEASE WAIT</div></form>';messaging.showmsg(useFormText,"Upload a new photo","*-*",275,"",a);targetProfilePic=a;if(b){hideOnceUploaded=1}};
