var gElemID=0;
function hover(text,color,ident) {
	if (document.getElementById){
		var title=document.getElementById("title-"+ident);
		title.innerHTML=(text==null)?"&nbsp;":text;
		title.style.color=(color==null)?"#003399":color;
		window.status=(text==null)?"":text;
	}
}
function show_bar_for_elem(id,quote,ident) {
	document.write("<table cellspacing=\"0\" cellpadding=\"0\"><tr>");
	document.write("<td><img style=\"cursor:pointer\" src=\"/i/sq/CopyIcon.gif\" height=\"15\" width=\"24\" onclick=\"window.open('/common/clipboard.asp?id="+id+"&amp;quote="+quote+"','','width=503, height=330,resizable=yes,menubar=no,toolbar=no,directories=no,location=no,scrollbars=no,status=no');\" onMouseOver=\"return hover('Copy to clipboard','#003399','"+ident+"');\" onMouseOut=\"return hover(null,null,'"+ident+"');\" /></td>");
	document.write("<td><a target=\"_top\" href=\"/common/discuss.asp?id="+id+"&amp;quote="+quote+"\"><img border=\"0\" src=\"/i/sq/discuss.gif\" height=\"15\" width=\"20\"  onMouseOver=\"return hover('Comment','#003399','"+ident+"');\" onMouseOut=\"return hover(null,null,'"+ident+"');\" /></a></td>");
	document.write("<td><a target=\"_top\" href=\"/shop/customize/item.asp?id="+id+"&amp;quote="+quote+"&amp;where=srv\"><img src=\"/i/sq/TShirtIcon.gif\" border=\"0\" height=\"15\" width=\"24\" onMouseOver=\"return hover('T-Shirt','#003399','"+ident+"');\" onMouseOut=\"return hover(null,null,'"+ident+"');\" /></a></td>");	
	document.write("<td><a href=\"/common/email/quotes_sender.asp?id="+id+"&quote="+quote+"\"><img style=\"cursor:hand\" src=\"/i/sq/eCardIcon.gif\" border=\"0\" height=\"15\" width=\"24\" onMouseOver=\"return hover('Send an e-card','#003399','"+ident+"');\" onMouseOut=\"return hover(null,null,'"+ident+"');\" /></a></td>");
	document.write("<td><img style=\"cursor:pointer\" src=\"/i/sq/PrintIcon.gif\" height=\"15\" width=\"24\" onclick=\"window.open('/common/print.asp?id="+id+"&amp;quote="+quote+"','print','');\" onMouseOver=\"return hover('Print','#003399','"+ident+"');\" onMouseOut=\"return hover(null,null,'"+ident+"');\" /></td>");
	document.write("<td><a target=\"service\" href=\"/services/bookmark.asp?id="+id+"&quote="+quote+"\"><img style=\"cursor:hand\" src=\"/i/sq/BookmarkIcon.gif\" border=\"0\" height=\"15\" width=\"17\" onMouseOver=\"return hover('Create a bookmark','#003399','"+ident+"');\" onMouseOut=\"return hover(null,null,'"+ident+"');\" /></a></td>");
	document.write("<td><a href=\"/user/suggest/quotation_revision.asp?quotation="+quote+"&id="+id+"\"><img src=\"/i/sq/RevisionIcon.gif\" border=\"0\" height=\"15\" width=\"20\" onMouseOver=\"return hover('Suggest a revision','#003399','"+ident+"');\" onMouseOut=\"return hover(null,null,'"+ident+"');\" /></a></td>");
	document.write("<td><img src=\"/i/sq/SourceIcon.gif\" border=\"0\" height=\"15\" width=\"17\" onMouseOver=\"return hover('Source (coming soon)','#8F8F8F','"+ident+"');\" onMouseOut=\"return hover(null,null,'"+ident+"');\" /></td>");
	document.write("</tr><tr><td align=\"center\" colspan=\"7\" style=\"padding-top:5px;padding-bottom:2px;\">");
	document.write("<div id=\"title-" + ident + "\" style=\"font-weight:bold;font-family:Arial, Helvetica, sans-serif;font-size:12px;margin-top:5px\">&nbsp;</div>");
	document.write("</td></tr></table>");
}
function show_bar(id, quote) {
		show_bar_for_elem(id,quote,gElemID++);
}
