function max(link){
	var form 	= $('screenBig');
	var mainDiv	= document.createElement('div');
	var background = 1;
	mainDiv.id	= 'infoBox';
	form.appendChild(mainDiv);
	
	if(background == 1){
		var pic				= $('projectIMG')
		var picH			= pic.offsetHeight;
		var picW			= pic.offsetWidth;
		var bg				= document.createElement('div');
		
		bg.id				= 'bg';
		bg.style.position	= 'absolute';
		bg.style.top		= 0 + 'px';
		bg.style.left		= 0 + 'px';
		bg.style.width		= "1000px";
		//bg.style.width		= screen.availWidth  + 'px';
		bg.style.height		="750px";
		//bg.style.height		= screen.availHeight  + 'px';
		bg.style.background	= '#ffffff';
		
		//bg.style.background	= '#4c0022';
		bg.style.zIndex 	= 99;
		bg.style.filter		= 'Alpha(opacity=90)';
		bg.style.opacity	= '0.97';
		/* -moz-opacity: 0.7;		*/
		mainDiv.appendChild(bg);
	}
	
	var alertDiv 				= document.createElement('div');
	alertDiv.id					= 'alertDiv';
	var height					= picH;
	var width					= 900;
	var y 						= (500 - picH) / 2; // pozycja na ekranie wedlug osi y
    var x 						= (500 - picW) / 2; // pozycja na ekranie wedlug osi x

    /*alert('wymiary okna: '+screen.availHeight+' * '+screen.availWidth+'\n wymiary zdjecia: '+picH+' * '+picW+'\n wspolrzedne beta: x - '+x+' y - '+y);*/
    
	alertDiv.style.position		= 'absolute';
	alertDiv.style.top			= 10 + 'px';
	alertDiv.style.left			= 100 + 'px';
	alertDiv.style.width		= width + 'px';
	alertDiv.style.minHeight	= height + 'px';
	var browser					= navigator.appName;

	if (browser=="Microsoft Internet Explorer") {
		/*alertDiv.style.height		= height + 'px';*/	
	} else {
		alertDiv.style.height		= 'auto !important ' + height + 'px';
	}
	/*alertDiv.style.padding		= '20px';*/	
	alertDiv.style.zIndex		= 100;
	alertDiv.style.textAlign	= 'right';
		
	mainDiv.appendChild(alertDiv);
	
	$('alertDiv').innerHTML	= '<a style="position: absolute; top: 10px; right: 40px;" href="javascript: close();"><img src="images/applicat\
ion/zamknij.jpg" border="0" /></a><img src="' + link + '" border="0" />';
	
	
}

function close(){
	$('screenBig').removeChild($('infoBox'));
}

