
/*

Svn id ramkumar_071at09

*/


/* features content action */
$(document).ready(function() {
	if (jQuery("#vFeatures"))
	{
		jQuery("#vFeatures").jCarouselLite({
			btnPrev: "#preFeatures",
			btnNext: "#nxtFeatures",
			visible: 1,
			scroll: 1,
			auto: 0,
			speed: 500,					
			/*this makes it a true carousel rather than a slideshow*/
			circular: false
		});
	}
});
/* /features content action */

/* integrate content action */
$(document).ready(function() {
	if (jQuery("#vIntegrate"))
	{
		jQuery("#vIntegrate").jCarouselLite({
			btnPrev: "#preIntegrate",
			btnNext: "#nxtIntegrate",
			visible: 5,
			scroll: 1,
			auto: 0,
			speed: 500,					
			/*this makes it a true carousel rather than a slideshow*/
			circular: true
		});
	}
});
/* /integrate content action */
		
/* Clients Content */

	jQuery(document).ready(function(){

		if (jQuery("#who_clients"))
		{									
			pos =  0 +'px';
			jQuery("#preClients").removeClass("disabled");
			jQuery("#preClients").addClass("disabled");
			jQuery("#who_clients .slider_panes").animate({ left: pos}, 0 );
				
			jQuery('#who_clients a.right_btn').click(function(e){
				var pos = jQuery('#who_clients .slider_panes').css('left');
				count = jQuery(".slider_panes > div").length;
				curpos = (count-1) * -420;
				outerpos = parseInt(pos)%420;
				pos = parseInt(pos) - outerpos +'px';
				if (curpos < parseInt(pos))
				{
					pos = parseInt(pos) - 420 +'px';
					jQuery("#preClients").removeClass("disabled");
					if (curpos == parseInt(pos))
						jQuery("#nxtClients").addClass("disabled");
				}
				else if (curpos > parseInt(pos))
				{
					pos = curpos + 'px';
					jQuery("#preClients").removeClass("disabled");
					jQuery("#nxtClients").addClass("disabled");
				}
					
				jQuery("#who_clients .slider_panes").animate({ left: pos}, 0 );
				return false;
			});

			jQuery('#who_clients a.left_btn').click(function(e){
				var pos = jQuery('#who_clients .slider_panes').css('left');
				outerpos = parseInt(pos)%420;
				pos = parseInt(pos) - outerpos +'px';
				if (parseInt(pos) < 0)
				{
					pos = parseInt(pos) + 420 +'px';
					jQuery("#nxtClients").removeClass("disabled");
					if (parseInt(pos) == 0)
						jQuery("#preClients").addClass("disabled");
					else
						jQuery("#preClients").removeClass("disabled");
				}
				else{
					pos = '0px';
					jQuery("#nxtClients").removeClass("disabled");				
					jQuery("#preClients").addClass("disabled");
				}
	
				jQuery("#who_clients .slider_panes").animate({ left: pos}, 0 );
				return false;
			});
		}
  	});

/* /Clients Content */


/* News Content */

//<![CDATA[
    jQuery(window).load(function() {
		// Slideshow timer
		if (jQuery('#Timer').html() != null) {
			new SlideshowTimer(jQuery('#Timer'), 5);
		}
    });

//]]>

/* /News Content */


/**
 *
 * @Testimonial page functionality
 * @return void
 **/

function showPopup(prod_id)
{
	//document.getElementsByClassName('clsProductBoxDetailsShow').invoke('hide');
	//$(prod_id).className = 'clsProductBoxDetailsShow';

	TagToTip(prod_id,DELAY, 1)

}

function hidePopup(prod_id)
{
	//$(prod_id).className = 'clsProductBoxDetailsHide';
	UnTip();
}

/**
 *
 * @access public
 * @return void
 **/

function showContent(divid)
{
	document.getElementsByClassName('showhide').invoke('hide');
	if (jQuery(divid)) {
		jQuery(divid).show();
	}


}