//<!--
function check_length(signgb)
{
maxLen = 200; // max number of characters allowed
if (signgb.message.value.length >= maxLen) {
// Alert message if maximum limit is reached.
// If required Alert can be removed.
var msg = "You have reached your maximum limit of characters allowed";
alert(msg);
// Reached the Maximum length so trim the textarea
signgb.message.value = signgb.message.value.substring(0, maxLen);
}
else{ // Maximum length not reached so update the value of message counter
signgb.text_num.value = maxLen - signgb.message.value.length;}
}
//-->

$(document).ready(function() {
			/*
			*   Gallery - images
			*/
			$("a[rel=ele_pgroup]").fancybox({
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			$("a[rel=ele2_pgroup]").fancybox({
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			$("#swf-gallery").fancybox({
				'padding'           : 0,
				'width'				: 820,
				'height'			: 635,
				'autoScale'     	: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none'
			});


		});
		

