function openWin(url, w, h) {
	var props = "width=" + w + ",height=" + h + ",toolbar=no,menubar=no,personalbar=no,copyhistory=no,scrollbars=yes";
	return window.open(url, "oNewWin", props);
}

$(document).ready(
	function() {
		$('.search_text').focus(
			function() {
				if( this.value == 'keyword' ) this.value = '';
			}
		).blur(
			function() {
				if( this.value == '' ) this.value = this.defaultValue;
			}
		);

		// read more link
		$('a.read-more').click(
			function() {
				var qThis = $(this);
				var qExtra = $('.extra');
				var state = (qThis.text() == 'read more') ? 'show' : 'hide';
				var sDisplay, sText;
				
				if( state == 'show' ) {
					sDisplay = 'inline';
					sText = 'less';
				} else {
					sDisplay = 'none';
					sText = 'read more';
				}
				qExtra.css({display: sDisplay});
				qThis.text(sText);
			}
		);

	}
);