// JavaScript Document





$(document).ready(function(){
			
				
			
			$("#ExpandReviews").click(function (event) {
			  event.preventDefault();
			  //$("#comments2").toggle("blind", {height:200}, 500);
			  $('#pageReviwes').animate({height:'100%'}, 1000);
			  $('#ExpandReviews').hide(); 
			  $('#CloseReviews').show(); 
			    
			});
			
			$("#CloseReviews").click(function (event) {
			  event.preventDefault();
			  $('#pageReviwes').animate({height:400}, 1000);
			  $('#ExpandReviews').show(); 
			  $('#CloseReviews').hide(); 
			    
			});
			
			//someCommentItem
			
			
			
			
			$('.Tipsy').tipsy({fade: true, title: 'name',gravity: 's'});	
			$('.Tipsy1').tipsy({fade: true, title: 'name',gravity: 'e'});	
			$('.Tipsy2').tipsy({fade: true, title: 'name',gravity: 'w'});	
				
			

			$(".FancyPage").fancybox({
				'overlayColor'		: '#000',
				'overlayOpacity'	: 0.7,
				'titleShow'	: false,
				'type'				: 'iframe',
				'height'			: '75%'
			
			});
			
			$(".FancyCountry").fancybox({
				'overlayColor'		: '#000',
				'overlayOpacity'	: 0.7,
				'titleShow'	: false
				
			
			});
			
			
			
			
			$("a#FancyPic").fancybox({
				'overlayColor'		: '#000',
				'overlayOpacity'	: 0.7,
				'titlePosition'	: 'inside'
			});
			
			$(".FancyVideo").fancybox({
				'overlayColor'		: '#000',
				'overlayOpacity'	: 0.7,
				'type'				: 'iframe',
				'height'			: 450,
				'width'			: 670,
				'titlePosition'	: 'inside'
				
			});
			
			
			
			

			
		
				
				
				
				
				
				// Dialog Link
				
				$(".blue-pill").button();

				
				$('.JQpost').click(function() {
				  $('#PostForm').slideToggle(800,"easeOutElastic", function() {
					// Animation complete.
					//boo('some stuff');
				  });
				});
				
				
				
				
				
				
				$(".SomeRow").hover(function() {
						var color = $(this).css("background-color");
						//alert(color);
						$(this).stop().animate({ backgroundColor: "#CBDCEF"}, 300);
						},function() {
						$(this).stop().animate({ backgroundColor: "#ffffff" }, 900);
						// $("#resultCSS").html("That div is <span style='color:" + color + ";'>" + color + "</span>.");
						
				});
				
				
				
				
				//Cufon.now();
				
				
				$('.sponsorFlip').bind("click",function(){
											
											var elem = $(this);
											
											if(elem.data('flipped'))
											{
												elem.revertFlip();
												elem.data('flipped',false)
											}
											else
											{
												elem.flip({
													direction:'lr',
													speed: 350,
													bgColor: '#33659A',
													toColor: '#33659A',
													color: '#33659A',
													//dontChangeColor: true,
													onBefore: function(){
														// Insert the contents of the .sponsorData div (hidden from view with display:none)
														// into the clicked .sponsorFlip div before the flipping animation starts:
														
														elem.html(elem.siblings('.sponsorData').html());
													}
												});
												
												// Setting the flag:
												elem.data('flipped',true);
											}
										});
				
					
							
					
			
			
				
			});


