if (document.images) {
      storelocator2 = new Image();
      storelocator2.src = "http://www.aaronbrothers.com/images/nav2/storelocator_off.gif";
      storelocator2over = new Image();
      storelocator2over.src = "http://www.aaronbrothers.com/images/nav2/storelocator_over.gif";
	  
	  products2 = new Image();
      products2.src = "http://www.aaronbrothers.com/images/nav2/products_off.gif";
      products2over = new Image();
      products2over.src = "http://www.aaronbrothers.com/images/nav2/products_over.gif";
	  
	  customframing2 = new Image();
      customframing2.src = "http://www.aaronbrothers.com/images/nav2/customframing_off.gif";
      customframing2over = new Image();
      customframing2over.src = "http://www.aaronbrothers.com/images/nav2/customframing_over.gif";
	  
	  timeframe2 = new Image();
      timeframe2.src = "http://www.aaronbrothers.com/images/nav2/timeframe_off.gif";
      timeframe2over = new Image();
      timeframe2over.src = "http://www.aaronbrothers.com/images/nav2/timeframe_over.gif";
	  
	  signup2 = new Image();
      signup2.src = "http://www.aaronbrothers.com/images/nav2/signup_off.gif";
      signup2over = new Image();
      signup2over.src = "http://www.aaronbrothers.com/images/nav2/signup_over.gif";
	  
	  expertadvice2 = new Image();
      expertadvice2.src = "http://www.aaronbrothers.com/images/nav2/expertadvice_off.gif";
      expertadvice2over = new Image();
      expertadvice2over.src = "http://www.aaronbrothers.com/images/nav2/expertadvice_over.gif";
	  
	  aboutus2 = new Image();
      aboutus2.src = "http://www.aaronbrothers.com/images/nav2/aboutus_off.gif";
      aboutus2over = new Image();
      aboutus2over.src = "http://www.aaronbrothers.com/images/nav2/aboutus_over.gif";
	  
	  contactus2 = new Image();
      contactus2.src = "http://www.aaronbrothers.com/images/nav2/contactus_off.gif";
      contactus2over = new Image();
      contactus2over.src = "http://www.aaronbrothers.com/images/nav2/contactus_over.gif";

	  careers = new Image();
      careers.src = "http://www.aaronbrothers.com/images/nav2/careers_off.gif";
      careersover = new Image();
      careersover.src = "http://www.aaronbrothers.com/images/nav2/careers_over.gif";

      storelocator = new Image();
      storelocator.src = "http://www.aaronbrothers.com/images/nav/storelocator_off.gif";
      storelocatorover = new Image();
      storelocatorover.src = "http://www.aaronbrothers.com/images/nav/storelocator_over.gif";
	  
	  products = new Image();
      products.src = "http://www.aaronbrothers.com/images/nav/products_off.gif";
      productsover = new Image();
      productsover.src = "http://www.aaronbrothers.com/images/nav/products_over.gif";
	  
	  customframing = new Image();
      customframing.src = "http://www.aaronbrothers.com/images/nav/customframing_off.gif";
      customframingover = new Image();
      customframingover.src = "http://www.aaronbrothers.com/images/nav/customframing_over.gif";
	  
	  timeframe = new Image();
      timeframe.src = "http://www.aaronbrothers.com/images/nav/timeframe_off.gif";
      timeframeover = new Image();
      timeframeover.src = "http://www.aaronbrothers.com/images/nav/timeframe_over.gif";
	  
	  signup = new Image();
      signup.src = "http://www.aaronbrothers.com/images/nav/signup_off.gif";
      signupover = new Image();
      signupover.src = "http://www.aaronbrothers.com/images/nav/signup_over.gif";
	  
	  expertadvice = new Image();
      expertadvice.src = "http://www.aaronbrothers.com/images/nav/expertadvice_off.gif";
      expertadviceover = new Image();
      expertadviceover.src = "http://www.aaronbrothers.com/images/nav/expertadvice_over.gif";
	  
	  aboutus = new Image();
      aboutus.src = "http://www.aaronbrothers.com/images/nav/aboutus_off.gif";
      aboutusover = new Image();
      aboutusover.src = "http://www.aaronbrothers.com/images/nav/aboutus_over.gif";
	  
	  contactus = new Image();
      contactus.src = "http://www.aaronbrothers.com/images/nav/contactus_off.gif";
      contactusover = new Image();
      contactusover.src = "http://www.aaronbrothers.com/images/nav/contactus_over.gif";

	  sale = new Image();
      sale.src = "http://www.aaronbrothers.com/images/nav/salebutton_off.gif";
      saleover = new Image();
      saleover.src = "http://www.aaronbrothers.com/images/nav/salebutton_over.gif";
	  
	  wallframes = new Image();
      wallframes.src = "http://www.aaronbrothers.com/images/subnav/wallframes_off.gif";
      wallframesover = new Image();
      wallframesover.src = "http://www.aaronbrothers.com/images/subnav/wallframes_on.gif";
	  
	  photoframes = new Image();
      photoframes.src = "http://www.aaronbrothers.com/images/subnav/photoframes_off.gif";
      photoframesover = new Image();
      photoframesover.src = "http://www.aaronbrothers.com/images/subnav/photoframes_on.gif";
	  
	  photoalbums = new Image();
      photoalbums.src = "http://www.aaronbrothers.com/images/subnav/photoalbums_off.gif";
      photoalbumsover = new Image();
      photoalbumsover.src = "http://www.aaronbrothers.com/images/subnav/photoalbums_on.gif";
	  
	  framedart = new Image();
      framedart.src = "http://www.aaronbrothers.com/images/subnav/framedart_off.gif";
      framedartover = new Image();
      framedartover.src = "http://www.aaronbrothers.com/images/subnav/framedart_on.gif";
	  
	  furniturefunction = new Image();
      furniturefunction.src = "http://www.aaronbrothers.com/images/subnav/furniturefunction_off.gif";
      furniturefunctionover = new Image();
      furniturefunctionover.src = "http://www.aaronbrothers.com/images/subnav/furniturefunction_on.gif";
	  
	  artsupplies = new Image();
      artsupplies.src = "http://www.aaronbrothers.com/images/subnav/artsupplies_off.gif";
      artsuppliesover = new Image();
      artsuppliesover.src = "http://www.aaronbrothers.com/images/subnav/artsupplies_on.gif";
	  
	  ourhistory = new Image();
      ourhistory.src = "http://www.aaronbrothers.com/images/subnav/ourhistory_off.gif";
      ourhistoryover = new Image();
      ourhistoryover.src = "http://www.aaronbrothers.com/images/subnav/ourhistory_on.gif";
	  
	  whatsnew = new Image();
      whatsnew.src = "http://www.aaronbrothers.com/images/subnav/whatsnew_off.gif";
      whatsnewover = new Image();
      whatsnewover.src = "http://www.aaronbrothers.com/images/subnav/whatsnew_on.gif";
	  
	  community = new Image();
      community.src = "http://www.aaronbrothers.com/images/subnav/community_off.gif";
      communityover = new Image();
      communityover.src = "http://www.aaronbrothers.com/images/subnav/community_on.gif";
	  
	  workwithus = new Image();
      workwithus.src = "http://www.aaronbrothers.com/images/subnav/workwithus_off.gif";
      workwithusover = new Image();
      workwithusover.src = "http://www.aaronbrothers.com/images/subnav/workwithus_on.gif";
	  
          homesale = new Image();
      homesale.src = "http://www.aaronbrothers.com/images/home/home_salebutton_off.gif";
      homesaleover = new Image();
      homesaleover.src = "http://www.aaronbrothers.com/images/home/home_salebutton_on.gif";

      timeframebutton = new Image();
      timeframebutton.src = "http://www.aaronbrothers.com/images/home/timeframebutton_off.gif";
      timeframebuttonover = new Image();
      timeframebuttonover.src = "http://www.aaronbrothers.com/images/home/timeframebutton_on.gif";
      
      artiststudiobutton = new Image();
      artiststudiobutton.src = "http://www.aaronbrothers.com/images/home/artiststudio_off.gif";
      artiststudiobuttonover = new Image();
      artiststudiobuttonover.src = "http://www.aaronbrothers.com/images/home/artiststudio_on.gif";
      
            meetexperts = new Image();
      meetexperts.src = "http://www.aaronbrothers.com/images/subnav/meetexperts_off.gif";
      meetexpertsover = new Image();
      meetexpertsover.src = "http://www.aaronbrothers.com/images/subnav/meetexperts_on.gif";
      
            askexperts = new Image();
      askexperts.src = "http://www.aaronbrothers.com/images/subnav/askexperts_off.gif";
      askexpertsover = new Image();
      askexpertsover.src = "http://www.aaronbrothers.com/images/subnav/askexperts_on.gif";
      
            designtips = new Image();
      designtips.src = "http://www.aaronbrothers.com/images/subnav/designtips_off.gif";
      designtipsover = new Image();
      designtipsover.src = "http://www.aaronbrothers.com/images/subnav/designtips_on.gif";
      
            framingtips = new Image();
      framingtips.src = "http://www.aaronbrothers.com/images/subnav/framingtips_off.gif";
      framingtipsover = new Image();
      framingtipsover.src = "http://www.aaronbrothers.com/images/subnav/framingtips_on.gif";
      
            hangingtips = new Image();
      hangingtips.src = "http://www.aaronbrothers.com/images/subnav/hangingtips_off.gif";
      hangingtipsover = new Image();
      hangingtipsover.src = "http://www.aaronbrothers.com/images/subnav/hangingtips_on.gif";
 
             othertips = new Image();
      othertips.src = "http://www.aaronbrothers.com/images/subnav/othertips_off.gif";
      othertipsover = new Image();
      othertipsover.src = "http://www.aaronbrothers.com/images/subnav/othertips_on.gif";

      idea = new Image();
      idea.src = "http://www.aaronbrothers.com/images/subnav/idea_off.gif";
      ideaover = new Image();
      ideaover.src = "http://www.aaronbrothers.com/images/subnav/idea_on.gif";
}          

