function resizeblock() {
	offset = '20';
	var param  = document.getElementById('maincontent').clientHeight;
	document.getElementById('right-column').style.height = param+5+'px';
	if(document.getElementById('welcome').length > 0)
		document.getElementById('welcome').style.marginTop = 40+'px';
}
		
function differ() {
	main  = document.getElementById('maincontent').clientHeight;
	right = document.getElementById('right-column').clientHeight;
	diff = main - right;
		
	return diff;
}

$(function(){	
	if ($.client.os == 'Mac')
	{
	    if($.browser.safari)
	    {
		$('input.search-button').css('marginTop','30px');
		$('#right-column').css({backgroundPosition:'0 10px',paddingTop:'20px',marginTop:'10px'});
	    }
	}

	$('.item > a').toggle(
      		function(){
      			$(this).parent().css('list-style-image','url('+path+'icon_minus.png)')
    			$(this).next('ul').slideToggle(100);
 		},
      		function(){
      			$(this).parent().css('list-style-image','url('+path+'icon_plus.png)')
			$(this).next('ul').slideToggle(100);
      		}
      	)
      		
      	buf = '';
      		
      	$('#right-column').find('.halfbox').focus(function(){
      		buf = $(this).attr('value');
     		$(this).attr('value','');
      	}).blur(function(){
      		if ($(this).attr('value') == '')
     			$(this).attr('value', buf);
    	});
		
	$('.intro_text ul li:last').css({marginTop:'25px','list-style':'none','line-height':'24px','font-size':'24px','font-family': 'Palatino Linotype'})	

	$('select.select').selectmenu({style:'dropdown',maxHeight: 150});
});

