
// CAPTION HOVER

jQuery(document).ready(function($) {

var Browser = {
  Version: function() {
    var version = 999; // we assume a sane browser
    if (navigator.appVersion.indexOf("MSIE") != -1)
      // bah, IE again, lets downgrade version number
      version = parseFloat(navigator.appVersion.split("MSIE")[1]);
    return version;
  }
}

	//move the image in pixel
	var move = 0;
	
	//zoom percentage, 1.2 =120%
	var zoom = 1.0;

	//On mouse over those thumbnail
	$('.captcont').hover(function() {
		//Set the width and height according to the zoom percentage
		width = $('.captcont').width() * zoom;
		height = $('.captcont').height() * zoom;
		
		//Move and zoom the image
//		$(this).find('img').stop(false,true).animate({'width':width, 'height':height, 'top':move, 'left':move}, {duration:300});
		
		if (Browser.Version() >= 9) {
			//Display the caption
			$(this).find('div.caption').stop(false,true).fadeIn(300);
		} else {
			$(this).find('div.caption').stop(false,true).fadeIn(0);
		}

		
	},
	function() {
		//Reset the image
//		$(this).find('img').stop(false,true).animate({'width':$('.captcont').width(), 'height':$('.captcont').height(), 'top':'0', 'left':'0'}, {duration:300});	
	
		if (Browser.Version() >= 9) {
			//Display the caption
			$(this).find('div.caption').stop(false,true).fadeOut(300);
		} else {
			$(this).find('div.caption').stop(false,true).fadeOut(0);
		}
	});

});



// EMAIL SPAM CODE
var user;
var domain;
var suffix;
function jemail(user, domain, suffix){
	document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + '">' + user + '@' + domain + '.' + suffix + '</a>');
}


