﻿function confirmDelete() {
    return confirm("Are you sure you wish to delete this item?");
}

function confirmCancel() {
    return confirm("Are you sure you wish to cancel? All unsaved data will be lost.");
}

function confirmArchive() {
    return confirm("Are you sure you wish to archive this item?");
}

function confirmUnArchive() {
    return confirm("Are you sure you wish to move this item back to News?");
}

function toggleKeyword(keyword) {
    document.getElementById(keyword).style.display = 
       (document.getElementById(keyword).style.display == 'block') ? 'none' : 'block';
}


//$(document).ready(function() {

//    //Larger thumbnail preview 

//    $("ul.thumb li").hover(function() {
//        $(this).css({ 'z-index': '999' });
//        $(this).find('img').addClass("hover").stop()
//    .animate({
//        marginTop: '-134px',
//        marginLeft: '-180px',
//        top: '50%',
//        left: '50%',
//        width: '314px',
//        height: '220px',
//        padding: '20px',
//        overflow: 'visible'
//    }, 200);

//        }, function() {
//            $(this).css({ 'z-index': '0' });
//            $(this).find('img').removeClass("hover").stop()
//    .animate({
//        marginTop: '0',
//        marginLeft: '0',
//        top: '0',
//        left: '0',
//        width: '235px',
//        height: '165px',
//        padding: '5px'
//    }, 400);
//        });
//});
