function include(jsFile){
    document.write('<script type="text/javascript" src="'+jsFile+'"></scr'+'ipt>');
}

function clone(o) {
     if(!o || 'object' !== typeof o)
     {
       return o;
     }

     var c = 'function' === typeof o.pop ? [] : {};
     var p, v;

     for(p in o)
     {
        if(o.hasOwnProperty(p))
        {
            v = o[p];
            if(v && 'object' === typeof v)
            {
                c[p] = clone(v);
            }
            else
            {
                c[p] = v;
            }
        }
     }

     return c;
}


function emailToFriend(link)
{
    hs.graphicsDir = '/www/assets/js/highslide/graphics/';
    hs.outlineType = 'rounded-white';
    hs.width       = 470;
    hs.height      = 240;
    return hs.htmlExpand(link, { objectType: 'iframe', contentId: 'mailfriend-form' } );
}

function showMap(link)
{
    hs.graphicsDir = '/www/assets/js/highslide/graphics/';
    hs.outlineType = 'rounded-white';
    hs.wrapperClassName = 'draggable-header no-footer';
    hs.allowSizeReduction = false;
    hs.preserveContent = false;
    hs.width       = 600;
    hs.height      = 600;
    return hs.htmlExpand(link, { objectType: 'swf', width: 600, objectWidth: 600, objectHeight: 600, maincontentText: 'You need to upgrade you Flash player'  } );
}

function login(link)
{
    hs.graphicsDir = '/www/assets/js/highslide/graphics/';
    hs.outlineType = 'rounded-white';
    hs.width       = 300;
    hs.height      = 160;
    return hs.htmlExpand(link, { objectType: 'iframe', contentId: 'login-form' } );
}

