/*
+--------------------------------------------------------------------+
|                                                                    |
|  Website     : F1 Study Website                                    |
|  File Name   : includes.js                                         |
|  Type        : JavaScript Script File                              |
|  Description : Includable JavaScript Functions                     |
|  Author      : Srinivasan A. Paul Joseph                           |
|  Created On  : January 25, 2005                                    |
|  Updated On  : January 25, 2005                                    |
|  Version     : 1.0.0                                               |
|                                                                    |
|  Copyright © 2004, MiPS Web Services Pvt. Ltd.                     |
|  All Rights Reserved.                                              |
|                                                                    |
|  Version History                                                   |
|  ^^^^^^^^^^^^^^^                                                   |
|  1.0.0 - Initial Write up of the Functions.                        |
|                                                                    |
+--------------------------------------------------------------------+
*/

/*********************************************************************
 * Description : Global Variables                                    *
 *********************************************************************/
var isNS = (navigator.appName=="Netscape")?1:0;
var dirILoc = "";

/*********************************************************************
 * Description : Scroller Related Variables                          *
 *********************************************************************/
var scrText;				//Scrolling Text (to be set up later)
var scrPixel=1;				//Speed in Number of Pixels (the more, the speedy)
var scrTime=10;				//Speed in MilliSeconds (the less, the speedy)
var scrBgColor="#E8EEFF";	//Background Color
var scrFgColor="Black";		//Foreground Color
var scrWidth=560;			//Width in Pixels
var scrHeight=16;			//Height in Pixels
var scrMove=true;			//Whether to Move the Scroller or Not
var objDiv,objTmp;
var curLeft=scrWidth;

/*********************************************************************
 * Description : Array Variables                                     *
 *********************************************************************/
var arrL2Menu = new Array(
	new Array("University of Phoenix","http://aftrk.com/c/c?b=23713&h=18779&sh=316473&bt=1x1"),
	new Array("Grand Canyon University","http://aftrk.com/c/c?b=20892&h=18779&sh=316473&bt=1x1"),
	new Array("Crown College","http://aftrk.com/c/c?b=26323&h=18779&sh=316473&bt=1x1"),
	new Array("Colorado Technical University","http://nopta.com/clk/luanrangningtengbin"),
	new Array("ACCIS","http://rtomps.com/clk/aftelaktacherseimspie"),
	new Array("AIU","http://wesac.com/clk/zhemingpuyaqing"),
	new Array("AIU - Houston","http://ipunda.com/clk/woruldschnogabertersung"),
	new Array("Lehigh Valley College","http://yarnas.com/clk/keinanibonrenhiyazu"),
	new Array("American InterContinental University","http://ipunda.com/clk/woruldschnogabertersung"),
	new Array("Briarcliffe College","http://4plate.com/clk/apfatschieiliebschalt"),
	new Array("Brown College","http://ipunda.com/clk/gienfranspansaft"),
	new Array("CEI","http://riansa.com/clk/ebangmeizhangzheng"),
	new Array("Chubb Institute","http://ipunda.com/clk/naishitenaikunshigea"),
	new Array("DeVry University","http://mymoki.com/clk/keganidouhadoumeisu"),
	new Array("Florida Technical College","http://nopta.com/clk/ersagehependelrulde"),
	new Array("Keller Graduate School","http://ilatpa.com/clk/kanyunaifumogasunada"),
	/*new Array("Sanford-Brown College","http://rippos.com/clk/chaoeshepiaobiao"),*/
	new Array("University of Phoenix","http://ebruma.com/clk/chisharyutogodouraibyo"),
	new Array("Westwood College","http://rippos.com/clk/gunaiyosakonrenbaine"),
	new Array("Westwood College - Chicago","http://togsit.com/clk/kyuiarairyundenisui"),
	new Array("Westwood College - Denver","http://bronsy.com/clk/zanmanghangzongsa")
);

/*********************************************************************
 * Function    : IncHeader()                                         *
 * Description : Includes the Header of the Page                     *
 *********************************************************************/
