/******************************************************************************
*	(c) Ger Versluis 2000 version 5.411 24 December 2001 (updated Jan 31st, 2003 by Dynamic Drive for Opera7)
*	For info write to menus@burmees.nl		          *
*	You may remove all comments for faster loading	          *		
******************************************************************************/

	var HostName = 'http://www.ramashram.com/';
	var ScriptDir = HostName + 'scripts/';

	var FirstLineHorizontal=0;		// 1 FOR HORIZONTAL MENU, 0 FOR VERTICAL
	var MenuFramesVertical=1;		// Frames in cols or rows 1 or 0
	var NoOffFirstLineMenus=11;		// Number of first level items
	var LowBgColor='#FFB76F';		// Background color when mouse is not over
	var LowSubBgColor='#FFB76F';	// bg color when mouse is not over on subs
	var HighBgColor='Orange';		// bg color when mouse is over
	var HighSubBgColor='Orange';	// bg color when mouse is over on subs
	var FontLowColor='#985E05';		// Font color when mouse is not over
	var FontSubLowColor='#985E05';	// Font color subs when mouse is not over
	var FontHighColor='white';		// Font color when mouse is over
	var FontSubHighColor='white';	// Font color subs when mouse is over
	var BorderColor='#985E05';		// Border color - was initially set to black
	var BorderSubColor='#985E05';	// Border color for subs
	var BorderWidth=1;				// Border width
	var BorderBtwnElmnts=1;			// Border between elements 1 or 0
	var FontFamily="Verdana, Arial, Helvetica, sans-serif"	// Font family menu items
	var FontSize=10;				// Font size menu items
	var FontBold=1;					// Bold menu items 1 or 0
	var FontItalic=0;				// Italic menu items 1 or 0
	var MenuTextCentered='left';	// Item text position left/center/right
	var MenuCentered='left';		// Menu horiz position left/center/right
	var MenuVerticalCentered='top';	// Menu vertical position 'top', 'middle','bottom' or static
	var ChildOverlap=.05;			// horizontal overlap child/ parent. Was 0 initially
	var ChildVerticalOverlap=0;		// vertical overlap child/ parent. Was 0 initially
	//var StartTop=92;				// Menu offset x coordinate Was 92
	//var StartLeft=65;				// Menu offset y coordinate Was 12
	var VerCorrect=0;				// Multiple frames y correction
	var HorCorrect=0;				// Multiple frames x correction
	var LeftPaddng=3;				// Left padding
	var TopPaddng=2;				// Top padding
	var DissapearDelay=500;			// delay before menu folds in (mili s)
	var TakeOverBgColor=1;			// Menu frame takes over bgcolor subitem frame
	var FirstLineFrame='navig';		// Frame where first level appears
	var SecLineFrame='space';		// Frame where sub levels appear
	var DocTargetFrame='space';		// Frame where target documents appear
	var TargetLoc='';				// span id for relative positioning
	var HideTop=0;			// Hide first level when loading new document 1 or 0
	var MenuWrap=1;					// enables/disables menu wrap 1 or 0
	var RightToLeft=0;			// enables/disables right to left unfold 1 or 0
	var UnfoldsOnClick=0;			// Level 1 unfolds onclick/ onmouseover
	var WebMasterCheck=0;			// menu tree checking on or off 1 or 0
	var ShowArrow=1;				// Uses arrow gifs when 1
	var KeepHilite=1;				// Keep selected path highligthed
	var Arrws=[ScriptDir+'tri.gif',5,10,ScriptDir+'tridown.gif',10,5,ScriptDir+'trileft.gif',5,10];	// Arrow source, width and height

function BeforeStart(){return}
function AfterBuild(){return}
function BeforeFirstOpen(){return}
function AfterCloseAll(){return}

