﻿

//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

//var message="Sorry, right clicking is disabled.";

///////////////////////////////////
//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")



function addBookmark() 
{
if (window.sidebar)
{ 
window.sidebar.addPanel(document.title,location.href,""); 
} 
else if( document.all )
{
window.external.AddFavorite(location.href,document.title);
} 
else if( window.opera && window.print )
{
return true;
}
}


function EmailPage()
{
strEmailBody = "mailto:?body=You have been sent a link from " + document.title + "%0D%0D" + location.href
location.href = strEmailBody
}


function e400Variation1(paypalform)
{
var selectVariation;
selectVariation=paypalform.os0temp.options[paypalform.os0temp.selectedIndex].value;

var selectPrice=selectVariation.split("?");
if (selectPrice[1]==undefined){
	paypalform.os0.value=selectVariation;
}
else{
	paypalform.os0.value=selectPrice[0];
	paypalform.amount.value=selectPrice[1];
}
}

function e400Variation2(paypalform)
{
var selectVariation;
selectVariation=paypalform.os1temp.options[paypalform.os1temp.selectedIndex].value;

var selectPrice=selectVariation.split("?");
if (selectPrice[1]==undefined){
	paypalform.os1.value=selectVariation;
}
else{
	paypalform.os1.value=selectPrice[0];
	paypalform.amount.value=selectPrice[1];
}
}

function validatePayPal(variationDropDown1,variationDropDown2)
{
if (variationDropDown1.selectedIndex==0) {
	alert("Please select from the dropdown menu");
	return false;
}
if (variationDropDown1.selectedIndex==1) {
	alert("Please select from the dropdown menu");
	return false;
}
if (variationDropDown2==undefined){}
else{
	if (variationDropDown2.selectedIndex==0) {
		alert("Please select from the dropdown menu");
		return false;
	}
	if (variationDropDown2.selectedIndex==1) {
		alert("Please select from the dropdown menu");
		return false;
	}
}
}





/* ================================================================ 
This copyright notice must be kept untouched in the stylesheet at 
all times.

The original version of this script and the associated (x)html
is available at http://www.stunicholls.com/menu/pro_drop_1.html
Copyright (c) 2005-2007 Stu Nicholls. All rights reserved.
This script and the associated (x)html may be modified in any 
way to fit your requirements.
=================================================================== */
stuHover = function() {
	var cssRule;
	var newSelector;
	for (var i = 0; i < document.styleSheets.length; i++)
		for (var x = 0; x < document.styleSheets[i].rules.length ; x++)
			{
			cssRule = document.styleSheets[i].rules[x];
			if (cssRule.selectorText.indexOf("LI:hover") != -1)
			{
				 newSelector = cssRule.selectorText.replace(/LI:hover/gi, "LI.iehover");
				document.styleSheets[i].addRule(newSelector , cssRule.style.cssText);
			}
		}
	var getElm = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<getElm.length; i++) {
		getElm[i].onmouseover=function() {
			this.className+=" iehover";
		}
		getElm[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", stuHover);








