function addLight() {
    addDiv('indexLogoMenuContainer', 'light', 0, 0);
    addSwf('light', 'images/light.swf', 198, 141);
}

function removeLight() {
    removeDiv('indexLogoMenuContainer', 'light');
    addDiv('indexLogoMenuContainer', 'girl', -55, 200);
    addSwf('girl', 'images/girl.swf', 70, 400);
}

function addDiv(parentDivName, divName, top, left) {
    var container = document.getElementById(parentDivName);
    new_div = document.createElement('div');
    new_div.setAttribute('id', divName);
    new_div.style.position = 'absolute';
    new_div.style.top = top;
    new_div.style.left = left;
    container.appendChild(new_div);
}

function removeDiv(parentDivName, divName) {
    var container = document.getElementById(parentDivName);
    var new_div = document.getElementById(divName);
    container.removeChild(new_div);
}

function addSwf(divName, url, width, height) {
    var swf_str = "";
    swf_str += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,19,0" width="'+width+'" height="'+height+'">';
    swf_str += '<param name="movie" value="'+url+'">';
    swf_str += '<param name="quality" value="high">';
    swf_str += '<embed src="'+url+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'">';
    swf_str += '</embed></object>';
    document.getElementById(divName).innerHTML = swf_str;
}
