$(document).ready(function(){
	<!-- Hide subnav -->				  
	var profiles =
	{
		popup_pmiller:
			{
				height:700,
				width:695,
				scrollbars:1,
				toolbar:0,
				status:0,
				menubar:0,
				location:0,
				left:50,
				top:20
			},
		popup_bvandenberghe:
			{
				height:700,
				width:695,
				scrollbars:1,
				toolbar:0,
				status:0,
				menubar:0,
				location:0,
				left:50,
				top:20
			},
		popup_mwollgast:
			{
				height:700,
				width:695,
				scrollbars:1,
				toolbar:0,
				status:0,
				menubar:0,
				location:0,
				left:50,
				top:20
			},
		popup_gary:
			{
				height:740,
				width:695,
				scrollbars:1,
				toolbar:0,
				status:0,
				menubar:0,
				location:0,
				left:50,
				top:20
			},
		popup_arne:
			{
				height:700,
				width:685,
				scrollbars:1,
				toolbar:0,
				status:0,
				menubar:0,
				location:0,
				left:50,
				top:20
			},
		popup_newsletter:
			{
				height:240,
				width:200,
				scrollbars:0,
				toolbar:0,
				status:0,
				menubar:0,
				location:0,
				left:50,
				top:20
			}	
		};

$(".over").eq(0).css("cursor","pointer").find("img").wrap("<a href='exhibitions/05_pmiller/MIKRO_05_pmiller_ausstellung_en.html' class='popupwindow' rel='popup_pmiller'></a>");
$(".over").eq(1).css("cursor","pointer").find("img").wrap("<a href='exhibitions/04_bvandenberghe/MIKRO_04_bvdb_ausstellung_en.html' class='popupwindow' rel='popup_mwollgast'></a>");
$(".over").eq(2).css("cursor","pointer").find("img").wrap("<a href='exhibitions/03_mwollgast/MIKRO_03_mwollgast_ausstellung_en.html' class='popupwindow' rel='popup_mwollgast'></a>");
$(".over").eq(3).css("cursor","pointer").find("img").wrap("<a href='exhibitions/02_gary/MIKRO_02_gary_ausstellung_en.html' class='popupwindow' rel='popup_gary'></a>");
$(".over").eq(4).css("cursor","pointer").find("img").wrap("<a href='exhibitions/01_arne/MIKRO_01_arne_ausstellung_en.html' class='popupwindow' rel='popup_arne'></a>");

$(function()
		{
   			$(".popupwindow").popupwindow(profiles);
   	});

$(".text").hide();

$(".over").mouseover(function(event){
	$(".text", this).show();
});
	
$(".over").mouseout(function(event){
	$(".text", this).hide();
});
	
$(".text").click(function() {
	$(this).closest(".over").find("a:first").trigger('click');					  
});

});

