formUrl = "/form/";

onInit(function(){
	var l = jq(".top-line .wrap");
	if(l.height() < 308)
		l.css({height:l.height(),overflow:"hidden"});
	var so = new SWFObject('/flash/banner.swf', "bannerSWF", "230", "350", "8", '#ffffff');
	so.write("banner");
});

onInit(function(){
	var panels = [];
	var hs = [];
	var max = 0;
	jq(".firstp .panel").each(function(i, item){
		item = jq(item);
		panels.push(item);
		var h = item.height();
		hs.push(h);
		if(h > max)
			max = h;
	});
	for(var i = 0; i < panels.length; i++)
		if(hs[i] < max)
			panels[i].height(max);
});

onInit(function(){
	var panels = [];
	var hs = [];
	var max = 0;
	jq(".secondp .panel").each(function(i, item){
		item = jq(item);
		panels.push(item);
		var h = item.height();
		hs.push(h);
		if(h > max)
			max = h;
	});
	for(var i = 0; i < panels.length; i++)
		if(hs[i] < max)
			panels[i].height(max);
});

onInit(function(){
	jq(".news .item").each(function(i, item){
		item = jq(item);
		item.hover(function(){
			item.addClass('hover');
		}, function(){
			item.removeClass('hover');
		});
	});
});
