	$(document).ready(function(){
		$('a#size_chart').qtip({
			content: "<img src=\"images/img_size_chart.gif\" alt=\"Size Chart\" title=\"Size Chart\" />",
			style: {
				width: 335,
				classes: "ui-tooltip-light"
			},
			position: {
				at: "bottom center",
				my: "top right"
			}
		});
		
		$('a#shippingpromo').qtip({
			content: "<img src=\"images/global_holiday_shipdatesHover.jpg\" alt=\"Shipping dates\" title=\"Shipping dates\" />",
			style: {
				width: 290
			},
			position: {
				at: "top right",
				my: "top right"
			}
		});

		$('a.contest ').qtip({
			content: {
				text: "<h4 class=\"contest_header\">Contest Details</h4><p style=\"padding:0 10px;\">Contests will be held on a monthly basis. Entries must be submitted prior to 12:00AM PST on the last day of each month. Limited to one entry per person. All product reviews must be submitted through www.fitnessanywhere.com and be specific to one product. Valid email address must be submitted with review to be entered in contest. Winner will be chosen a random each month and awarded the latest workout DVD/Guide from Fitness Anywhere. The winner to be notified by email within 30 days of the end of the contest. Contest may be discontinued at any time at the discretion of Fitness Anywhere, Inc.</p>"
			},
			style: {
				width: 335,
				classes: "ui-tooltip-light"
			},
			position: {
				at: "bottom left",
				my: "top left"
			}
		});
		
		
		$("a[rel='prod_image']").colorbox();
		$("a[rel='prod_gallery']").colorbox();
		$(".prod_video").colorbox({initialHeight:"600px", initialHeight:"360px", inline:true, href:"#video"});
//		$(".incart").colorbox({open:true, width:"520px", inline:true, href:"#incart"});
		$(".qtyError").colorbox({open:true, width:"520px", inline:true, href:"#qtyError"});
		$(".outofstock").colorbox({open:true, width:"520px", inline:true, href:"#outofstock"});
//		$(".outofstock").colorbox({width:"520px", height:"75%", iframe:true, href:"/IM_INSF.html", open:true});
		$(".taf").colorbox({width:"520px", height:"75%", iframe:true});
		$("a.submit-review").colorbox({width:"520px", height:"75%", iframe:true});
		$(".more-reviews a").colorbox({width:"520px", height:"75%", iframe:true});
		$(".confidence").colorbox({width:"750px", height:"90%", iframe:true});
		$(".dvd-tac").colorbox({width:"760px", height:"500px", iframe:true});
		$('input#show_cart').click(function(){
			if (this.checked){$('#cart_btn').show();$('#continue_btn').hide();$('#recip_send').val('');}else{$('#cart_btn').hide();$('#continue_btn').show();$('#recip_send').val('Yes');}
		});
		$('input#show_continue').click(function(){
			if (this.checked){$('#cart_btn').hide();$('#continue_btn').show();$('#recip_send').val('Yes');}else{$('#cart_btn').show();$('#continue_btn').hide();$('#recip_send').val('');}
		});
		$("input.email_gc").colorbox({width:"520px", title:"&nbsp;", inline:true, href:".gc_form"});
		$('.js_show_button').show();
	});
	runOnLoad(function(){
		$(".col_justify").vjustify();
	});

// IMAGE EXTRA SWAP CODE
function MM_swapImgRestore(){ //v3.0
	var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages(){ //v3.0
	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
		var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
		if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d){ //v4.01
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage(){ //v3.0
	var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
		if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

