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

	

	
	$(".pageflip_popup_link a").removeAttr('href');
	$("#main-menu-bar ul li:not(#main-menu-bar ul li ul li)").hover(

		function() {

			$(this).children("ul").slideDown(350);

		},

		function() {

			$(this).children("ul").slideUp(150);

		});

	$("#main-menu-bar ul li ul li").hover(

		function() {

			$(this).children("ul").show(300);

		},

		function() {

			$(this).children("ul").hide(100);

		}

	)

	$("#preloader").show();
	$("#important-links img, .xoxo img").hover(
		function() {
			$(this).animate({
				opacity: "1.0"
			});
		},
		function() {
			$(this).animate({
				opacity: "0.70"
			});
		}
	);
	$("div.widget-left-content:contains('twarzy') ul").css("list-style","none").css("margin","0").css("padding","0");
	$("div.widget-left-content:contains('twarzy') ul li").css("padding-bottom","5px");
	$("div.widget-left-content:contains('twarzy') ul li a").css("font-size","14px").css("font-weight","bold");
	$("div.widget-right-content:contains('twarzy') ul").css("list-style","none").css("margin","0").css("padding-left","6px");
	$("div.widget-right-content:contains('twarzy') ul li").css("padding-bottom","5px");
	$("div.widget-right-content:contains('twarzy') ul li a").css("font-size","14px").css("font-weight","bold");
	
	$("table.wp-table-reloaded tr td h3").parent().parent().addClass("table-header3");
	$("table.wp-table-reloaded tr td:nth-child(2)").css("width","25%").css("font-size","14px").css("text-align","center").css("font-weight","bold").css("vertical-align","middle");
	$("table.wp-table-reloaded tr:odd td").not("table.wp-table-reloaded tr.table-header3 td").addClass("table-odd");
	$("table.wp-table-reloaded tr td em").parent().parent().addClass("table-em");
	$("table.wp-table-reloaded tr td img").parent().addClass("table-image").parent().addClass("table-image");
	$("table.wp-table-reloaded thead").hide();
	$("table.wp-table-reloaded tr.table-header3 td.column-2").removeClass("column-2");
	$("table.wp-table-reloaded tr.row-1").hide();
		$("#side-widget-container").hover(
			function() {
				$(this).stop(true,true).animate({
					left: '0px'
				});
			},
			function() {
				$(this).stop(true,true).animate({
					left: '-230px'
				});
			}
		);
		
});
