$(document).ready(function(){
    // Stock Quote
    $.getJSON('http://' + document.location.host + "/service/quote_jsony.php?symbol=tlag.pk", function(data) {
      $.each(data, function(key, val) {
        if (key.match(/image/)) 
          $('.quote-' + key).html("<img src='" + val + "' />");
        else
          $('.quote-' + key).html(val);
      });
      if (data.change.match(/\+/)) {
          $('.quote-change').css('color', 'green');
      } else {
          $('.quote-change').css('color', 'red');
      }
    });
    // $(".showcase img").reflect({ height: 0.2});
	$(".code").hover(
		function() {
			$("#code_button").attr("src", "http://s3.amazonaws.com/stockpr-test-store/tapginc/files/images/Code.jpg");
			// $("#description").fadeOut(400).replaceWith("<div id='description' style='display:none;'>" + $("#code_description").html() + "</p></div>");
			// 
			// $("#description").fadeIn(400);
		},
		
		function() {
			$("#code_button").attr("src", "http://s3.amazonaws.com/stockpr-test-store/tapginc/files/images/Code_bw.jpg");
			// $("#description").fadeOut(400).replaceWith("<div id='description' style='display:none;'>" + $("#main_description").html() + "</p></div>");
			// $("#description").fadeIn(400);
		}
		
		);
		
		$(".1904").hover(
			function() {
				$("#1904_button").attr("src", "http://s3.amazonaws.com/stockpr-test-store/tapginc/files/images/1904.jpg");
				// $("#description").fadeOut(400).replaceWith("<div id='description'  style='display:none;'>" + $("#1904_description").html() + "</p></div>");
				// $("#description").fadeIn(400);
			},
 
			function() {
				$("#1904_button").attr("src", "http://s3.amazonaws.com/stockpr-test-store/tapginc/files/images/1904_bw.jpg");
				// $("#description").fadeOut(400).replaceWith("<div id='description' style='display:none;'>" + $("#main_description").html() + "</p></div>");
				// $("#description").fadeIn(400);
			}
 
			);
			
			
			$(".editions").hover(
				function() {
					$("#editions_button").attr("src", "http://s3.amazonaws.com/stockpr-test-store/tapginc/files/images/editions.jpg");
					// $("#description").fadeOut(400).replaceWith("<div id='description' style='display:none;'>" + $("#editions_description").html() + "</p></div>");
					// $("#description").fadeIn(400);
				},
 
				function() {
					$("#editions_button").attr("src", "http://s3.amazonaws.com/stockpr-test-store/tapginc/files/images/editions_bw.jpg");
					// $("#description").fadeOut(400).replaceWith("<div id='description' style='display:none;'>" + $("#main_description").html() + "</p></div>");
					// $("#description").fadeIn(400);
				}
 
				);
				
				$(".essentials").hover(
					function() {
						$("#essentials_button").attr("src", "http://s3.amazonaws.com/stockpr-test-store/tapginc/files/images/essentials.jpg");
						// $("#description").fadeOut(400).replaceWith("<div id='description'  style='display:none;'>" + $("#essentials_description").html() + "</p></div>");
						// $("#description").fadeIn(400);
					},
 
					function() {
						$("#essentials_button").attr("src", "http://s3.amazonaws.com/stockpr-test-store/tapginc/files/images/essentials_bw.jpg");
						// $("#description").fadeOut(400).replaceWith("<div id='description' style='display:none;'>" + $("#main_description").html() + "</p></div>");
						// $("#description").fadeIn(400);
					}
 
					);
	
	jQuery('#parallax').jparallax({yparallax : 0, mouseport : $("#fifa")});
	
	// jQuery('#parallax_two').jparallax({yparallax : 0});
	
 
		// $("#tabs").tabs();
 
    $('.anythingSlider').anythingSlider({
        easing: "easeInOutExpo",        // Anything other than "linear" or "swing" requires the easing plugin
        autoPlay: false,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
      // Should links change the hashtag in the URL?
        buildNavigation: false // Details at the top of the file on this use (advanced use)
    });
 
 
 /* This is basic - uses default settings */ 
$("a#single_image").fancybox(); 
/* Using custom settings */ $("a.inline").fancybox({ 'hideOnContentClick': true }); 
$("a.group").fancybox({ 'zoomSpeedIn': 300, 'zoomSpeedOut': 300, 'overlayShow': true }); 
 
});
    
 
//     
// });
