window.onload = drawFlash; function drawFlash() { drawCounter(); drawTeaser(); } function drawCounter() { var counter = new SWFObject("/flash/furycounter.swf", "furycounter", "630", "42", "9", "#ffffff"); counter.addParam("wmode", "transparent"); counter.useExpressInstall('flash/expressinstall.swf'); counter.write("flashCounter"); } function drawTeaser() { var teaser = new SWFObject("/flash/furyvideo.swf", "furyvideo", "630", "438", "9", "#ffffff"); teaser.useExpressInstall('flash/expressinstall.swf'); teaser.write("flashTeaser"); } function drawFreezing() { var freezing = new SWFObject("/flash/freezingfallsgame.swf", "freezingfallsgame", "750", "470", "9", "#ffffff"); freezing.addParam("wmode", "opaque"); freezing.useExpressInstall('flash/expressinstall.swf'); freezing.write("freezingGame"); } function drawWeatherman() { drawCounter(); var freezing = new SWFObject("/flash/weatherman.swf", "weatherman", "592", "394", "9", "#ffffff"); freezing.addParam("wmode", "opaque"); freezing.useExpressInstall('flash/expressinstall.swf'); freezing.write("extremeWeatherVid"); } function drawRevealed() { drawCounter(); var reveal = new SWFObject("flash/furyreveal.swf", "revealed", "592", "444", "9", "#ffffff"); reveal.addParam("wmode", "opaque"); reveal.useExpressInstall('flash/expressinstall.swf'); reveal.write("furyRevealedVid"); } function submitFormData(fname,lname,email,address,city,country, postalcode, province, phone1,phone2,phone3,skill, nname, score) { //alert("Firstname: "+fname+" LastName: "+lname+" Email: "+email+" Address: "+address+" City: "+city+" Country: "+country+" PostalCode: "+postalcode+" Province: "+province+" Phone1: "+phone1+" Phone2: "+phone2+" Phone3: "+phone3+" Skill: "+skill+" NickName: "+nname+" Score:"+score); var frm = document.getElementById("gameData"); frm.firstname.value = fname; frm.lastname.value = lname; frm.email.value = email; frm.address.value = address; frm.city.value = city; frm.province.value = province; frm.countrycode.value = country; frm.postalcode.value = postalcode; frm.phone.value = phone1+"-"+phone2+"-"+phone3; frm.skill.value = skill; frm.nickname.value = nname; frm.gamescore.value = score; frm.submit(); } function openTB() { tb_show(null,'#TB_inline?height=300&width=500&inlineId=privacy&modal=true',false); } function playFreezingGame() { window.open('/freezing-falls-game.html','freezingGame','height=470,width=750,resizable=0,scrollbars=0'); } function limitText(limitField, limitNum) { if (limitField.value.length > limitNum) { limitField.value = limitField.value.substring(0, limitNum); } }