﻿function showContact(clicked, source) { }
function initFlash() {
    var flash = get_object("SiteFlash");
    if (flash) flash.Play();
}

function getFlashMovieObject(movieName) {
    if (window.document[movieName]) {
        return window.document[movieName];
    }
    if (navigator.appName.indexOf("Microsoft Internet") == -1) {
        if (document.embeds && document.embeds["embedMovieParam"])
            return document.embeds["embedMovieParam"];
    }
    else
    { return document.getElementById(movieName); }
}

function get_object(id) {
    var object = null;
    if (document.layers)
    { object = document.layers[id]; }
    else if (document.all)
    { object = document.all[id]; }
    else if (document.getElementById)
    { object = document.getElementById(id); }

    return object;
}

function addLoadEvent(func) {
    var oldonload = window.onload;
    if (typeof window.onload != 'function') {
        window.onload = func;
    } else {
        window.onload = function() {
            if (oldonload) {
                oldonload();
            }
            func();
        }
    }
}
