// Only create tooltips when document is ready
function show_object_info(inf){
	var infobox = document.getElementById('info_box');
	setContent('info_box',inf);
	infobox.className = 'visible_object_info';
}
function hide_object_info(){
	var infobox = document.getElementById('info_box');
	infobox.className = 'invisible';
}
function MouseMv(e) {
	if (!e) e = window.event;
	if (typeof e.pageY == "number"){
	  X = e.pageX;
	  Y = e.pageY;
	}
	else{
	  X = e.clientX + (document.documentElement.scrollLeft ?
	   document.documentElement.scrollLeft :
	   document.body.scrollLeft);
	  Y = e.clientY + (document.documentElement.scrollTop ?
	   document.documentElement.scrollTop :
	   document.body.scrollTop);
	}
	var infobox = document.getElementById('info_box');
	infobox.style.left=(5+X)+'px';
	infobox.style.top=(Y-40)+'px';
}

function show_object_info_quote(inf){
	var infobox = document.getElementById('info_box2');
	//setContent('info_box2',inf);
	infobox.innerHTML="<b>"+inf+"</b>";
	infobox.className = 'visible_object_info2';
}
function hide_object_info_quote(){
	var infobox = document.getElementById('info_box2');
	infobox.className = 'invisible';
}


/*
if (window.attachEvent)
{
    document.attachEvent("onmousemove",MouseMv);
}
else
{
    document.addEventListener("mousemove",MouseMv,false);
}
*/
/*
$(document).ready(function(){
   // Use the each() method to gain access to each of the elements attributes
   $('.swatch_item').each(function(){
		$(this).qtip({
		   content: '<a href="#">Click to Start Designing</a>',
		  // hide: {fixed: true},
		   position: { corner: { target: 'topMiddle', tooltip: 'bottomMiddle'}},
		   style: { color: '#1d4570', background: '#c1dcef', border: { width: 2, radius: 3, color: '#1d4570'},tip: 'bottomMiddle'}
		});
   });
   $('.swatch_quote').each(function(){
			$(this).qtip({
			   content: this.getAttribute("name"),
			  // hide: {fixed: true},
			   position: { corner: { target: 'topMiddle', tooltip: 'bottomMiddle'}},
			   style: { color: '#1d4570', background: '#c1dcef', border: { width: 2, radius: 3, color: '#1d4570'},tip: 'bottomMiddle'}
			});
   });
});
*/
