﻿// JScript File

function InitMaster()
{         
   SetRoundedCorners();
   InitializeLightBox();  
}

function SetRoundedCorners()
{
    $('#sample').corner("top");        
    $('#divFooter').corner("bottom"); 
}

function InitializeLightBox()
{
     // Use this example, or...
    $('a[@rel*=lightbox]').lightBox();
    $('a[@rel*=misc]').lightBox();
    $('a[@rel*=dog]').lightBox();
    $('a[@rel*=family]').lightBox();
    $('a[@rel*=surf]').lightBox();
     // Select all links that contains lightbox in the attribute rel
    // This, or...
    //$('#gallery a').lightBox(); // Select all links in object with gallery ID
    // This, or...
    //$('a.lightbox').lightBox(); // Select all links with lightbox class
    // This, or...
    //$('a').lightBox(); // Select all links in the page
}
function Swap(img, url)
{
    $(img).attr('src' , 'images/'+url);
}

function SetGallery(category)
{    
    $('#'+ category).click();
}