if (window.location.protocol == 'http:') {
stLight.options({publisher:'6f90d779-db89-4da6-9880-6027ab42b68f'});
}
$(window).resize(function() {
	resiser();
	});
$(document).ready(function(){
	/*
	if(!$.cookie('LAND_ID')){
		var lang = navigator.language? navigator.language : navigator.userLanguage;
		if (lang.indexOf('de') > -1) $.cookie('LAND_ID',1, { path: '/', expires: 365 });
		if (lang.indexOf('at') > -1) $.cookie('LAND_ID',2, { path: '/', expires: 365 });
		if (lang.indexOf('ch') > -1) $.cookie('LAND_ID',3, { path: '/', expires: 365 });
	}
	*/
		
	$('a.pdf').after('&nbsp;<img src="fileadmin/templates/image/pdf.png" height="16" width="16" alt="pdf" />');
	$('a.zip').after('&nbsp;<img src="fileadmin/templates/image/zip.png" height="17" width="17" alt="zip" />');
	$('a.mail').amail('(at)','(dot)');

	$('#quickblick-land').sSelect();
	$('#quickblick-speciality').sSelect();
	$('#quickblick-professional-group').sSelect();
	$('#quickblick-theme').sSelect();
	$('#quickblick-docent').sSelect();
	$('#quickblick-month').sSelect();
	$('#quickblick-limit').sSelect();
	$('#quickblick-art').sSelect();
	$('#quickblick-sort').sSelect();


	$('#registration-wish1').sSelect();
	$('#registration-wish2').sSelect();
	$('#offer-land').sSelect();
	$('#newsletter-land').sSelect();	
	$('#offer-professional-group').sSelect();
	$('#offer-docent').sSelect();
	$('#offer-speciality').sSelect();
	$('#offer-theme').sSelect();
	$('#offer-month').sSelect();

	$('#therapeutist-search-ayurveda').sSelect();
	$('#therapeutist-search-specification').sSelect();
	$('#therapeutist-search-country').sSelect();

	$('#contact-country').sSelect();
	
	$('#tabsheet').tabs();
	
	$(".tabsheet-content tr td:first-child").addClass("first-column");
	

/*	Galleria.loadTheme('fileadmin/templates/js/themes/classic/galleria.classic.js');
    $('#slider').galleria({
        height:343,
        show_counter: false,
        show_imagenav: false,
        thumb_margin: 2
    });*/

	$('div.docent-filter-limit ul.newList a, div.docent-filter-sort ul.newList a, div.docent-filter-art ul.newList a').click(function() {
  		document.docentfilter.submit();
	});
	
	$('div.docent a').click(function() {
		if($(this).find(".docent-item").hasClass("active"))
		{
			$(this).find(".docent-item").removeClass("active");
		}
		else 
		{
			$(".docent-item").removeClass("active");
			$(this).find(".docent-item").addClass("active");
		}
	});
	
	$(".email-send").click(function(){
		document.location.href = "mailto:"+$(this).text();
	});
	

		if($.cookie('LAND_ID'))
		{
			if($.cookie('LAND_ID') == 1) {
				$('.land-navi-deutschland').addClass('active');
				$('.teaser-person-land-d').addClass('active'); 
				$('.teaser-termine-land-d').addClass('active');
				//filterArt(1);
			}
			else if($.cookie('LAND_ID') == 2)
			{
				$('.land-navi-osterreich').addClass('active');
				$('.teaser-person-land-o').addClass('active');
				$('.teaser-termine-land-o').addClass('active');
				//filterArt(2);
			}
			else if($.cookie('LAND_ID') == 3) 
			{
				$('.land-navi-schweiz').addClass('active');
				$('.teaser-person-land-s').addClass('active');
				$('.teaser-termine-land-s').addClass('active');
				//filterArt(3);
			}

		}else
		{
			var landId = 1;
			$('.land-navi-deutschland').addClass('active');
			$('.teaser-person-land-d').addClass('active');
			$('.teaser-termine-land-d').addClass('active');
			$.cookie('LAND_ID',landId, { path: '/', expires: 365 });
			//filterArt(1);
		}
		

		
		
		$('.land-navi-deutschland').click(function() {
			var landId = 1;
			$('.land-navi-osterreich, .land-navi-schweiz').removeClass('active');
			/*$('.teaser-person-land-o, .teaser-person-land-s').removeClass('active');
			$('.teaser-termine-land-o, .teaser-termine-land-s').removeClass('active');*/
			
			$('.land-navi-deutschland').addClass('active');
			/*$('.teaser-person-land-d').addClass('active');
			$('.teaser-termine-land-d').addClass('active');*/
			
			$.cookie('LAND_ID',landId, { path: '/', expires: 365 });
			
			location.reload();
			//filterArt(landId);
			return false;
		});
		$('.land-navi-osterreich').click(function() {
			var landId = 2;
			$('.land-navi-deutschland, .land-navi-schweiz').removeClass('active');
			/*$('.teaser-person-land-d, .teaser-person-land-s').removeClass('active');
			$('.teaser-termine-land-d, .teaser-termine-land-s').removeClass('active');*/
			
			$('.land-navi-osterreich').addClass('active');
			/*$('.teaser-person-land-o').addClass('active');
			$('.teaser-termine-land-o').addClass('active');*/
			
			$.cookie('LAND_ID',landId, { path: '/', expires: 365 });
			
			location.reload();
			//filterArt(landId);
			return false;
		});
		$('.land-navi-schweiz').click(function() {
			var landId = 3;
			$('.land-navi-osterreich, .land-navi-deutschland').removeClass('active');
			/*$('.teaser-person-land-d, .teaser-person-land-o').removeClass('active');
			$('.teaser-termine-land-d, .teaser-termine-land-o').removeClass('active');*/
			
			$('.land-navi-schweiz').addClass('active');
			/*$('.teaser-person-land-s').addClass('active');
			$('.teaser-termine-land-s').addClass('active');*/
			
			$.cookie('LAND_ID',landId, { path: '/', expires: 365 });
			
			location.reload();
			//filterArt(landId);
			return false;
		});
		
		$("#kursensuche_submit").click(function(){
			$("#quickblick-perpage").val($("#quickblick-limit").val());
			$('#kursensuche').submit();
		});
		
		$("#quickblick-limit").change(function(){
			$("#quickblick-perpage").val($(this).val());
			$('#kursensuche').submit();		
			//document.location.href = document.location.href.replace(/quickblick-perpage=([0-9]{3}|[0-9]{2})/, 'quickblick-perpage='+$(this).val());
		});
		
		var flashvars = {
			dataAddress: "fileadmin/ts/home_flash.php?country="+$.cookie('LAND_ID')
		};
		var params = {
		};
		var attributes = {
			id: "welcome",
			name: "welcome"
		};
		
		swfobject.embedSWF("fileadmin/templates/Banner.swf", "welcome", "720", "253", "9.0.0", "", flashvars, params, attributes);
		$('.welcome').addClass('welcome-visible');
		
	resiser();
});

