platform = ((navigator.platform.indexOf('Win') > -1) ? "win" : "mac");
if (platform == "mac"){
	document.write("<LINK rel='stylesheet' href='includes/styles.css' type='text/css'>")
} else {
	document.write("<LINK rel='stylesheet' href='includes/styles.css' type='text/css'>")
}

function openNewWindow(fileName,theWidth,theHeight) { 
		window.open(fileName,"Details","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+theWidth+",height="+theHeight) 

}

function showDate(){
	var time=new Date()
	var day=time.getDay()
	var month=time.getMonth()
	var date=time.getDate()
	var year=time.getYear()
	
	brow = (navigator.appName);
	if(brow == "Netscape"){
		year = year+1900;
	}
	if (day==0){
		dayname="Sunday";
	} else if(day==1){
		dayname="Monday";
	} else if(day==2){
		dayname="Tuesday";
	} else if(day==3){
		dayname="Wednesday";
	} else if(day==4){
		dayname="Thursday";
	} else if(day==5){
		dayname="Friday";
	} else if(day==6){
		dayname="Saturday";
	}
	if (month==0){
		monthname="January";
	} else if(month==1){
		monthname="February";
	} else if(month==2){
		monthname="March";
	} else if(month==3){
		monthname="April";
	} else if(month==4){
		monthname="May";
	} else if(month==5){
		monthname="June";	
	} else if(month==6){
		monthname="July";
	} else if(month==7){
		monthname="August";
	} else if(month==8){
		monthname="September";
	} else if(month==9){
		monthname="October";
	} else if(month==10){
		monthname="November";
	} else if(month==11){
		monthname="December";
	}
	display = dayname + " , " + monthname + " " + date + ", " + year;
	document.write(display)
}

//-- image rollovers --//
function rollover(imagename){
	document.images[imagename].src = "images/" + imagename + "_roll.gif";
}

function rollout(imagename){
	document.images[imagename].src = "images/" + imagename + ".gif";
}

//-- main menu --//
bttn_aboutus = new Image(); bttn_aboutus.src = "images/bttn_aboutus.gif";
bttn_aboutus_roll = new Image(); bttn_aboutus_roll.src = "images/bttn_aboutus_roll.gif";
bttn_ourbook = new Image(); bttn_ourbook.src = "images/bttn_ourbook.gif";
bttn_ourbook_roll = new Image(); bttn_ourbook_roll.src = "images/bttn_ourbook_roll.gif";
bttn_devotional = new Image(); bttn_devotional.src = "images/bttn_devotional.gif";
bttn_devotional_roll = new Image(); bttn_devotional_roll.src = "images/bttn_devotional_roll.gif";
bttn_resources = new Image(); bttn_resources.src = "images/bttn_resources.gif";
bttn_resources_roll = new Image(); bttn_resources_roll.src = "images/bttn_resources_roll.gif";
bttn_wisewords = new Image(); bttn_wisewords.src = "images/bttn_wisewords.gif";
bttn_wisewords_roll = new Image(); bttn_wisewords_roll.src = "images/bttn_wisewords_roll.gif";
bttn_shryrstory = new Image(); bttn_shryrstory.src = "images/bttn_declare.gif";
bttn_shryrstory_roll = new Image(); bttn_shryrstory_roll.src = "images/bttn_declare_roll.gif";
	

	
	