
      	$(document).ready(function(){
      		$('#dv-csg-callout').bind('mouseover',function(){
				$(this).css("cursor",'pointer');
			});
			$('#dv-csg-callout').bind('mouseout',function(){
				$(this).css("cursor",'default');
			});	
      	});

var hilites = new Array(1,1,0,1,0,1,1,1,1);


stepcarousel.setup({
galleryid: 'mygallery', //id of carousel DIV
beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
panelclass: 'panel', //class of panel DIVs each holding content
autostep: {enable:true, moveby:1, pause:5000},
panelbehavior: {speed:300, wraparound:true, persist:true},
defaultbuttons: {enable: true, moveby: 1, leftnav: ['../../../assets/images/pages/homepage/prev.png', 415, 175], rightnav: ['../../../assets/images/pages/homepage/next.png', -45, 175]},
statusvars: ['statusA', 'statusB', 'statusC'], // Register 3 "status" variables
contenttype: ['inline'], // content type <--No comma following the very last parameter, always!
onslide:function(){
 //custom code here

var lcdid = '#lcdlblim';
var mpid = '#mplblim';
var lcdsrc = $('#lcdlblim').attr('src');
var mpsrc = $('#mplblim').attr('src');

var pic = '#pic'+statusA;
var num = hilites[statusA];

var hlbtn = (num == 0) ? lcdsrc : mpsrc;
var hlid = (num == 0) ? lcdid : mpid;
var stanbtn = (num == 1) ? lcdsrc : mpsrc;
var stanid = (num == 1) ? lcdid : mpid;

		
var samplehl =  hlbtn.substr((hlbtn.length-7),hlbtn.length);
//alert(samplehl);
if(samplehl == '-hl.png'){
//do nothing it's already hilited
}else{
	var subactive2 = hlbtn.substr(0,(hlbtn.length-4));
	//alert('subactive2 is '+subactive2);
	var sr2 = subactive2+'-hl.png';
//	$(hlid).attr('src',sr2);
	//console.log('mplblim is changing to '+sr2);

}

var samplestan =  stanbtn.substr((stanbtn.length-7),stanbtn.length);

if(samplestan == '-hl.png'){
//is hilited so unhilite
	var subactive1 = stanbtn.substr(0,(stanbtn.length-7));
	var sr1 = subactive1+'.png';
	//$(stanid).attr('src',sr1);
}else{
//do nothing already in standar state
//console.log('mplblim is changing to '+sr2);

}


}
})
