$(document).ready(function(){
	$("table tr:even").addClass("odd"); //product page
	$("a[rel^='prettyPhoto']").prettyPhoto(); //photos page
	
	$(".label a").each(function(){
		$(this).qtip({
			content: $(this).attr("title"),
			show: "mouseover",
			hide: "mouseout",
			position: {
				corner: {
					target: "rightMiddle",
					tooltip: "leftMiddle"
				}
			},
			style: {
				"font-size": "12px",
				background:"#2d2d2d",
				border: {
					color: "#2d2d2d",
					radius: 4
				},
				color: "#fff",
				tip: "leftMiddle",
				name: "dark"
			},
			api: {
				beforeRender: function(){
					//destroy initial qutip
					$("table tr.head2 td:first").qtip("destroy");
				}
			}
		}).attr("title","");
		$(this).click(function(){ return false; });
	});
	
	$("table tr.head2 td:first").qtip({
		content: "Hover over the feature titles below for more information!",
		show: {
			ready: true
		},
		position: {
			corner: {
				target: "bottomMiddle",
				tooltip: "bottomMiddle"
			}
		},
		style: {
			"font-size": "12px",
			background:"#2d2d2d",
			border: {
				color: "#2d2d2d",
				radius: 4
			},
			color: "#fff",
			tip: "bottomMiddle",
			name: "dark"
		}
	});
});