
// editted by yogesh.sharma
var mycarousel_itemList = 
[
							{url: "../images/INTNL/Scroll_Box_Banner1.gif", title: "Route Map", link: "skylights.cgi?module=C3&page=ROUTEMAP"},
							{url: "../images/INTNL/Scroll_Box_Banner2.gif", title: "Schedule",link: "skylights.cgi?module=C3&page=DESTINATIONS"},
							{url: "../images/INTNL/Scroll_Box_Banner3.gif", title: "Information",link: "skylights.cgi?module=C3&page=INFORMATION"},
							{url: "../images/INTNL/Scroll_Box_Banner4.gif", title: "Testimonials",link: "skylights.cgi?module=C3&page=TESTMONIAL"},
							{url: "../images/INTNL/Scroll_Box_Banner2.gif", title: "Press Releases",link: "skylights.cgi?module=C3&page=PRESS"},
							{url: "../images/INTNL/Scroll_Box_Banner1.gif", title: "Employment",link: "skylights.cgi?module=C3&page=WORKHERE"},
							{url: "../images/INTNL/Scroll_Box_Banner4.gif", title: "About IndiGo",link: "skylights.cgi?module=C3&page=ABOUTINDIGO"},
							{url: "../images/INTNL/Scroll_Box_Banner3.gif", title: "How to Book",link: "skylights.cgi?module=C3&page=HOWTOBOOK"},
							{url: "../images/INTNL/Scroll_Box_Banner4.gif", title: "Visa Info",link: "skylights.cgi?module=C3&page=LANDPAGE3"},
							{url: "../images/INTNL/Scroll_Box_Banner3.gif", title: "Mobile",link: "skylights.cgi?module=C3&page=LANDPAGE4"}
];


function mycarousel_itemLoadCallback(carousel, state)
{

    for (var i = 1; i <=mycarousel_itemList.length; i++) {
        if (carousel.has(i)) {
            continue;
        }

        if (i > mycarousel_itemList.length) {
            break;
        }

        carousel.add(i, mycarousel_getItemHTML(mycarousel_itemList[i-1]));
    }
  carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};

/**
 * Item html creation helper.
 */
function mycarousel_getItemHTML(item)
{
    return '<a href="'+ item.link +'"><div style=" cursor:pointer; background-image:url('+ item.url +'); width:156px; height:57px;"><div  style="font-size:18px; font-weight:normal; font-family:BahamasPlain,arial,Arial,Helvetica;padding-top:10px;padding-right:15px;text-align:center;font-color:#ffffff;"><font color=#ffffff>'+ item.title +'</font></div></div></a>';
};

jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
		auto: 0,
        wrap: 'circular',
		scroll:4,

        size: mycarousel_itemList.length,
        itemLoadCallback: {onBeforeAnimation: mycarousel_itemLoadCallback}
    });
});




/* edited by rohit*/

        
        function HideDiv() {
            document.getElementById('SecondImage').style.display = 'none';
            document.getElementById('ThirdImage').style.display = 'none';
            document.getElementById('FourthImage').style.display = 'none';
            document.getElementById('FifthImage').style.display = 'none';
        }
        
        function stopclock() {
            if (timerRunning)
                clearTimeout(timerID);
            timerRunning = false;
        }
        function startclock() 
        {
       

            stopclock();
            showtime();
          
        }
		 	var timerID = null;
        var timerRunning = false;
        theDate = new Date();
        months = new Array();
        function stopclock() {
            if (timerRunning)
                clearTimeout(timerID);
            timerRunning = false;
        }

       
        function showtime()
         {
            
			$(document).ready(
				function() {
                                       
				    $('#pic1').innerfade(
				     			    
				    {
				    				
				        speed: 3000,
				        timeout: 6000,
				        type: 'sequence',
				        containerheight: '285px',	
						containerwidth: '695px',
												containeralign:'left',
						animationSpeed: 6000,
						animationtype: 'fade',
						bgFrame: 'none',
						controlBox: 'none',
						displayTitle: 'IndiGo'
				    });

				

				});
			
                timer();
            
        }
        function timer() 
		{
			var now = new Date();
            var hours = now.getHours();
            var minutes = now.getMinutes();
            var seconds = now.getSeconds()

            var timeValue = "" + ((hours > 12) ? hours - 12 : hours)
            if (timeValue == "0")
                timeValue = 12;
            timeValue += ((minutes < 10) ? ":0" : ":") + minutes
            timeValue += ((seconds < 10) ? ":0" : ":") + seconds
            timeValue += (hours >= 12) ? "<font size='4px' face='BahamasPlain ,arial,Arial,Helvetica'>p.m.</font>" : " <font size='4px' face=' BahamasPlain,arial,Arial,Helvetica' >a.m.</font>"
            
            
            document.getElementById('Clock_Curreent').innerHTML = timeValue;
           
			   document.getElementById('Clock_Curreent').style.fontSize ="50px";
          
            timerID = setTimeout("timer()", 1000);

			
			
            
        }
		
		
