

// Globals
// Major version of Flash required
var requiredMajorVersion = 9;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Minor version of Flash required
var requiredRevision = 0;

$(document).ready(function(){
	Shadowbox.init({showOverlay: 'false'});
	$(".slider").easySlider({
		auto: true,
		continuous: true,
		prevText: '&nbsp',
		nextText: '&nbsp'
	});

       /*  $("#ask_question").click(function () {
           $("#enquiry").show();
        });*/

     /*    $("#close").click(function () {
           $("#enquiry").hide();
         }); */
});



	$(function() {
		$('.tab_content').hide();
		$('.opt1').css("background-position","0 -46px");
		$("#tab-1").show();
		$('#home_tab p').click(function(){
	$('.tab_content').hide();
	$('.opt1').css("background-position","0 0");
	$('.opt2').css("background-position","-98px 0");
	$('.opt3').css("background-position","-306px 0");
	$('.opt4').css("background-position","-477px 0");
});
		$(".opt1").click(function(){
								  $("#tab-1").show();
			$('.opt1').css("background-position","0 -46px");
		});
                $("#tab2_previous").click(function(){
                    $('.tab_content').hide();
	$('.opt1').css("background-position","0 0");
	$('.opt2').css("background-position","-98px 0");
	$('.opt3').css("background-position","-306px 0");
	$('.opt4').css("background-position","-477px 0");
								  $("#tab-1").show();
			$('.opt1').css("background-position","0 -46px");
                        $( 'html, body' ).animate( { scrollTop: 0 }, 'slow' );
		});

		$(".opt2").click(function(){
								  $("#tab-2").show();
			$('.opt2').css("background-position","-98px -46px");
		});

                $("#tab3_previous").click(function(){
                    $('.tab_content').hide();
	$('.opt1').css("background-position","0 0");
	$('.opt2').css("background-position","-98px 0");
	$('.opt3').css("background-position","-306px 0");
	$('.opt4').css("background-position","-477px 0");
								  $("#tab-2").show();
			$('.opt2').css("background-position","-98px -46px");
                        $( 'html, body' ).animate( { scrollTop: 0 }, 'slow' );
		});

                $("#tab1_next").click(function(){
                    $('.tab_content').hide();
	$('.opt1').css("background-position","0 0");
	$('.opt2').css("background-position","-98px 0");
	$('.opt3').css("background-position","-306px 0");
	$('.opt4').css("background-position","-477px 0");
								  $("#tab-2").show();
			$('.opt2').css("background-position","-98px -46px");
                        $( 'html, body' ).animate( { scrollTop: 0 }, 'slow' );
		});
		$(".opt3").click(function(){
								  $("#tab-3").show();
			$('.opt3').css("background-position","-306px -46px");
		});
                $("#tab2_next").click(function(){
                    $('.tab_content').hide();
	$('.opt1').css("background-position","0 0");
	$('.opt2').css("background-position","-98px 0");
	$('.opt3').css("background-position","-306px 0");
	$('.opt4').css("background-position","-477px 0");
								  $("#tab-3").show();
			$('.opt3').css("background-position","-306px -46px");
                        $( 'html, body' ).animate( { scrollTop: 0 }, 'slow' );
		});
                $("#tab4_previous").click(function(){
                    $('.tab_content').hide();
	$('.opt1').css("background-position","0 0");
	$('.opt2').css("background-position","-98px 0");
	$('.opt3').css("background-position","-306px 0");
	$('.opt4').css("background-position","-477px 0");
								  $("#tab-3").show();
			$('.opt3').css("background-position","-306px -46px");
                        $( 'html, body' ).animate( { scrollTop: 0 }, 'slow' );
		});
		$(".opt4").click(function(){
								  $("#tab-4").show();
			$('.opt4').css("background-position","-477px -46px");
		});
                $("#tab3_next").click(function(){
                    $('.tab_content').hide();
	$('.opt1').css("background-position","0 0");
	$('.opt2').css("background-position","-98px 0");
	$('.opt3').css("background-position","-306px 0");
	$('.opt4').css("background-position","-477px 0");
								  $("#tab-4").show();
			$('.opt4').css("background-position","-477px -46px");
                        $( 'html, body' ).animate( { scrollTop: 0 }, 'slow' );
		});


                $(".tab_next").hover(
		function () {
			$(this).attr("src", $(this).attr("src").replace(base_url+"images/frontend/next-1.gif", base_url+"images/frontend/next-2.gif"));
		},
		function () {
			$(this).attr("src", $(this).attr("src").replace(base_url+"images/frontend/next-2.gif",base_url+"images/frontend/next-1.gif"));
		}
             );


                $(".tab_previous").hover(
		function () {
			$(this).attr("src", $(this).attr("src").replace(base_url+"images/frontend/previous-1.gif", base_url+"images/frontend/previous-2.gif"));
		},
		function () {
			$(this).attr("src", $(this).attr("src").replace(base_url+"images/frontend/previous-2.gif",base_url+"images/frontend/previous-1.gif"));
		}
             );

});