function over(name){
	if (document.images) {
		document[name].src = eval(name + "over.src");
	}
}

function off(name){
	if (document.images) {
		document[name].src = eval(name + ".src");
	}
}



































//---------------------------------------------------------------------------------
//
// Function: 	popup
//
// Description: This function popups a new window with a specified width
//              and height and brings the focus to the popup window
//
// Parameters:  pagename -  the name of the page to be opened in the popup
//							window
//
//				width - the width of the window to be opened
//
//				height - the height of the window to be opened
//
//				scroll - 'yes' if the window should have scrollbars, 'no' if not
//
//				resizeable - 'yes' if the window should be resizeable, 'no' if not
//
// Programmer:  Happy Tsugawa-Banta
//
// Date: 		2/7/01
//
// Updates:     2/7/01 - added these comments (HT)
//
//--------------------------------------------------------------------------------


function popup(pagename,winname,width,height,scroll,resizable) {
	var popup = window.open(pagename,winname,"toolbar=no,directories=no,location=no,status=no,menubar=no,scrollbars=" + scroll + ",resizable=" + resizable + ",width=" + width + ",height=" + height + ",left=0,top=0");

    popup.focus();

}

function prodPopup(pagename) {
	var prodPopup = window.open(pagename,"productPopup","toolbar=no,directories=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=355,height=393,left=0,top=0");

    prodPopup.focus();

}

