$(document).ready(function () {


/* menu en selectbox */ 
	$('.selectbox ul').hide();
	$('.selectbox_bt').hover(
		function()
		{	
			$(this).find('.selectbox ul').show();		
		},
		function()
		{
			$(this).find('.selectbox ul').hide();
		}
	);

	
});

function detectMacXFF2() {
	var userAgent = navigator.userAgent.toLowerCase();
			if (/firefox[\/\s](\d+\.\d+)/.test(userAgent)) {
  				var ffversion = new Number(RegExp.$1);
  				if (ffversion < 3 && userAgent.indexOf('mac') != -1) {
    				return true;
  				}
			}
}

function openAlbum(content) 
{
	
	$("#window").html('');
	$("#overlay").show();
	$("#window").css( "width", "1000px");
	$("#window").css( "height", "600px");
	$("#window").css( "left",(($(window).width()-1000)/2)+"px");
	$("#window").css( "top", "50px"); //(($(window).height()-400)/2)+"px");
	if(!detectMacXFF2()){
		$("#overlay").css("-moz-opacity", "0.50");
	}
	$("#window").show();
	$("#window").html(content);
	
}

function closeAlbum(){
	$("#overlay").hide();
	$("#window").html('');
	$("#window").hide();
	
}

