$caught_videos_path = array( "http://flash.sonypictures.com/movies/stealth/site/cov_1.swf", "http://flash.sonypictures.com/movies/stealth/site/cov_2.swf", "http://flash.sonypictures.com/movies/stealth/site/cov_3.swf", "http://flash.sonypictures.com/movies/stealth/site/cov_4.swf" ); $military_videos_path = array( "http://flash.sonypictures.com/movies/stealth/site/military1.swf", "http://flash.sonypictures.com/movies/stealth/site/military2.swf", "http://flash.sonypictures.com/movies/stealth/site/military3.swf", "http://flash.sonypictures.com/movies/stealth/site/military4.swf", "http://flash.sonypictures.com/movies/stealth/site/military5.swf" ); $swf_params = ""; //start page if (isset($HTTP_GET_VARS["startPage"])) { $swf_params .= "startPage=" . urlencode($HTTP_GET_VARS["startPage"]) . "&"; } $i = 1; while (list ($key, $val) = each ($caught_videos_path)) { $swf_params .= "cov".$i."=".urlencode($val)."&"; $i++; } $i = 1; while (list ($key, $val) = each ($military_videos_path)) { $swf_params .= "mil".$i."=".urlencode($val)."&"; $i++; } if (isset($HTTP_COOKIE_VARS["reg|under13"]) && $HTTP_COOKIE_VARS["reg|under13"]=="yes") { $swf_params .= "under13=yes"; } else { $swf_params .= "under13=no"; } if (strstr($_SERVER["HTTP_USER_AGENT"], "MSIE")) { //FOR IE6 $swf_params .= "&ie=true"; } ?>