// JavaScript Document
$(function(){
	
	
	// 1st Gallery
		gallery1 = [
			'gallery/front_view.jpg',
			'gallery/store_room.jpg',
			'gallery/laser.jpg',
									/*'gallery/off.jpg',
			'gallery/training.jpg',
						'gallery/showroom.jpg'*/
		
		];
		titles1 = [
			'Head Office, Coimbatore',
			'Store_Room',
			'Laser',
			'Office',
			'Training',
			'Show_Room'
			
		];
		descriptions1 = [
			'',
			'',
			'',
			''
		];

	//2nd Gallery
		gallery2 = [
			/*'gallery/che.jpg',
			'gallery/of.jpg',*/
			'gallery/edm.jpg'
			
		];
		titles2 = [
			'Chennai office',
			'Office',
		  'EDM-Machine'
		 		];
		descriptions2 = [
			'',
			'',
			'',
			''
		];	
	
	
	//3rd Gallery
		gallery3 = [
			'gallery/delhi.jpg',
			/*'gallery/offd.jpg',*/
			'gallery/conf.jpg',
						'gallery/show.jpg',
			'gallery/dicus.jpg'
			

		];
		titles3 = [
			'Delhi Office',
			'Office',
			'Conference_Hall',
						'Show_Room',
			'Discusion_Room'
			
		];
		descriptions3 = [
			'',
			'',
			'',
			''
		];	
	
	
	//4th Gallery
		gallery4 = [
			'gallery/pune.jpg',
			/*'gallery/offs.jpg',
			'gallery/app.jpg'*/
			
		];
		titles4 = [
			'Pune Office',
			'Office',
			'Application'
						
		];
		descriptions4 = [
			'',
			'',
			'',
			''
		];
	

	
	$('.gallery ul li:nth-child(1)').click(function(){
		$.prettyPhoto.open(gallery1,titles1,descriptions1);
	});
	$('.gallery ul li:nth-child(2)').click(function(){
		$.prettyPhoto.open(gallery2,titles2,descriptions2);
	});
	$('.gallery ul li:nth-child(3)').click(function(){
		$.prettyPhoto.open(gallery3,titles3,descriptions3);
	});
	$('.gallery ul li:nth-child(4)').click(function(){
		$.prettyPhoto.open(gallery4,titles4,descriptions4);
	});
	
	
	
	
	//other gallery settings.
	$('.gallery ul li').hover(function(){
		$('.gallery ul li').stop(true, true).not($(this)).animate({
			'opacity':0.6
		});
		$('.galovl', this).stop(true, true).fadeIn();
	}, function(){
		$('.gallery ul li').stop(true, true).animate({
			'opacity':1
		});
		$('.galovl', this).stop(true, true).fadeOut();
	});
});	
