


function showView( id, e, index )
	{
		while( e.tagName != 'DIV' )
		{
			e = e.parentNode;
		}

	var img = document.images['image'];
		if( index != null )
		{
			if( img.defaultSource == null ) img.defaultSource = img.src;
		img.src = img.src.substring(0, img.src.lastIndexOf('/') + 1) + additionalViews[index];
		}
		else if( img.defaultSource != null ) img.src = img.defaultSource;
		
		
	var c = document.getElementById(id);
	var childs = c.childNodes;
	var tag = 'DIV';
	
		for( var i = 0 ; i < childs.length ; i ++ )
		{
			if( childs[i].tagName == tag )
			childs[i].className = '';
		}
			
	e.className = 'current';
	}

