//*** General Routines ***
function swap(theimg)
{
if(theimg.src.substr(theimg.src.length - 7)=="off.gif"){
	theimg.src = "paw2.gif";}
else {
	theimg.src = "pawoff.gif";}
}

function hovswap(idnum,over)
{
if(over){
	document.getElementById("submenu" + idnum).style.backgroundColor="#9DD5FB";}
else{
	document.getElementById("submenu" + idnum).style.backgroundColor="";}
}

function hoverswap(idnum,over)
{
if(over){
	document.getElementById("but" + idnum).style.backgroundImage="url(images/bdn.gif)";
	document.getElementById("butleft" + idnum).src="images/bleftdn.gif";
	document.getElementById("butright" + idnum).src="images/brightdn.gif";}
else{
	document.getElementById("but" + idnum).style.backgroundImage="url(images/bup.gif)";
	document.getElementById("butleft" + idnum).src="images/bleftup.gif";
	document.getElementById("butright" + idnum).src="images/brightup.gif";}
}

function promptsponsor()
{
if (!warnedonce){
alert("To indicate which Lao bear you wish to sponsor,\nplease make a note in the customer comments field\nwhen completing the sponsorship.\n\nMany thanks for your support.");
warnedonce=true;}
}

function promptsponsorwarn()
{
if (!warnedonce){
alert("To indicate which Lao bear you wish to sponsor,\nplease make a note in the customer comments field\nwhen completing the sponsorship.\n\nIf page fails to open please enable pop-ups for this\nsite or right-click and open in new window.\n\nMany thanks for your support.");
warnedonce=true;}
}

var warnedonce=false;
var oImgb1=new Image();
var oImgb2=new Image();
var oImgb3=new Image();

oImgb1.src = "images/bdn.gif";
oImgb2.src = "images/bleftdn.gif";
oImgb3.src = "images/brightdn.gif";