
/*
Disable right click script II (on images)- By Dynamicdrive.com
For full source, Terms of service, and 100s DTHML scripts
Visit http://www.dynamicdrive.com
*/
 
var clickmessage="Thank you for shopping at SplatAttack.com"
 
function disableclick(e) {
if (document.all) {
if (event.button==2||event.button==3) {
if (event.srcElement.tagName=="IMG"){
alert(clickmessage);
return false;
}
}
}
else if (document.layers) {
if (e.which == 3) {
alert(clickmessage);
return false;
}
}
else if (document.getElementById){
if (e.which==3&&e.target.tagName=="IMG"){
alert(clickmessage)
return false
}
}
}

function associateimages(){
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown=disableclick;
}

if (document.all)
document.onmousedown=disableclick
else if (document.getElementById)
document.onmouseup=disableclick
else if (document.layers)
associateimages()



/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}



/*<>
**************************
	Class Opacity Control
**************************/


jQuery(document).ready(function($){


	// ### FAST: 1.0 --> 0.5 ###
	// on page load
	$(".fadebttn_f img").fadeTo("fast", 1.0);
 
	$(".fadebttn_f img").hover(function(){
		// on hover event
		$(this).fadeTo("fast", 0.5);
		},function(){
		// on mouseout event
		$(this).fadeTo("fast", 1.0);
	});


	// ### SLOW: 1.0 --> 0.7 ###
	// on page load
	$("a img").fadeTo("slow", 1.0);
 
	$("a img").hover(function(){
		// on hover event
		$(this).fadeTo("slow", 0.7);
		},function(){
		// on mouseout event
		$(this).fadeTo("slow", 1.0);
	});


	// ### SLOW: 0.5 --> 1.0 ###
	// on page load
	$("#topnavbarright #topnav li a").fadeTo("slow", 0.5);
 
	$("#topnavbarright #topnav li a").hover(function(){
		// on hover event
		$(this).fadeTo("slow", 1.0);
		},function(){
		// on mouseout event
		$(this).fadeTo("slow", 0.5);
	});


});
