/* Existing Customers */
var t;
var selectflag=1;

function bannermaininner_tools(cnt)
{
	//alert(cnt);
		stepcarousel.setup({
		galleryid: 'menugallery'+ cnt, //id of carousel DIV
		beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
		panelclass: 'premiumpanel', //class of panel DIVs each holding content
		//autostep: {enable:true, moveby:1, pause:3000},
		panelbehavior: {speed:500, wraparound:false, persist:false},
		defaultbuttons: {enable: false, moveby: 1, leftnav: ['arrowl.gif', -10, 100], rightnav: ['arrowr.gif', -10, 100]},
		statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
		contenttype: ['inline'] //content setting ['inline'] or ['external', 'path_to_external_file']
		});
		
}
/********************************************** top menu slide *****************************************************/
var topmenuclickcnt=1;
function topmenusliderl(no,cnt)
{
	//alert('ll');
	//checkb=cnt-1;
	if(topmenuclickcnt <=1)
	{
		//alert('lessthan 1 menuclickcnt=' + menuclickcnt + ' mygallery=' + no + ' countpanel=' + cnt);
	}
	else 
	{
		stepcarousel.stepBy('menugallery'+no, -1);
		topmenuclickcnt--;
		if(topmenuclickcnt<=1)
		{
			document.getElementById('toparrl'+no).className = 'opcity20';
			document.getElementById('toparrr'+no).className = 'opcity100';
		}
		else 
		{
			document.getElementById('toparrl'+no).className = 'opcity100';
			document.getElementById('toparrr'+no).className = 'opcity100';
		}
	
		
	}
	//alert('l menuclickcnt=' + menuclickcnt + ' mygallery=' + no + ' countpanel=' +cnt);
	
		
}
function topmenusliderr(no,cnt)
{
	//alert(topmenuclickcnt);
	checkb=cnt-1;
	if(topmenuclickcnt >=cnt)
	{
		//alert('greatwer than count menuclickcnt=' + menuclickcnt + ' mygallery=' + no + ' countpanel=' + cnt);
	}
	else 
	{
		stepcarousel.stepBy('menugallery'+no, 1);
		topmenuclickcnt++;
		//alert(menuclickcnt)
		if(topmenuclickcnt>checkb)
		{//alert(document.getElementById('arrr'+no))
			document.getElementById('toparrr'+no).className = 'opcity20';
			document.getElementById('toparrl'+no).className = 'opcity100';
			//alert(menuclickcnt)
		}
		else 
		{
			document.getElementById('toparrl'+no).className = 'opcity100';
			document.getElementById('toparrr'+no).className = 'opcity100';
		}
	
		
	}
	//alert('r menuclickcnt=' + menuclickcnt +'mygallery=' + no +'count=' + cnt);
	//alert( );
	
		
}
function tabcustomer_tools(no) // Tab toggles for inside menu
{
	for(i=1;i<=2;i++)
	{
		document.getElementById('cutomer_content' + i).style.display='none';
		document.getElementById('tabcustomer' + i).style.color = "#707070";
		document.getElementById('tabcustomertd' + i).className='';
		document.getElementById('tabcustomertdr' + i).className='rightCurve';
		
	}
	//alert(no);
	document.getElementById('cutomer_content' + no).style.display='block';
	document.getElementById('tabcustomer' + no).style.color = "#004684";
	document.getElementById('tabcustomertd' + no).className='sel';
	document.getElementById('tabcustomertdr' + no).className='rightCurve_s';
}



/*--------Programming code ends here----------------------------*/
