function show(obj)
{
    get_object(obj).style.display = "";
}

function hide(obj)
{
    get_object(obj).style.display = "none";
}

function load_links()
{       
    if(get_object("footer-links") && get_object("top-links"))             
        get_object("footer-links").innerHTML = get_object("top-links").innerHTML; 
}

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 show(obj)
{
    if(get_object(obj)) get_object(obj).style.display = "";
}

function hide(obj)
{
    if(get_object(obj)) get_object(obj).style.display = "none";
}

function toggle(obj)
{
    if(get_object(obj))
    {
        if(get_object(obj).style.display == "none")
            show(obj);
        else
            hide(obj);
    }
}

function enable(obj)
{
    if(get_object(obj)) get_object(obj).disabled = false;
}

function disable(obj)
{
    if(get_object(obj)) get_object(obj).disabled = true;
}

$(document).ready(function(){
    $("a[rel^='prettyPhoto']").prettyPhoto({
        opacity: 0.40, /* Value between 0 and 1 */
        show_title: false, /* true/false */
        allow_resize: true, /* Resize the photos bigger than viewport. true/false */ 
        counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
        theme: 'facebook', /* light_rounded / dark_rounded / light_square / dark_square / facebook */
        hideflash: true,
        iframe_markup: '<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>'
    });
});
