/**
 * @author lyykfi
**/
 
var IE6 = false /*@cc_on || @_jscript_version < 5.7 @*/;
var IE7 = false /*@cc_on || @_jscript_version == 5.7 @*/;
var gteIE7 = false /*@cc_on || @_jscript_version >= 5.7 @*/;
var isMSIE = /*@cc_on!@*/false;

Cufon.replace('#title1', { fontFamily: 'Ariac' });
Cufon.replace('#topnav ul li a', { fontFamily: 'Ariac' });

jQuery.preloadImages = function() {
  for(var i = 0; i<arguments.length; i++) {
    jQuery("<img>").attr("src", arguments[i]);
  }
}

if(IE6) {
	 DD_belatedPNG.fix('.png');
}

function fixHeight() {
	$("#img10").height($("#wrapper").height());
	$("#burov").css("top",$("#wrapper").height()-50);
}

function fixHeight2() {
	$("#content3 .content3_4").height($("#content3 .content").height()-355);
	$("#content3 .content3_5").height($("#content3 .content").height()-355);
	$("#content3 .content3_6").height($("#content3 .content").height()-355);
}


$(function (){  
    fixHeight2();
    fixHeight2();
    
    if(!IE6) {
    	fixHeight();
    	fixHeight();
    }
    
    $(window).resize(
    	function(){
    		fixHeight2();
    		fixHeight2();
    		
    		if(!IE6) {
				fixHeight();
				fixHeight();
			}
    	}
    );
});


