			$(document).ready(function(){
				//$("#menu #menu_"+page_id).parent().addClass('li_hover');
				//$("#menu2 ul#submenu_"+page_id).show();

/*
				$("#menu li").hover(
					function() {
						if($(this).attr("class") != 'li_hover'){
							$("#menu li").removeClass('li_hover');
							$("ul.submenu").fadeOut('fast');
							//$("ul.submenu").hide();
							$(this).addClass('li_hover');
							var tmp = $("a", this).attr("id").split('_');
							var menu_id = tmp[1];
							$("#menu2 ul#submenu_"+menu_id).slideDown('fast');
						}
					},
					function(){}
				);
*/

				$("#mymenu").hover(// on mouseout select the menu back...
					function() {},
					function(){
						if($("#menu .li_hover").find("a").attr("id") != 'menu_'+page_id){
							setTimeout(function(){
								$("#menu li").removeClass('li_hover');
								//$("ul.submenu").fadeOut('fast');
								$("#menu #menu_"+page_id).parent().addClass('li_hover');
								//$("#menu2 ul#submenu_"+page_id).show();

							},2000);
						}
					}
				);


				/////////////////// Navigation for boxes from the right menu START /////////////
				$(".box_tabs .tabs li").each(function(i){
					$(this).click(function(){
						$(this).parent().find("li").removeClass("active");
						$(this).addClass("active");
						$(this).parent().parent().find(".tab_contents").hide();
						//$(".box_tabs .tab_contents").hide();
						$(".box_tabs .tab_contents").each(function(j){
							if(i == j){
								$(this).show();
							}
						});
					});
				});
				/////////////////// Navigation for boxes from the right menu END /////////////////////

				$('.timeago').timeago();

				$('.newsticker').newsTicker();
				//$('.tv_ticker').newsTicker(7000);

				/////////////////// Head boxes ticker START /////////////
      	$(".newsticker-jcarousellite").jCarouselLite({
      		vertical: false,
      		hoverPause:true,
      		visible: 3,
      		auto:5000,
      		speed:1000
      	});
				/////////////////// Head boxes ticker END /////////////

				/////////////////// erotik home START /////////////
      	$(".erotik-jcarousellite").jCarouselLite({
      		vertical: false,
      		hoverPause:true,
      		visible: 3,
      		auto:2500,
      		speed:1000
      	});
				/////////////////// erotik home END /////////////

    		$("a.view").fancybox();
			});

