var d = document;
var winIE = (navigator.userAgent.indexOf("Opera")==-1 && (d.getElementById && d.documentElement.behaviorUrns)) ? true : false;
function bodySize(){
if(winIE && d.documentElement.clientWidth) {
sObj = d.getElementsByTagName("#maincontainer")[0].style;
sObj.width = (d.documentElement.clientWidth<960) ? "960px" : "100%";
}
}
function init(){
if(winIE) { bodySize(); }
}
onload = init;
if(winIE) { onresize = bodySize; }

function equalHeight(group) {
    tallest = 0;
    group.each(function() {
        thisHeight = $(this).height();
        if(thisHeight > tallest) {
        tallest = thisHeight;
        }
    });
    group.height(tallest);
}

function goReview()
{ document.reviewform.review.value=2; document.reviewform.submit(); } 


function umargin(){
var m = ($('#uslugi .wr').width())/2 - 477;
$("div.u2").css('margin-left', m+'px');
}	
$(document).ready(function(){
	Cufon.replace("h1");
	Cufon.replace("h2");
	
	equalHeight($("#uslugi .main"));
	onload = umargin;
	onresize = umargin;
});