var defTop = 139;	// default x and y coordinate
var defLeft = 4;
if (navigator.appName.toUpperCase().match(/MICROSOFT INTERNET EXPLORER/) != null){
	var StartTop = defTop;				// Menu offset x coordinate Was 92
	var StartLeft = defLeft + 1;		// Menu offset y coordinate Was 12
	//document.write("You are using IE.");

}
else if (navigator.appName.toUpperCase().match(/MOZILLA/) != null){
	var StartTop = defTop;				// Menu offset x coordinate Was 92
	var StartLeft = defLeft;			// Menu offset y coordinate Was 12
	//document.write("You are using Mozilla .");
}
else {
	var StartTop = defTop;				// Menu offset x coordinate Was 92
	var StartLeft = defLeft;			// Menu offset y coordinate Was 12
	//document.write("You are using NS.");
}

function alertSize() {
	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} else if( document.documentElement &&
			( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}
	//window.alert( 'Width = ' + myWidth );
	//window.alert( 'Height = ' + myHeight );

	return myWidth;
}   



//Set objBCap = Server.CreateObject("MSWC.BrowserType") 


// Menu tree
//	MenuX=new Array(Text to show, Link, background image (optional), number of sub elements, height, width);
//	For rollover images set "Text to show" to:  "rollover:Image1.jpg:Image2.jpg"

if(alertSize() > 1000){
	var menuWidth = 200
}
else{
	var menuWidth = 160 
}


//window.alert('menuWidth is ' + menuWidth)

Menu1=new Array("Home",HostName,"",0,20,190);

Menu2=new Array("<span class=\"menu_new\">Heritage</span><img src=/images/img/new2.gif>",HostName+"heritage/","",2);
	Menu2_1=new Array("Heritage",HostName+"heritage/","",0,20,150);	
	Menu2_2=new Array("Lineage",HostName+"heritage/lineage.php","",0,20,150);	

Menu3=new Array("<span class=\"menu_new\">Philosophy</span><img src=/images/img/new2.gif>",HostName+"philosophy/","",0);

Menu4=new Array("Our System",HostName+"meditation/","",0);

Menu5=new Array("Literature",HostName+"literature/overview.php","",2);
	Menu5_1=new Array("Literature Overview",HostName+"literature/overview.php","",0,20,200);
	Menu5_2=new Array("Articles",HostName+"literature/articles.php","",0);

Menu6=new Array("Programs",HostName+"programs/","",4);
	Menu6_1=new Array("Live Webcast",HostName+"programs/live.php","",0,20,200);	
	Menu6_2=new Array("Mathura Bhandara 2012",HostName+"programs/mathura2011.php","",0,20,200);	
	Menu6_3=new Array("Upcoming US Programs",HostName+"programs/usa.php","",0);
	Menu6_4=new Array("Recent US Programs",HostName+"programs/prev_usa.php","",0);
//Menu6_5=new Array("Guru Poornima 2011",HostName+"programs/gp.php","",0);

Menu7=new Array("<span class=\"menu_new\">Live Webcast</span><img src=/images/img/new2.gif>",HostName+"programs/live.php","",0);

//Menu7=new Array("Digital Resources",HostName+"underconstruction.php","",3);
	//Menu7_1=new Array("Audio",HostName+"underconstruction.php","",0,20,75);	
	//Menu7_2=new Array("Video",HostName+"underconstruction.php","",0);
	//Menu7_3=new Array("Images",HostName+"underconstruction.php","",0);

Menu8=new Array("FAQ",HostName+"faq/faq.php?type=22","",2);
	Menu8_1=new Array("Satsang",HostName+"faq/faq.php?type=22","",0,20,125);	
	Menu8_2=new Array("Technical",HostName+"faq/faq.php?type=21","",0);

Menu9=new Array("<span class=\"menu_new\">Info auf Deutsch</span><img src=/images/img/german.jpg height=12><img src=/images/img/new2.gif>",HostName+"germany/einleitung.php","",4);
	Menu9_1=new Array("Einleitung",HostName+"germany/einleitung.php","",0,20,125);	
	Menu9_2=new Array("Philosophie",HostName+"germany/philosophie.php","",0);
	Menu9_3=new Array("Programm",HostName+"germany/programm.php","",0);
	Menu9_4=new Array("Kontakt",HostName+"germany/kontakt.php","",0);

Menu10=new Array("Contact Information",HostName+"contactinfo/","",0);

Menu11=new Array("Members",HostName+"members/","",0);


//The number of first level items have to be set at the top, if it is
//changed.  var NoOffFirstLineMenus=4;	

