$ja(document).ready(function() {
			

			$ja.ajaxSetup ({ cache: false });
			Shadowbox.init({
						handleOversize:     "resize",
						autoplayMovies:     false,
    					players:  ['img', 'html', 'iframe', 'qt', 'wmp', 'swf', 'flv']
						});

		
				$ja('#nav ul').hide();
				
				$ja('#nav').children('li').hoverIntent( 
						function(e){ 
						 $ja(this).children('ul').hoverFlow(e.type, {
							  'height': 'show'
							});
						}, 
						// mouseout 
						function(e){ 
						  $ja(this).children('ul').hoverFlow(e.type, {
							  'height': 'hide'
							}); 
						}   
					  );
				$ja('#nav ul').children('li').hoverIntent( 
						function(e){ 
						 $ja(this).children('ul').hoverFlow(e.type, {
							  'height': 'show'
							});
						}, 
						// mouseout 
						function(e){ 
						  $ja(this).children('ul').hoverFlow(e.type, {
							  'height': 'hide'
							}); 
						}   
					  );
				$ja('#nav ul ul').children('li').hoverIntent( 
						function(e){ 
						 $ja(this).children('ul').hoverFlow(e.type, {
							  'height': 'show'
							});
						}, 
						// mouseout 
						function(e){ 
						  $ja(this).children('ul').hoverFlow(e.type, {
							  'height': 'hide'
							}); 
						}   
					  );
  				$ja('#nav li').hoverClass('hover');
				
				
				setPage();
				
				
				$ja(".low-body").corner("round 3px bl br ")
					.mouseenter(function () {
					$ja(this).css({'background':'#d6e0e6'});
					}).mouseleave(function () {
					$ja(this).css({'background':'#e8e9e3'});
				});				
				$ja(".lownaslov-green").corner("round 3px tl tr ");
				$ja(".lownaslov-yellow").corner("round 3px tl tr ");
				$ja(".lownaslov-pink").corner("round 3px tl tr ");
				
				
				$ja(".boxholder").corner("round 3px tr bl br");
				$ja(".boxholder2").corner("round 3px tr bl br");
				$ja(".boxholdertitles").corner("round 3px tl tr ");
				
								
				$ja("#fotobox").easySlider({
				   controlsBefore:	'<p id="controls">',
					controlsAfter:	'</p>',	
					prevId: 'prevBtn',
					nextId: 'nextBtn'
					});
				
				$ja("#videobox").easySlider({
				   controlsBefore:	'<p id="controls2">',
					controlsAfter:	'</p>',	
					prevId: 'prevBtn2',
					nextId: 'nextBtn2'
					});
				
				$ja('div.slidertekst marquee').marquee('pointer')
						.mouseover(function () {
								$ja(this).trigger('stop');
						})
						.mouseout(function () {
								$ja(this).trigger('start');
						})
						.mousemove(function (event) {
								if ($ja(this).data('drag') == true) { 
										this.scrollLeft = $ja(this).data('scrollX') + ($ja(this).data('x') - event.clientX);
										}
						})
						.mousedown(function (event) { 
								$ja(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scrollLeft);
						})
						.mouseup(function () {  $ja(this).data('drag', false);
						});
				
		

});
