// Haiku Sofa Designs




$(document).ready(function(){

	// set active document
	var thispath = location.pathname + location.search;
	if ( thispath ) {
		//console.log(thispath);
		anode = $('#nav a[href$="' + thispath + '"]');
		anode.attr('class', 'selected');
		anode.parents('li').attr('class','selected');
	}

	
 	attrib1 = $('.attrib-thumbs');
	if (attrib1) {
		$('.attrib-thumb a').click( function() {
			$(this).css("outline","none");
			aid = $(this).attr("rel");
			$(".attrib-dd").children("option").each(function() {
					if ( $(this).val() == aid) {
							$(this).attr("selected","selected");
					}
			}); 			
			return false;
		});
		
		$('.attrib-thumbs a').easyTooltip({
			yOffset: 176,
			xOffset: -144,
			clickRemove: true
		});
	}
	
	
	
});


