/* Created by Vishal */
/* Ver: 1.0.0.01 */
$(document).ready( function($) {
	 
	 $('.in-trip-advisor, .in-facebook, .in-twitter, .click-here, .click-here1, .trip-advisor, .facebook-icon, .twitter-icon, .cal, .more-details, .remove-item, .blog a, .print-invoice-btn, .print-invoice-btn-blue, .blog-btn, .shopping-btn, .prev-btn, .next-btn, .go-button, .next, .prev, .update-btn, .view-details, .back-button, .apply-now, .view-bio, .more-info, .view-details-green, .blog-btn1, .shopping-btn1, .shopping-cart-btn, .compare-btn, .product-add-to-cart, .product-more-info, .pro-add-to-cart, .share-to-friend, .video-btn, .cancel-your-order, .delete-button, .edit-button, .view-btn, .email-this, .print-this, .delete-btn, .view-order-detail-btn, .cancel-your-order-btn1, .back-button1, .edit-button1, .delete-button1, .place-your-order, .download-bro, .previous-button .prev-button, .youtube-icon').append('<span class="hover"></span>').each(function () {
		var $span = $('> span.hover', this).css('opacity', 0);
		$(this).hover(function () {
		$span.stop().fadeTo(500, 1);
			}, function () {
		$span.stop().fadeTo(500, 0);
			});
		});
		
		
		
		
		$('.mid-right a').each(function () {
		var $span = $('> span.hover', this).css('opacity', 0);
		$(this).hover(function () {
		$span.stop().fadeTo(500, 1);
			}, function () {
		$span.stop().fadeTo(500, 0);
			});
		}); 
		
	 $('input.add-to-cart-hover').wrap('<div class="add-to-cart"></div>');
 		 $('input.add-to-cart-hover').hover(function() {
   			 $(this).stop().animate({ // Fade the button out when hovered
    			  'opacity': 0.01
   					 }, 500)
 			 }, function() {
   				 $(this).stop().animate({ // Fade it back in on mouseout
      				'opacity': 1
   			 }, 500)
     });
	 
	 	 $('input.use-this-credit-hover').wrap('<div class="use-this-credit"></div>');
 		 $('input.use-this-credit-hover').hover(function() {
   			 $(this).stop().animate({ // Fade the button out when hovered
    			  'opacity': 0.01
   					 }, 500)
 			 }, function() {
   				 $(this).stop().animate({ // Fade it back in on mouseout
      				'opacity': 1
   			 }, 500)
     });
	 
	 $('input.use-this-credit-hover1').wrap('<div class="use-this-credit1"></div>');
 		 $('input.use-this-credit-hover1').hover(function() {
   			 $(this).stop().animate({ // Fade the button out when hovered
    			  'opacity': 0.01
   					 }, 500)
 			 }, function() {
   				 $(this).stop().animate({ // Fade it back in on mouseout
      				'opacity': 1
   			 }, 500)
     });
	 
	 $(".more-news").each(function() { //For each list item...
		var linkText = $(this).find("a").html(); //Find the text inside of the a tag
		$(this).find("span").show().html(linkText); //Add the text in the span tag
	}); 
	
	$(".more-news").hover(function() {	//On hover...
		$(this).find("span").stop().animate({ 
			marginTop: "-18" //Find the span tag and move it up 40 pixels
		}, 250);
	} , function() { //On hover out...
		$(this).find("span").stop().animate({
			marginTop: "0" //Move the span back to its original state (0px)
		}, 250);
	});
	 
	 $(".effect").mouseover(function(){
		$(this).css("-moz-box-shadow","0 0 5px #51CBEE");
	 });
	$(".effect").mouseleave(function(){
		 $(this).css("-moz-box-shadow","0 0 5px #fff");
	 });
	 
	 $(".blueeffect").mouseover(function(){
		$(this).css("-moz-box-shadow","0 0 5px #0d61a6");
	 });
	$(".blueeffect").mouseleave(function(){
		 $(this).css("-moz-box-shadow","0 0 5px #A9E9EE");
	 });
	 
	 $(".blueeffect1").mouseover(function(){
		$(this).css("-moz-box-shadow","0 0 5px #0d61a6");
	 });
	$(".blueeffect1").mouseleave(function(){
		 $(this).css("-moz-box-shadow","0 0 5px #A8DDFB");
	 });
	 
	 $('input.book-now-hover').wrap('<div class="book-now"></div>');
 	 $('input.book-now-hover').hover(function() {
   			 $(this).stop().animate({ // Fade the button out when hovered
    			  'opacity': 0.01
   					 }, 500)
 			 }, function() {
   				 $(this).stop().animate({ // Fade it back in on mouseout
      				'opacity': 1
   			 }, 500)
     });
	 
	  $(".shop-tab-bg ul li").mouseover(function(){
		$(this).css("-moz-box-shadow","0 0 5px #0d61a6");
	 });
	$(".shop-tab-bg ul li").mouseleave(function(){
		 $(this).css("-moz-box-shadow","0 0 5px #f3f9fd");
	 });
	 
	 $(".tab-bg ul li").mouseover(function(){
		$(this).css("-moz-box-shadow","0 0 5px #0d61a6");
	 });
	$(".tab-bg ul li").mouseleave(function(){
		 $(this).css("-moz-box-shadow","0 0 5px #f3f9fd");
	 });
	 $(".cross-img-hover").css("opacity",0);
	 
	 for(var i=0; i<4 ; i++)
	 {
		 
	 $(".no"+i).hover(function() {
   			 $(".cross-img-hover").stop().animate({ // Fade the button out when hovered
    			  'opacity': 0.4
   					 }, 500)
 			 }, function() {
   				 $(".cross-img-hover").stop().animate({ // Fade it back in on mouseout
      				'opacity': 0
   			 }, 500)
     });
	 }
	 
	$('input.login-button-hover').wrap('<div class="login-button"></div>');
 	 $('input.login-button-hover').hover(function() {
   			 $(this).stop().animate({ // Fade the button out when hovered
    			  'opacity': 0.01
   					 }, 500)
 			 }, function() {
   				 $(this).stop().animate({ // Fade it back in on mouseout
      				'opacity': 1
   			 }, 500)
     });
	 
	 $('input.in-newsletter-submit-hover').wrap('<div class="in-newsletter-submit"></div>');
 	 $('input.in-newsletter-submit-hover').hover(function() {
   			 $(this).stop().animate({ // Fade the button out when hovered
    			  'opacity': 0.01
   					 }, 500)
 			 }, function() {
   				 $(this).stop().animate({ // Fade it back in on mouseout
      				'opacity': 1
   			 }, 500)
     });
	  
	  $('input.reset-button-hover').wrap('<div class="reset-button"></div>');
 	 $('input.reset-button-hover').hover(function() {
   			 $(this).stop().animate({ // Fade the button out when hovered
    			  'opacity': 0.01
   					 }, 500)
 			 }, function() {
   				 $(this).stop().animate({ // Fade it back in on mouseout
      				'opacity': 1
   			 }, 500)
     		}); 
			
        $('input.reset-blue-button-hover').wrap('<div class="reset-blue-button"></div>');
 	$('input.reset-blue-button-hover').hover(function() {
   			 $(this).stop().animate({ // Fade the button out when hovered
    			  'opacity': 0.01
   					 }, 500)
 			 }, function() {
   				 $(this).stop().animate({ // Fade it back in on mouseout
      				'opacity': 1
   			 }, 500)
     		});
			
			  $('input.print-invoice-white-btn-hover').wrap('<div class="print-invoice-white-btn"></div>');
 	 $('input.print-invoice-white-btn-hover').hover(function() {
   			 $(this).stop().animate({ // Fade the button out when hovered
    			  'opacity': 0.01
   					 }, 500)
 			 }, function() {
   				 $(this).stop().animate({ // Fade it back in on mouseout
      				'opacity': 1
   			 }, 500)
     		}); 
			
			  $('input.shopping-continue-btn-hover').wrap('<div class="shopping-continue-btn"></div>');
 	 $('input.shopping-continue-btn-hover').hover(function() {
   			 $(this).stop().animate({ // Fade the button out when hovered
    			  'opacity': 0.01
   					 }, 500)
 			 }, function() {
   				 $(this).stop().animate({ // Fade it back in on mouseout
      				'opacity': 1
   			 }, 500)
     		}); 
	
	 $('input.submit-btn-hover').wrap('<div class="submit-btn"></div>');
 		 $('input.submit-btn-hover').hover(function() {
   			 $(this).stop().animate({ // Fade the button out when hovered
    			  'opacity': 0.01
   					 }, 500)
 			 }, function() {
   				 $(this).stop().animate({ // Fade it back in on mouseout
      				'opacity': 1
   			 }, 500)
     });
	 
	  $('input.submit-btn-left-hover').wrap('<div class="submit-btn-left"></div>');
 		 $('input.submit-btn-left-hover').hover(function() {
   			 $(this).stop().animate({ // Fade the button out when hovered
    			  'opacity': 0.01
   					 }, 500)
 			 }, function() {
   				 $(this).stop().animate({ // Fade it back in on mouseout
      				'opacity': 1
   			 }, 500)
     });
	 
	 $('input.go-btn-hover').wrap('<div class="go-btn"></div>');
 	 $('input.go-btn-hover').hover(function() {
   			 $(this).stop().animate({ // Fade the button out when hovered
    			  'opacity': 0.01
   					 }, 500)
 			 }, function() {
   				 $(this).stop().animate({ // Fade it back in on mouseout
      				'opacity': 1
   			 }, 500)
	 }); 
 
	 $('input.in-news-submit-hover').wrap('<div class="in-news-submit"></div>');
 	 $('input.in-news-submit-hover').hover(function() {
   			 $(this).stop().animate({ // Fade the button out when hovered
    			  'opacity': 0.01
   					 }, 500)
 			 }, function() {
   				 $(this).stop().animate({ // Fade it back in on mouseout
      				'opacity': 1
   			 }, 500)
	 }); 
	 
	 	 $('input.use-this-hover').wrap('<div class="use-this"></div>');
 	 $('input.use-this-hover').hover(function() {
   			 $(this).stop().animate({ // Fade the button out when hovered
    			  'opacity': 0.01
   					 }, 500)
 			 }, function() {
   				 $(this).stop().animate({ // Fade it back in on mouseout
      				'opacity': 1
   			 }, 500)
	 }); 
	 
	 	  $('input.cancel-blue-button-hover').wrap('<div class="cancel-blue-button"></div>');
 		 $('input.cancel-blue-button-hover').hover(function() {
   			 $(this).stop().animate({ // Fade the button out when hovered
    			  'opacity': 0.01
   					 }, 500)
 			 }, function() {
   				 $(this).stop().animate({ // Fade it back in on mouseout
      				'opacity': 1
   			 }, 500)
     });
	 
	 	 	  $('input.cancel-button-hover').wrap('<div class="cancel-button"></div>');
 		 $('input.cancel-button-hover').hover(function() {
   			 $(this).stop().animate({ // Fade the button out when hovered
    			  'opacity': 0.01
   					 }, 500)
 			 }, function() {
   				 $(this).stop().animate({ // Fade it back in on mouseout
      				'opacity': 1
   			 }, 500)
     });
	 
	 	 $('input.use-this-add-hover').wrap('<div class="use-this-add"></div>');
 	 $('input.use-this-add-hover').hover(function() {
   			 $(this).stop().animate({ // Fade the button out when hovered
    			  'opacity': 0.01
   					 }, 500)
 			 }, function() {
   				 $(this).stop().animate({ // Fade it back in on mouseout
      				'opacity': 1
   			 }, 500)
	 }); 
	 
	  $('input.use-this-add-hover1').wrap('<div class="use-this-add1"></div>');
 	 $('input.use-this-add-hover1').hover(function() {
   			 $(this).stop().animate({ // Fade the button out when hovered
    			  'opacity': 0.01
   					 }, 500)
 			 }, function() {
   				 $(this).stop().animate({ // Fade it back in on mouseout
      				'opacity': 1
   			 }, 500)
	 }); 
	 
	 	 	 $('input.save-and-continue-button-hover').wrap('<div class="save-and-continue-button"></div>');
 	 $('input.save-and-continue-button-hover').hover(function() {
   			 $(this).stop().animate({ // Fade the button out when hovered
    			  'opacity': 0.01
   					 }, 500)
 			 }, function() {
   				 $(this).stop().animate({ // Fade it back in on mouseout
      				'opacity': 1
   			 }, 500)
	 });  
	 
	 
	$(".dark-blue a").mouseover(function() {
   		$(this).animate({ backgroundColor: "#0B5FA5" }, 500);
	});
	
	$(".dark-blue a").mouseleave(function() {
    	$(this).animate({ backgroundColor: "#f3f9fd" }, 500);
		
	});
	
	
	$(".dark-green a").mouseover(function() {
   		$(this).animate({ backgroundColor: "#8eb33e" }, 500);
	});
	
	$(".dark-green a").mouseleave(function() {
    	$(this).animate({ backgroundColor: "#f3f9fd" }, 500);
	});
	
	$(".dark-green1 a").mouseover(function() {
   		$(this).animate({ backgroundColor: "#28773b" }, 500);
	});
	
	$(".dark-green1 a").mouseleave(function() {
    	$(this).animate({ backgroundColor: "#f3f9fd" }, 500);
	});
	
	$(".sky-blue a").mouseover(function() {
   		$(this).animate({ backgroundColor: "#3ec0c6" }, 500);
	});
	
	$(".sky-blue a").mouseleave(function() {
    	$(this).animate({ backgroundColor: "#f3f9fd" }, 500);
	});
	
	$(".photo-hover").hover(function() {	//On hover...
		$(".h-photo-detail").stop().animate({ 
			left: "0",
			top:"0"
		}, 500);
	} , function() { //On hover out...
		$(".h-photo-detail").stop().animate({
			left: "-138px",
			top:"-92px"
		}, 500);
	});
    $("#slider1-box").hide();
	$("#slider2-box").hide();
	$("#slide1").click(function(){
		$("#slider1-box").slideToggle("slow");
	});
	$("#slide2").click(function(){
		$("#slider2-box").slideToggle("slow");
	});	 
	
	 $('input.email-this-hover').wrap('<div class="email-this"></div>');
 		 $('input.email-this-hover').hover(function() {
   			 $(this).stop().animate({ // Fade the button out when hovered
    			  'opacity': 0.01
   					 }, 500)
 			 }, function() {
   				 $(this).stop().animate({ // Fade it back in on mouseout
      				'opacity': 1
   			 }, 500)
     });
	 
	 $('input.print-this-hover').wrap('<div class="print-this"></div>');
 		 $('input.print-this-hover').hover(function() {
   			 $(this).stop().animate({ // Fade the button out when hovered
    			  'opacity': 0.01
   					 }, 500)
 			 }, function() {
   				 $(this).stop().animate({ // Fade it back in on mouseout
      				'opacity': 1
   			 }, 500)
     });
	 	 $('input.submit-arial-btn-hover').wrap('<div class="submit-arial-btn"></div>');
 		 $('submit-arial-btn-hover').hover(function() {
   			 $(this).stop().animate({ // Fade the button out when hovered
    			  'opacity': 0.01
   					 }, 500)
 			 }, function() {
   				 $(this).stop().animate({ // Fade it back in on mouseout
      				'opacity': 1
   			 }, 500)
     });
	 
	 
	 	 $('input.compare-btn-hover').wrap('<div class="compare-btn"></div>');
 		 $('input.compare-btn-hover').hover(function() {
   			 $(this).stop().animate({ // Fade the button out when hovered
    			  'opacity': 0.01
   					 }, 500)
 			 }, function() {
   				 $(this).stop().animate({ // Fade it back in on mouseout
      				'opacity': 1
   			 }, 500)
     });
	 
	  	 $('input.cancel-button-big-hover').wrap('<div class="cancel-button-big"></div>');
 		 $('input.cancel-button-big-hover').hover(function() {
   			 $(this).stop().animate({ // Fade the button out when hovered
    			  'opacity': 0.01
   					 }, 500)
 			 }, function() {
   				 $(this).stop().animate({ // Fade it back in on mouseout
      				'opacity': 1
   			 }, 500)
     });
	 
	 $('input.continue-shopping-hover').wrap('<div class="continue-shopping"></div>');
 		 $('input.continue-shopping-hover').hover(function() {
   			 $(this).stop().animate({ // Fade the button out when hovered
    			  'opacity': 0.01
   					 }, 500)
 			 }, function() {
   				 $(this).stop().animate({ // Fade it back in on mouseout
      				'opacity': 1
   			 }, 500)
     });
	 $('input.checkout-btn-hover').wrap('<div class="checkout-btn"></div>');
 		 $('input.checkout-btn-hover').hover(function() {
   			 $(this).stop().animate({ // Fade the button out when hovered
    			  'opacity': 0.01
   					 }, 500)
 			 }, function() {
   				 $(this).stop().animate({ // Fade it back in on mouseout
      				'opacity': 1
   			 }, 500)
     });
});



/* Windows popup */

function positionedPopup(url,winName,w,h,t,l,scroll)
{
	
	settings ='height='+h+',width='+w+',top='+t+',left='+l+',scrollbars='+scroll+',resizable'
	popupWindow = window.open(url,winName,settings)
}

/* Windows popup */
