<!--
function onTop()
{
	page = self.location;
	if (page != top.location) return;
	page = ''+ page;
	if (!(page.indexOf('http://')==0 | page.indexOf('https://')==0)) return;
	
	var A = new Array();
	var i=0;
	A[i++] = 'gallery/adidaart';
	A[i++] = 'gallery/artculture';
	A[i++] = 'gallery/mummery';
	A[i++] = 'library/adidam_literature';
	A[i++] = 'library/great_tradition';
	A[i++] = 'library/collections';
	A[i++] = 'university/courses';
	A[i++] = 'university/great_tradition';
	A[i++] = 'university/campus';
	A[i++] = 'emporium/books';	
	A[i++] = 'emporium/gt';		//kludge value--see below for AE gt kludge
	A[i++] = 'emporium/tapes';
	A[i++] = 'emporium/sacred';	
	A[i++] = 'emporium/music';	
	A[i++] = 'emporium/art';
	A[i++] = 'emporium/health';	
	A[i++] = 'emporium/apparel';	
	A[i++] = 'emporium/environments';
	A[i++] = 'emporium/gifts';	
	A[i++] = 'emporium/devotee';	
	A[i++] = 'society/beyond_ego';
	A[i++] = 'society/cooperation';
	A[i++] = 'society/tolerance';	
	A[i++] = 'society/peace';
	A[i++] = 'adida/whoheis';	
	A[i++] = 'adida/teachings';	
	A[i++] = 'adida/religion';		
	A[i++] = 'museum/archives';		
	A[i++] = 'museum/adi_da';		
	A[i++] = 'museum/history';			
	
	anchorText = '';
	anchor_idx = page.indexOf('#');        
	if (anchor_idx > -1)
	{
		anchor = page.substring(anchor_idx+1);            
		page = page.substring(0,anchor_idx);
		anchorText += '&anchor='+anchor;         
	}
	href = '';

	var B = new Array();
	B[0] = '_reg';	
	B[1] = '_mem';
	B[2] = '_soc';
	var pageCheck = page;
	for (b=0;b<B.length;b++)
	{
		var bidx = page.indexOf(B[b]);		
		if (bidx>-1)
		{
			pageCheck = page.substring(0,bidx)+page.substring(bidx+B[b].length);
			break;
		}	
	}
	for (j=0;j<A.length;j++)
	{
		idx = pageCheck.indexOf(A[j]);
		if (idx > -1) 
		{
			var go='';
			href = pageCheck.substring(0,idx+A[j].length);

			//kuldge for /gateway2
			if (href.indexOf('/gateway2')>-1) href = href.substring(href.indexOf('/gateway2')+9);

			href += '/dhome.htm?go=';

			//kuldge for /gateway2
			if (pageCheck.indexOf('gateway2/university/campus/') > -1) go = '/gateway2/university/campus/';

			go += (page != pageCheck) ? page : page.substring(1+idx+A[j].length);
			go = escape(go);
			go+= anchorText;
			href += go;
			break;
		}
	}	
	if (href!='')
	{
		//kludge for AE gt section
		gtstr = '/emporium/gt';
		gti = href.indexOf(gtstr);		
		if (gti>-1) 
		{
			gtbook = '/emporium/books';
			gtmusic = '/emporium/music';
			href = href.substring(0,gti)+((href.indexOf('music')>-1) ? gtmusic : gtbook)+href.substring(gti+gtstr.length);
			gostr = 'go=';
			goidx = href.indexOf(gostr);
			href = href.substring(0,goidx)+gostr+'../gt/'+href.substring(goidx+gostr.length);
		}
		top.location.replace(href);
	 	//top.location = href;
	}
}
if (typeof(block)=='undefined')
{
	onTop();
}

function setLeftMenuOn(idx)
{
	if (typeof(parent) != 'undefined' && typeof(parent.leftside) != 'undefined' && typeof(parent.leftside.setMenuOn) != 'undefined')
		parent.leftside.setMenuOn(idx);
}
// -->