\n'); } var movieName = "LanyardDemo"; function thisMovie(movieName) { alert(document[movieName]); // IE and Netscape refer to the movie object differently. // This function returns the appropriate syntax depending on the browser. if (navigator.appName.indexOf ("Microsoft") !=-1) { return window[movieName] } else { return document[movieName] } } // Checks if movie is completely loaded. // Returns true if yes, false if no. function movieIsLoaded (theMovie) { // First make sure the movie's defined. if (typeof(theMovie) != "undefined") { // If it is, check how much of it is loaded. return theMovie.PercentLoaded() == 100; } else { // If the movie isn't defined, it's not loaded. return false; } } var curTextString = ""; function doPassVar(args){ // Following two lines of code are for passing to flash movie // var sendText = args.value; // window.document.LanyardSample.SetVariable("myVar", sendText); // Following lines of code are for passing to text box. if(args.value.length > 33) { alert("Your message can be no more than 33 characters in length."); args.value = curTextString; return false; } window.document.forms.sampleText.LanyardSampleText.value = args.value; curTextString = args.value; return true; } function changeFlashTextColor(hex) { // Following lines are for flash movie /* window.document.LanyardSample.SetVariable("myColorTransform.rb", r); window.document.LanyardSample.SetVariable("myColorTransform.gb", g); window.document.LanyardSample.SetVariable("myColorTransform.bb", b); window.document.LanyardSample.SetVariable("myColorTransform.ab", a); window.document.LanyardSample.GotoFrame(2); window.document.LanyardSample.Play(); */ // Following lines are for text input window.document.sampleText.LanyardSampleText.style.color = hex; window.document.form.LanyardTextColor.value= hex; if (movieIsLoaded(document["LanyardDemo"])) { document["LanyardDemo"].setVariable("newTextColor1","0x" + hex); document["LanyardDemo"].TCallFrame("/",2); } } function changeMaterialColor(hex) { window.document.sampleText.LanyardSampleText.style.backgroundColor= "#" + hex; window.document.form.LanyardBgroundColor.value= "#" + hex; if (movieIsLoaded(document["LanyardDemo"])) { document["LanyardDemo"].setVariable("newColor","0x" + hex); document["LanyardDemo"].TCallFrame("/",1); } } function changeArtWorkLocation(loc) { if (loc==0) { window.document.yourArt.style.display='none'; window.document.yourArt2.style.display='none'; } else if (loc==1) { window.document.yourArt.style.display='inline'; window.document.yourArt2.style.display='none'; } else if (loc==2) { window.document.yourArt2.style.display='inline'; window.document.yourArt.style.display='none'; } else if (loc==3) { window.document.yourArt2.style.display='inline'; window.document.yourArt.style.display='inline'; } } function changeFont(thisFont) { var newFontName = ""; var newFontSize = ""; var newFontWeight = ""; if(thisFont == "Times New Roman") { newFontName = "Times New Roman"; newFontSize = "34px"; newFontWeight = "normal"; } else if(thisFont == "Times New Roman - Bold") { newFontName = "Times New Roman"; newFontSize = "34px"; newFontWeight = "bold"; }else if(thisFont == "Arial") { newFontName = "Arial"; newFontSize = "34px"; newFontWeight = "normal"; }else if(thisFont == "Arial - Bold") { newFontName = "Arial"; newFontSize = "34px"; newFontWeight = "bold"; }else if(thisFont == "Verdana") { newFontName = "Verdana"; newFontSize = "36px"; newFontWeight = "normal"; }else if(thisFont == "Verdana - Bold") { newFontName = "Verdana"; newFontSize = "36px"; newFontWeight = "bold"; }else if(thisFont == "Tahoma") { newFontName = "Tahoma"; newFontSize = "36px"; newFontWeight = "normal"; }else if(thisFont == "Tahoma - Bold") { newFontName = "Tahoma"; newFontSize = "36px"; newFontWeight = "bold"; } else { newFontName = "Times New Roman"; newFontSize = "34px"; newFontWeight = "normal"; } window.document.sampleText.LanyardSampleText.style.fontFamily=newFontName; window.document.sampleText.LanyardSampleText.style.fontSize=newFontSize; window.document.sampleText.LanyardSampleText.style.fontWeight=newFontWeight; window.document.form.LanyardFont.value= thisFont; } function checkBrowser(){ this.ver=navigator.appVersion this.dom=document.getElementById?1:0 this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0; this.ie4=(document.all && !this.dom)?1:0; this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0; this.ns4=(document.layers && !this.dom)?1:0; this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5) return this } bw=new checkBrowser(); //With nested layers for netscape, this function hides the layer if it's visible and visa versa function showHide(div,nest){ obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; if(obj.visibility=='visible' || obj.visibility=='show') obj.visibility='hidden' else obj.visibility='visible' } //Shows the div function show(div,nest){ obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; obj.visibility='visible'; obj.display=''; } //Hides the div function hide(div,nest){ obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; obj.visibility='hidden'; obj.display='none'; } ///////////////////////////// function changeBreakAway(brkwy) { if (movieIsLoaded(document["LanyardDemo"])) { document["LanyardDemo"].TGotoLabel("_level0/BreakAway",brkwy); } } function changeLanyardSize(sz) { if (movieIsLoaded(document["LanyardDemo"])) { document["LanyardDemo"].TGotoLabel("_level0/LanyardMovie","lnyrd_" + sz); document["LanyardDemo"].TGotoLabel("_level0/LnyrdText1","txt1_" + sz); } } function changeFinishes(fnsh) { if (movieIsLoaded(document["LanyardDemo"])) { document["LanyardDemo"].TGotoLabel("_level0/Finishing","fnsh_" + fnsh); document["LanyardDemo"].TGotoLabel("_level0/LnyrdExtension","lnyrdExt_" + fnsh); } } function changeAccessories(acc) { if (movieIsLoaded(document["LanyardDemo"])) { document["LanyardDemo"].TGotoLabel("_level0/Accessories","acc_" + acc); } } function changeAttachments(att) { if (movieIsLoaded(document["LanyardDemo"])) { document["LanyardDemo"].TGotoLabel("_level0/Attachments","att_" + att); } } //-->