// JavaScript Document
	window.addEvent('domready', function(){ 
		new SmoothScroll({duration: 900}); 
		
		var tip1 = new Tips($$('.TipImg'), {
		initialize:function(){
			this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 300, wait: false}).set(0);
		},
		onShow: function(toolTip) {
			this.fx.start(0.7);
		},
		onHide: function(toolTip) {
			this.fx.start(0);
		},
		fixed: false
	});
	
	var tip1 = new Tips($$('.TipNav'), {
		initialize:function(){
			this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 200, wait: false}).set(0);
		},
		onShow: function(toolTip) {
			this.fx.start(1);
		},
		onHide: function(toolTip) {
			this.fx.start(0);
		},
		offsets: {'x': -50, 'y': -110},
		className: 'toolNav'
	});

});


//Show Contact
function showContact() {
    var targetDiv = document.getElementById("contactInfo");
    targetDiv.style.display="block";
	var targetDivOther = document.getElementById("aboutInfo");
    targetDivOther.style.display="none";
}
function hideContact() {
    var targetDiv = document.getElementById("contactInfo");
    targetDiv.style.display="none";
}
//Show About
function showAbout() {
    var targetDiv = document.getElementById("aboutInfo");
    targetDiv.style.display="block";
	var targetDivOther = document.getElementById("contactInfo");
    targetDivOther.style.display="none";
}
function hideAbout() {
    var targetDiv = document.getElementById("aboutInfo");
    targetDiv.style.display="none";
}


// preload rollovers
window.onload =	function preloader() {
		preLoadImage = new Image(10,10); 
		preLoadImage.src = "images/blacktrans.png";
	}
