function gallery()
{
	//--------------------------------------
	// VAR
	//--------------------------------------
	
	
	
	
	//--------------------------------------
	// INIT
	//--------------------------------------
	
	this.init = function( page )
	{
		
	}
	
	
	
	//--------------------------------------
	// SET gallery
	//--------------------------------------
	
	this.setGallery = function( post_name )
	{
		var imgList = [];
		var i;
		var arrPostGallery = [];
		var arrPostGalleryFrame = [];
		
		
		
		///// ESCONDE O CÓDIGO DO IE7
		/*@cc_on
	   /*@if ( @_jscript_version <= 5.7 )
		//alert(@_jscript_version);
	   @else @*/
	   
	   	//
	   	postName = post_name;
		$('body').trigger('gallerySeveralEvent');
	   
	   	
	   	//
		$( '#' + post_name + ' #post_content img' ).each
		(
			function()
			{
				var $this = $( this );
				imgList.push( $this );
			}
		);
  		
		
		// If more than 2 IMGs, prepare IMGs to Gallery
		if( imgList.length >= 2 )
		{
			
			for( i = 0; i < imgList.length; i++ )
			{
				$( '#' + post_name + ' #post_gallery' ).append( '<a href="#"><div id="post_gallery_frame' + i + '" class="frame"></div></a>' );
				$( '#' + post_name + ' #post_gallery #post_gallery_frame' + i ).append( imgList[ i ] );
			}
			
			
			// Set Clip Height
			var _height = $( imgList[0] ).attr( 'height' );
			var _width = $( imgList[0] ).attr( 'width' );
			var setGalleryClipHeight = Math.floor( _height * 300 ) / _width;
			
			
			// 	Set Clip Height IE
			if ( $.browser.msie ) 
			{
			   var img = new Image();
			   img.src = $( imgList[0] ).attr( 'src' );
			   var _height = img.height;
			   var _width = img.width;
			   var setGalleryClipHeight = Math.floor( _height * 300 ) / _width;
			}
			
			
			// Set Gallery
			$( '#' + post_name + ' #post_gallery' ).sliderGallery(
			{
				galleryClip: '#' + post_name + ' #gallery_slider_clip',
				galleryContainer: '#' + post_name + ' #post_gallery',
				galleryContainerWidth: postWidth,
				galleryContainerHeight: setGalleryClipHeight,
				galleryAutoSlide: false,
				galleryAutoSlideInterval: 5000,
				galleryCarousel: true,
				galleryArrowsNavigation: true,
				galleryArrowsNavigationLeftArrow: '#' + post_name + ' #gallery_left_arrow',
				galleryArrowsNavigationLeftArrowOut: 'left_arrow_out',
				galleryArrowsNavigationLeftArrowOver: 'left_arrow_over',
				galleryArrowsNavigationRightArrow: '#' + post_name + ' #gallery_right_arrow',
				galleryArrowsNavigationRightArrowOut: 'right_arrow_out',
				galleryArrowsNavigationRightArrowOver: 'right_arrow_over',
				galleryMenuContainer: '#' + post_name + ' #post_gallery_controls',
				galleryMenuNavigation: true,
				galleryMenuNavigationContainer: '#' + post_name + ' #gallery_bullet_nav',
				slideEaseFunction: 'easeOutQuart'
			});
			
			
			// Display Gallery
			$( "#" + post_name + ' .gallery_slider' ).removeClass( 'display_none' );
			
			//Display de Img
			$( '#' + post_name + ' #post_content img' ).css( 'display', "inline" );
	
		} 
		else
		{
			//TAMANHO A IMG INDIVIDUAL
			postName = post_name;
			$('body').trigger('galleryOneEvent');
			
			
			//Display de Img
			//$( '#' + post_name + ' #post_content img' ).css( 'display', "block" );
		}
		/*@end
	  @*/
	}
}