function IncHeader()
{
	document.write("<table border=0 width=100% cellpadding=0 cellspacing=0 class=tblTrans><tr><td>");
	//Left Bar Logo
	document.write("	<a href='http://www.f1study.com/'><img src='"+dirILoc+"images/logo.jpg' alt='Welcome to F1Study.com!' border=0></A>");
	document.write("</td><td width=100% align=center>");
	//Middle Bar with Advertisement Banners
	document.write("	<a href='http://www.h1bsponsors.com/' target='_blank'><img src='"+dirILoc+"images/h1blist_ani.gif' border=0 alt='H1B Sponsors List'></a>");
	document.write("</td><td width=270>");
	//Right Bar Animation
	document.write("	<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='270' height='60' id='Best University' align='middle'>");
	document.write("	<param name='allowScriptAccess' value='sameDomain' />");
	document.write("	<param name='movie' value='"+dirILoc+"channel/bestUniv.swf' />");
	document.write("	<param name='quality' value='high' />");
	document.write("	<param name='bgcolor' value='#ffffff' />");
	document.write("	<embed src='"+dirILoc+"channel/bestUniv.swf' quality='high' bgcolor='#ffffff' width='270' height='60' name='Best University' align='middle' AllowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("	</object>");
	document.write("</td></tr></table>");
}

/*********************************************************************
 * Function    : IncLogin()                                          *
 * Description : Includes the Login Box of the Page                  *
 *********************************************************************/
function IncLogin()
{
	document.write("<table border=0 width=100% cellpadding=3 cellspacing=0 class=tblLight>");
	document.write("<tr><td width=100% height=55 align=center>");
	//document.write("	<a href='/process/std_area.asp' target='_top' class=smlLnk><b>Already Member? Login</b></a><br>");
	//document.write("	<a href='/process/std_register.asp' target='_top' class=smlLnk><font color=red><b>New Member? Register Now!</b></font></a><br>");
	document.write("Welcome to <b>F1study.com!</b>");
	document.write("</td></tr></table>");
}

/*********************************************************************
 * Function    : IncLeft()                                           *
 * Description : Includes the Left Side of the Page                  *
 *********************************************************************/
function IncLeft()
{
	document.write("<table border=0 width=100% cellpadding=0 cellspacing=0 onMouseOver='HideLMenu(-1);' class=tblLight>");
	document.write("<tr><td width=100% align=center valign=top>");
	document.write("	<table border=0 width=100% cellpadding=2 cellspacing=0 class=tblLight>");
	document.write("	<tr><th class=tblDark style={padding:3px;}>Featured Universities</th></tr>");
	for(curX=0;curX<arrL2Menu.length;curX++)
	{
		document.write("<a href='"+arrL2Menu[curX][1]+"' target='_blank'><tr><td onMouseOver=\"this.className='mnuLOver';\" onMouseOut=\"this.className='mnuLOut';\" "+((isNS==1)?"onClick=\"LoadURL('"+arrL2Menu[curX][1]+"','_blank');\"":"")+" class=mnuLOut>"+arrL2Menu[curX][0]+"</td></tr></a>");
	}
	document.write("</table></td></tr></table>");
}

/*********************************************************************
 * Function    : IncNews()                                           *
 * Description : Includes the Top News Scroller for the Page         *
 *********************************************************************/
function IncNews()
{
	//Set the Scrolling Text
	scrText=new String("<NoBR><a href='"+dirILoc+"html/news.html' target='_top' class=smlLnk>USA Admission Statistics - India is #1 again</a>, <a href='"+dirILoc+"html/news.html' target='_top' class=smlLnk>Fall-2005 Admissions</a>, <a href='"+dirILoc+"html/news.html' target='_top' class=smlLnk>Apply Now for Possible AID</a> - View Newsletter Archives!</NoBR>");
	//Show the Scroller
	document.write("<table border=0 width=100% cellpadding=0 cellspacing=0 onMouseOver='HideTMenu(-1);' class=tblNormal>");
	document.write("<tr><td width=100% align=center>");
	document.write("	<table border=0 align=Center cellpadding=2 cellspacing=0 class=tblTrans>");
	document.write("	<tr><td align=Right><a href='"+dirILoc+"html/news.html' target='_top' class=smlLnk>Newsletter:</a></td><td>");
	document.write("	<Div OnMouseOver='scrMove=false;' OnMouseOut='scrMove=true;' OnClick=\"top.location='"+dirILoc+"html/news.html';\" Title='Click here to view our Newsletter Archives!' Style={position:relative;width:"+scrWidth+"px;height:"+scrHeight+"px;color:"+scrFgColor+";background-color:"+scrBgColor+";border-width:1px;border-style:solid;border-color:Green;overflow:hidden;cursor:pointer;cursor:hand;}>");
	document.write("	<Div ID='txtScr' Style={position:absolute;left:0px;top:0px;font-family:Arial;font-size:8pt;font-weight:bold;}>"+scrText+"</Div>");
	document.write("	</Div>");
	document.write("	</td></tr></table>");
	document.write("</td></tr></table>");
	MoveScroller();
}

/*********************************************************************
 * Function    : MoveScroller()                                      *
 * Description : Moves the Top News Scroller of the Page             *
 *********************************************************************/
function MoveScroller()
{
	if(scrMove)
	{
		objDiv=document.getElementById("txtScr");
		objDiv.style.left=curLeft;
		curLeft-=scrPixel;
		if(curLeft<=(-objDiv.offsetWidth))
		{
			curLeft=scrWidth;
		}
	}
	setTimeout("MoveScroller()",scrTime);
}

/*********************************************************************
 * Function    : IncRight()                                          *
 * Description : Includes the Right Side of the Page                 *
 *********************************************************************/
function IncRight()
{
	document.write("<table border=0 width=100% cellpadding=0 cellspacing=0 onMouseOver='HideRMenu(-1);' class=tblNormal>");
	document.write("<tr><td width=100% align=center valign=top>");
	//Channel Partners Menu
	document.write("	<table border=0 width=100% cellpadding=0 cellspacing=0 class=tblTrans style={padding-top:4px;}>");
	document.write("	<tr><th class=tblDark style={padding:3px;}>Channel Partners</th></tr>");
	document.write("	<tr><td><a href='http://www.h1bsponsors.com/' target='_blank' style={background-color:White;}><img src='"+dirILoc+"channel/logoH1BS.gif' width=180 alt='H1B Sponsors' border=0></a></td></tr>");
	document.write("	<tr><td><a href='http://www.internationalstudent.com/' target='_blank'><img src='"+dirILoc+"channel/logoIS.jpg' width=180 alt='International Student' border=0></a></td></tr>");
	document.write("    <tr><td><a href='http://aftrk.com/c/c?b=23701&h=18779&sh=316473&bt=125x125' target='_blank'><img src='http://banners.aftrk.com/ab/cw/uopground/125x125a.gif' width=180 height=150 alt='Please click here to visit our sponsor' border=0></a></td></tr>");
	//document.write("	<tr><td><a href='http://www.h1medjobs.com/' target='_blank'><img src='"+dirILoc+"channel/logoH1Med.jpg' width=180 alt='H1 Medical Jobs' border=0></a></td></tr>");
	document.write("	<tr><td><a href='http://www.usauniv.com/' target='_blank'><img src='"+dirILoc+"channel/logoUSAUniv.jpg' width=180 alt='USA Universities' border=0></a></td></tr>");
	document.write("	</table>");
	document.write("</td></tr></table>");
}

