$(document).ready(function(){
	if ($('body').attr('id') == 'id-dotaz-vycep') {
		$("input.number").keyup(function(){
			val = $(this).val();
			if(val = parseInt(val))	$(this).val(val);
			else $(this).val("");
		});
	}
});

this.label2value = function(){	
	var inactive = "inactive";
	var active = "active";
	var focused = "focused";

	// function
	$("label.forHide").each(function(){		
		obj = document.getElementById($(this).attr("for"));
		if(($(obj).attr("type") == "text") || (obj.tagName.toLowerCase() == "textarea")){			
			$(obj).addClass(inactive);			
			var text = $(this).text();
			$(this).css("display","none");			
			$(obj).val(text);
			$(obj).focus(function(){	
				$(this).addClass(focused);
				$(this).removeClass(inactive);
				$(this).removeClass(active);								  
				if($(this).val() == text) $(this).val("");
			});	
			$(obj).blur(function(){	
				$(this).removeClass(focused);													 
				if($(this).val() == "") {
					$(this).val(text);
					$(this).addClass(inactive);
				} else {
					$(this).addClass(active);		
				};				
			});				
		};	
	});		
};
// on load
$(document).ready(function(){	
	label2value();	
});

Cufon.replace('#menu a',{hover:true,hoverables:{a:true}}); 
Cufon.replace('.iconsList a', {
	textShadow: '0px 0px rgba(0, 0, 0, 0.5)',
	hover: true
});
Cufon('.btnsList a', {
	textShadow: '0px 0px white'
});
Cufon('.btnsList li.btnBig a', {
	textShadow: '0px 0px black'
});

Cufon.replace('h1,.textize');

DD_belatedPNG.fix('#content, #contentIn, h3#greenHeadline, .hpBox');




       	hs.graphicsDir = '/highslide-new/graphics/';
       	hs.align = 'center';
       	hs.transitions = ['expand', 'crossfade'];
       	hs.fadeInOut = true;
       	hs.outlineType = 'rounded-white';
       	hs.headingEval = 'this.a.title';
       	hs.numberPosition = 'heading';
       	hs.useBox = true;
       	hs.width = 600;
       	hs.height = 500;
       	hs.showCredits = false;
       	// hs.dimmingOpacity = 0.8;
       
       	// Add the slideshow providing the controlbar and the thumbstrip
       	hs.addSlideshow({
       		// slideshowGroup: 'group1',
       		interval: 5000,
       		repeat: false,
       		useControls: true,
       		fixedControls: 'fit',
       		overlayOptions: {
       			position: 'top right',
       			offsetX: 200,
       			offsetY: -65
       		},
       		thumbstrip: {
       			position: 'rightpanel',
       			mode: 'float',
       			relativeTo: 'expander',
       			width: '210px'
       		}
       	});
       
       	// Make all images animate to the one visible thumbnail
       	var miniGalleryOptions1 = {
       		thumbnailId: 'thumb1'
       	}




