<!--//
// ----------------------------------- //
// Compound Bow Detail Page JavaScript for Bear Archery //
// ----------------------------------- //

// ---- Compound Bow Page Functions ---//
$(document).ready(function(){
	function showmorespecs(){
		$(".morespecs").show("fast");
		}
	function hidemorespecs(){
		$(".morespecs").hide("fast");	
	}
	 $(".more-specs-btn").mouseover(showmorespecs);
	 $(".bowimg").mouseover(hidemorespecs);
	
	function showcam(){
		$(".cam-callout").show("fast");
		}
	function hidecam(){
		$(".cam-callout").hide("fast");	
	}
	 $(".camdot").mouseover(showcam);
	 $(".bowimg").mouseover(hidecam);
	 
	function showlimbs(){
		$(".limbs-callout").show("fast");
		}
	function hidelimbs(){
		$(".limbs-callout").hide("fast");	
	}
	 $(".limbsdot").mouseover(showlimbs);
	 $(".bowimg").mouseover(hidelimbs);
	 
	 function showstrings(){
		$(".strings-callout").show("fast");
		}
	function hidestrings(){
		$(".strings-callout").hide("fast");	
	}
	 $(".stringsdot").mouseover(showstrings);
	 $(".bowimg").mouseover(hidestrings);
	
	function showpockets(){
		$(".pockets-callout").show("fast");
		}
	function hidepockets(){
		$(".pockets-callout").hide("fast");	
	}
	 $(".pocketsdot").mouseover(showpockets);
	 $(".bowimg").mouseover(hidepockets);
	 
	 function showsuppressors(){
		$(".suppressors-callout").show("fast");
		}
	function hidesuppressors(){
		$(".suppressors-callout").hide("fast");	
	}
	 $(".suppressorsdot").mouseover(showsuppressors);
	 $(".bowimg").mouseover(hidesuppressors);
	
	 function showbushings(){
		$(".bushings-callout").show("fast");
		}
	function hidebushings(){
		$(".bushings-callout").hide("fast");	
	}
	 $(".bushingsdot").mouseover(showbushings);
	 $(".bowimg").mouseover(hidebushings);
	 
	  function showaxle(){
		$(".axle-callout").show("fast");
		}
	function hideaxle(){
		$(".axle-callout").hide("fast");	
	}
	 $(".axledot").mouseover(showaxle);
	 $(".bowimg").mouseover(hideaxle);
	
	 function showidler(){
		$(".idler-callout").show("fast");
		}
	function hideidler(){
		$(".idler-callout").hide("fast");	
	}
	 $(".idlerdot").mouseover(showidler);
	 $(".bowimg").mouseover(hideidler);
	 
	 
	 function showdealerpullout(){
		$(".dealer-pullout").each(function(){
			$(this).slideLeftShow();
		});
	}
	function hidedealerpullout(){
		$(".dealer-pullout").each(function(){
			$(this).slideLeftHide();
		});	
	}
	
	
	function showdrawlengths(){
		$(".drawlengthchart").show("fast");
		}
	function hidedrawlengths(){
		$(".drawlengthchart").hide("fast");	
	}
	 $(".drawlengths-btn").mouseover(showdrawlengths);
	 $(".drawlengths-btn").mouseout(hidedrawlengths);
	 
	 
	 $("#bowblurb.attack").each(function(){
		$(this).mouseover(showdealerpullout);
	 });
	 $("#bowblurb.assault").each(function(){
		$(this).mouseover(showdealerpullout);
	 });
	 $(".bowimg").mouseover(hidedealerpullout);
	
	
	
	
	
	function showattackbow(){
		$(".bowoverview-attack").fadeIn(10, hidebackground);
		}
	function hideattackbow(){
		$(".bowoverview-attack").fadeOut(0, showbackground);
	}
	
	function showassaultbow(){
		$(".bowoverview-assault").fadeIn(10, hidebackground);
		}
	function hideassaultbow(){
		$(".bowoverview-assault").fadeOut(0, showbackground);
	}
	
	function showstrikebow(){
		$(".bowoverview-strike").fadeIn(10, hidebackground);
		}
	function hidestrikebow(){
		$(".bowoverview-strike").fadeOut(0, showbackground);
	}
	
	function showchargebow(){
		$(".bowoverview-charge").fadeIn(10, hidebackground);
		}
	function hidechargebow(){
		$(".bowoverview-charge").fadeOut(0, showbackground);
	}
	
	function showultralightbow(){
		$(".bowoverview-ultra-light").fadeIn(10, hidebackground);
		}
	function hideultralightbow(){
		$(".bowoverview-ultra-light").fadeOut(0, showbackground);
	}
	function showyounggunbow(){
		$(".bowoverview-young-gun").fadeIn(10, hidebackground);
		}
	function hideyounggunbow(){
		$(".bowoverview-young-gun").fadeOut(0, showbackground);
	}
	function showapprenticebow(){
		$(".bowoverview-apprentice").fadeIn(10, hidebackground);
		}
	function hideapprenticebow(){
		$(".bowoverview-apprentice").fadeOut(0, showbackground);
	}
	
	
	function showbackground(){
		$(".bowoverview-show").fadeIn(250);
		}
	function hidebackground(){
		$(".bowoverview-show").fadeOut(500);
	}
	
	
	 $(".attackdot").mouseover(showattackbow);
	 $(".bowoverview-attack").mouseout(hideattackbow);
	  $(".assaultdot").mouseover(showassaultbow);
	 $(".bowoverview-assault").mouseout(hideassaultbow);
	  $(".strikedot").mouseover(showstrikebow);
	 $(".bowoverview-strike").mouseout(hidestrikebow);
	   $(".chargedot").mouseover(showchargebow);
	 $(".bowoverview-charge").mouseout(hidechargebow);
	   $(".ultra-lightdot").mouseover(showultralightbow);
	 $(".bowoverview-ultra-light").mouseout(hideultralightbow);
	  $(".young-gundot").mouseover(showyounggunbow);
	 $(".bowoverview-young-gun").mouseout(hideyounggunbow);
	  $(".apprenticedot").mouseover(showapprenticebow);
	 $(".bowoverview-apprentice").mouseout(hideapprenticebow);
	 
	
	$('#attackcopy').each(function(){
	   $(this).jScrollPane({scrollbarOnRight:true});
	});
	$('#assaultcopy').each(function(){
		 $(this).jScrollPane({scrollbarOnRight:true});
	});
	

});
//-->