	// JavaScript Document
var arrMainMenu = new Array();
var imgUp = new Image();
var imgDown = new Image();
var currentMenu = 0;
var scrollPos = 0;
var totalHeight = 0;
var treeMenu = null;
var treeMenu1 = null;
var scrollInterval;
var currentPage = "";
var currentBreadCrumb = "";
var fromInternalLink = false;
var internalfaqId = 0;
var internalfaqbrdcrmp = "";
var internalfaqurl = "";
	var IE=document.all,NS4=document.layers; 
	var NS6=(!IE&&document.getElementById), NS=(NS4||NS6);

	

if(!IE)
	window.addEventListener("onresize", resetScrollbar, false);
else
	window.attachEvent("onresize", resetScrollbar);

imgUp = "images/tab1_n.gif";
imgDown = "images/tab1_o.gif";
arrMainMenu[0] = {contentPage:"wel.htm", upImage:imgUp, downImage:imgDown, title:"Welcome"};

imgUp = "images/tab2_n.gif";
imgDown = "images/tab2_o.gif";
arrMainMenu[1] = {contentPage:"abtcar.htm", upImage:imgUp, downImage:imgDown, title:"About CARE"};

imgUp = "images/tab3_n.gif";
imgDown = "images/tab3_o.gif";
arrMainMenu[2] = {contentPage:"carint.htm", upImage:imgUp, downImage:imgDown, title:"CARE International"};

imgUp = "images/tab4_n.gif";
imgDown = "images/tab4_o.gif";
arrMainMenu[3] = {contentPage:"carusa.htm", upImage:imgUp, downImage:imgDown, title:"CARE USA"};

imgUp = "images/tab5_n.gif";
imgDown = "images/tab5_o.gif";
arrMainMenu[4] = {contentPage:"humres.htm", upImage:imgUp, downImage:imgDown, title:"Human Resources Essentials"};

imgUp = "images/tab6_n.gif";
imgDown = "images/tab6_o.gif";
arrMainMenu[5] = {contentPage:"aboatl.htm", upImage:imgUp, downImage:imgDown, title:"About Atlanta Headquarters"};

imgUp = "images/tab7_n.gif";
imgDown = "images/tab7_o.gif";
arrMainMenu[6] = {contentPage:"faq.htm", upImage:imgUp, downImage:imgDown, title:"FAQs"};

//Deependra: This is menu items for FAQ
imgUp = "images/tab7_n.gif";
imgDown = "images/tab7_o.gif";
arrMainMenu[7] = {contentPage:"javascript:parent.openFaqMenu(7,false,'0')", upImage:imgUp, downImage:imgDown, title:"What’s the big picture?"};

imgUp = "images/tab7_n.gif";
imgDown = "images/tab7_o.gif";
arrMainMenu[8] = {contentPage:"javascript:parent.openFaqMenu(8,false,'1');", upImage:imgUp, downImage:imgDown, title:"How does my job fit in?"};

imgUp = "images/tab7_n.gif";
imgDown = "images/tab7_o.gif";
arrMainMenu[9] = {contentPage:"javascript:parent.openFaqMenu(9,false,'2');", upImage:imgUp, downImage:imgDown, title:"What do CARE acronyms stand for?"};

imgUp = "images/tab7_n.gif";
imgDown = "images/tab7_o.gif";
arrMainMenu[10] = {contentPage:"javascript:parent.parent.openFaqMenu(10,false,'3');", upImage:imgUp, downImage:imgDown, title:"How can I learn & grow?"};

imgUp = "images/tab7_n.gif";
imgDown = "images/tab7_o.gif";
arrMainMenu[11] = {contentPage:"javascript:parent.openFaqMenu(11,false,'4');", upImage:imgUp, downImage:imgDown, title:"What do I need to know about traveling with CARE?"};

imgUp = "images/tab7_n.gif";
imgDown = "images/tab7_o.gif";
arrMainMenu[12] = {contentPage:"javascript:parent.openFaqMenu(12,false,'5');", upImage:imgUp, downImage:imgDown, title:"How do I get help with my computer, email, & sending mail?"};

