var oldId, oldBgColor;
function hiddenLayer(elem) {
document.getElementById(elem).style.visibility = 'hidden';
lightOff();}
function showLayer(elem) {
document.getElementById(elem).style.visibility = 'visible';}
function lightOn(elem) {
oldId = elem;
oldBgColor = document.getElementById(elem).style.background;
document.getElementById(elem).style.background = '#eeeeee';}
function lightOff() {
document.getElementById(oldId).style.background = oldBgColor;}
function find(n, d) {
        var p,i,x;
        x = null
        if(!d) d=document;
        if (!(x=d[n])&&d.all)
            x=d.all[n];
        for (i=0;!x&&i<d.forms.length;i++)
            x=d.forms[i][n];
        for (i=0;!x&&d.layers&&i<d.layers.length;i++)
            x=find(n, d.layers[i].document);/**/
        if (!x && d.getElementById)
            x=d.getElementById(n);
        return x;
    }
    
    function SwitchDIV(field, x, y) {
        var cb = find(field);
        state=(cb.style.display == '' ? false : true);
        if (state == null) state = cb.style.display
        if (state) state = 'none'
        if (!state) state = ''
        if (x != null) {
            cb.style.left = x + 'px';
        }
        if (y != null) {
            cb.style.top = y + 'px';
        }
        if (state == '') {
            cb.style.display = 'none'
            cb.style.visibility = 'hidden'
            return 0;
        } else {
            cb.style.display = ''
            cb.style.visibility = 'visible'
            return 1;
        }
    }
    function wpopen_flash_map(hh){
  w=window.open(hh, "sdf", "toolbars:no,scrollbars=1,width=710,height=550", false);
  w.focus();
}
function wpopen(hh1)
{
w=window.open(hh1, "wc1", "resizable=no,toolbars=no,scrollbars=1,width=710,height=550");
w.focus();

}

function FlashObject()
{
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="515" HEIGHT="400" id="map" ALIGN="">');
}
