jQuery.noConflict();
function menushow(element) {
  ulelement = element.lastChild;
  if (ulelement.tagName == 'UL') {
    act = ulelement;
  }
  else {
    act = false;
  }
    if (act) {
    act.style.display='block';  
  }
}

function menuhide(element) {
  ulelement = element.lastChild;
  if (ulelement) {
    if (ulelement.tagName == 'UL') {
      act = ulelement;
    }
    else {
      act = false;
    }
    if (act) {
      act.style.display='none';
    }
  }
}

function changeMod(title,description,picture,uebreschrift,picturebig){
	jQuery('#det_pic a img').fadeOut('slow');
	jQuery('.det_picture').fadeOut('slow');
	jQuery('#det_pic_' + picturebig).fadeIn('slow');
 	jQuery('#col2>.tx-agnrollingscollection-pi1>#det_beschr>h3').html('<span style="background-image: url('+uebreschrift+');">'+title+'</span>');
	jQuery('#col2>.tx-agnrollingscollection-pi1>#det_beschr>p').html(description);
}



function schpos(){
 	var lisize = jQuery('.moveshoe li').size();
	var ulwidth = lisize*145;	
	jQuery('ul.moveshoe').parent().css({'width' : ulwidth });
	jQuery('ul.moveshoe').css({'width' : ulwidth });
	
	if (lisize == "3"){
		jQuery('ul.moveshoe li:eq(0)').css({'margin-top' : '95px' });
		jQuery('ul.moveshoe li:eq(2)').css({'margin-top' : '100px' });
	}
	if (lisize == "4"){
		jQuery('ul.moveshoe li:eq(0)').css({'margin-top' : '85px' });
		jQuery('ul.moveshoe li:eq(3)').css({'margin-top' : '95px' });
	}
	if (lisize == "5"){
		jQuery('ul.moveshoe li:eq(0)').css({'margin-top' : '70px' });
		jQuery('ul.moveshoe li:eq(1)').css({'margin-top' : '95px' });
		jQuery('ul.moveshoe li:eq(2)').css({'margin-top' : '110px' });
		jQuery('ul.moveshoe li:eq(3)').css({'margin-top' : '105px' });
		jQuery('ul.moveshoe li:eq(4)').css({'margin-top' : '80px' });
	}
	if (lisize == "6"){
		jQuery('ul.moveshoe li:eq(0)').css({'margin-top' : '50px' });
		jQuery('ul.moveshoe li:eq(1)').css({'margin-top' : '80px' });
		jQuery('ul.moveshoe li:eq(2)').css({'margin-top' : '105px' });
		jQuery('ul.moveshoe li:eq(3)').css({'margin-top' : '110px' });
		jQuery('ul.moveshoe li:eq(4)').css({'margin-top' : '95px' });
		jQuery('ul.moveshoe li:eq(5)').css({'margin-top' : '70px' });
	}
}




jQuery(document).ready(function(){
	schpos();
	
});