imgUp = "images/tab7_n.gif";
imgDown = "images/tab7_o.gif";
arrMainMenu[13] = {contentPage:"javascript:parent.openFaqMenu(13,false,'6');", upImage:imgUp, downImage:imgDown, title:"How do I hire a consultant & follow proper procurement procedures?"};

imgUp = "images/tab7_n.gif";
imgDown = "images/tab7_o.gif";
arrMainMenu[14] = {contentPage:"javascript:parent.openFaqMenu(14,false,'7');", upImage:imgUp, downImage:imgDown, title:"What if I have questions related to finance & administration?"};

imgUp = "images/tab7_n.gif";
imgDown = "images/tab7_o.gif";
arrMainMenu[15] = {contentPage:"javascript:parent.openFaqMenu(15,false,'8');", upImage:imgUp, downImage:imgDown, title:"What kinds of staff support & wellness resources does care offer?"};

imgUp = "images/tab7_n.gif";
imgDown = "images/tab7_o.gif";
arrMainMenu[16] = {contentPage:"javascript:parent.openFaqMenu(16,false,'9');", upImage:imgUp, downImage:imgDown, title:"Where can I find answers to basic questions about pay, hours, & attire?"};

//FAQ menu item end here





function resetScrollbar(){
	var tableHeight = window.frames["mainFrame"].tableHeight;
	if(IE)
	{
		var leftFrameHeight = document.getElementById("menuHeader").height + document.getElementById("menuFrame").height;
		window.frames["scrollBar"].document.getElementById("scrollbar").style.height = leftFrameHeight;
		if(window.frames["mainFrame"].document.getElementById("lineTable"))
		{
			if(tableHeight < leftFrameHeight){
				window.frames["mainFrame"].document.getElementById("lineTable").style.height = leftFrameHeight;
			}
			else{
				window.frames["mainFrame"].document.getElementById("lineTable").style.height = tableHeight;
			}
		}
	}
	else
	{
		var leftFrameHeight = window.innerHeight - 180;
		document.getElementById("scrollBar").contentDocument.getElementById("scrollbar").style.height = leftFrameHeight.toString() + "px";
		if(document.getElementById("mainFrame").contentDocument.getElementById("lineTable"))
		{
			if(tableHeight < leftFrameHeight){
				document.getElementById("mainFrame").contentDocument.getElementById("lineTable").style.height = leftFrameHeight.toString() + "px";
			}
			else{
				document.getElementById("mainFrame").contentDocument.getElementById("lineTable").style.height = tableHeight.toString() + "px";
			}
		}
		setTimeout("resetScrollbar();",1000);
	}
	totalHeight = leftFrameHeight
}

function openMenu(id){

	currentMenu = id;
	window.document.getElementById("faqFrame").cols = "180,21,0,0,*";
	//window.frames["faqFrame"].cols = "180,21,0,0,*";
	window.frames["menuHeader"].document.getElementById("menuTitle").innerHTML = arrMainMenu[id].title;
	window.frames["mainFrame"].document.location.href = arrMainMenu[id].contentPage;
	for(var i = 1; i <= 7; i ++)
		{
		window.frames["topFrame"].document.getElementById("tab_" + i + "_Img").src = arrMainMenu[i - 1].upImage;
		if((i - 1) == id){
			window.frames["menuFrame"].document.getElementById("menu" + i).style.display = "block";
		}else{
			window.frames["menuFrame"].document.getElementById("menu" + i).style.display = "none";			
		}
	}
	treeMenu = window.frames["menuFrame"].treeMenu[id];
	for(var i = 0; i < treeMenu.a_index.length; i ++){
		treeMenu.close(i, true);
	}			
	window.frames["topFrame"].document.getElementById("tab_" + (id + 1) + "_Img").src = arrMainMenu[id].downImage;
	//window.frames["scrollBar"].document.getElementById("scrollbar").style.height = document.getElementById("leftFrame").height;
	totalHeight = document.getElementById("menuHeader").height + document.getElementById("menuFrame").height;
	resetScrollbar();
	scrollPos = 0;
	window.frames["menuFrame"].scroll(0, scrollPos);

	window.frames["topFrame"].document.getElementById("breadcrumb").innerHTML = "";
	if(!fromInternalLink){
		window.frames["topFrame"].document.getElementById("backbutton").innerHTML = "";
	}
	
		
	deselectMenu();
}

