fw.ToString(); var lightbox = null; function popMovie() { submission_controller.PopViewer(772, 854); $('flash_embed').innerHTML = $('popup_blockade').innerHTML; return(false); } // create the lightbox; function setLightbox() { if (!lightbox) { var body = document.getElementsByTagName("body").item(0); lightbox = document.createElement("div"); lightbox.setAttribute("id", "lightbox"); lightbox.setAttribute("class", "black_overlay"); lightbox.setAttribute("className", "black_overlay"); body.appendChild(lightbox); $('lightbox').style.height = getDocumentHeight()+"px"; $('lightbox').style.display = "none"; } } // resize vars var page_width = 932; var interval; var x_speed = 0; var y_speed = 0; // set the author-specified movie size var full_width = 942; var full_height = 707; // set the in-line movie sizes var normal_width = 800; var normal_height = 600; // set the resize defaults var current_width = normal_width; var current_height = normal_height; var use_width = normal_width; var use_height = normal_height; // transition speed stuff var duration = 0.5; var framerate = 50; var frames = (duration*1000)/framerate; // lightbox vars var lights = true; // lightbox fade in/out effects function FadeEffect(element){ new Effect.Fade(element, {duration:0.5}); } function ShowEffect(element){ new Effect.Appear(element, {duration:0.5, from:0.0, to:0.8}); } function dimLights(lt) { lights = lt; if (lights) { clearSwappableElements(); $('flashhover_container').className = "flashhover_container poddimmed"; setLightbox(); ShowEffect('lightbox'); lights = false; } else { fillSwappableElements(); $('flashhover_container').className = "flashhover_container"; setLightbox(); FadeEffect('lightbox'); lights = true; } } // resize functions function fullSize() { use_width = full_width; use_height = full_height; startScale(); } function normalSize() { use_width = normal_width; use_height = normal_height; startScale(); } // figures out if we need to shrink or grow function startScale() { clearInterval(interval); if (current_width > use_width) { scaleDown(); } else if (current_width < use_width) { scaleUp(); } } function scaleUp() { x_speed = Math.round( (use_width-current_width) /frames ); y_speed = Math.round( (use_height-current_height) /frames ); interval = setInterval("growFlash()",framerate); } function scaleDown() { x_speed = Math.round( (current_width-use_width) /frames ); y_speed = Math.round( (current_height-use_height) /frames ); interval = setInterval("shrinkFlash()",framerate); } // functions for the actual resizing function growFlash() { current_width+=x_speed; current_height+=y_speed; if (current_width >= use_width current_height >= use_height) { current_width = use_width; current_height = use_height; clearInterval(interval); } setSizing(); } function shrinkFlash() { current_width-=x_speed; current_height-=y_speed; if (current_width <= use_width current_height <= use_height) { current_width = use_width; current_height = use_height; clearInterval(interval); } setSizing(); } // Function for scaling the in-line sizer div function setSizing() { $('flash_embed').style.width = current_width+"px"; $('flash_embed').style.height = current_height+"px"; $('flash_embed_sizer').style.height = $('flashhover_container').offsetHeight+"px"; $('flash_embed_sizer').style.width = $('flashhover_container').offsetWidth+"px"; } setSizing(); $('flash_embed').innerHTML = embed_html; function closeMovie() { dimLights(false); normalSize(); $('flash_embed').innerHTML = $('general_blockade').innerHTML; } function unblock() { $('flash_embed').innerHTML = embed_html; } function showHover(txt) { if (!txt txt == 'null') { $('button_hover_text').innerHTML = ""; checkhover = false; } else { $('button_hover_text').innerHTML = txt; checkhover = true; } } // functions for getting the dimensions iof the actual document (for sizing the lightbox) function getDocumentHeight() { return getDocumentDimensions().height; } function getDocumentDimensions() { if( window.innerHeight && window.scrollMaxY ) // Firefox { pageWidth = window.innerWidth + window.scrollMaxX; pageHeight = window.innerHeight + window.scrollMaxY; } else if( document.body.scrollHeight > document.body.offsetHeight ) // all but Explorer Mac { pageWidth = document.body.scrollWidth; pageHeight = document.body.scrollHeight; } else // works in Explorer 6 Strict, Mozilla (not FF) and Safari { pageWidth = document.body.offsetWidth + document.body.offsetLeft; pageHeight = document.body.offsetHeight + document.body.offsetTop; } return {height:pageHeight, width:pageWidth}; } // ]]> Author & File Information http://fungus-shark408.newgrounds.com">%20src="http://uicon.ngfiles.com/1329000/1329756.gif"%20alt="fungus-shark408"%20height="46"%20width="46"%20class="icon"%20/> Author fungus-shark408http://fungus-shark408.newgrounds.com/">fungus-shark408> Contact Visit Artist's Site Submitted: 03/03/2007 04:34PM EST File Info: Game