document.write('<style> div.autopark .perex-image {height:151px; overflow:hidden;}</style>');



$(document).ready(function() {if($.browser.msie == true && $.browser.versionX < 7) {$(document).pngFix();}

$("div.perex-image .case").corner("8px");
$("#top .promo").corner("bottom 10px cc:#777777");
$("#top .promo").corner("top 10px cc:#c4c4c4");
$("#top").cycle();

$(".objednat").corner("5px");
$('div.autopark').cycle({ 
    fx:     'scrollHorz',
    prev:   '#prev', 
    next:   '#next',
    timeout: 0,
    before: onBefore,     
    after:   onAfter
});

function onBefore() {
$("div#content-text").fadeOut("slow");
}

function onAfter(curr, next, opts) {
    var index = $(this).parent().children().index(this);
    $('#prev')[index == 0 ? 'hide' : 'show']();
    $('#next')[index == opts.slideCount - 1 ? 'hide' : 'show']();
    $("div#content-text").html($('div.perex-image:visible div.auto-text').html()).fadeIn("normal");
    if($.browser.msie == true && $.browser.versionX < 7) {$(document).pngFix();}
}


/*$("div.content-text table tr:not('.empty'),div.form table tr:not('.empty'),table.tabulka tr:not('.empty')").hover(function(){
//$(this).children("td").addClass("td-hover");
//$(this).children("td").children("input[@type=text]").addClass("input-hover");
//$(this).children("td").children("textarea").addClass("textarea-hover");
},
function(){
$("table tr:not('.empty')").children("td").removeClass("td-hover");

//$("div.form table tr:not('.empty')").children("td").children("input[@type=text]").removeClass("input-hover");
//$("div.form table tr:not('.empty')").children("td").children("textarea").removeClass("textarea-hover");
}
);*/

$("div.form table tr td input[@type=text],div.form table tr td textarea").focus(function(){
$(this).addClass("input-hover");
});
$("div.form table tr td input[@type=text],div.form table tr td textarea").blur(function(){
if($(this).val() ==  "") $(this).removeClass("input-hover");
});

});