//This function is used for left menu item of FAQ and the menu item which have no any sub menu

function openFaqMenu(id,isBlank,breadcrumbId){		
	currentMenu = id;
	if(!isBlank)
	{				
		setBreadcrumbFAQ(breadcrumbId);
	}
	
	if(IE)
	{
		window.frames["faqFrame"].cols = "180,21,210,*,0";
		window.frames["faqAnswer"].document.location.href = "blank1.htm";
		
		for(var i = 1; i <= 17; i ++)
		{		
			if((i - 1) == id)
			{
				window.frames["subMenu"].document.getElementById("menu" + i).style.display = "block";
			}
			else
			{
				window.frames["subMenu"].document.getElementById("menu" + i).style.display = "none";			
			}
		}
	
		if(id==13)
		{
			window.frames["faqFrame"].cols = "180,21,0,*,0";
			window.frames["faqAnswer"].document.location.href = "faq_how_do_i_hire_a_consultant_and_follow_proper_procurement_procedures.htm";
		}
		if(id==14)
		{
			window.frames["faqFrame"].cols = "180,21,0,*,0";
			window.frames["faqAnswer"].document.location.href = "faq_what_if_i_have_questions_related_to_finance_and_administration.htm";
		}
		if(id==15)
		{
			window.frames["faqFrame"].cols = "180,21,0,*,0";
			window.frames["faqAnswer"].document.location.href = "faq_what_kind_of_staff_support_wellness_resources_does_care_offer.htm";
		}
		treeMenu1 = window.frames["subMenu"].treeMenu[id];
	}
	else
	{
		window.document.getElementById("faqFrame").cols = "180,21,210,*,0";
		window.document.getElementById("faqAnswer").contentDocument.location.href = "blank1.htm";
		
		for(var i = 1; i <= 17; i ++)
		{		
			if((i - 1) == id)
			{
				document.getElementById("subMenu").contentDocument.getElementById("menu" + i).style.display = "block";
			}
			else
			{
				document.getElementById("subMenu").contentDocument.getElementById("menu" + i).style.display = "none";			
			}
	}
	
		if(id==13)
		{
			window.document.getElementById("faqFrame").cols = "180,21,0,*,0";
			document.getElementById("faqAnswer").contentDocument.location.href = "faq_how_do_i_hire_a_consultant_and_follow_proper_procurement_procedures.htm";
		}
		if(id==14)
		{
			window.document.getElementById("faqFrame").cols = "180,21,0,*,0";
			document.getElementById("faqAnswer").contentDocument.location.href = "faq_what_if_i_have_questions_related_to_finance_and_administration.htm";
		}
		if(id==15)
		{
			window.document.getElementById("faqFrame").cols = "180,21,0,*,0";
			document.getElementById("faqAnswer").contentDocument.location.href = "faq_what_kind_of_staff_support_wellness_resources_does_care_offer.htm";
		}
		//treeMenu1 = document.getElementById("subMenu").contentDocument.treeMenu[id];
		if(window.frames["subMenu"].treeMenu[id])
		{
			treeMenu1 = window.frames["subMenu"].treeMenu[id];
		}
	}
	if(!fromInternalLink)
	{
		window.frames["topFrame"].document.getElementById("backbutton").innerHTML = "";
	}
	deselectMenu1();	
}

function openPage(_url, isBlank, breadcrumbId){
	//window.frames["faqFrame"].cols = "180,21,0,0,*";
	window.document.getElementById("faqFrame").cols = "180,21,0,0,*";	
	if(!isBlank){		
		currentPage = _url;		
		currentBreadCrumb = breadcrumbId;
//		alert(_url + " " + window.frames["mainFrame"].document);
		window.frames["mainFrame"].document.location.href = _url;
		setBreadcrumb(breadcrumbId);
	}else{		
		window.open(_url);
	}
	if(!fromInternalLink){
		window.frames["topFrame"].document.getElementById("backbutton").innerHTML = "";
	}else{
		fromInternalLink = false;
	}	
	
}

