<!--
if (document.images)
{
    adImages = new Array("images/rotating-banner_1.jpg",
	
						"images/rotating-banner_2.jpg"
      
					);

    adURLs = new Array("http://catalog.ailnm.com",
	
						"http://catalog.ailnm.com/adjustable_chart_stand-p-4320.html"
      
					    );
    thisAd = 0;
}

function cycleAds()
{
    if (document.images)
    {
        if (document.adBanner.complete)
        {
            if (++thisAd == adImages.length)
                thisAd = 0;

            document.adBanner.src = adImages[thisAd];
        }
    }


function gotoAd()
{
    document.location.href = "" + adURLs[thisAd];
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

    // change to next banner every 15 seconds
    setTimeout("cycleAds()", 8300);
}
function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//validate email a freind box
function checkfriend()
	{
	var friend = document.forms[2].friend_email.value;
	var me = document.forms[2].your_email.value;
	
	if(friend == "" || friend == "friend_email" || me == "" || me == "your email")
		{
		alert("Please enter both Friends Email Address and Yours!");
		return false;
		}
	return true;
	}
//validate search term	
function checksearch()
	{
	var keywords = document.forms[0].keywords.value;
		
	if(keywords == "" || keywords == "enter keyword/item#")
		{
		alert("Please enter a search term");
		return false;
		}
	return true;
	}	
/*
function clearkeywords()
	{
	var keywords = document.forms[0].keywords.value;
	if(keywords == "enter keyword/item#")
		{
		keywords = "";
		alert(keywords);
		}
	}
*/
//-->
