var oldtitle=document.title;document.onpropertychange=function(){var A=document.title;if(A!=null&&typeof A!="undefined"&&A.indexOf("#")!=-1){A=A.substring(0,A.indexOf("#"))}if(oldtitle!=A&&typeof A!="undefined"){A=oldtitle;document.title=A}};var xmlCommands;var exclusionString;function generateXML(){xmlCommands="<commands>\n";xmlCommands+="<set_instance>\n";exclusionString="";xmlCommands+="<instance_of>"+document.getElementById("modelDisplayName").value+"</instance_of>\n";for(var F=0;F<partsArray.length;F++){var C=partsArray[F];xmlCommands+="<part>\n";xmlCommands+="  <name>"+C+"</name>";for(var D=0;D<charGrpsArray[F].length;D++){var H=charGrpsArray[F][D];xmlCommands+="  <characteristic_group>";xmlCommands+="    <name>"+H+"</name>";xmlCommands+="    <characteristic>";var B="";var G="";var A="";if(partOptionalArray[F]=="false"||H=="text"){B=C+"."+H;A=document.getElementById(B);G=A.value;if(H=="text"){G=G.replace(/^\s*|\s*$/g,"")}}else{B=C+""+H+"_radio";var E=document.getElementsByName(B)[0];if(E){if(E.checked){B=C+"."+H;A=document.getElementById(B);if(A!==null){G=A.value}}else{if(G!=null){G="none"}}}else{B=C+"."+H;A=document.getElementById(B);if(A!==null){G=A.value}}}xmlCommands+="      <name>"+G+"</name>";xmlCommands+="    </characteristic>";xmlCommands+="  </characteristic_group>";if(H!="text"&&(document.getElementById(C+"_"+H+"_div")!=null&&document.getElementById(C+"_"+H+"_div").style.display=="block")){exclusionString+=B+"."+G+";"}}xmlCommands+="</part>\n"}xmlCommands+="</set_instance>\n";xmlCommands+="</commands>\n";return true}function InsertDynamicAppletControl(){var F="";var G=">";var E=false;var A='<applet name="miadidas"';var C="";for(var B=0;B<arguments.length;B=B+2){F=arguments[B].toLowerCase();if(F=="movie"){C+='<param name="'+arguments[B]+'" value="'+arguments[B+1]+'"'+G+"\n";E=true}else{if(F=="width"||F=="height"||F=="code"||F=="archive"||F=="align"||F=="vspace"||F=="hspace"||F=="class"||F=="title"||F=="accesskey"||F=="tabindex"){A+=" "+arguments[B]+'="'+arguments[B+1]+'"'}else{C+='<param name="'+arguments[B]+'" value="'+arguments[B+1]+'"'+G+"\n"}}}if(!E){alert("The requires that a movie be passed in as one of the arguments.");return}var D=' <font face="Arial">You don\'t have Java installed/enabled. Please enable or download and install <a href="http://www.java.com" target="_blank">Java Virtual Machine</a> for your browser ';A+=" MAYSCRIPT>"+C+D+"</applet>\n";document.write(A)}function swing(A){xmlCommands='<commands><set_position frames="4">'+A+"</set_position></commands>";sendXMLToBlaze()}var bckcolorcount=1;function backgroundColor(){flag=0;if(bckcolorcount==0){strBackgroungColor="dark";bckcolorcount++;flag=1}if(bckcolorcount==1&&flag==0){strBackgroungColor="light";bckcolorcount=0}xmlCommands="<commands><set_background>"+strBackgroungColor+"</set_background></commands>";sendXMLToBlaze()}function sendXMLToBlaze(){try{if(document.getElementById("visual_type").value=="flash"){var B=swfobject.getObjectById("miadidas");B.sendToActionScript("config",xmlCommands)}else{window.document.miadidas.SetVariable("config",xmlCommands)}}catch(A){}}function setHiddenElement(A,C,B,E,D,F){var G=setXMLElement(B,E,"","","");if(G){document.getElementById(C).value=A;if(F=="Color"){wm_Cfgr.clickSwatchListener(D)}else{wm_Cfgr.clickSwatchListenerFlag(D)}return true}else{return false}}function setXMLElement(B,F,A,E,D){var C=document.getElementById(F).value;document.getElementById(F).value=B;generateXML();var G=checkExclusionRules();if(G==""){checkMutualExclRules();generateXML();G=checkExclusionRules();if(G==""){sendXMLToBlaze();if(D=="RADIO"){document.getElementById(F+".index").value=E}return true}else{showExclusion(A,F,G,B,D,C);generateXML();checkMutualExclRules();return false}}else{showExclusion(A,F,G,B,D,C);return false}}function showExclusion(A,E,F,B,D,C){if(D=="RADIO"){document.getElementsByName(A)[document.getElementById(E+".index").value].checked=true}document.getElementById(E).value=C;setExclusionMessage(F,E+"."+B);document.getElementById("ov_prompt_option_msg").innerHTML="";wm_Panel.show("ov_prompt_option")}function checkExclusionOnYes(G,F,A){var D=G+"."+F;var B=document.getElementById(D).value;var C=G+""+F+"_radio";generateXML();var E=checkExclusionRules();if(E==""){sendXMLToBlaze();checkMutualExclRules();return true}else{document.getElementById(A).style.display="none";document.getElementsByName(C)[1].checked=true;setExclusionMessage(E,D+"."+B);document.getElementById("ov_prompt_option_msg").innerHTML="";wm_Panel.show("ov_prompt_option");return false}};