/* 
	File Name: videosculptor.js
	Notes:
		- Powered by JQuery (http://www.jquery.com)
===============================================================*/

$(document).ready(function() {


	$("#VideoPackNav").jFlow({
		slides: "#VideoPackContent",
		controller: ".VideoPackage", // must be class, use . sign
		slideWrapper : "#VideoPackSlide", // must be id, use # sign
		selectedWrapper: "VideoPackSelected",  // just pure text, no sign
		width: "520px",
		height: "210px",
		duration: 400,
		prev: ".VideoPackPrev", // must be class, use . sign
		next: ".VideoPackNext" // must be class, use . sign
	});
	
	$("#PhotoPackNav").jFlow({
		slides: "#PhotoPackContent",
		controller: ".PhotoPackage", // must be class, use . sign
		slideWrapper : "#PhotoPackSlide", // must be id, use # sign
		selectedWrapper: "PhotoPackSelected",  // just pure text, no sign
		width: "520px",
		height: "210px",
		duration: 400,
		prev: ".PhotoPackPrev", // must be class, use . sign
		next: ".PhotoPackNext" // must be class, use . sign
	});
	
	// breadcrumb menu
	$("#breadCrumb").jBreadCrumb({easing:'swing'});
	
	// mailto link protection
	$('a.mtl').each(function(){
		x = this.rel.replace('/-at-/','@');
		y = x.replace('/-dot-/','.');
		this.href = 'mailto:' + y;
		$(this).text(y);
	});
	
	$("fieldset.proof,#WebProofingClose").hide();
	
	$("#WebProofingLI").click( function() {
		$("fieldset.proof").show(400);
		$("#WebProofingClose").show(400);
	});
	
	$("#WebProofingClose").click( function() {
		$("fieldset.proof").hide();
		$(this).hide();
	});

});
