var base=""
links=document.getElementsByTagName("link")
for(var i=0; i<links.length; i++) {
  // I think the first stylesheet points to the TemplateDir
  if (links[i].title == "Standard") {
    base=links[i].href.substr(0, links[i].href.lastIndexOf("/"));
    break;
  }
 }

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:false, moveby:1, pause:5000},
	panelbehavior: {speed:700, wraparound:false, persist:true},
	defaultbuttons: {enable: false, moveby: 1, leftnav: [base+'/../images/prev.jpg', -5, 80], rightnav: [base+'/../images/next.jpg', -20, 80]},
	statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
	contenttype: ['indivne'] //content setting ['indivne'] or ['external', 'path_to_external_file']
});

 
jQuery( document ).ready( function() { 
	jQuery('#mygallery ul').tabs({ fx: { opacity: 'toggle' } });
});