Cufon.replace('h2,h3.title,#footer p');Cufon.replace('.person h4',{color:'#f58220'});$(document).ready(function(){$('.person').hide();$('a').focus(function(){this.blur();});$(".col-1 p, #person-list li a, ul.submenu li a").not($('ul.submenu li.current a, #person-list li a.current')).animate({opacity:"0.5"},"fast");$(".col-1 p, #person-list li a, ul.submenu li a").not($('ul.submenu li.current a, #person-list li a.current')).hover(function(){$(this).animate({opacity:"1"},"slow");},function(){$(this).animate({opacity:"0.5"},"slow");});$('.person:first').show();$("#person-list li:first a").animate({opacity:"1"},"fast").addClass("current");$("#person-list li a").click(function(){v=$(this).attr('href');$('.person').hide();$("#person-list li a").removeClass("current");$(this).addClass("current");$(v).fadeIn();Cufon.replace('h2, .person h4',{color:'#fff'});Cufon.replace('.person h4',{color:'#f58220'});$('#person-list li a').animate({opacity:"0.5"},"fast");$(this).animate({opacity:"1"},"fast");return false;});$("#products ul li").hover(function(){v=$(this).find('a').attr('href');v2=v.replace("#","");$('.'+v2+' span').show();},function(){$('.brand-gal-block span').hide().attr("z-index","100");});$("#portfolio .brand-gal-list a").click(function(){v=$(this).attr('href');$(v).show();$("#portfolio .brand-gal-list").hide();return false;});$("#portfolio .backlink").click(function(){$(".portfolio-entry").hide();$("#portfolio .brand-gal-list").show();return false;});$("#portfolio ul li").hover(function(){v=$(this).find('a').attr('href');v2=v.replace("#","");$('.'+v2+' span').show();},function(){$('#portfolio .brand-gal-block span').hide().attr("z-index","100");});$("#portfolio ul a").bind("click",function(){return false;});$('#news .news-latest-block a:first').addClass("selected");$('#news .item-entry:first').show();$('#news .news-latest-block a').click(function(){v=$(this).attr('href');v2=v.replace("#","");$("#news .item-entry").hide();$('#news .news-latest-block a').removeClass("selected");$(this).addClass("selected");$('#'+v2).fadeIn();return false;});$('#articles .news-latest-block a:first').addClass("selected");$('#articles .item-entry:first').show();$('#articles .news-latest-block a').click(function(){v=$(this).attr('href');v2=v.replace("#","");$("#articles .item-entry").hide();$('#articles .news-latest-block a').removeClass("selected");$(this).addClass("selected");$('#'+v2).fadeIn();return false;});$(".brand-gal-block a").hover(function(){$(this).children().show();},function(){$(this).find("span").hide();});$("#products .brand-gal-block a").click(function(){window.location.href=$(this).attr('href');});$("a.lightbox, a.popupvideo").fancybox();$('.media a').media();$("a.fframe").fancybox({zoomSpeedIn:0,zoomSpeedOut:0,frameWidth:905,frameHeight:610,nolimit:1});$('#calc-eq-rent-add a').bind("click",function(){$('.calc-eq-rent-entry:first').clone(true).insertAfter('.calc-eq-rent-entry:last');doCalc2();return false;});$('.calc-eq-rent-entry a').bind("click",function(){$(this).parent().fadeOut().remove();doCalc2();return false;});$('#calc-eq-rent select, #calc-eq-rent input').bind("change click",function(){doCalc2();});$('#formrentbutton').click(function(){$('form:first').submit();});});function doCalc2(){var total=0;var price=0;var smena=1;smena=$('input[name=smena]:checked').val();$('.calc-eq-rent-entry').each(function(){rent=parseInt($(this).find("select").val());amount=parseInt($(this).find("input").val());price+=rent*amount*smena;price=Math.round(price*100)/100;});$('#calc-rent-summary span').empty().fadeOut().append(price+" $").fadeIn();}
function doCalc(){var workHour=parseInt($("#rent-hour-work").val());var weekHour=parseInt($("#rent-hour-weekend").val());var perHour=0;var price=0;workHour=workHour>0?workHour:0;weekHour=weekHour>0?weekHour:0;if($('input[name=rent-type]:checked').val()==20){$('#calc-rent-morning .calc-rent-sectionRow').fadeTo("normal",0.5);$('#calc-rent-day .calc-rent-sectionRow').fadeTo("normal",1);perHour=parseInt($('input[name=rent-day-price]:checked').val());price=perHour*workHour+(perHour+10)*weekHour;}
else{$('#calc-rent-day .calc-rent-sectionRow').fadeTo("normal",0.5);$('#calc-rent-morning .calc-rent-sectionRow').fadeTo("normal",1);perHour=parseInt($('input[name=rent-type]:checked').val());price=perHour*workHour+(perHour+10)*weekHour;}
if($('input[name=rent-help]').is(':checked')){perHour=parseInt($('input[name=rent-help]').val());price=price+(perHour*workHour+perHour*weekHour);}
$('#calc-rent-summary span').fadeOut().empty().fadeIn().append(price+" $");}
