// JavaScript Document

window.addEvent('domready', function(){ 

 

new SmoothScroll({duration: 900}); 
		
/* FOR TOOL TIPS ON IMAGES  */

var elTipImg = $$('.TipImg');
 
var myTipImg = new Tips(elTipImg, {
 	showDelay: 500,
	//this will add a wrapper div
	//with the following class to your tooltips
	//this lets you have different styles of tooltips
	//on the same page
	className: 'TipImages', 
	fixed: true,
	 
	//if you call the functions outside of the options
	//then it may "flash" a bit on transitions
	//much smoother if you leave them in here
	onShow: function(toolTipElement){
	    //passes the tooltip element
		//you can fade in to full opacity
		//or leave them a little transparent
    	toolTipElement.fade(.8);
	},
	onHide: function(toolTipElement){
    	toolTipElement.fade(0);
	}
});


/* FOR TOOL TIPS ON THUMBNAILS */

var elTipNav = $$('.TipNav');
 
var myTipNav = new Tips(elTipNav, {
 	showDelay: 500,
	//this will add a wrapper div
	//with the following class to your tooltips
	//this lets you have different styles of tooltips
	//on the same page
	className: 'TipNav', 
offset: {'x': -20, 'y': 16},
	 
	//if you call the functions outside of the options
	//then it may "flash" a bit on transitions
	//much smoother if you leave them in here
	onShow: function(toolTipElement){
	    //passes the tooltip element
		//you can fade in to full opacity
		//or leave them a little transparent
    	toolTipElement.fade(1);
	},
	onHide: function(toolTipElement){
    	toolTipElement.fade(0);
	}
});

		
});




/* DISABLE RIGHT CLICK */

var message="Image Copyright Protected";

function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")