function expertPopup(pagename) {
	var expertPopup = window.open(pagename,"expertPopup","toolbar=no,directories=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=450,left=420,top=200");

    expertPopup.focus();

}
//---------------------------------------------------------------------------------
//
// Function: 	popupPrint
//
// Description: This function popups a new window with a specified width
//              and height and brings the focus to the popup window and keeps the menu bar
//
// Parameters:  pagename -  the name of the page to be opened in the popup
//							window
//
//				width - the width of the window to be opened
//
//				height - the height of the window to be opened
//
// Programmer:  Happy Tsugawa-Banta
//
// Date: 		9/6/01
//
//
//--------------------------------------------------------------------------------


function popupPrint(pagename,width,height) {
	var popupPrint = window.open(pagename,"popup_print","toolbar=yes,directories=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=" + width + ",height=" + height + ",left=0,top=0");

    popupPrint.focus();

}


//---------------------------------------------------------------------------------
//
// Function:    checkRadio
//
// Description: This validates that at least one Radio button in a group
//              has been selected. If there is a single radio button in the
//              group, and it hasn't been selected, the function selects it.
//
// Parameters:  name - the name of the radio button group
//              message - message to display if no button has been selected
//
// Programmer:  Happy Tsugawa-Banta
//
// Date:        2/9/01
//
// Updates:     6/8/01 - added behavior for single radio button SjG
//
//--------------------------------------------------------------------------------

function checkRadio(name,message){
	var radioChecked = 0;
	for (var j=0; j < name.length; j++){
		if (name[j].checked){
			radioChecked=1;
			return true;
		}
	}
    if (!name.length)
        {
        name.checked=1;
        radioChecked=1;
        }
	if (radioChecked == 1){
		form.submit();
        return true;
	} else {
		alert(message);
		return false;
	}
}

//--------------------------------------------------------------------------
//
// Function:    populateRadio
//
// Description: Iterates through the radio buttons in a group and selects
//              one matching a particular value
//
// Parameters:  buttons - the element representing the buttons
//              value - the value to select
//
// Programmer:  Karl Zilles
//
// Date:        5/16/01
//
// Updates:
//
//--------------------------------------------------------------------------

function populateRadio(buttons, value) {
	for (i=0; i<buttons.length; i++)
		if (buttons[i].value==value)
			buttons[i].checked = true;
}

//--------------------------------------------------------------------------
//
// Function:    countChecked
//
// Description: Iterates through the checkboxes in a group and counts how
//              many have been checked.
//
// Parameters:  element - name of the checkboxes
//
// Programmer:  SjG
//
// Date:        06/07/01
//
// Updates:
//
//--------------------------------------------------------------------------

