    // First, we must tell jStore where to find the HTML file which embeds our flash script.  
    // If you move the jStore.swf or jStore.Flash.html files out of their default directories (document root),  
    // use this variable to define where to access the .html file. Within the .html file, you can set up the  
    // path to the .swf file.  
    // Then, set up the default engine we wish to use.  
    jQuery.extend(jQuery.jStore.defaults, {  
        project: 'demo-guide',  
        engine: 'flash',  
        flash: 'http://www.inspiredbyiceland.com/other_files/flash/jStore.Flash.html'  
    })

     
    // Next, we need to wait for jStore to prepare the storage engine
    jQuery.jStore.ready(function(engine){
		jQuery.jStore.flashReady(function(){
			// Finally, we need to wait for the storage engine to be ready
			// Once this function is called, you can use the jStore interface synchronously
			engine.ready(function(){
				var engine = this;
				if( jQuery.jStore.get('ibi_naviChecked') == 'yes' )
				{
					/*
					hidePopover();
					naviActive = 1;
					naviInit = 0;
					archiveInit = 0;
					archiveActive = 0;
					*/
					naviDo = "hide";
					checkNavi(); 
				}
				else
				{
					/*
					naviActive = 0;
					naviInit = 0;
					archiveInit = 0;
					archiveActive = 0;
					
					*/             
					naviDo = "show";
					checkNavi();
				}
            })
        })
    });  

    // Once the engine is prepared, we can do whatever we need with it  
    function dothis(){
		//jQuery.jStore.remove('counter');
		jQuery.jStore.remove('ibi_naviChecked'); 
    }

function telljStore( what )
{
	jQuery.jStore.set( 'ibi_naviChecked', what );
}

     
    // Finally, we trigger jStore's load function. This is a new step in the   
    // activation procedure of jStore, since Version 1.1  
    $(function(){ 
        jQuery.jStore.load();  
    });

