﻿function addLoadEvent(func) 
{
    var oldonload = window.onload;
    if (typeof window.onload != 'function') {
        window.onload = func;
    } else {
        window.onload = function() {
            if (oldonload) {
                oldonload();
            }
            func();
        }
    }
}

function loadFlashPort()
{
  var str = addFlashContent( "ViewPortfolio", "630", "350", flashvars );
  
  var elem;
    if( document.getElementById ) // this is the way the standards work
      elem = document.getElementById( "flashPort" );
    else if( document.all ) // this is the way old msie versions work
      elem = document.all["flashPort"];
    else if( document.layers ) // this is the way nn4 works
      elem = document.layers["flashPort"];
    elem.innerHTML = str;
 
}

