<!--
function framebreakout(){if (top.location != location){top.location.href = document.location.href;}}
function makeLink() { var url = site_url; if (window.sidebar) { window.sidebar.addPanel(title_1, url,""); } else if(document.all) { window.external.AddFavorite(url,title_1); } else if( window.opera && window.print ) { return true; } }
function makethisLink() { var url = item_url; if (window.sidebar) { window.sidebar.addPanel(title, url,""); } else if(document.all) { window.external.AddFavorite(url,title); } else if( window.opera && window.print ) { return true; } }
function email_friend_v2() { document.write("<A HREF=#; onClick=\"window.open('http://script.crafta.com/php/email_friend/email_friend.php?action=popup&url=http://crafta.com/" + code_item + ".html', '_blank', config='height=580,width=400')\">" + friend_image + "</a>"); }
function sample_request() { document.write("<A HREF=#; onClick=\"window.open('http://script.crafta.com/php/sample_request/sample_request.php?action=popup&url="); document.write(document.URL);document.write("', '_blank', config='height=580,width=400')\">"); }
function Jump_TO(targ,selObj,restore){ eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore) selObj.selectedIndex=0; }
var genhea1ln = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n';
function Copener(picName) 
  { 
	ShowingImage = new Image(); 
	ShowingImage.src = picName; 
	SiteDescription = "Crafta.com Crafts, Silk Flowers, Ribbons & Special Occasions";
	SiteLogo = "http://images.crafta.com/web/logos/crafta_logo.gif";
	CloseMsg = "Click image to close window";
	if(Copener.arguments.length==3){
		wid = Copener.arguments[1] + 50; 
		hei = Copener.arguments[2] + 130; 
	}else{
		wid = raw_wid + 50; 
		hei = raw_hei + 130; 
	}
	OpenWindow = window.open("", "remoteWin", "resizable=1, scrollbars=1, status=1, toolbar=0, left=15, top=10, width="+ wid + ", height=" + hei); 
	OpenWindow.document.open(); 
	OpenWindow.document.write(genhea1ln + '<html>\n<head>\n<title>' + itemName + '</title>\n</head>\n<center>\n  <img src=' + SiteLogo +' alt="' + SiteDescription + '" border=0><br />\n  <br /><a href="javascript:window.close();" onMouseover="window.status=\''+ CloseMsg +'\'; return true" onMouseout="window.status=\''+ CloseMsg +'\'; return true"><img src=' + picName + ' alt="' + itemName + '" border=1></a><font face="Verdana" size="2"><br />\n<br />\n  <font size=-1>Click image to <a href="javascript:window.close();" onMouseover="window.status=\''+ CloseMsg +'\'; return true" onMouseout="window.status=\''+ CloseMsg +'\'; return true">close window</a>. crafta.com Copyright 2002-2006\n<br /></font></font></center>\n</body>\n</html>'); 
	OpenWindow.document.close(); 
  }
function Bopener(picName,picDesc)
  { 
	ShowingImage = new Image();
	ShowingImage.src = picName;
	ImgPreffix = "http://images.crafta.com/web/store_pictures/";
	wid = 512 + 50;
	hei = 384 + 100;
	CloseMsg = "Click image to close window";
	OpenWindow = window.open("", "remoteWin", "resizable=1, scrollbars=1, status=1, toolbar=0, left=15, top=10, width="+ wid + ", height=" + hei); 
	OpenWindow.document.open(); 
	OpenWindow.document.write(genhea1ln + '<html>\n<head>\n<title>'+ picDesc +'</title>\n</head>\n<center>\n  <a href="javascript:window.close();" onMouseover="window.status=\''+ CloseMsg +'\'; return true" onMouseout="window.status=\''+ CloseMsg +'\'; return true"><img src=' + ImgPreffix + picName + ' border=0></a><font face="Verdana" size="2">\n<br /><br />\n '+ picDesc +' <br /><br />\n  <font size=-2>Click image to <a href="javascript:window.close();" onMouseover="window.status=\''+ CloseMsg +'\'; return true" onMouseout="window.status=\''+ CloseMsg +'\'; return true">close window</a>. crafta.com Copyright 2002-2006\n<br /></font></font></center>\n</body>\n</html>'); 
	OpenWindow.document.close(); 
  }
 function makeavailable(num,state)
 { 
   obj=eval("document.forms.ordform.vwquantity"+num)
   obj.disabled=!state;
   ((state)?(obj.value=1):(obj.value=0))
   obj2=eval("document.forms.ordform.vwitem"+num)
   obj2.disabled=!state;
   ((state)?(obj.value=1):(obj.value=0))
 }




//6:43 PM 5/28/2008
var menuids=new Array("verticalmenu") //Enter id(s) of UL menus, separated by commas
var submenuoffset=-2 //Offset of submenus from main menu. Default is -2 pixels.

function createcssmenu(){
for (var i=0; i<menuids.length; i++){
  var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
    for (var t=0; t<ultags.length; t++){
    var spanref=document.createElement("span")
		spanref.className="arrowdiv"
		spanref.innerHTML="&nbsp;&nbsp;"
		ultags[t].parentNode.getElementsByTagName("a")[0].appendChild(spanref)
    ultags[t].parentNode.onmouseover=function(){
    this.getElementsByTagName("ul")[0].style.left=this.parentNode.offsetWidth+submenuoffset+"px"
    this.getElementsByTagName("ul")[0].style.display="block"
    }
    ultags[t].parentNode.onmouseout=function(){
    this.getElementsByTagName("ul")[0].style.display="none"
    }
    }
  }
}


if (window.addEventListener)
window.addEventListener("load", createcssmenu, false)
else if (window.attachEvent)
window.attachEvent("onload", createcssmenu)




// -->