//Prevent conflicts with other  js frameworks
var $jq = jQuery.noConflict();

// [Our albums]
stepcarousel.setup({
galleryid: 'galalbums1', //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
panelbehavior: {speed:300, wraparound:false, persist:true},
defaultbuttons: {enable: false, moveby: 1, leftnav: ['home.gif', 0, 0], rightnav: ['mail.gif', 0, 0]},
statusvars: ['gal1A', 'gal1B', 'gal1C'], // Register 3 "status" variables
contenttype: ['inline'] // content type
})

// [Our albums] Input field for fast jump to page (allwo only digit input)
$jq(document).ready(function(){
   $jq('input#g1').keyup(function(e) {
      if(e.which==13) return false;
		  c = $jq(this).val().replace( /[A-Za-z\s]/g ,'');
		  $jq(this).val(c);
		  var value = $jq(this).val();
		  stepcarousel.stepTo('galalbums1', value);
    });
});

// [Friends albums]
stepcarousel.setup({
galleryid: 'galalbums2', //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
panelbehavior: {speed:200, wraparound:false, persist:true},
defaultbuttons: {enable: false, moveby: 1, leftnav: ['home.gif', 0, 0], rightnav: ['mail.gif', 0, 0]},
statusvars: ['gal2A', 'gal2B', 'gal2C'], // Register 3 "status" variables
contenttype: ['inline'] // content type
})

// [Friends albums] Input field for fast jump to page (allwo only digit input)
$jq(document).ready(function(){
   $jq('input#g2').keyup(function(e) {
      if(e.which==13) return false;
		  c = $jq(this).val().replace( /[A-Za-z\s]/g ,'');
		  $jq(this).val(c);
		  var value = $jq(this).val();
		  stepcarousel.stepTo('galalbums2', value);
    });
});