platform = ((navigator.platform.indexOf('Win') > -1) ? "win" : "mac");

if (platform == "mac"){
	document.write("<LINK rel='stylesheet' href='http://www.dalinalaw.com/includes/styles.css' type='text/css'>");
} else {
	document.write("<LINK rel='stylesheet' href='http://www.dalinalaw.com/includes/styles.css' type='text/css'>");
}

function openCalc() {
	window.open('calculator.php','mywin','left=20,top=20,width=610,height=600,toolbar=0,resizable=0');
}

function goSignUp() {
	//alert("go sign up page");
	opener.location='signup.php';
	self.close();
}

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 = "http://www.dalinalaw.com/images/" + imagename + "_roll.gif";
}

function rollout(imagename){
	document.images[imagename].src = "http://www.dalinalaw.com/images/" + imagename + ".gif";
}

bttn_login = new Image(); bttn_login.src = "http://www.dalinalaw.com/images/bttn_login.gif";
bttn_login_roll = new Image(); bttn_login_roll.src = "http://www.dalinalaw.com/images/bttn_login_roll.gif";
bttn_forgotpass = new Image(); bttn_forgotpass.src = "http://www.dalinalaw.com/images/bttn_forgotpass.gif";
bttn_forgotpass_roll = new Image(); bttn_forgotpass_roll.src = "http://www.dalinalaw.com/images/bttn_forgotpass_roll.gif";
bttn_support = new Image(); bttn_support.src = "http://www.dalinalaw.com/images/bttn_support.gif";
bttn_support_roll = new Image(); bttn_support_roll.src = "http://www.dalinalaw.com/images/bttn_support_roll.gif";
bttn_home = new Image(); bttn_home.src = "http://www.dalinalaw.com/images/bttn_home.gif";
bttn_home_roll = new Image(); bttn_home_roll.src = "http://www.dalinalaw.com/images/bttn_home_roll.gif";
bttn_plans = new Image(); bttn_plans.src = "http://www.dalinalaw.com/images/bttn_plans.gif";
bttn_plans_roll = new Image(); bttn_plans_roll.src = "http://www.dalinalaw.com/images/bttn_plans_roll.gif";
bttn_intlrates = new Image(); bttn_intlrates.src = "http://www.dalinalaw.com/images/bttn_intlrates.gif";
bttn_intlrates_roll = new Image(); bttn_intlrates_roll.src = "http://www.dalinalaw.com/images/bttn_intlrates_roll.gif";
bttn_features = new Image(); bttn_features.src = "http://www.dalinalaw.com/images/bttn_features.gif";
bttn_features_roll = new Image(); bttn_features_roll.src = "http://www.dalinalaw.com/images/bttn_features_roll.gif";
bttn_why = new Image(); bttn_why.src = "http://www.dalinalaw.com/images/bttn_why.gif";
bttn_why_roll = new Image(); bttn_why_roll.src = "http://www.dalinalaw.com/images/bttn_why_roll.gif";
bttn_signup = new Image(); bttn_signup.src = "http://www.dalinalaw.com/images/bttn_signup.gif";
bttn_signup_roll = new Image(); bttn_signup_roll.src = "http://www.dalinalaw.com/images/bttn_signup_roll.gif";

