﻿$(function() {
    $('#table1 tr:even').addClass('even');
    $('#table1 tr:even td').addClass('pngFix');
    $('.gallery').each(function(){
    for(var listItem=3; listItem < $(this).find('li').length; listItem = listItem+4) {
        var li = $(this).find('li')[listItem];
        $(li).addClass("last");
    }
    });
});

function ConfirmDelete(val)
{
    return confirm("Are you sure that you want to permanently remove this " + val +"?");
}


$(document).ready(function()
{
    $(".txtBox").focus(function(srcc)
    {
        if ($(this).val() == $(this)[0].title)
        {
            $(this).removeClass("txtBoxActive");
            $(this).val("");
        }
    });
    
    $(".txtBox").blur(function()
    {
        if ($(this).val() == "")
        {
            $(this).addClass("txtBoxActive");
            $(this).val($(this)[0].title);
        }
    });
    
    $(".txtBox").blur();  
   
    $('#adminBar ul li:last-child').addClass('last');  
});



