function formatText(index, panel) {
	return index + "";
}

function votePhoto(pid){
	jQuery('#status-msgs-'+pid).fadeOut('fast', function(){
		jQuery('#status-msgs-'+pid).html('Submitting your vote...');
		jQuery('#status-msgs-'+pid).fadeIn('fast');
		jQuery.get('/photo-competition/view-and-vote/?doAction=votePhoto&pid='+pid, function(data) {
		  jQuery('#status-msgs-'+pid).html(data);
		});
	})
}

function getGroupMembers(gid){
	jQuery.get('/?doAction=getGroupMembers&gid='+gid, function(data) {
	  jQuery('.latest-members').html(data);
	});
}

function getLatestNews(gid){
	jQuery.get('/?doAction=getLatestNews&gid='+gid, function(data) {
	  jQuery('.latest-comments').html(data);
	});
}

jQuery(function () {

	// link splash page links
	jQuery('#splash-col-left').click(function(){
		location.href='photo-competition';
	})

	jQuery('#splash-col-mid').click(function(){
		location.href='our-advertising';
	})

	jQuery('#splash-col-right').click(function(){
		//location.href='http://store.chasingpandora.com/driver-and-dancer/view-all-products.html';
	})

	jQuery("#category-row").jqTransform();

	jQuery(".tooltip").tipTip({delay:0});

	Shadowbox.init();

});
