var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
	try {
			var pageTracker = _gat._getTracker("UA-7202112-13");
			pageTracker._trackPageview();
		} 
			catch(err) {}


function validateForm(contact) {
	if(""==document.forms.contact.name.value) {
		alert("Please enter your full name.");
		document.forms.contact.name.focus();
		return false;
	}
	if(""==document.forms.contact.email.value) {
		alert("Please enter your email address.");
		document.forms.contact.email.focus();
		return false;
	}
	if(""==document.forms.contact.question.value) {
		alert("Please enter your question.");
		document.forms.contact.question.focus();
		return false;
	}
}

$(document).ready(function(){
		$('#projects').serialScroll({
			items:'li',
			prev:'#photoprev',
			next:'#photonext',
			offset:0,
			start:0,
			duration:500,
			interval:4000,
			force:true,
			stop:true,
			lock:false,
			exclude:1,
			cycle:true, //don't pull back once you reach the end
			jump: false //click on the images to scroll to them
		});
	});


function totalCharge(total) {
		var subtotal = Number(total);
		var add = Number(document.getElementById('support').value);
		//var addRound = Math.round(add*100)/100
		var newTotal = subtotal + add;
		var newTotalRound = Math.round(newTotal*100)/100;
		document.getElementById('total').value = newTotalRound;
		}
		
function ShowMenu(num) {
        var pif = 0;
        	if (num == "monthly") {
        		document.getElementById('term').style.display = 'block';
        		var month = document.getElementById('months').value;
				document.getElementById('total').value = month;
        	} else {
        		document.getElementById('term').style.display = 'none';
				var pif = document.getElementById('paymentOption').value;
				document.getElementById('total').value = pif;
        	}
               
        }