function result_page(page){
	$("#quickblick-page").val(page);
	$('#kursensuche').submit();		
}
function resiser(){
	if($(window).width() < 1024)
	{
		$("div.bg-tree").width(1024);
	}else{
		$("div.bg-tree").width($(window).width());
	}

	if(($(window).height() < ($("div.container div.column-left").height() + $("div.footer").height() + $("div.container-hilfs").height())) || ($(window).height() < ($("div.container div.column-right").height() + $("div.footer").height() + $("div.container-hilfs").height())))
	{
		$("div.bg-tree").height((($("div.container div.column-left").height() < $("div.container div.column-right").height())?$("div.container div.column-right").height():$("div.container div.column-left").height()) + $("div.footer").height() + $("div.container-hilfs").height());
	}else{
		$("div.bg-tree").height('100%');
		if($("div.bg-tree").height() == $(window).height()){
			$(".footer").css({marginTop: ($(window).height()-($(".container").height()+$(".container-hilfs").height()))+"px"});
		}
	}

	/*if($(window).height() < ($("div.container").height() + $("div.footer-hilfs").height()) )
	{
		$("div.bg-tree").height($("div.container").height());
		$("div.footer-hilf-sprtr").height(100);
	}else{
		$("div.bg-tree").height('100%');
		$("div.footer-hilf-sprtr").height(($(window).height() - $("div.container").height()));
	}*/
	
	if($(window).height() > 200)
	{
	   $("div.container-hilfs").css('top',200);
	}

}
function registration_check()
{
	var error = 0;
	var reg_email = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
	
	if(document.getElementById('name').value == '')
	{
		$('div.registration-name-input').addClass('error');
		document.getElementById('name').focus();
		error = 1;
	}
	else $('div.registration-name-input').removeClass('error');

	if(document.getElementById('namel').value == '')
	{
		$('div.registration-namel-input').addClass('error');
		document.getElementById('namel').focus();
		error = 1;
	}
	else $('div.registration-namel-input').removeClass('error');

	if(document.getElementById('street').value == '')
	{
		$('div.registration-street-input').addClass('error');
		document.getElementById('street').focus();
		error = 1;
	}
	else $('div.registration-street-input').removeClass('error');

	if(document.getElementById('country').value == '')
	{
		$('div.registration-country-input').addClass('error');
		document.getElementById('country').focus();
		error = 1;
	}
	else $('div.registration-country-input').removeClass('error');

	if(document.getElementById('zip').value == '')
	{
		$('div.registration-zip-input').addClass('error');
		document.getElementById('zip').focus();
		error = 1;
	}
	else $('div.registration-zip-input').removeClass('error');
	
	if(document.getElementById('city').value == '')
	{
		$('div.registration-city-input').addClass('error');
		document.getElementById('city').focus();
		error = 1;
	}
	else $('div.registration-city-input').removeClass('error');	

	if(document.getElementById('phone1').value == '')
	{
		$('div.registration-phone1-input').addClass('error');
		document.getElementById('phone1').focus();
		error = 1;
	}
	else $('div.registration-phone1-input').removeClass('error');

	if(document.getElementById('email').value == '' || !reg_email.test(document.getElementById('email').value))
	{
		$('div.registration-email-input').addClass('error');
		document.getElementById('email').focus();
		error = 1;
	}
	else $('div.registration-email-input').removeClass('error');

	if(document.getElementById('term')){
		if(!$('#term').is(':checked'))
		{
			$('div.registration-checkbox-term').addClass('error1');
			error = 1;
		}
		else $('div.registration-checkbox-term').removeClass('error1');
		
		if(!$('#target').is(':checked'))
		{
			$('div.registration-checkbox-target').addClass('error1');
			error = 1;
		}
		else $('div.registration-checkbox-target').removeClass('error1');	
	
	
		if(!document.getElementById('term').checked || !document.getElementById('target').checked)
		{
			error = 1;
		}
	}

	if(error)
	{
		$('div.registration-error').css('visibility', 'visible');
	}
	else
	{
		$('div.registration-error').css('visibility', 'hidden');
		document.registration.submit();
	}
}
function show_registration_mark_div(div){
	$('#' + div).css('display','block');
}
function hide_registration_mark_div(div){
	$('#' + div).css('display','none');
}
function setMapOverSrc(map){
	document.map.src=document.map.src.substr(0, document.map.src.length-4) + '-' + map + '.png';
}
function clearMapOverSrc(map){
	document.map.src=document.map.src.substr(0, document.map.src.length-4-map.length-1) + '.png';
}
function showField(key){
	if(key == 'email')
	{
		$('div#div-post').css('display', 'none');
		$('div#div-phone').css('display', 'none');
	}
	if(key == 'post')
	{
		$('div#div-post').css('display', 'block');
		$('div#div-phone').css('display', 'none');
	}
	if(key == 'phone')
	{
		$('div#div-post').css('display', 'none');
		$('div#div-phone').css('display', 'block');
	}
}
function contact_check()
{
	var error = 0;
	var reg_email = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
	
	if(document.getElementById('name').value == '')
	{
		$('div.contact-name-input').addClass('error');
		document.getElementById('name').focus();
		error = 1;
	}
	else $('div.contact-name-input').removeClass('error');

	if(document.getElementById('namel').value == '')
	{
		$('div.contact-namel-input').addClass('error');
		document.getElementById('namel').focus();
		error = 1;
	}
	else $('div.contact-namel-input').removeClass('error');

	if(document.getElementById('email').value == '' || !reg_email.test(document.getElementById('email').value))
	{
		$('div.contact-email-input').addClass('error');
		document.getElementById('email').focus();
		error = 1;
	}
	else $('div.contact-email-input').removeClass('error');

	if(document.getElementById('street').value == '' && document.getElementById('type-post').checked)
	{
		$('div.contact-post-street-input').addClass('error');
		document.getElementById('street').focus();
		error = 1;
	}
	else $('div.contact-post-street-input').removeClass('error');

	if(document.getElementById('plz').value == '' && document.getElementById('type-post').checked)
	{
		$('div.contact-post-plz-input').addClass('error');
		document.getElementById('plz').focus();
		error = 1;
	}
	else $('div.contact-post-plz-input').removeClass('error');

	if(document.getElementById('city').value == '' && document.getElementById('type-post').checked)
	{
		$('div.contact-post-city-input').addClass('error');
		document.getElementById('city').focus();
		error = 1;
	}
	else $('div.contact-post-city-input').removeClass('error');

	if(document.getElementById('country').value == '' && document.getElementById('type-post').checked)
	{
		$('div.contact-post-country-input').addClass('error');
		document.getElementById('country').focus();
		error = 1;
	}
	else $('div.contact-post-country-input').removeClass('error');

	if(document.getElementById('phone').value == '' && document.getElementById('type-phone').checked)
	{
		$('div.contact-phone-phone-input').addClass('error');
		document.getElementById('phone').focus();
		error = 1;
	}
	else $('div.contact-phone-phone-input').removeClass('error');
	
	if(document.getElementById('begin').value == '' && document.getElementById('type-phone').checked)
	{
		$('div.contact-phone-begin-input').addClass('error');
		document.getElementById('begin').focus();
		error = 1;
	}
	else $('div.contact-phone-begin-input').removeClass('error');
	
	if(document.getElementById('end').value == '' && document.getElementById('type-phone').checked)
	{
		$('div.contact-phone-end-input').addClass('error');
		document.getElementById('end').focus();
		error = 1;
	}
	else $('div.contact-phone-end-input').removeClass('error');	

	if(error)
	{
		$('div.contact-error').css('visibility', 'visible');
	}
	else
	{
		$('div.contact-error').css('visibility', 'hidden');
		document.contact.submit();
	}
}
function prospect_check()
{
	var error = 0;
	var reg_email = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
	
	if(document.getElementById('name').value == '')
	{
		$('div.prospect-name-input').addClass('error');
		document.getElementById('name').focus();
		error = 1;
	}
	else $('div.prospect-name-input').removeClass('error');
	
	if(document.getElementById('namel').value == '')
	{
		$('div.prospect-namel-input').addClass('error');
		document.getElementById('namel').focus();
		error = 1;
	}
	else $('div.prospect-namel-input').removeClass('error');
	
	if(document.getElementById('street').value == '')
	{
		$('div.prospect-street-input').addClass('error');
		document.getElementById('street').focus();
		error = 1;
	}
	else $('div.prospect-street-input').removeClass('error');
	
	if(document.getElementById('email').value == '' || !reg_email.test(document.getElementById('email').value))
	{
		$('div.prospect-email-input').addClass('error');
		document.getElementById('email').focus();
		error = 1;
	}
	else $('div.prospect-email-input').removeClass('error');
	
	if(document.getElementById('zip').value == '')
	{
		$('div.prospect-zip-input').addClass('error');
		document.getElementById('zip').focus();
		error = 1;
	}
	else $('div.prospect-zip-input').removeClass('error');
	
	if(document.getElementById('city').value == '')
	{
		$('div.prospect-city-input').addClass('error');
		document.getElementById('city').focus();
		error = 1;
	}
	else $('div.prospect-city-input').removeClass('error');	

	if(document.getElementById('country').value == '')
	{
		$('div.prospect-country-input').addClass('error');
		document.getElementById('country').focus();
		error = 1;
	}
	else $('div.prospect-country-input').removeClass('error');
			
	if(error)
	{
		$('div.prospect-error').css('visibility', 'visible');
	}
	else
	{
		$('div.prospect-error').css('visibility', 'hidden');
		document.prospect.submit();
	}
}
function formular_expert_check()
{
	var error = 0;
	var reg_email = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
	
	if(document.getElementById('name_einrichtung').value == '')
	{
		$('div.prospect-title-input.name_einrichtung').addClass('error');
		document.getElementById('name_einrichtung').focus();
		error = 1;
	}
	else $('div.prospect-title-input.name_einrichtung').removeClass('error');
	
	if(document.getElementById('name').value == '')
	{
		$('div.prospect-name-input').addClass('error');
		document.getElementById('name').focus();
		error = 1;
	}
	else $('div.prospect-name-input').removeClass('error');

	if(document.getElementById('namel').value == '')
	{
		$('div.prospect-namel-input').addClass('error');
		document.getElementById('namel').focus();
		error = 1;
	}
	else $('div.prospect-namel-input').removeClass('error');
	
	if(document.getElementById('email').value == '' || !reg_email.test(document.getElementById('email').value))
	{
		$('div.prospect-email-input').addClass('error');
		document.getElementById('email').focus();
		error = 1;
	}
	else $('div.prospect-email-input').removeClass('error');
	
	if(document.getElementById('phone').value == '')
	{
		$('div.prospect-phone-input').addClass('error');
		document.getElementById('phone').focus();
		error = 1;
	}
	else $('div.prospect-phone-input').removeClass('error');	
	
	if(document.getElementById('street').value == '')
	{
		$('div.prospect-street-input').addClass('error');
		document.getElementById('street').focus();
		error = 1;
	}
	else $('div.prospect-street-input').removeClass('error');
	
	if(document.getElementById('zip').value == '')
	{
		$('div.prospect-zip-input').addClass('error');
		document.getElementById('zip').focus();
		error = 1;
	}
	else $('div.prospect-zip-input').removeClass('error');
	
	if(document.getElementById('city').value == '')
	{
		$('div.prospect-city-input').addClass('error');
		document.getElementById('city').focus();
		error = 1;
	}
	else $('div.prospect-city-input').removeClass('error');	

	if(document.getElementById('country').value == '')
	{
		$('div.prospect-country-input').addClass('error');
		document.getElementById('country').focus();
		error = 1;
	}
	else $('div.prospect-country-input').removeClass('error');
	
	if(document.getElementById('day').value == '' || document.getElementById('day').value == 'TT')
	{
		$('div.formular-expert-day-input').addClass('error');
		document.getElementById('day').focus();
		error = 1;
	}
	else $('div.formular-expert-day-input').removeClass('error');	
	
	if(document.getElementById('month').value == '' || document.getElementById('month').value == 'MM')
	{
		$('div.formular-expert-month-input').addClass('error');
		document.getElementById('month').focus();
		error = 1;
	}
	else $('div.formular-expert-month-input').removeClass('error');		
	
	if(document.getElementById('year').value == '' || document.getElementById('year').value == 'JJJJ')
	{
		$('div.formular-expert-year-input').addClass('error');
		document.getElementById('year').focus();
		error = 1;
	}
	else $('div.formular-expert-year-input').removeClass('error');			
	
	if(document.getElementById('bezeichnung1').value == '')
	{
		$('div.prospect-item-input.bezeichnung.first').addClass('error');
		document.getElementById('bezeichnung1').focus();
		error = 1;
	}
	else $('div.prospect-item-input.bezeichnung.first').removeClass('error');	
	
	if(document.getElementById('kurzel1').value == '')
	{
		$('div.prospect-item-input.kurzel.first').addClass('error');
		document.getElementById('kurzel1').focus();
		error = 1;
	}
	else $('div.prospect-item-input.kurzel.first').removeClass('error');		

	if(document.getElementById('profession').value == '')
	{
		$('div.prospect-profession-input').addClass('error');
		document.getElementById('profession').focus();
		error = 1;
	}
	else $('div.prospect-profession-input').removeClass('error');					
	
	if(!$("#formular-check-2-1").is(':checked') && !$("#formular-check-2-2").is(':checked') && !$("#formular-check-2-3").is(':checked') && !$("#formular-check-2-4").is(':checked') && !$("#formular-check-2-5").is(':checked') && !$("#formular-check-2-6").is(':checked') && !$("#formular-check-2-7").is(':checked')){
		error = 1;
		$('#meine-praxis-schwerpunkt-header	h3').addClass('error');		
	}
	else $('#meine-praxis-schwerpunkt-header h3').removeClass('error');	
	
	if($("#formular-check-5").is(':checked') && document.getElementById('url').value == '')
	{
		$('div.prospect-title-input.url').addClass('error');
		document.getElementById('url').focus();
		error = 1;
	}
	else $('div.prospect-title-input.url').removeClass('error');					
			
	if(error)
	{
		$('div.prospect-error').css('visibility', 'visible');
	}
	else
	{
		$('div.prospect-error').css('visibility', 'hidden');
		document.formular_expert.submit();
	}
}
function newsletter_check()
{
	var error = 0;
	var reg_email = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
	
	if(document.getElementById('name').value == '')
	{
		$('div.prospect-name-input').addClass('error');
		document.getElementById('name').focus();
		error = 1;
	}
	else $('div.prospect-name-input').removeClass('error');

	if(document.getElementById('namel').value == '')
	{
		$('div.prospect-namel-input').addClass('error');
		document.getElementById('namel').focus();
		error = 1;
	}
	else $('div.prospect-namel-input').removeClass('error');

	if(document.getElementById('newsletter-land').value == 0)
	{
		$("div.prospect-country-input .newListSelected").addClass("error1");
		document.getElementById('newsletter-land').focus();
		error = 1;
	}
	else $("div.prospect-country-input .newListSelected").removeClass('error1');
	
	if(document.getElementById('email').value == '' || !reg_email.test(document.getElementById('email').value))
	{
		$('div.prospect-email-input').addClass('error');
		document.getElementById('email').focus();
		error = 1;
	}
	else $('div.prospect-email-input').removeClass('error');
	
	if(!$("#extIn1").is(':checked') && !$("#extIn2").is(':checked') && !$("#extIn3").is(':checked') && !$("#extIn4").is(':checked')){
		$('div.prospect-interesse-label').addClass('error1');
		error = 1;	
	}else $('div.prospect-interesse-label').removeClass('error1');
			
	if(error)
	{
		$('div.prospect-error').css('visibility', 'visible');
	}
	else
	{
		$('div.prospect-error').css('visibility', 'hidden');
		document.subscribe.submit();
	}
}
function unsubscribe_check()
{
	var error = 0;
	var reg_email = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
	
	if(document.getElementById('email').value == '' || !reg_email.test(document.getElementById('email').value))
	{
		$('div.prospect-email-input').addClass('error');
		document.getElementById('email').focus();
		error = 1;
	}
	else $('div.prospect-email-input').removeClass('error');
			
	if(error)
	{
		$('div.prospect-error').css('visibility', 'visible');
	}
	else
	{
		$('div.prospect-error').css('visibility', 'hidden');
		document.unsubscribe.submit();
	}
}
function login_check()
{
		document.login.submit();
}
function therapeutist_check()
{
		document.therapeutist.submit();
}
function form_submit(form)
{
		//alert(111);
}
function year_program_single_click(object, chb)
{
	if(document.getElementById('year-program' + chb + '-checked') != null)
	{
	
		if(object.checked)
		{
			document.getElementById('year-program' + chb + '-checked').value = 1;
		}
		else
		{
			document.getElementById('year-program' + chb + '-checked').value = 0;
		}
	}
}

function filterArt(land){
	switch (land) {
	   case 1:
	      landName = 'DE';
	      break
	   case 2:
	      landName = 'AT';
	      break
	   case 3:
	      landName = 'CH';
	      break
	}

	jQuery.each($(".table-art a"), function() {
		if($(this).attr("class") != "art_"+landName){
			$(this).hide();
			$(this).prev(".table-art-item-sprtr").hide();			
		}else{
			$(this).show();
			if($(".table-art .table-art-item-sprtr:visible").index($(this).prev(".table-art-item-sprtr"))!=0)
				$(this).prev(".table-art-item-sprtr").show();					
		}
	});	
	if($(".table-art a:visible").size() == $(".table-art .table-art-item-sprtr:visible").size())
		$(".table-art .table-art-item-sprtr:visible:first").hide();
}

