
//.................................................................................................

/*
    zrobić małą miniaplikację, która będzie robiła zrut obiektu
    
    będzie to taki inspektor zmiennej
    
    po jej wywołaniu, przekazane zmienne zostaną wywołane w formie drzewka
        po którym będzie można się poruszać, zwijając bądź rozwijając gałęzie
*/

function dump(obiekt, caption) {
    
    console.group(caption);
    
    for (key in obiekt) {
        
        if (typeof(obiekt[key]) === 'function') {
            
            console.warn('key: ' + key + ' typeof: ' + typeof(obiekt[key]));
            }
        
        else {
            console.log('key: ' + key + ' typeof: ' + typeof(obiekt[key]));
            }
        
        }
    
    console.groupEnd();
    }


//.................................................................................................

function kontrolka_fsite() {
    
    
    FSite2.extendForm(document, {
        
        layerAnchorClass: 'newlayer',
        layerBackgroundId: 'layer_background',
        layerLoaderId: 'layer_loader',
        layerContentClass: 'layer_content',
        layerCloseClass: 'gallery_close',
        layerOnShow: function ()
        	{
        		//loadGMap('gmap_contact');
        	},
        	
        galleryBackgroundId: 'layer_background',
        galleryLoaderId: 'layer_loader',
        galleryClass: 'gallery',
        galleryLayerClass: 'layer_gallery',
        galleryOnPhotoError: function() {
        	
        	var photoIndex = this.photoElement.galleryIndex;
        	
        	
        	if (this.photos[photoIndex]) {
        	
                var flv = this.photos[photoIndex].source;
                
                
                
                var film = new SWFObject('/perlanbio_player.swf', 'chartswf', 500, 365, 8, '#ffffff');
                film.addParam('wmode', 'transparent');
                film.addVariable("videosrc", flv);
                film.write(this.photoElement.id);
                
                this.photoLayer.object.style.width='500px';
                
                this.captionElement.innerHTML = '';
                
                if (this.photos[photoIndex].caption) {
                    this.captionElement.appendChild(document.createTextNode(this.photos[photoIndex].caption));
                    }
                
                return true;
                }
        	}
        });
    
    }


/*
function mapClick(id)
{
  document.getElementById(id).onclick();
  clearInterval(interval);
		interval=null;
  return false;
}
function onLoad()
{
	so = new SWFObject('/menu.swf', 'menu', 1000, 144, 8, '#FFFFFF');
	so.addParam('wmode', 'transparent');
	so.addVariable('aktualnyID', '3');
	so.write('header');
	so = new SWFObject('/rotator.swf', 'menu', 480, 498, 8, '#FFFFFF');
	so.addParam('wmode', 'transparent');
	so.write('fruit_rotator');
	var container;
	
	if (container=document.getElementById('content_container'))
	{
		var wndo1 = new dw_scrollObj('scrolled_content', 'scrolled_body', null);
		wndo1.setUpScrollbar("scroller_tracker", "scroller", "v", 0, 0);
		
		FSite2.extendForm(container, {
				layerAnchorClass: 'newlayer',
				layerBackgroundId: 'layer_background',
				layerLoaderId: 'layer_loader',
				layerContentClass: 'layer_content',
				layerCloseClass: 'gallery_close',
				layerOnShow: function ()
					{
						loadGMap('gmap_contact');
					},
				galleryBackgroundId: 'layer_background',
				galleryLoaderId: 'layer_loader',
				galleryClass: 'gallery',
				galleryLayerClass: 'layer_gallery',
				galleryOnPhotoError: function()
					{
						var photoIndex=this.photoElement.galleryIndex;
						if (this.photos[photoIndex])
						{
							var chart = new SWFObject(this.photos[this.photoElement.galleryIndex].source, 'chartswf', 700, 450, 8, '#FFFFFF');
							chart.addParam('wmode', 'transparent');
							chart.write(this.photoElement.id);
							this.photoLayer.object.style.width='700px';
							
							this.captionElement.innerHTML = '';
							if (this.photos[photoIndex].caption)
								this.captionElement.appendChild(document.createTextNode(this.photos[photoIndex].caption));
							
							return true;
						}
					}
				});
	}
}
*/

