/**************************************************************
 * @function script
 * @description handles the onload functionality
 * @author James Palm, jp@interaktionsbolaget.se
 * @param 
 * @return 
 **************************************************************/
window.onload = new Function("windowOnLoad()");

function windowOnLoad() {
    try {
        // function call
    }
    catch(e) {
        // do nothing
    }
    
    if(window.focus) {
        try {
            window.focus();
        }
        catch(e) {
            // do nothing
        }
    }
}
/**************************************************************/