﻿function CreateBookmarkLink( title, url ) { 
    if (window.sidebar) { 
        // Firefox
        window.sidebar.addPanel(title, url,"");	
    } else if( window.external ) { 
        // IE 
        window.external.AddFavorite( url, title); 
    } else if(window.opera && window.print) { 
        // Opera
        return true; 
    } 
}


function setGalleryGray( img ) { 
    if(img.src.indexOf( 'gal_Gray.gif') > 0 ){
        img.src = '/images/gal_Blue.gif';
    } else{
        img.src = '/images/gal_Gray.gif';
    }
    
    
}

function setGalleryBlue( img) { 
   img.src = '/images/gal_Blue.gif';
}


function setEnlGray( img ) { 
    if(img.src.indexOf( 'enl_Gray.gif') > 0 ){
        img.src = '/images/enl_Blue.gif';
    } else{
        img.src = '/images/enl_Gray.gif';
    }
}

function setEnlBlue( img) { 
   img.src = '/images/enl_Blue.gif';
}


function Show( obj )
{
    var el = document.getElementById (obj);
    el.style.width = 'auto';
    el.style.height = 'auto';
    el.style.display = 'inline';
}

function Show2(obj) {
    var el = document.getElementById(obj);
    el.style.display = 'inline';
}


function Hide( obj )
{
    var el = document.getElementById (obj);
    el.style.width = 0;
    el.style.height = 0;
    el.style.display = 'none';
}

function Hide2(obj) {
    var el = document.getElementById(obj);
    el.style.display = 'none';
}
