
$(function() {

    var cache = [];
    // Arguments are image paths relative to the current page.
    $.preLoadImages = function() {
      var args_len = arguments.length;
      for (var i = args_len; i--;) {
        var cacheImage = document.createElement('img');
        cacheImage.src = arguments[i];
        cache.push(cacheImage);
      }
    }
    
    $(".img_over").mouseover( function() {
      $(this).attr('src', '/web/img/'+$(this).attr('rel')+'_over.jpg');
    });

    $(".img_over").mouseout( function() {
      $(this).attr('src', '/web/img/'+$(this).attr('rel')+'.jpg');
    });

    $("a[rel^='prettyPhoto']").prettyPhoto();

});

function imageGallery(ident)
{
  $("#id-"+ident).click();
}



function outRow(obj)
{
	obj.style.backgroundColor = '';
}


function overRow(obj)
{
	obj.style.backgroundColor = '#205809';
}

function showAlert()
{
	document.getElementById('alert_box').style.display = 'block';
}

function ShowPopup(action, userid) {
$('#popup').fadeIn('fast');
$('#window').fadeIn('fast');
}
function ClosePopup() {
$('#popup').fadeOut('fast');
$('#window').fadeOut('fast');
}
