function RunFoo()
{
   param=getURLParam("pf");

   document.write('<object id=portfolio border=0 codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" \n');
   document.write('height=100% width=100% align=middle  \n');
   document.write('classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 VIEWASTEXT><PARAM NAME="_cx" VALUE="14552"> \n');
   document.write('<PARAM NAME="_cy" VALUE="6615"><PARAM NAME="FlashVars" VALUE=pf='+param+'><PARAM NAME="Movie" VALUE="portfolio.swf"><PARAM NAME="Src" VALUE="portfolio.swf"> \n');
   document.write('<PARAM NAME="Src" VALUE="portfolio.swf"><PARAM NAME="Play" VALUE="-1"><PARAM NAME="Loop" VALUE="-1"><PARAM NAME="Quality" VALUE="High"><PARAM NAME="SAlign" VALUE=""><PARAM NAME="Menu" VALUE="-1"><PARAM NAME="Base" VALUE=""><PARAM NAME="AllowScriptAccess" VALUE="sameDomain"><PARAM NAME="Scale" VALUE="ShowAll"><PARAM NAME="DeviceFont" VALUE="0"><PARAM NAME="EmbedMovie" VALUE="0"><PARAM NAME="BGColor" VALUE="000000"><PARAM NAME="SWRemote" VALUE=""><PARAM NAME="MovieData" VALUE=""><PARAM NAME="SeamlessTabbing" VALUE="1"><PARAM NAME="Profile" VALUE="0"><PARAM NAME="ProfileAddress" VALUE=""><PARAM NAME="ProfilePort" VALUE="0">\n');
   document.write('<embed src="portfolio.swf" quality="high" wmode="transparent" bgcolor="#000000" width="100%" height="100%" name="portfolio" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> \n');
   document.write('</OBJECT> \n');

}

function getURLParam(strParamName){
  var strReturn = "";
  var strHref = window.location.href;
  if ( strHref.indexOf("?") > -1 ){
    var strQueryString = strHref.substr(strHref.indexOf("?")).toLowerCase();
    var aQueryString = strQueryString.split("&");
    for ( var iParam = 0; iParam < aQueryString.length; iParam++ ){
      if (aQueryString[iParam].indexOf(strParamName.toLowerCase() + "=") > -1 ){
        var aParam = aQueryString[iParam].split("=");
        strReturn = aParam[1];
        break;
      }
    }
  }
  return unescape(strReturn);
}
