$( document ).ready(function(){
    $( '#search-block-form .form-submit' ).css({'color':'white','font-weight':'bold'});
    $( '#block-locale-0 .language-link' ).text('.').css('color','white');
    $( '#block-locale-0' ).find('li').each(function(){
        $(this).append('<img src="/sites/all/themes/kombinet/images/lang/lang_02.png" style="position:absolute;top:-1px;"/>'); 
    });

	$( '#slideContainer #slide_1' ).addClass( 'active' );
    $( '#block-menu-menu-menu-gorne ul li ul').css('display','none');
	 $( '#block-menu-menu-menu-gorne-ru ul li ul').css('display','none');
	  $( '#block-menu-menu-menu-gorne-de ul li ul').css('display','none');
	   $( '#block-menu-menu-menu-gorne-cz ul li ul').css('display','none');
	    $( '#block-menu-menu-menu-gorne-en ul li ul').css('display','none');
    $( '#block-menu-menu-menu-gorne ul li ul li a').each(function(){
        $( this ).click(function(){
            location.href = $( this ).attr( 'href' );
        })
    })
    $('#dhtml_menu-378-1').click(function(){
        location.href = $( this ).attr( 'href' );
    })
   $('#block-menu-menu-menu-gorne ul.menu li ul').eq(6).find('li').css( 'width', '150px' );
   $('#block-menu-menu-menu-gorne ul.menu li ul').eq(4).find('li').css( 'width', '150px' );
   
   
   $('#dhtml_menu-380-1').click(function(){
       location.href = $( this ).attr( 'href' );
   })
   $('#dhtml_menu-381-1').click(function(){
       location.href = $( this ).attr( 'href' );
   })
   $('#dhtml_menu-382-1').click(function(){
       location.href = $( this ).attr( 'href' );
   })
    
  
   $('#dhtml_menu-1751-2').click(function(){
       location.href=$(this).attr('href');
   })
   $('#dhtml_menu-2199-2').click(function(){
       location.href=$(this).attr('href');
   })
    $('#dhtml_menu-2265-2').click(function(){
       location.href=$(this).attr('href');     
    })
    $('#dhtml_menu-2410-2').click(function(){
       location.href=$(this).attr('href');     
    })
     $('#dhtml_menu-2418-2').click(function(){
       location.href=$(this).attr('href');     
    })
	$('#dhtml_menu-2407-2').click(function(){
       location.href=$(this).attr('href');     
    })
	$('#dhtml_menu-2414-2').click(function(){
       location.href=$(this).attr('href');     
    })
	$('#dhtml_menu-1659-2').click(function(){
		location.href=$(this).attr('href');
	})
    $('#dhtml_menu-2410-1').click(function(){
	location.href=$(this).attr('href');
	})

   $( '.slider-box ul.slider-buttons' ).find( 'a' ).each( function(){
		$( this ).mouseover( function(){
			var id = $( this ).attr( 'id' );
			$( '#slideContainer > div' ).each( function(){
				if( $( this ).hasClass( 'active' ) ) {
					$( this ).removeClass( 'active' );
					$( '#' + id.substr( 4, id.length ) ).addClass( 'active' );
				}
			})		
		})
   
   })
	$( '#block-menu-menu-menu-gorne-en a' ).each( function(){
		$(this).click(function(){
			location.href = $(this).attr('href');
		})
	})
	$( '#block-menu-menu-menu-gorne-de a' ).each( function(){
		$(this).click(function(){
			location.href = $(this).attr('href');
		})
	})
	$( '#block-menu-menu-menu-gorne-ru a' ).each( function(){
		$(this).click(function(){
			location.href = $(this).attr('href');
		})
	})
	$( '#block-menu-menu-menu-gorne-cz a' ).each( function(){
		$(this).click(function(){
			location.href = $(this).attr('href');
		})
	})
	
	$( '#block-menu_block-1 a' ).each( function(){
		$( this ).click( function(){
			location.href = $( this ).attr( 'href' );
		})
	})
   $( '#block-menu_block-7 a' ).each(function(){
		$( this ).click( function(){
			location.href = $( this ).attr( 'href' );
		})
   })
   $( '#block-menu_block-9 a' ).each(function(){
		$( this ).click( function(){
			location.href = $( this ).attr( 'href' );
		})
   })
   
   $( '#block-menu_block-10 a' ).each( function(){
		$( this ).click( function(){
			location.href = $( this ).attr( 'href' );
		})
   })
$( '#block-menu_block-8 a' ).each( function(){
		$( this ).click( function(){
			location.href = $( this ).attr( 'href' );
		})
   })
   
})
