function ShowProjectOld( name )
{
    newImage = "url( img/" + name + ".jpg )";
    document.getElementById('projekt').style.backgroundImage = newImage;
    document.getElementById( 'p_'+name ).style.backgroundColor = '#fff';
}
function ShowProject( name )
{
    document.getElementById( name ).style.visibility = 'visible';
    newImage = "url( img/" + name + "_sel.jpg )";
	document.getElementById( 'p_' + name ).style.backgroundImage = newImage; 
}
function ShowProject2( name )
{
    newImage = "url( img/" + name + "_sel.jpg )";
	document.getElementById( 'p_' + name ).style.backgroundImage = newImage; 
}
function HideProject( )
{
    document.getElementById( 'atlanta' ).style.visibility = 'hidden';
    document.getElementById( 'p_atlanta' ).style.backgroundImage = '';
    document.getElementById( 'classic' ).style.visibility = 'hidden';
    document.getElementById( 'p_classic' ).style.backgroundImage = '';
    document.getElementById( 'variant' ).style.visibility = 'hidden';
    document.getElementById( 'p_variant' ).style.backgroundImage = '';
    document.getElementById( 'duo' ).style.visibility = 'hidden';
    document.getElementById( 'p_duo' ).style.backgroundImage = '';
    document.getElementById( 'delta' ).style.visibility = 'hidden';
    document.getElementById( 'p_delta' ).style.backgroundImage = '';
    document.getElementById( 'opera' ).style.visibility = 'hidden';
    document.getElementById( 'p_opera' ).style.backgroundImage = '';
    document.getElementById( 'aluwall' ).style.visibility = 'hidden';
    document.getElementById( 'p_aluwall' ).style.backgroundImage = '';
    document.getElementById( 'eko' ).style.visibility = 'hidden';
    document.getElementById( 'p_eko' ).style.backgroundImage = '';
    document.getElementById( 'professional' ).style.visibility = 'hidden';
    document.getElementById( 'p_professional' ).style.backgroundImage = '';
    document.getElementById( 'artspa' ).style.visibility = 'hidden';
    document.getElementById( 'p_artspa' ).style.backgroundImage = '';
    document.getElementById( 'xxl' ).style.visibility = 'hidden';
    document.getElementById( 'p_xxl' ).style.backgroundImage = '';
    document.getElementById( 'air' ).style.visibility = 'hidden';
    document.getElementById( 'p_air' ).style.backgroundImage = '';
}
function HideProject2( )
{
    document.getElementById( 'atlanta' ).style.visibility = 'hidden';
    document.getElementById( 'p_atlanta' ).style.backgroundImage = '';
    document.getElementById( 'classic' ).style.visibility = 'hidden';
    document.getElementById( 'p_classic' ).style.backgroundImage = '';
    document.getElementById( 'variant' ).style.visibility = 'hidden';
    document.getElementById( 'p_variant' ).style.backgroundImage = '';
    document.getElementById( 'duo' ).style.visibility = 'hidden';
    document.getElementById( 'p_duo' ).style.backgroundImage = '';
    document.getElementById( 'delta' ).style.visibility = 'hidden';
    document.getElementById( 'p_delta' ).style.backgroundImage = '';
    document.getElementById( 'opera' ).style.visibility = 'hidden';
    document.getElementById( 'p_opera' ).style.backgroundImage = '';
    document.getElementById( 'aluwall' ).style.visibility = 'hidden';
    document.getElementById( 'p_aluwall' ).style.backgroundImage = '';
    document.getElementById( 'eko' ).style.visibility = 'hidden';
    document.getElementById( 'p_eko' ).style.backgroundImage = '';
    document.getElementById( 'professional' ).style.visibility = 'hidden';
    document.getElementById( 'p_professional' ).style.backgroundImage = '';
    document.getElementById( 'artspa' ).style.visibility = 'hidden';
    document.getElementById( 'p_artspa' ).style.backgroundImage = '';
    if( document.getElementById( 'xxl' ).style.visibility != 'visible' )
		document.getElementById( 'p_xxl' ).style.backgroundImage = '';
    document.getElementById( 'air' ).style.visibility = 'hidden';
    document.getElementById( 'p_air' ).style.backgroundImage = '';
}
function Hide3()
{
	if( document.getElementById( 'air' ).style.visibility != 'visible' )
		document.getElementById( 'p_air' ).style.backgroundImage = '';	
}


var pWindow = null;

function picWindow( pic, width, height )
{
  if( pWindow && !pWindow.closed ) 
  {
    pWindow.close();
  }  
  sWidth = screen.width;
  sHeight = screen.height;  
  var pWindow = window.open( 'photo.php?pic=' + pic,"displayWindow",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=0,menubar=no,left=' + ( sWidth/2 - width/2 ) + ',top=' + ( sHeight/2 - height/2) + '\'');
pWindow.focus();
}
function picWindow2( pic, width, height )
{
  if( pWindow && !pWindow.closed ) 
  {
    pWindow.close();
  }  
  sWidth = screen.width;
  sHeight = screen.height;  
  var pWindow = window.open( 'photo2.php?pic=' + pic,"displayWindow",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=0,menubar=no,left=' + ( sWidth/2 - width/2 ) + ',top=' + ( sHeight/2 - height/2) + '\'');
pWindow.focus();
}
if( document.images )
{
	strzalka1 = new Image
  	strzalka2 = new Image
	strzalka1.src = 'img/strzalka1.png';
	strzalka2.src = 'img/strzalka2.png';
}
function embed_flash( file, width, height, parametr )
{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' +width +'" height="'+height+'">');
	document.write('<param name="movie" value="' + file + '?act=' + parametr + '" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="FlashVars" value="act=' + parametr + '" />');
	document.write('<embed src="' + file + '" quality="high" width="' + width + '" height="' + height + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">');
	document.write('</embed>');
	document.write('</object>');
}
	
