



	



		


		
		


		

	jQuery().ready(function() {
	

		$("table[id^='sortable'] tr:odd, .sortable tr:odd").addClass('odd');
		$("table[id^='sortable'] tr:even, .sortable tr:even").addClass('even');

		$.ajaxSetup ({ cache: false });
		
		$("a.popup").click(function() {
			$('#poph').load( $(this).attr('href') + " #contentBody div", {}, function(d) { $('#pop').trigger('click'); });
			return false;
		});
		
		$("a.fancy").fancybox({
			'hideOnContentClick'	: false,
			'frameWidth'			: 660,
			'frameHeight'			: 200,
			'overlayShow'			: true,
			'zoomSpeedIn'			: 600,
			'zoomSpeedOut'			: 500,
			'easingIn'				: 'easeOutBack',
			'easingOut'				: 'easeInBack'
		}); 

		$('ul#slideshowX').animatedinnerfade({
			speed: 1000,
			timeout: 8000,
			type: 'sequence',
			containerheight: '151px',
			containerwidth: '764px',
			animationSpeed: 8000,
			animationtype: 'fade',
			bgFrame: 'none',
			controlBox: 'none',
			displayTitle: 'none'
		});		
		
	});
	

	function setupPayment() {
		document.getElementById("pp").innerHTML += paypalInsert('kelly@poledancecharlotte.com', '', 1, 0, 0, 0, 'USD');
	}

	function paypal(price, description) {
		document.getElementById('item_name').value = description;
		document.getElementById('amount').value = price;				
		document.getElementById('paypal').submit();
	}
	
	function paypalInsert(email, item, qty, amount, shipping, shipping2, currency) {
		var appendCode = '<form action="https://www.paypal.com/cgi-bin/webscr" id="paypal" method="post">';
		
		appendCode += '<input type="hidden" name="cmd" value="_xclick">';
		appendCode += '<input type="hidden" name="business" value="'+ email +'">';
		appendCode += '<input type="hidden" name="item_name" id="item_name" value="'+ item +'">';
		appendCode += '<input type="hidden" name="quantity" id="quantity" value="'+ qty +'">';
		appendCode += '<input type="hidden" name="amount" id="amount" value="'+ amount +'">';
		appendCode += '<input type="hidden" name="shipping" id="shipping" value="'+ shipping +'">';
		appendCode += '<input type="hidden" name="shipping2" id="shipping2" value="'+ shipping2 +'">';
		appendCode += '<input type="hidden" name="cn" value="Comments about your Order">';
		appendCode += '<input type="hidden" name="currency_code" value="'+ currency +'">';
		appendCode += '</form>';

		return appendCode;
	
	}
	

	
