// JavaScript Document

var isIE = 0;
var isNav4 = 0;
var isStandard = 0;

if (document.all)
{
	isIE = 1;
}
else if (document.layers)
{
	isNav4 = 1;
}
else
{ 
	isStandard = 1; 
}


var currentpic = 'zweifel,sam';
var testpic = ' ';

function newWindow(name)
{
	mapwindow=window.open(testpic,'newwindow','width=600,height=600')

}
function newevent(string)
{
	path = string + "dailyevents/submitevent.htm";
	mapwindow=window.open(path,'newwindow', 'width=320,height=520');
}
function removeevent(string)
{
	path = string + "dailyevents/removeevent.php";
	mapwindow=window.open(path,'newwindow', 'width=320,height=520, location=no, menubar=no, status=no, toolbar=no, scrollbars=yes, resizable=yes');
}
function viewallevents(string)
{
	path = string + "dailyevents/viewevents.php";
	mapwindow=window.open(path,'newwindow', 'width=320,height=520, location=no, menubar=no, status=no, toolbar=no, scrollbars=yes, resizable=yes');
}
function scholarship(string)
{
	path = string + "sitecontent/scholarship.php";
	mapwindow=window.open(path,'newwindow', 'width=320,height=370, location=no, menubar=no, status=no, toolbar=no, scrollbars=yes, resizable=yes');
}
function leadership(string)
{
	path = string + "sitecontent/leadership.php";
	mapwindow=window.open(path,'newwindow', 'width=320,height=520, location=no, menubar=no, status=no, toolbar=no, scrollbars=yes, resizable=yes');
}
function fellowship(string)
{
	path = string + "sitecontent/fellowship.php";
	mapwindow=window.open(path,'newwindow', 'width=320,height=320, location=no, menubar=no, status=no, toolbar=no, scrollbars=yes, resizable=yes');
}
function createprofile(string)
{
	path = string + "createprofile/submitprofile.htm";
	mapwindow=window.open(path,'newwindow', 'width=600,height=520, location=no, menubar=no, status=no, toolbar=yes, scrollbars=yes, resizable=yes');
}
function login(string)
{
	path = string + "query/login.htm";
	mapwindow=window.open(path,'newwindow', 'width=600,height=520, location=no, menubar=no, status=no, toolbar=yes, scrollbars=yes, resizable=yes');
}
function openwindow(string)
{
	mapwindow=window.open(string,'newwindow', 'width=400,height=520, location=no, menubar=no, status=no, toolbar=yes, scrollbars=yes, resizable=yes');
}
function openwidewindow(string)
{
	mapwindow=window.open(string,'newwindow', 'width=600,height=650, location=no, menubar=no, status=no, toolbar=yes, scrollbars=yes, resizable=yes');
}
function openblogwindow(string)
{
	mapwindow=window.open(string,'newwindow', 'width=530,height=750, location=no, menubar=no, status=no, toolbar=yes, scrollbars=yes, resizable=yes');
}

function hidealllayers() 
{

	if (isIE)
	{
		document.all['homelayer'].style.visibility = "hidden";
		document.all['ourbrotherslayer'].style.visibility = "hidden";
		document.all['initiationlayer'].style.visibility = "hidden";
		document.all['alumnilayer'].style.visibility = "hidden";
		document.all['eventslayer'].style.visibility = "hidden";
		document.all['historylayer'].style.visibility = "hidden";
		document.all['chapterslayer'].style.visibility = "hidden";
		document.all['brotherpagelayer'].style.visibility = "hidden";
	}
	else if (isNav4)
	{
		document.layers['homelayer'].style.visibility = "hidden";
		document.layers['ourbrotherslayer'].style.visibility = "hidden";
		document.layers['initiationlayer'].style.visibility = "hidden";
		document.layers['alumnilayer'].style.visibility = "hidden";
		document.layers['eventslayer'].style.visibility = "hidden";
		document.layers['historylayer'].style.visibility = "hidden";
		document.layers['chapterslayer'].style.visibility = "hidden";
		document.layers['brotherpagelayer'].style.visibility = "hidden";
	}
	else 
	{
		document.getElementById('homelayer').style.visibility = "hidden";
		document.getElementById('ourbrotherslayer').style.visibility = "hidden";
		document.getElementById('initiationlayer').style.visibility = "hidden";
		document.getElementById('alumnilayer').style.visibility = "hidden";
		document.getElementById('eventslayer').style.visibility = "hidden";
		document.getElementById('historylayer').style.visibility = "hidden";
		document.getElementById('chapterslayer').style.visibility = "hidden";
		document.getElementById('brotherpagelayer').style.visibility = "hidden";
	

	}


}

