	
	function handleChange( evt ) 
	{
		// ---------- read node and relation
		
		var node = undefined;
		var rel = '';

		if( evt.target != undefined && evt.target.rel )
		{
			node = evt.target;
			rel = node.rel;
		}
		else if( evt.target.parentNode != undefined && evt.target.parentNode.rel )
		{
			node = evt.target.parentNode;
			rel = node.rel;
		}
		else if( Ext.get(evt.target).getAttributeNS('ext', 'rel') )
		{
			node = evt.target;
			rel = Ext.get( node ).getAttributeNS('ext', 'rel');
		}	
		
		// ---------- build page title shown with lightbox
		
		if (node != undefined)
		{
			var old_title = SWFAddress.getTitle().split( ' | ' );
			
			// set page title - Jung von Matt | subsection | headline of element
			if (node.title) {
				SWFAddress.setTitle(old_title[0] + ' | ' + old_title[1] + ' | ' + node.title);
				if(old_title[1] == "News"){
					/* --------------------------------------------------------------------- */
					//			Tracking for News only!
					//Analytics:
					pageTracker._trackEvent("News", "Read", node.title);
					/* --------------------------------------------------------------------- */
				}
				else if(window.location.href.indexOf("press") != -1){
					/* --------------------------------------------------------------------- */
					//			Tracking for News only!
					//Analytics:
					pageTracker._trackEvent("Press", "Read", node.title);
					/* --------------------------------------------------------------------- */
				}
			}
			
			// delete last title segment
			else 
				if (old_title.length > 2) {
					SWFAddress.setTitle(old_title[0] + ' | ' + old_title[1]);
				}
			
			// ---------- change uri
			
			SWFAddress.setValue( rel );
			
		}
		
		return false;
	}
	
	// ------------------------------------------------------------------------
	
	function getHash()
	{
		var hash = undefined;
		if( window.location.hash )
		{
			hash = window.location.hash;
			return hash.substring( 1 );
		}
		else return hash;
	}
	
	// ------------------------------------------------------------------------
	
	function initDeeplinking()
	{
		var hash = getHash();
		
		if( hash!=undefined && hash != '/results' )
		{
			var id_array = hash.split( '/' );
			var id = id_array[1];
			var path_array = window.location.pathname.split( '/') ;
			
			if( id && id.length>0 )
			{
				var path = '';
				for( var i=2; i<path_array.length-1; i++ )
					path += path_array[i] + '_';
				
				id = path+id;
				id = id.replace( 'ideas', 'campaign' ); // campaigns are the new ideas - but the URL is called ideas anyway
				
				if (id.search("news") == -1 && id.search("press") == -1)
				triggerLightbox( 'open', id );
				
				else
				toggleAccordeonById('accordeonToggleMore'+id_array[1]);
			}
		}
		
		SWFAddress.addEventListener( SWFAddressEvent.CHANGE, _hashChange );
	}
	
	// ------------------------------------------------------------------------
	
	function _hashChange( evt )
	{
		if( evt.path=="/" )
			triggerLightbox( 'close' );
		
		else if( illuFlashvars.section=="cases" )
			browseThroughCases( evt.pathNames[0] );
		
		else if( illuFlashvars.section=="ideas" )
			browseThroughIdeas( evt.pathNames[0] );
		
		else if( illuFlashvars.subsection=="insights" )
			browseThroughInsights( evt.pathNames[0] );
		
		else if( illuFlashvars.subsection=="agencies" )
			browseThroughAgencies( evt.pathNames[0] );
	}
