/*
FUNTIONS LIB


*/

var numer_pieca = 0;
var numer_zdjecia = 0;




function showBigPicture_efect_1(nrPieca, nrZdjecia){
	
	var oPBG 	= document.getElementById('specialPictureBG');	// ok
	
	var oPBox 	= document.getElementById('specialPictureBOX');	// ok
	
	numer_pieca   = nrPieca;
	numer_zdjecia = nrZdjecia;
	
	// resetowanie ustawien tla
	//oPBG.clearQueue();
	//oPBox.clearQueue();
	//oPFrame.clearQueue();
	//oPFrame_preloader.clearQueue();
	
	oPBG.style.display = 'none'; 	// ok
	oPBG.style.top = '0px'; 			// ok
	oPBG.style.left = '0px';			// ok
	
	// wstepne ustawianie wysokosci ciemnego tla
	oPBG.style.height = $(document).height()+'px';	// ok
	oPBG.style.width = '100%';						// ok
	
	// kod obslugujacy flasha
	so.addParam("wmode", "transparent");
	so.addVariable("id_piec",numer_pieca);
	so.addVariable("id_img",numer_zdjecia);
	so.write("zoomImg");
	
	
	// wyswietlanie ciemnego tla
	$(oPBG).fadeIn('50');				// ok

	$(oPBox).fadeIn('50');
			
			
	//alert('inside: '+'numer pieca='+numer_pieca+' numer zdjecia='+numer_zdjecia);
		
	
	//alert('oPBG.style.top='+oPBG.style.top+' oPBG.style.left='+oPBG.style.top);
	//alert('oPFrame.style.top='+oPFrame.style.top+' oPFrame.style.left='+oPFrame.style.top);
	//alert('oPFrame.style.width='+oPFrame.style.width+' oPFrame.style.height='+oPFrame.style.height);
	//alert('oIMG.source='+oIMG.getAttribute('src'));
	//alert('oPBG.style.display='+oPBG.style.display);
	//alert('oPFrame.style.display='+oPFrame.style.display);
	//alert('oPBox.style.display='+oPBox.style.display);
}


function hideBigPicture_efect_1(){
	
	var oPBG 	= document.getElementById('specialPictureBG');					// ok
	
	var oPBox 	= document.getElementById('specialPictureBOX');	// ok

	// czyszczenie kolejki animacji
	//oPBG.clearQueue();
	//oPBox.clearQueue();
	//oPFrame.clearQueue();
	//oPFrame_preloader.clearQueue();
	
	$(oPBox).fadeOut('125');
	
	$(oPBG).fadeOut('125');		// ok
	
	/*
	oPBG.style.display = 'none';	// ok
	oPBG.style.top = 0;				// ok
	oPBG.style.left = 0;			// ok
	
	oPFrame.style.display = 'none';	// ok
	oPFrame.style.top = 0;			// ok
	oPFrame.style.left = 0;			// ok
	
	*/
}


