var cur_item_id=0; function set_anti_aliasing(){ if (!document.form1.antialiasing.checked){ document.form1.antialiasing.checked=true; document.form1.doll_name_include.checked=true; } else { document.form1.antialiasing.checked=false; } void(0); } function set_incl(){ if (!document.form1.doll_name_include.checked){ document.form1.doll_name_include.checked=true; } else { document.form1.doll_name_include.checked=false; } void(0); } function set_help(message,delay,s){ //delay - number of seconds to display the message document.getElementById("dmhelper_text").innerHTML=message; if (delay>0){ var timeout=delay*1000; // delay between session in miliseconds setTimeout('set_help("",0,s)',timeout); // Set the Ticker } } function show_item_info(iObject){ if ((typeof iObject == "undefined") || (iObject.className!="drag")) return; var thumb_size=85; if (cur_item_id!=iObject.id){ document.getElementById("gm_im_helper_dmtitle").style.display="none"; document.getElementById("gm_im_helper").style.display="none"; cur_item_id=iObject.id; var iCoeff=iObject.height/thumb_size>iObject.width/thumb_size?iObject.height/thumb_size:iObject.width/thumb_size; document.getElementById("gm_im_helper_image").src=iObject.src; document.getElementById("gm_im_helper_image").height=iObject.height/iCoeff; document.getElementById("gm_im_helper_image").width=iObject.width/iCoeff; document.getElementById("gm_im_helper").style.display=""; } //current object if (document.layers) { // find NS position winPosL = iObject.left - pageXOffset; // find its horizontal position in the window winPosT = iObject.top - pageYOffset; // find its vertical position in the window } else { // find IE position winPosL = iObject.offsetLeft - document.body.scrollLeft; // find horizontal position in window winPosT = iObject.offsetTop - document.body.scrollTop; // find vertical position in window } //document.getElementById("coord_grid_id").innerHTML=iObject.id; document.getElementById("coord_grid_layer").innerHTML=iObject.style.zIndex; document.getElementById("coord_grid_w").innerHTML=iObject.width; document.getElementById("coord_grid_h").innerHTML=iObject.height; document.getElementById("coord_grid_x").innerHTML=winPosL; document.getElementById("coord_grid_y").innerHTML=winPosT; } function hide_item_info(){ document.getElementById("gm_im_helper").style.display="none"; return true; } function changeSize(){ document.getElementById('img_back').width=document.form1.swidth.value; document.getElementById('img_back').height=document.form1.sheight.value; document.form1.width.value=document.form1.swidth.options[document.form1.swidth.selectedIndex].value; document.form1.height.value=document.form1.sheight.options[document.form1.sheight.selectedIndex].value; document.getElementById("main_control").style.left=parseInt(document.form1.width.value)+2; //check_spacer_size(); } function Yeehah() { if ((event.clientX>document.form1.width.value) || (event.clientY>document.form1.height.value)) { alert("Please select the position inside the 'Build Place'."); return false; } else { document.form1.text_x_position.value=event.clientX; document.form1.text_y_position.value=event.clientY; help_msg="Text position is set to " + event.clientX + " x " + event.clientY + "."; set_help(help_msg,5); } document.onclick=null; } function set_text_position(){ document.form1.doll_name_include.checked=true; alert("Click 'OK' and click inside 'Build Place' where you want your text to start."); help_msg="Click inside 'Build Place' where you want your text to start"; set_help(help_msg,0); document.onclick=Yeehah; } function maximize_frame(){ if (self.innerWidth) { frameWidth = self.innerWidth; frameHeight = self.innerHeight; } else if (document.documentElement && document.documentElement.clientWidth) { frameWidth = document.documentElement.clientWidth; frameHeight = document.documentElement.clientHeight; } else if (document.body) { frameWidth = document.body.clientWidth; frameHeight = document.body.clientHeight; } else return; document.getElementById('maker_frame').height=frameHeight-270; } function show_ready(){ var alert_msg = "-Arrow Keys Initialized
-Right Click Initialized
-Double click Initialized
-Dollmaker Engine is READY
-Click 'Build' when done"; set_help(alert_msg,0); alert("Doll Maker is set to use Click & Drag Mode. You can change modes on category selection screen.\nClick item and when it appears on the Build Place drag it into the position with your mouse.\n\n-------\nYou can start building your doll now"); window.status="Ready"; } var cur_focus_item; function set_cur_focus(iObject){ cur_focus_item=iObject; show_item_info(cur_focus_item); }