$(document).ready(function(){

	// search bar
	$("#sinput").focus( function () { $("#sinput").toggleClass("sinput-active"); });
	$("#sinput").blur( function () { $("#sinput").toggleClass("sinput-active"); });

	// text flash replacement
//	$('#content h1.main, h2.sub').flash(
//        {
//            src: './swf/grotesk.swf',
//            flashvars: {
//                css: [
//                    '* { color: #000000; background-color:#fff; }',
//                    'a { color: #ff0000; text-decoration: none; }',
//                    'a:hover { text-decoration: underline; }'
//                ].join(' ')
//            }
//        },
//        { version: 7 },
//        function(htmlOptions) {
//            htmlOptions.flashvars.txt = this.innerHTML;
//            this.innerHTML = '<div>'+this.innerHTML+'</div>';
//            var $alt = $(this.firstChild);
//            htmlOptions.height = $alt.height();
//            htmlOptions.width = $alt.width();
//            $alt.addClass('alt');
//            $(this)
//                .addClass('flash-replaced')
//                .prepend($.fn.flash.transform(htmlOptions));
//        }
//    );
//
//$('#content-col h1.grey').flash(
//        {
//            src: './swf/grotesk.swf',
//            flashvars: {
//                css: [
//                    '* { color: #333333; background-color:#fff; }',
//                    'a { color: #ff0000; text-decoration: none; }',
//                    'a:hover { text-decoration: underline; }'
//                ].join(' ')
//            }
//        },
//        { version: 7 },
//        function(htmlOptions) {
//            htmlOptions.flashvars.txt = this.innerHTML;
//            this.innerHTML = '<div>'+this.innerHTML+'</div>';
//            var $alt = $(this.firstChild);
//            htmlOptions.height = $alt.height();
//            htmlOptions.width = $alt.width();
//            $alt.addClass('alt');
//            $(this)
//                .addClass('flash-replaced')
//                .prepend($.fn.flash.transform(htmlOptions));
//        }
//    );



	// Newsletter form / left col
	//$("#nemail").focus( function () { $("#nemail").val("hooo"); });
	$("#nemail").focus( function () {
		if( $("#nemail").val() == "můj e-mail" ) {
			$("#nemail").val("@");
		}
	});
	$("#nemail").blur( function () {
		if( ($("#nemail").val() == "")  ||  ($("#nemail").val() == "@")) {
			$("#nemail").val("můj e-mail");
		}
	});


	// FAQ
	$("p.toggle").click ( function () {
		if( ($("p.toggle a").html() == "Rozbalit více") ) {
			$("p.toggle a").html("Skýt");
		} else  {
			$("p.toggle a").html("Rozbalit více");
		}

		$("p.toggle").toggleClass("toggleon");
		$("div.faq-content").slideToggle("slow");
	});

// Kosik
	$("div.bar-full").click ( function () {
			$("div.bar-full").toggleClass("bar-full-up");
            $("div.kosik-content").slideToggle("slow");
			$("#sel_vyrobce").toggle();
	});

	$('#fpanel').flash(
    { src: 'swf/02-pre-fpanel.swf', width: 980, height: 280},
    { version: '8' }
);
	$('#fpane').flash(
    { src: 'swf/audiopro.swf', width: 980, height: 200},
    { version: '8' }
);

}); // close document.ready



// striped table
$(document).ready(function() {
	$("table.striped tr:even").addClass("stripe-odd");

});