//This function is used for opening answer of FAQ's sub menu in new frame which is faqAnswer
function openFaqAnswer(_url, isBlank, breadcrumbId){

	if(!isBlank){		
		currentPage = _url;		
		currentBreadCrumb = breadcrumbId;
		window.frames["faqAnswer"].document.location.href = _url;
		setBreadcrumbFAQSubMenu(breadcrumbId);
	}else{		
		window.open(_url);
	}
	if(!fromInternalLink){
		window.frames["topFrame"].document.getElementById("backbutton").innerHTML = "";
	}else{
		fromInternalLink = false;
		internalfaqId = 0;
	}	
}

function openLink(_url, isBlank, isFixed){
	if(!isBlank){
		window.frames["mainFrame"].document.location.href = _url;
		setBreadcrumb();
	}else if(isFixed){
		window.open(_url,"popup","status=no,resizable=no,scrollbars=no,width=788,height=250,left=0,top=0,status=yes");
	}else{
		//alert("This CD contains links to the Internet that will only be available if you are reviewing the site while online. Whenever possible, if the link directs you to a document, the document is provided.");
		window.open(_url);
	}
}


function deselectMenu(){
	for(var i = 0; i < treeMenu.a_index.length; i ++){
		treeMenu.a_index[i].select(true, false, false);
		treeMenu.a_index[i].open(true);
	}	
}

//This function is used for deselecting the item of sub menu of FAQ
function deselectMenu1(){
	for(var i = 0; i < treeMenu1.a_index.length; i ++){
		treeMenu1.a_index[i].select(true, false, false);
		treeMenu1.a_index[i].open(true);
	}	
}

function setBreadcrumb(breadcrumbId){
	
	window.frames["menuFrame"].document.getElementById("menu" + (currentMenu + 1)).style.visibility = "hidden";

	//return;
	//treeMenu.o_root.a_children[4]
	if(breadcrumbId == "-1"){
		window.frames["topFrame"].document.getElementById("breadcrumb").innerHTML = "";	
		deselectMenu();
		window.frames["menuFrame"].document.getElementById("menu" + (currentMenu + 1)).style.visibility = "visible";

		return;
	}
	var arrPath = breadcrumbId.split(",");	
	var strBreadcrumb = "";
	var treeItems = window.frames["menuFrame"].arrTreeMenu[currentMenu];	
	var strCommand = "treeItems";
//	var treeMenu = window.frames['leftFrame'].treeMenu;	
	var selectCommand = "treeMenu.o_root";

	window.frames["topFrame"].document.getElementById("breadcrumb").innerHTML = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href = javascript:parent.openMenu(" + currentMenu + ")>" + arrMainMenu[currentMenu].title + "</a>";
	deselectMenu();
	
	for(var i = 0; i < arrPath.length; i ++){
		strCommand += "[" + parseInt(arrPath[i]) + "]";
		strBreadcrumb += ' &nbsp;<font size="2pt">&raquo;</font>&nbsp; <a href = "' + eval(strCommand + '[1]') + '">' + eval(strCommand + '[0]') + '</a>';
		if(i == 0){
			selectCommand += ".a_children[" + parseInt(arrPath[i]) + "]";
		}else{
			selectCommand += ".a_children[" + parseInt(arrPath[i] - 2) + "]";
		}
	
	//treeMenu.o_root.a_children[5]
		//alert("selectCommand: " + selectCommand);
		//parent.frames["mainFrame"].document.writeln("selectCommand: " + selectCommand);
		eval(selectCommand).open(false);
		eval(selectCommand).select(false, true, true);
		
	}
	if(fromInternalLink){
		eval(selectCommand).open(false);	
	}
	eval(selectCommand).select(false, false, true);
	window.frames["topFrame"].document.getElementById("breadcrumb").innerHTML += strBreadcrumb;


	var obj = eval(selectCommand);
	var o_idiv = parent.frames["menuFrame"].get_element('i_txt' + obj.o_root.n_id + '_' + obj.n_id);
	scrollPos = o_idiv.parentNode.parentNode.parentNode.parentNode.offsetTop;
	window.frames["menuFrame"].scroll(0, scrollPos);
	window.frames["menuFrame"].document.getElementById("menu" + (currentMenu + 1)).style.visibility = "visible";


}