function countChecked(element)
    {
    count=0;
    for(i=0; i<element.length; i++)
        {
        if (element[i].checked)
            {
            count++;
            }
        }
    return count;
}

//--------------------------------------------------------------------------
//
// Function:    checkAll
//
// Description: Iterates through the check boxes in a group and
//              checks or unchecks them
//
// Parameters:  element - name of the checkboxes
//              val - true for checked, false for unchecked
//
// Programmer:  SjG
//
// Date:        06/07/01
//
// Updates:
//
//--------------------------------------------------------------------------

function checkAll(element, val)
    {
    len = element.length;
    var i=0;
    for( i=0 ; i<len ; i++)
        {
        element[i].checked=val;
        }
    }

//--------------------------------------------------------------------------
//
// Function:    toggleSet
//
// Description: Toggles the state of a single checkbox that controls
//              the state of many checkboxes (i.e., "check here to select
//              all" situations)
//
// Parameters:  primary - name of the controller checkbox
//              children - name of the dependent checkboxes
//
// Programmer:  SjG
//
// Date:        06/07/01
//
// Updates:
//
//--------------------------------------------------------------------------

function toggleSet(primary, children)
    {
    if (primary.checked)
        {
        checkAll(children,true);
        }
    else
        {
        checkAll(children,false);
        }
    }
//--------------------------------------------------------------------------
//
// Function:    populateSelect
//
// Description: Iterates through the select options in a dropdown and selects
//              one matching a particular value
//
// Parameters:  select - the element representing the select
//              value - the value to select
//
// Programmer:  Karl Zilles
//
// Date:        5/16/01
//
// Updates:
//
//--------------------------------------------------------------------------
function populateSelect(select, value) {
	for (i=0; i<select.length; i++)
		if (select.options[i].value==value)
			select.selectedIndex = i;
}



//---------------------------------------------------------------------------------
//
// Function: 	checkDateRange
//
// Description: This function checks to see if any of the start date or end date
//              fields have been selected.  If so, it makes sure all of the fields
//              are selected and makes sure that the start date is earlier than the 
//              end date.
//
// Parameters:  form - the name of the form
//
// Returns:     true if all everything is selected correctly, otherwise false
//
// Programmer:  Happy Tsugawa-Banta
// 
// Date: 		6/06/01
//
//--------------------------------------------------------------------------------

function checkDateRange()
{
	var startmonthvalue = eval(document.form.startmonth.options[document.form.startmonth.selectedIndex].value);
	var startdayvalue = eval(document.form.startday.options[document.form.startday.selectedIndex].value);
	var startyearvalue = eval(document.form.startyear.options[document.form.startyear.selectedIndex].value);
	var endmonthvalue = eval(document.form.endmonth.options[document.form.endmonth.selectedIndex].value);
	var enddayvalue = eval(document.form.endday.options[document.form.endday.selectedIndex].value);
	var endyearvalue = eval(document.form.endyear.options[document.form.endyear.selectedIndex].value);
		

		if ( (startyearvalue > endyearvalue) || ( (startyearvalue == endyearvalue) && (startmonthvalue > endmonthvalue) ) ||  ( (startyearvalue == endyearvalue) && (startmonthvalue == endmonthvalue) && (startdayvalue >= enddayvalue) ) ) {
			alert("Please make sure the starting date is before the ending date.");
			return false;
		} else {
			return validate(document.form,fields);
		}
}


//---------------------------------------------------------------------------------
//
// Function: 	deleteCheckUser
//
// Description: This function checks to make sure this is not the only user.  Then
//              it pops up a confirm box to warn that the user is about to delete a user.
//
// Returns:     true if this is not the only user and they choose to go on
//              with the delete, otherwise false
//
// Programmer:  Happy Tsugawa-Banta
// 
// Date: 		6/13/01
//
// Updates:     
//
//--------------------------------------------------------------------------------

function deleteCheckUser()
{
	if (document.form.userid.length == 1)
    { 
        alert("There is only one current user - therefore you cannot delete this user");
        return false;
    }
	
	if (confirm("Are you sure you want to delete this user?"))
	{
		return validate(this.form,fields);
	} else {
		return false;
	}
}



//---------------------------------------------------------------------------------
//
// Function: 	compare
//
// Description: This function checks which item the user selected in the pulldown and
//              goes to the page by using the option value
//
// Programmer:  Happy Tsugawa-Banta
// 
// Date: 		1/31/01
//
// Updates:     
//
//--------------------------------------------------------------------------------

function compare(what) {
   var n = what.selectedIndex;
   filename = what.form.model.options[n].value;
   window.location=filename;
}

























/*write layer styles by browser*/

ns = (document.layers)? true:false
ie = (document.all)? true:false

if (ie) {	
	document.write('<LINK REL="stylesheet" HREF="/css/style_ie.css" TYPE="text/css">');
}
