//<script language='JavaScript'>

	var searchFlag = false;

	$(function()
	{
		$('#left').css({
			float: 'left',
			width: '200px',
			color: '#0F1419'
		});

		$('#left .box').css({
			marginBottom: '10px',
			background: '#e2e8ee',
			border: '1px solid #ccd6e0',
			padding: '5px'
		});

		$('#left #links').css({
			clear: 'both',
			marginTop: '10px',
			borderTop: '1px solid #ccd6e0',
			paddingTop: '5px'
		});

		///////////////////////////////////////////////////////////////////////
		// The search panel
		$('#left div#search div#fulltext input').css({
			width: '150px'
		});

		$('#left div#search div#fulltext input.submit').css({
			verticalAlign: 'top',
			width: '22px',
			height: '22px'
		});

		$('#left div#search div#fulltext input.fulltext').click(function(e){
			e.preventDefault();
			if (!searchFlag) $('#left div#search div#fulltext input').val('');
			searchFlag = true;
		});

		$('#left div#search div#fulltext input.submit').click(function(e){
			if (!searchFlag) e.preventDefault();
		});

		///////////////////////////////////////////////////////////////////////
		// The gallery and video panels.
		$('#left div.gallery').css({
			fontSize: '90%'
		});

		$('#left div.gallery h4').css({
			margin: '0 0 4px 0'
		});

		$('#left div.gallery div.list').css({
			visibility: 'hidden',
			height: '0px'
		});

		$('#left div#V').hover(
			function() {
				$('#left div#V div.list').css({
					visibility: 'visible',
					height: 'auto'
				});
			},
			function() {
				$('#left div#V div.list').css({
					visibility: 'hidden',
					height: '0px'
				});
			}
		);

		$('#left div#G').hover(
			function() {
				$('#left div#G div.list').css({
					visibility: 'visible',
					height: 'auto'
				});
			},
			function() {
				$('#left div#G div.list').css({
					visibility: 'hidden',
					height: '0px'
				});
			}
		);

		///////////////////////////////////////////////////////////////////////
		// Hyperlink rules
		$('#left a').css({
			color: '#0F1419',
			textDecoration: 'none'
		});

		$('#left a').hover(
			function() {
				$(this).css({
					color: '#3F1419',
					textDecoration:'underline'
				});
			},
			function() {
				$(this).css({
					color: '#0F1419',
					textDecoration:'none'
				});
			}
		);
	});

//</script>

