var hppromozing;

$(function () {

	hppromozing = new Zing({
		container: '#hp2008-center-top',

		// Shared transitions that are applied to all panes:
		/**/
		transitions: {
			/* show: function (callback) {
				$(this.pane).css({
					opacity: 0
				}).animate({
					opacity: 1
				}, callback);
			},
			hide: function (callback) {
				$(this.pane).css({
					opacity: 1
				}).animate({
					opacity: 0
				}, callback);
			} */
		},
		
		panes: {
			'first': {
				tab: '#hppromo-1-tab',
				pane: '#hppromo1',
				transitions: {
					show: function (callback) {					
						$(this.pane).css({
							paddingLeft: 400
						}).animate({
							paddingLeft: 0
						}, callback);
					}
				}
			},
			'second': {
				tab: '#hppromo-2-tab',
				pane: '#hppromo2',
				transitions: {
					show: function (callback) {					
						$(this.pane).css({
							paddingLeft: 400
						}).animate({
							paddingLeft: 0
						}, callback);
					}
				}
			},
			'third': {
				tab: '#hppromo-3-tab',
				pane: '#hppromo3',
				transitions: {
					show: function (callback) {					
						$(this.pane).css({
							paddingLeft: 400
						}).animate({
							paddingLeft: 0
						}, callback);
					}
				}
			},
			'fourth': {
				tab: '#hppromo-4-tab',
				pane: '#hppromo4',
				transitions: {
					show: function (callback) {					
						$(this.pane).css({
							paddingLeft: 400
						}).animate({
							paddingLeft: 0
						}, callback);
					}
				}
			},
			'fifth': {
				tab: '#hppromo-5-tab',
				pane: '#hppromo5',
				transitions: {
					show: function (callback) {					
						$(this.pane).css({
							paddingLeft: 400
						}).animate({
							paddingLeft: 0
						}, callback);
					}
				}
			}
		}
	});

});

