function form(action, method, target, submit)
{
	if ('undefined' == typeof(method)) {
		method = 'post';
	}
	var targ = '';
	if (false != target && 'undefined' != typeof(target)) {
		targ = ' target="' + target + '"';
	}
	var subm = '';
	if ('undefined' != typeof(submit)) {
		subm = ' onsubmit="'+submit+'" '
	}
	document.write('<form method="'+method+'" action="'+action+'" '+targ+' '+subm+' enctype="multipart/form-data">');
	return;
}

$(document).ready(function() {
	$('a[rel="group"]').fancybox();

	if ($('#menul').length) {
	var h1 = $('#content').height();
	/*
	var h2 = $('#menul').height();
	var h3 = $('rgt-bg').height();
	var h = (h1 > h2? h1 : h2);
	h = h > h3? h : h3;
	*/
	var margR = 3;
	if ($.browser.opera) {
		margR = 3;
	} else if($.browser.msie) {
		if (-1 != navigator.userAgent.indexOf('MSIE 7')) {
			margR = 19;
		} else if (-1 != navigator.userAgent.indexOf('MSIE 8')) {
			margR = 3;
		} else {
			margR = 32;
		}
	}
		var h = h1 > 500? h1 : 500;
		$('#menul .bg').css('height', (h-30)+'px');
		$('#rgt-bg').css('height', (h-31 + margR)+'px');

		$('#menul .title').corner('5px top');
		//$('#menul').corner('5px');
		//$('#menul .bg').corner('5px bottom cc:#fdfcef sc:#fdfcef');
		//$('#menul .bot').corner('5px bottom cc:#000');
		//$('#menul .bg').corner('5px bottom cc:#cfb88e');
	}
	//$('#header .news div').corner("round 5px").parent().css('padding', '1px').corner("round 5px");
	if (-1 == navigator.userAgent.indexOf('MSIE 6')) {
		$('#header .news').mouseover(function() {
			$(this).addClass('newsHover');
		}).mouseout(function() {
			$(this).removeClass('newsHover');
		});
	}
	$('.lang div', '#header').corner('5px');

	$('#header .ico').corner('5px');
	$('#header .menu a').corner('5px');
	$('#rgt').corner('5px');
	$('#rgt-bg').corner('5px');

	var lft = $('#lft');
	$('.panorama', lft).corner('5px top');
	//$('.panorama .bot', lft).corner('5px bottom');
	$('.panorama', lft).corner('5px bottom');
	$('.panorama .red .t', lft).corner('sharp br 12px cc:#cfb88e');
	$('.panorama .red .b', lft).corner('sharp tr 12px cc:#cfb88e');

	//$('.panorama .red .b', lft).corner('sharp br 12px cc:#cfb88e');
	//$('.panorama2 .red .b', lft).corner('sharp tr 12px cc:#cfb88e');
	$('.panorama2 .bot .b', lft).uncorner();
	$('.panorama2 .bot .b', lft).corner('sharp tr 12px cc:#b89865');
$('.bot .red .t', lft).corner('sharp br 12px cc:#b89865');

	//$('.bot .red .t', lft).corner('sharp br 12px cc:#fff');

	var rest = $('#restaraunt');
	$('.title', rest).corner('5px top');
	$('.bot', rest).corner('5px bottom');
	//$('.bot .mark .t', rest).corner('sharp br 12px cc:#ffeac4');
	$('.bot .mark .t', rest).corner('sharp br 12px cc:#fff');
	$('.bot .mark .b', rest).corner('sharp tr 12px cc:#cfb88e');

	var events = $('#events');
	$('.title', events).corner('5px top');
	$('.bot', events).corner('5px bottom');
	$('.bot .mark .t', events).corner('sharp br 12px cc:#e3faee');
	$('.bot .mark .b', events).corner('sharp tr 12px cc:#badcca');

	var blue = $('#blue');
	$('.title', blue).corner('5px top');
	$('.bot', blue).corner('5px bottom');
	$('.bot .mark .t', blue).corner('sharp br 12px cc:#f1fbff');
	$('.bot .mark .b', blue).corner('sharp tr 12px cc:#bdecff');

	var blue = $('#rest');
	$('.title', blue).corner('5px top');
	$('.bot', blue).corner('5px bottom');
	$('.bot .mark .t', blue).corner('sharp br 12px cc:#ffeac4');
	$('.bot .mark .b', blue).corner('sharp tr 12px cc:#cfb88e');


	$('#footer').corner('5px');
});

