
















var a=document;var b='drag';var d='trashcan';var f='workbox';var g=false;var h=new Array();var i=1;var c,j,k,l,m,n,o,p;var q='menuitems';var r='overmenuitems';var t='trashmenu';var u='propmenu';var v=a.domain;function C(e){if(!e){var e=window.event;var eTar=e.srcElement;}else{var eTar=e.target;}if(g==true){j.style.left=(e.clientX-m)+"px";j.style.top=(e.clientY-n)+"px";var trashLocation=CC(a.getElementById(d));F();if(j.className==b && (e.clientX+o) >= trashLocation[0] && (e.clientX+o) < trashLocation[0]+a.getElementById(d).width && (e.clientY+p) >= trashLocation[1] && (e.clientY+p) < trashLocation[1]+a.getElementById(d).height){a.getElementById(f).removeChild(j);g=false;}return false;}}function D(e){if(!e){var e=window.event;var eTar=e.srcElement;}else{var eTar=e.target;}if(eTar.className!=q && eTar.className!=r){AA();}if(eTar.className==b || eTar.className==d){g=true;j=eTar;m=e.clientX-parseInt(j.style.left+0);n=e.clientY-parseInt(j.style.top+0);a.onmousemove=C;return false;}}		if(v.indexOf('www.', 0)==0)v=v.slice(4);		if('' != v && '' != ''){alert('ILLEGAL SCRIPT! \r\nThis domain does not appear to have a valid license \r\nfor this doll maker script. You can obtain your own license \r\n at DollClique.com!');a='';b='';d='';f='';g='';h='';i='';j='';k='';l='';m='';n='';p='';q='';r='';s='';t='';u='';}function K(e){if(!e){var e=window.event;var eTar=e.srcElement;}else{var eTar=e.target;}if(eTar.className=="drag"){var nexts=eTar.nextSibling;if(nexts==null){a.getElementById(f).insertBefore(eTar,a.getElementById(f).firstChild);}else{a.getElementById(f).appendChild(eTar);}}else if(eTar.className=="trashcan"){if(confirm('Delete all doll pieces from creation zone?')) R();}return;}function L(){if(c.className==b){a.getElementById(f).insertBefore(c,a.getElementById(f).firstChild);}AA();}function M(){if(c.className==b){a.getElementById(f).appendChild(c);}AA();}function N(){if(c.className==b){B(c.src);}AA();}function O(){if(c.className==b){a.getElementById(f).removeChild(c);}AA();}function P(){if(c.className==b){nexts=c.nextSibling;if(c.nextSibling!=null){a.getElementById(f).insertBefore(c,nexts.nextSibling);}} AA();}function Q(){if(c.className==b){if(c.previousSibling!=null){a.getElementById(f).insertBefore(c,c.previousSibling);}} AA();}function R(){for(n=a.getElementById(f).childNodes.length;n > 0;n--){a.getElementById(f).removeChild(a.getElementById(f).lastChild);}AA();}function S(){if(a.getElementById(f).childNodes.length > 0){a.getElementById(f).removeChild(a.getElementById(f).lastChild);}AA();}function T(){if(a.getElementById(f).childNodes.length > 0){a.getElementById(f).removeChild(a.getElementById(f).firstChild);}AA();}



