function hideallpictures() 
{

	if (isIE)
	{
		document.images['tabHome'].src="tabHome.jpg";
		document.images['tabHomeBrothers'].src="tabmiddle.jpg";
		document.images['tabBrothers'].src="tabBrothers.jpg";
		document.images['tabBrothersInitiation'].src="tabmiddle.jpg";
		document.images['tabInitiation'].src="tabInitiation.jpg";
		document.images['tabInitiationAlumni'].src="tabmiddle.jpg";
		document.images['tabAlumni'].src="tabAlumni.jpg";
		document.images['tabAlumniEvents'].src="tabmiddle.jpg";
		document.images['tabEvents'].src="tabEvents.jpg";
		document.images['tabEventsHistory'].src="tabmiddle.jpg";
		document.images['tabHistory'].src="tabHistory.jpg";
		document.images['tabHistoryChapters'].src="tabmiddle.jpg";
		document.images['tabChapters'].src="tabChapters.jpg";
		document.images['tabChaptersBrotherPage'].src="tabmiddle.jpg";
		document.images['tabBrotherPage'].src="tabBrotherPage.jpg";
		
	}
	else if (isNav4)
	{
		document.images['tabHome'].src="tabHome.jpg";
		document.images['tabHomeBrothers'].src="tabmiddle.jpg";
		document.images['tabBrothers'].src="tabBrothers.jpg";
		document.images['tabBrothersInitiation'].src="tabmiddle.jpg";
		document.images['tabInitiation'].src="tabInitiation.jpg";
		document.images['tabInitiationAlumni'].src="tabmiddle.jpg";
		document.images['tabAlumni'].src="tabAlumni.jpg";
		document.images['tabAlumniEvents'].src="tabmiddle.jpg";
		document.images['tabEvents'].src="tabEvents.jpg";
		document.images['tabEventsHistory'].src="tabmiddle.jpg";
		document.images['tabHistory'].src="tabHistory.jpg";
		document.images['tabHistoryChapters'].src="tabmiddle.jpg";
		document.images['tabChapters'].src="tabChapters.jpg";
		document.images['tabChaptersBrotherPage'].src="tabmiddle.jpg";
		document.images['tabBrotherPage'].src="tabBrotherPage.jpg";
	}
	else 
	{
		document.getElementById('tabHome').src="tabHome.jpg";
		document.getElementById('tabHomeBrothers').src="tabmiddle.jpg";
		document.getElementById('tabBrothers').src="tabBrothers.jpg";
		document.getElementById('tabBrothersInitiation').src="tabmiddle.jpg";
		document.getElementById('tabInitiation').src="tabInitiation.jpg";
		document.getElementById('tabInitiationAlumni').src="tabmiddle.jpg";
		document.getElementById('tabAlumni').src="tabAlumni.jpg";
		document.getElementById('tabAlumniEvents').src="tabmiddle.jpg";
		document.getElementById('tabEvents').src="tabEvents.jpg";
		document.getElementById('tabEventsHistory').src="tabmiddle.jpg";
		document.getElementById('tabHistory').src="tabHistory.jpg";
		document.getElementById('tabHistoryChapters').src="tabmiddle.jpg";
		document.getElementById('tabChapters').src="tabChapters.jpg";
		document.getElementById('tabChaptersBrotherPage').src="tabmiddle.jpg";
		document.getElementById('tabBrotherPage').src="tabBrotherPage.jpg";
	

	}


}

function changing(newpic,id)
{
	if (isIE)
	{
		document.images[id].src=newpic;
	}
	else if (isNav4)
	{
		document.images[id].src=newpic;
	}
	else
	{
		document.getElementById(id).src=newpic;	
	}
}

function change(tab, newtab, tableft, tabright)
{
	if (isIE)
	{
		hideallpictures();
		document.images[tab].src=newtab;
		if (tab == 'tabHome')
		{
			document.images[tabright].src="tabRightOver.jpg";
		}
		else if (tab == 'tabBrotherPage')
		{
			document.images[tableft].src="tabLeftOver.jpg";
		}
		else
		{
			document.images[tabright].src="tabRightOver.jpg";
			document.images[tableft].src="tabLeftOver.jpg";
		}
	}
	else if (isNav4)
	{
		hideallpictures();
		document.images[tab].src=newtab;
		if (tab == 'tabHome' )
		{
			document.images[tabright].src="tabRightOver.jpg";
		}
		else if (tab == 'tabBrotherPage')
		{
			document.images[tableft].src="tabLeftOver.jpg";
		}
		else
		{
			document.images[tabright].src="tabRightOver.jpg";
			document.images[tableft].src="tabLeftOver.jpg";
		}
	}
	else
	{
		hideallpictures();
		document.getElementById(tab).src=newtab;
		if (tab == 'tabHome' )
		{
			document.getElementById(tabright).src="tabRightOver.jpg";
		}
		else if (tab == 'tabBrotherPage')
		{
			document.getElementById(tableft).src="tabLeftOver.jpg";
		}
		else
		{
			document.getElementById(tabright).src="tabRightOver.jpg";
			document.getElementById(tableft).src="tabLeftOver.jpg";
		}	
	}
}


function show(id, tab, newtab, tableft, tabright)
{	
change(tab, newtab, tableft, tabright);

	if (isIE)
	{
		hidealllayers();
		document.all[id].style.visibility = "visible";
	}
	else if (isNav4)
	{
		hidealllayers();
		document.layers[id].style.visibility = "visible";
	}
	else 
	{
		hidealllayers();
		document.getElementById(id).style.visibility = "visible";	
	}
	

}
function showpictest(id)
{

	if (isIE)
	{
		document.images['testing'].src = id;
		testpic = id;
		document.all['testingstuff'].style.visibility = "visible";
	}
	else if (isNav4)
	{
		document.layers['testingstuff'].document.images['testing'].src = id;
		testpic = id;
		document.layers['testingstuff'].style.visibility = "visible";
	}
	else 
	{
		document.getElementById('testing').src = id;
		testpic = id;
		document.getElementById('testingstuff').style.visibility = "visible";
	
	}

}

