
// Toggles the visibility of an element via the style's display property
		function toggle(el)	{
		myEl = document.getElementById(el);
		myEl.style.display = (myEl.style.display == 'none') ? 'block' : 'none';
		}
// End


//Loads Drop Down Menu
function mmLoadMenus() {
  if (window.mm_menu_0730123132_0) return;
  window.mm_menu_0730123132_0 = new Menu("root",62,23,"Verdana, Arial, Helvetica, sans-serif",10,"#90753f","#aea456","#2E0303","#2E0303","left","bottom",5,-10,500,0,-198,true,false,false,5,true,true);
  mm_menu_0730123132_0.addMenuItem("Lamps","location='gallery.cfm?gallery=lamps'");
  mm_menu_0730123132_0.addMenuItem("Frames","location='gallery.cfm?gallery=frames'");
  mm_menu_0730123132_0.addMenuItem("Tables","location='gallery.cfm?gallery=tables'");
  mm_menu_0730123132_0.addMenuItem("Samples","location='gallery.cfm?gallery=samples'");
   mm_menu_0730123132_0.hideOnMouseOut=true;
   mm_menu_0730123132_0.menuBorder=0;
   mm_menu_0730123132_0.menuLiteBgColor='#e0dfe3';
   mm_menu_0730123132_0.menuBorderBgColor='#ababab';
   mm_menu_0730123132_0.bgColor='#cbcbcb';

  mm_menu_0730123132_0.writeMenus();
}
//End 


//Zoom Windows

function openWin(url,w,h)
{
var props= 'menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,dependent,width='+w+',height='+h+',left=0,top=0';
window.open(url,'mywindow',props);
}

function resizeWindow(w,h)
  {
  window.resizeTo(w,h)
  }

//Email Window

function openWinEmail(url)
{
window.open(url,'mywindow','menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,dependent,width=450,height=350,left=0,top=0');
}

//End 


// validate email 
function testbox(form) {
Ctrl = form.email_friend;
  if (Ctrl.value == "" || Ctrl.value.indexOf ('@', 1) == -1 || Ctrl.value.indexOf ('.', 3) == -1) 
  {
    return (false);
  } 
  else
  {
    return (true);
  } 
}

// end 


// prevent marquee around linked objects 
function blurLinks() {
	if(document.links) {
	for(i=0;i<document.links.length;i++) {
	document.links[i].onfocus=function(){this.blur();}}}}
	document.onmousedown=blurLinks
// end 


// display element 1 based on class name of element 2
	function showHide(el,el2) {
	myEl = document.getElementById(el);
	myEl2 = document.getElementById(el2);
	myEl.style.display = (myEl2.className == 'off') ? 'block' : 'none';
	return false;
	}
	
			
	function setText(el,text) {
	myEl = document.getElementById(el);
	myEl.innerHTML = text;
	}
	
	
	function toggleClass(el,newName,curName) {
	myEl = document.getElementById(el);
	if( myEl.className == newName  )
	{ return; }
	myEl.className = (myEl.className == curName) ? newName : curName;
	return false;
	}