//This function is used for setting BreadCrumb of FAQ
function setBreadcrumbFAQ(breadcrumbId){
	if(breadcrumbId == "-1"){
		window.frames["topFrame"].document.getElementById("breadcrumb").innerHTML = "";	
		deselectMenu();
		return;
	}
	var arrPath = breadcrumbId.split(",");	
	var strBreadcrumb = "";
	var treeItems = window.frames["menuFrame"].arrTreeMenu[currentMenu];	
	var strCommand = "treeItems";
	var selectCommand = "treeMenu.o_root";
	window.frames["topFrame"].document.getElementById("breadcrumb").innerHTML = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href = javascript:parent.openMenu(6)>FAQ</a> >> <a href=" + arrMainMenu[currentMenu].contentPage + ">" + arrMainMenu[currentMenu].title + "</a>";
	deselectMenu();
	for(var i = 0; i < arrPath.length; i ++){
		strCommand += "[" + parseInt(arrPath[i]) + "]";
		if(i == 0){
			selectCommand += ".a_children[" + parseInt(arrPath[i]) + "]";
		}else{
			selectCommand += ".a_children[" + parseInt(arrPath[i] - 2) + "]";
		}

		eval(selectCommand).select(false, true, true);
		eval(selectCommand).open(false);
	}
	if(fromInternalLink){
		eval(selectCommand).open(false);	
	}
	eval(selectCommand).select(false, false, true);
}

//This function is used for setting BreadCrumb of FAQ sub menu
function setBreadcrumbFAQSubMenu(breadcrumbId){	
	if(breadcrumbId == "-1"){
		window.frames["topFrame"].document.getElementById("breadcrumb").innerHTML = "";	
		deselectMenu1();
		return;
	}
	if(window.frames["subMenu"])
	{
		var aID = window.frames["subMenu"].theid;
		var rID = window.frames["subMenu"].therid
		var aText = window.frames["subMenu"].document.getElementById("i_txt" + rID + "_" + aID).innerHTML;
		var aLink = window.frames["subMenu"].document.getElementById("i_txt" + rID + "_" + aID).href;
	}
	var arrPath = breadcrumbId.split(",");
	var strBreadcrumb = "";	
	var strCommand = "treeItems";
	var selectCommand = "treeMenu1.o_root";
	window.frames["topFrame"].document.getElementById("breadcrumb").innerHTML = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href = javascript:parent.openMenu(6)>FAQ</a> >> <a href=" + arrMainMenu[currentMenu].contentPage + ">" + arrMainMenu[currentMenu].title + "</a> >> <a href=" + aLink + ">" + aText + "</a>";
	
	deselectMenu1();
	for(var i = 0; i < arrPath.length; i ++){
		strCommand += "[" + parseInt(arrPath[i]) + "]";		
		if(i == 0){
			selectCommand += ".a_children[" + parseInt(arrPath[i]) + "]";
		}else{
			selectCommand += ".a_children[" + parseInt(arrPath[i] - 2) + "]";
		}
		eval(selectCommand).select(false, true, true);
		eval(selectCommand).open(false);
	}
	if(fromInternalLink){
		eval(selectCommand).open(false);	
	}
	eval(selectCommand).select(false, false, true);
}


function scrollMenu(direction){
	if(direction == "up"){
		scrollPos -= 10;
	}else{
		scrollPos += 10;
	}
	var leftFrameHeight = window.document.body.clientHeight - 180;
	var scroll_height = window.frames["menuFrame"].document.body.scrollHeight;
	//parent.frames["mainFrame"].document.writeln(window.frames["menuFrame"].document.body.scrollHeight);
	if((scrollPos + leftFrameHeight) > (scroll_height + 50)){
		//scrollPos = scroll_height - leftFrameHeight;
		scrollPos -= 10;
		return;
		//scrollPos = window.frames["menuFrame"].document.body.scrollHeight - document.getElementById("menuFrame").height;
	}else if(scrollPos < 0){
		scrollPos = 0;
	}

	//parent.frames["mainFrame"].document.writeln("<br>Pos: " + scrollPos + " :: " + scroll_height + " :: " + leftFrameHeight);
//	parent.frames["mainFrame"].document.writeln("height: " + document.getElementById("menuFrame").height);
	//doc.writeln("Scroll Position: " + scrollPos);

	window.frames["menuFrame"].scroll(0, scrollPos);	
}

