jQuery=jQuery.noConflict(); 
jQuery(document).ready(function() {
	jQuery('#mytest').addClass('mytest');
	function displayVals() {
      //var singleValues = jQuery("#single").val();
      var singleValues = jQuery("#single option:selected").text();
      jQuery("#mytest").html(singleValues);
    }

    jQuery("select").change(displayVals);
    displayVals();

  jQuery('#gallerythumbs li').each(function(node){  
  if(node >= 1){
   //alert(node);
    jQuery(this).addClass( 'jersy'+node);
   }
});

});

//jQuery.noConflict(); 
function getname(id,count){
	//alert(id);
	//alert(count);
	var c=count;
	jQuery.ajax({
		    type: 'POST',
            url:'index.php?id=3&type=200&tx_slgallery_pi2[uid]='+id,
            dataType : 'json',
	        success: function(data) {
				var a=data['picture_title'];
				var b=c;
				jQuery('#current1').html(b);
				//alert(data['uid']);
				//alert(data['picture_title']);
			}
		});
	
}

function getimage(id){
	//alert(id);
	if(id==0){
		window.location.reload();
		}
		else {
			jQuery('#content-left').html('<div style="padding:137px 127px;"><img src="fileadmin/templates/page/userfiles/gallery/ajax-loader(3).gif"/></div>');
			jQuery.ajax({
				type: 'POST',
				url:'index.php?id=3&type=200&tx_slgallery_pi2[listr]='+id,
				//dataType : 'json',
				success: function(data) {
					jQuery('#content-left').html(data);
					//alert(data);
					//alert(data['picture_title']);
					//alert(jQuery('#gallerythumbs').html);
				}
			});
		}
}

function getnameone(id,count){
	//alert(id);
	var c=count;
	jQuery.ajax({
			url:'index.php?id=13&type=200&tx_slgallery_pi2[uid]='+id,
			dataType : 'json',
			success: function(data) {
				var a=data['picture_title'];
				var b=c;
				//var b=data['uid'];
				jQuery('.current').html(b);
				//jQuery('.rishi1').html(data);
				//alert(data);
			}
		});
	
}



function getimageone(id){
	//alert(id);
	if(id==500){
		window.location.reload();
	}
	else {
	jQuery('#tx-slgallery-big').html('<div style="padding:249px 357px;"><img src="fileadmin/templates/page/userfiles/gallery/ajax-loader(3).gif"/></div>');
	jQuery.ajax({
		    type: 'POST',
            url:'index.php?id=13&type=200&tx_slgallery_pi2[bigger]='+id,
            //dataType : 'json',
	        success: function(data) {
				jQuery('#tx-slgallery-big').html(data);
				//alert(data);
				//alert(data['picture_title']);
			}
		});
	}
	
}

stepcarousel.setup({
	galleryid: 'galleryContainer', //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:3000},
	panelbehavior: {speed:500, wraparound:false, persist:false},
	defaultbuttons: {enable: true, moveby: 1, leftnav: ['fileadmin/templates/page/images/arrowLeft.png', -9, 30], rightnav: ['fileadmin/templates/page/images/arrowRight.png', 5, 30]},
	statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
	contenttype: ['inline'], //content setting ['inline'] or ['ajax', 'path_to_external_file']
	//~ oninit:function(){
 //~ isloaded=true
 //~ alert("Carousel has initialized")
 //~ }
})





jQuery('.gallerylink').click(function(){
	   
	   jQuery('.stepcarousel').css(width,'628px');
	   
	});


function getlink(id){
	//alert(id);
window.location=id;
}

