var addthis_config;noUsername=["U heeft uw e-mailadres nog niet ingevoerd.","You did not enter your username.","Sie haben Ihrem Anwendername nicht ausgef\ufffdllt.","Vous n'avez pas \ufffdcrit votre nom d'utilisateur."];function customBodyLoad(a){repositionDiv("myLists",185,955,675);if(typeof pageTracker!="undefined")addthis_config={data_ga_tracker:pageTracker}}function customBodyResize(a,b){repositionDiv("myLists",185,955,675)}function customBodyScroll(a){}
function saveProduct(){var a=new Url;location.href=a.add("action",1)}function editProduct(a){var b=new Url;location.href=b.filter("msg").add("prdID",a).add("action",2)}function deleteProduct(a){if(confirm("LET OP!: Het product wordt uit alle categorien verwijderd. Weet u het zeker?")){var b=new Url;location.href=b.replacePage("misc/postProduct.aspx").add("prdID",a).add("action",3)}}function editMyProduct(a){var b=new Url;location.href=b.filter("msg").add("prdID",a).add("action",2)}
function deleteMyProduct(a){if(confirm("Weet u zeker dat u dit product van uw lijstje wilt verwijderen? \r\n LET OP! Het kan zijn dat iemand dit cadeau wil gaan geven")){var b=new Url;location.href=b.replacePage("misc/postMyProduct.aspx").add("prdID",a).add("action",12)}}
function selectItem(a,b){var c=[];a=document.getElementById(a);b=document.getElementById(b);if(a.selectedIndex!=-1)for(c=0;c<a.length;c++)if(a.options[c].selected&&a.options[c].text!=""){newOption=new Option(a.options[c].text,a.options[c].value,false,false);b.options[b.length]=newOption;a.options[c]=null;c--}}
function saveCategories(a){var b=new Url,c="",d=$("currentProducts");if(d){for(var e=0;e<d.length;e++)c+=e==0?d.options[e].value:","+d.options[e].value;location.href=b.replacePage("misc/postCategory.aspx").add("action",7).add("catID",a).add("prdIDs",c)}}
function saveShops(a){var b=new Url,c="",d=Html.get("currentShops");if(d){for(var e=0;e<d.length;e++)c+=e==0?d.options[e].value:","+d.options[e].value;location.href=b.replacePage("misc/postShops.aspx").add("action",7).add("catID",a).add("itmIDs",c)}}function saveBrands(a){var b=new Url,c="",d=$("currentBrands");if(d){for(var e=0;e<d.length;e++)c+=e==0?d.options[e].value:","+d.options[e].value;location.href=b.replacePage("misc/postBrands.aspx").add("action",7).add("catID",a).add("itmIDs",c)}}
function toggleSlide(){JQ.query("#slider").animate({width:"toggle"},200)}function toggleCount(a,b){b||(b=99);var c=parseInt($("count").value);c+=parseInt(a);if(isNaN(c))c=1;if(c<1)c=1;if(c>b)c=b;$("count").value=c}function toggleMyLists(){var a=$("myLists");if(a)a.style.display=a.style.display=="none"?"":"none"}function gotoUrl(){var a=$("txtUrl").value;if(a.indexOf("http://")==-1)a="http://"+a;$("frmShop").src=a}
function getImageUrlFromHtml(a){a=a.split(" ");for(var b="",c=0;c<a.length;c++)if(a[c].substring(0,4)=="src="){b=a[c].substring(a[c].indexOf('src="')+5);b=b.substring(0,b.indexOf('"'))}return b}function submitMyProduct(){var a=$("dropDiv").innerHTML,b="";b=getImageUrlFromHtml(a);if(b.length>0)$("imageurl").value=b;if(a=$("productname"))if(a.value.length==0){alert("Product naam is een verplicht veld");return false}else return true;else return true}
function repositionDiv(a,b,c,d){if(a=document.getElementById(a))a.style.left=document.body.offsetWidth>c?Math.round(b+document.body.offsetWidth/2)+"px":d+"px"}function changeLetterType(a){$("edtInvitation_Invitations_Message_0").style.fontFamily=a.value;invitation.Invitations.Rows(0).fields.LetterType.value(a.value)}function changeColor(a){$("edtInvitation_Invitations_Message_0").style.color=a;invitation.Invitations.Rows(0).fields.LetterColor.value(a)}
function changeImage(a,b,c,d){if($("imgBig")){$("imgBig").src=a;invitation.Invitations.Rows(0).fields.FleID.value(b);invitation.Invitations.Rows(0).fields.FleName.value(c);invitation.Invitations.Rows(0).fields.FleSecure.value(d)}}function changeTheme(a,b){$("customPhoto").style.display="none";$("photoList").style.display="none";for(var c=1;c<=b;c++)$("photoList"+c).style.display="none";$("photoList"+a).style.display=""}
function showThemes(a){$("customPhoto").style.display="none";$("photoList").style.display="";for(var b=1;b<=a;b++)$("photoList"+b).style.display="none"}
function toggleFileList(){var a=$("selectPhoto"),b=$("customPhoto");if(a&&b)if(a.style.display=="none"){a.style.display="";b.style.display="none"}else{a.style.display="none";b.style.display=""}a=$("btnSelectPhoto");b=$("btnCustomPhoto");if(a&&b)if(a.style.display=="none"){a.style.display="";b.style.display="none"}else{a.style.display="none";b.style.display=""}}
function checkfile(){var a=$("file");if(a)if(a.value.length>0)return true;else{alert("je hebt nog geen afbeelding geselecteerd");return false}return false}function changeRegion(a){var b=new Url;location.href=a.value==0?b.filter("msg").filter("region"):b.filter("msg").add("region",a.value)}function filter(a,b){var c=new Url;c=b==0?c.filter(a,"msg"):c.add(a,b).filter("msg");location.href=c}function removeFilter(a){var b=new Url;b=b.filter(a);location.href=b}
function filterproduct(){var a=$("search"),b=$("category"),c=$("subcategory");if(a){var d=new Url;location.href=c?d.add("search",a.value).add("catID",178).add("category",b.value).add("subcategory",c.value).filter("msg"):b?d.add("search",a.value).add("catID",178).add("category",b.value).filter("msg"):d.add("search",a.value).add("catID",178).filter("msg")}return false}function sort(a){var b=new Url;location.href=b.add("sort",a).filter("msg")}
function toggleSlider(){var a=$("slider"),b=$("frmShop"),c=$("sliderHide"),d=$("sliderShow");if(a)if(a.style.display=="none"){a.style.display="";c.style.display="";d.style.display="none"}else{a.style.display="none";c.style.display="none";d.style.display=""}if(b&&a)b.style.width=a.style.display=="none"?"995px":"690px"}
function addContact(){var a=$("name"),b=$("email"),c=new Url;if(a.value&&b.value){c=c.replacePage("misc/postContact.aspx").add("action","save").add("name",a.value).add("email",b.value);location.href=c}}
function deleteContact(){var a=$("contactList");if(a)if(a.selectedIndex!=-1){confirm("Weet u zeker dat u de geselecteerde contacten wilt verwijderen?");for(var b="",c=0;c<a.length;c++)if(a.options[c].selected&&a.options[c].text!="")b+=b.length==0?a.options[c].value:","+a.options[c].value;a=new Url;location.href=a.replacePage("misc/postContact.aspx").add("action","delete").add("cntIDs",b)}else alert("U heeft geen contacten geslecteerd om te verwijderen")}
function postInvite(){var a=$("selectedContactList");if(a)if(a.options.length==0){alert("U heeft nog geen contacten geselecteerd");return false}else{for(var b=$("contacts"),c="",d=0;d<a.options.length;d++)c+=c.length==0?a.options[d].value:","+a.options[d].value;b.value=c;return true}return false}function secure(){var a=$("frmSecure"),b=$("password");if(b)b.value.length>0?a.submit():alert("u heeft nog geen wachtwoord ingevuld")}var menuTimer;
function hideMenu(){menuTimer=setTimeout("toggleSubmenu( false );",1E3)}function showMenu(){clearTimeout(menuTimer);toggleSubmenu(true)}function mouseoverSubCat(a){clearTimeout(menuTimer)}function mouseoutSubCat(a){menuTimer=setTimeout('document.getElementById("myLists").style.display = "none";',1E3)}function toggleSubmenu(a){var b=document.getElementById("myLists");if(b)b.style.display=a?"block":"none"}function mouseoverSubitem(){clearTimeout(menuTimer)}
function showImage(){var a=$("dropDiv"),b=$("imgUrl");if(a&&b)a.innerHTML="<img src='"+b.value+"' style='height:140px'/>"}var currentImage="";function setCurrentImage(){var a=$("dropDiv");currentImage=getImageUrlFromHtml(a.innerHTML)}
function updateDiv(){var a=$("dropDiv"),b=new Url,c=$("imgdelete"),d="";if(a){var e="";if($("txtUrl"))e=$("txtUrl").value;if($("backupUrl"))if($("backupUrl").value.length>0)e=$("backupUrl").value;if(e.length>0){d=(new Url(e)).server();d="http://"+d.replace("http://","")}e="";e=a.innerText.substring(0,4)=="http"?a.innerText:getImageUrlFromHtml(a.innerHTML);if(e.length>0)if(currentImage.length==0||currentImage!=e){a.innerHTML="<img src='"+e.replace(b.server(),d+"/")+"' style='height:140px'/>";if(c)c.value=
false}}}function sortUp(a){if(a=document.getElementById(a)){var b=a.length,c=new Array(b),d=a.selectedIndex;if(d>0){for(var e=0;e<b;e++)c[e]=new Option(a.options[e].text,a.options[e].value,false,false);a.options[d-1]=c[d];a.options[d]=c[d-1];a.options[d-1].selected="selected"}}}
function sortDown(a){if(a=document.getElementById(a)){var b=a.length,c=new Array(b),d=a.selectedIndex;if(d<b-1){for(var e=0;e<b;e++)c[e]=new Option(a.options[e].text,a.options[e].value,false,false);a.options[d+1]=c[d];a.options[d]=c[d+1];a.options[d+1].selected="selected"}}}
function deleteImage(){var a=$("dropDiv"),b=$("imgUrl"),c=$("imgdelete");if(a&&b){b.value="";a.innerHTML="<div>Kopieer en plak (met rechtermuisknop) de afbeelding uit de website van de winkel hier naartoe. Als dit niet lukt, klik dan op uitleg (links bovenaan in de website, paarse knop)</div>";if(c)c.value=true}}function deleteAllFilters(){var a=new Url;a=a.filter("age","gender","price","theme","shop","brand","category","subcategory");location.href=a}
function addToList(a){(a=$("frmMyProduct_"+a))&&a.submit()}function toggleNewProduct(){var a=$("productDetails"),b=$("productAdd");if(a&&b){var c=$("dropDiv"),d=$("imgUrl"),e=$("imgdelete");if(c&&d){d.value="";if(e)e.value=true}if(a.style.display=="none"){a.style.display="";b.style.display="none"}else{a.style.display="none";b.style.display="";if($("txtUrl"))$("txtUrl").value=$("frmShop").src;else $("url").value=$("frmShop").src}}}
function addTempToList(){var a=new Url,b=$("lists");if(b)location.href=a.replacePage("misc/postTempList.aspx").add("action","add").add("lstID",b.value)}function deleteTempList(){confirm("weet je het zeker? Alle producten worden van je tijdelijke lijst verwijderd");var a=new Url,b=$("lists");location.href=a.replacePage("misc/postTempList.aspx").add("action","delete").add("lstID",b.value)}function deleteTempProduct(a){myProduct.MyProducts.removeRowAt(a-1);a=new Url;location.href=a}
function newPassword(){var a=$("newPassword");if(a)a.style.display="";if(a=$("oldPassword"))a.style.display="none";if(a=$("changePassword"))a.style.display="none"}function gotoShop(a){var b=new Url;if(a.value){b=b.replacePage("autoparse.aspx").add("catID",187).add("shpID",a.value);location.href=b}}var lightbox=null;function showUitleg(){lightbox=new TLightBox("uitleg");lightbox.show()};