function openPerspective(url){
	var width = 530;
	var height = 270;
	var left = (screen.width/2) - width/2;
	var top = (screen.height/2) - height/2;

	popUpWin = open(url, "Perspective" , 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top);
	popUpWin.focus(); 
}

function openInteractivity(url){
	var width = 530;
	var height = 270;
	var left = (screen.width/2) - width/2;
	var top = (screen.height/2) - height/2;

	popUpWin = open(url, "Perspective" , 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top);
	popUpWin.focus(); 
}

function openCredits(){
	var width = 700;
	var height = 400;
	var left = (screen.width/2) - width/2;
	var top = (screen.height/2) - height/2;

	popUpWin = open("credits.htm", "Credits" , 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top);
	popUpWin.focus(); 
}

function openFeedback(){
	var width = 700;
	var height = 395;
	var left = (screen.width/2) - width/2;
	var top = (screen.height/2) - height/2;

	popUpWin = open("feedback.htm", "Feedback" , 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top);
	popUpWin.focus(); 
}

function openInternalLink(menuId, url, isBlank, breadcrumbId){
	window.frames["topFrame"].document.getElementById("backbutton").innerHTML = "<a href='javascript:parent.openInternalLink(" + currentMenu + ",&quot;" + currentPage + "&quot;,false,&quot;" + currentBreadCrumb + "&quot;);'>Back</a>";	
	fromInternalLink = true;
	if(menuId != currentMenu)
	{
		if (menuId > 6)
		{
			internalfaqId = menuId;
			menuId = 6;
			openMenu(menuId);
			openFaqMenu(internalfaqId,isBlank,((internalfaqId-menuId)-1).toString());
			openFaqAnswer(url, isBlank, breadcrumbId);
		}
		else
		{			
			internalfaqId = 0;		
			openMenu(menuId);
			//var treeMenu = window.frames['leftFrame'].treeMenu;	
			var selectCommand = "treeMenu.o_root";
			var arrPath = breadcrumbId.split(",");			
			for(var i = 0; i < arrPath.length - 1; i ++){
				if(i == 0){
					selectCommand += ".a_children[" + parseInt(arrPath[i]) + "]";
				}else{
					selectCommand += ".a_children[" + parseInt(arrPath[i] - 2) + "]";
				}
				eval(selectCommand).open(false);		
			}		
			openPage(url, isBlank, breadcrumbId);
		}

	}
	else
	{
		internalfaqId = 0;		
			openMenu(menuId);
			//var treeMenu = window.frames['leftFrame'].treeMenu;	
			var selectCommand = "treeMenu.o_root";
			var arrPath = breadcrumbId.split(",");			
			for(var i = 0; i < arrPath.length - 1; i ++){
				if(i == 0){
					selectCommand += ".a_children[" + parseInt(arrPath[i]) + "]";
				}else{
					selectCommand += ".a_children[" + parseInt(arrPath[i] - 2) + "]";
				}
				eval(selectCommand).open(false);		
			}		
			openPage(url, isBlank, breadcrumbId);
	}
}

function startScroll(direction){
	scrollInterval = setInterval('scrollMenu("'+direction+'")', 50)     
}

function stopScroll(){
	clearInterval(scrollInterval);
}

function showSite(){
	var width = 796;
	var height = 544;
	var left = 0;//(screen.width/2) - width/2;
	var top = 0;//(screen.height/2) - height/2;

	popUpWin = open("splash.htm", "Splash" , 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top);
	popUpWin.focus(); 	
	document.location.href = "default.htm";
}

