function ie_version()
{
var b_version=navigator.appVersion;
	if (b_version.indexOf('MSIE 6.0')!=-1){
	$('pasek_dol').set('styles', {'visibility': 'hidden'});
	} else {
	return false;
	}
}
function on(ob)
{
var path='img/' + ob + '_on.gif';
document.getElementById(ob).src=path;
}
function off(ob)
{
var path='img/' + ob + '.gif';
document.getElementById(ob).src=path;
}
function hide_all()
{
	for (i=1;i<=ilosc_eltow_menu;i++) // ukrywamy wszytko na starcie oprocz wyszczegolnionego
	{
		if (odkryty!=i && $('sub_'+i) != null){
		var myVerticalSlide = new Fx.Slide('sub_'+i);
		myVerticalSlide.hide();
		}
	}
}
function on_off(item)
{
var myVerticalSlide = new Fx.Slide(item);
myVerticalSlide.toggle();
	for (i=1;i<=ilosc_eltow_menu;i++) // ukrywamy wszystkie rozwini?te
	{	
		if (item!='sub_'+i && $('sub_'+i) != null){
		var myVerticalSlide = new Fx.Slide('sub_'+i);
		myVerticalSlide.slideOut();
		}
	}
}


function change_pos()
{
var el = document.getElementById('banner');
el.style.top=document.documentElement.scrollTop+100 +'px';
el.style.left=document.documentElement.clientWidth/2-390 + 'px';
}

window.onresize=change_pos

window.onload = function() {
change_pos();
var el = document.getElementById('banner');
el.style.visibility='visible';
}

function hide()
{
document.getElementById('banner').style.visibility='hidden';
}

function player()
{
var s = new SWFObject("./swf/player.swf","PlayerID","533","450","7");
s.addParam("allowfullscreen","true");
	s.addVariable("file","./xml/film_visual.xml");
	s.addVariable("displayheight","300");
	s.addVariable("overstretch","fit");
	s.addVariable("shuffle","false");
	s.addVariable("thumbsinplaylist","false");
	s.addVariable("backcolor","0x360E4A");
	s.addVariable("screencolor","0x360E4A");
	s.addVariable("autostart","true");
	s.addVariable("lightcolor","0x5b187c");
	s.addVariable("frontcolor","0xb3abb7");
	s.write('flashcontent_film');
}
function scenografia(rows, cols)
{
				var fo = new SWFObject("./swf/TiltViewer.swf", "viewer", "690", "690", "9.0.28", "#000000");			
				
				// TILTVIEWER CONFIGURATION OPTIONS
				// To use an option, uncomment it by removing the "//" at the start of the line
				// For a description of config options, go to: 
				// http://www.airtightinteractive.com/projects/tiltviewer/config_options.html
																	
				//FLICKR GALLERY OPTIONS
				// To use images from Flickr, uncomment this block
				//fo.addVariable("useFlickr", "true");
				//fo.addVariable("user_id", "48508968@N00");
				//fo.addVariable("tags", "jump,smile");
				//fo.addVariable("tag_mode", "all");
				//fo.addVariable("showTakenByText", "true");			
				
				// XML GALLERY OPTIONS
				// To use local images defined in an XML document, use this block		
				fo.addVariable("useFlickr", "false");
				fo.addVariable("xmlURL", "./xml/scenografia.xml");
				fo.addVariable("maxJPGSize","800");
				
				//GENERAL OPTIONS		
				fo.addVariable("useReloadButton", "false");
				fo.addVariable("columns", cols);
				fo.addVariable("rows", rows);
				//fo.addVariable("showFlipButton", "true");
				//fo.addVariable("showLinkButton", "true");		
				//fo.addVariable("linkLabel", "View image info");
				

				fo.addVariable("frameColor", "0x350E49");
				fo.addVariable("backColor", "0xdfc9e9");	
				
				//PRO OPTIONS
				fo.addVariable("bkgndTransparent", "true");
				//fo.addVariable("showFullscreenOption", "false");
				fo.addVariable("frameWidth", "10");
				fo.addVariable("zoomedInDistance", "1250");
				//fo.addVariable("zoomedOutDistance", "7500");
				//fo.addVariable("fontName", "Times");
				fo.addVariable("titleFontSize", "30");
				//fo.addVariable("descriptionFontSize", "32");
				//fo.addVariable("linkFontSize", "41");
				//fo.addVariable("linkTarget", "_self");
				fo.addVariable("flipButtonColor", "0x350E49");
				//fo.addVariable("textColor", "0xFFFFFF");
				//fo.addVariable("linkTextColor", "0x000000");
				//fo.addVariable("linkBkgndColor", "0xFFFFFF");
				fo.addVariable("enableSounds", "false");
				//fo.addVariable("tiltAmountIn", "75");
				//fo.addVariable("tiltAmountOut", "120");
				
				// END TILTVIEWER CONFIGURATION OPTIONS
				
				fo.addParam("allowFullScreen","true");
				fo.write("scenografia_flash_content");		
}
function portfolio(path)
{
				var fo = new SWFObject("./swf/TiltViewer.swf", "viewer", "450", "320", "9.0.28", "#000000");			
				
				// TILTVIEWER CONFIGURATION OPTIONS
				// To use an option, uncomment it by removing the "//" at the start of the line
				// For a description of config options, go to: 
				// http://www.airtightinteractive.com/projects/tiltviewer/config_options.html
																	
				//FLICKR GALLERY OPTIONS
				// To use images from Flickr, uncomment this block
				//fo.addVariable("useFlickr", "true");
				//fo.addVariable("user_id", "48508968@N00");
				//fo.addVariable("tags", "jump,smile");
				//fo.addVariable("tag_mode", "all");
				//fo.addVariable("showTakenByText", "true");			
				
				// XML GALLERY OPTIONS
				// To use local images defined in an XML document, use this block		
				fo.addVariable("useFlickr", "false");
				fo.addVariable("xmlURL", "./xml/" + path);
				fo.addVariable("maxJPGSize","800");
				
				//GENERAL OPTIONS		
				fo.addVariable("useReloadButton", "false");
				fo.addVariable("columns", "5");
				fo.addVariable("rows", "5");
				//fo.addVariable("showFlipButton", "true");
				//fo.addVariable("showLinkButton", "true");		
				//fo.addVariable("linkLabel", "View image info");
				
				fo.addVariable("frameColor", "0xdfc9e9");
				fo.addVariable("backColor", "0xdfc9e9");
				
				//PRO OPTIONS
				fo.addVariable("bkgndTransparent", "true");
				//fo.addVariable("showFullscreenOption", "false");
				fo.addVariable("frameWidth", "10");
				fo.addVariable("zoomedInDistance", "1200");
				fo.addVariable("zoomedOutDistance", "5100");
				//fo.addVariable("fontName", "Times");
				fo.addVariable("titleFontSize", "30");
				//fo.addVariable("descriptionFontSize", "32");
				//fo.addVariable("linkFontSize", "41");
				//fo.addVariable("linkTarget", "_self");
				fo.addVariable("flipButtonColor", "0x350E49");
				//fo.addVariable("textColor", "0xFFFFFF");
				//fo.addVariable("linkTextColor", "0x000000");
				//fo.addVariable("linkBkgndColor", "0xFFFFFF");
				fo.addVariable("enableSounds", "false");
				//fo.addVariable("tiltAmountIn", "75");
				//fo.addVariable("tiltAmountOut", "120");
				
				// END TILTVIEWER CONFIGURATION OPTIONS
				
				fo.addParam("allowFullScreen","true");
				fo.write("flashcontent");		
}