$('.about').corner('top 5px');
$(document).ready(function(){
	$('#menu > li').hover(
		function () {
			var $this = $(this);
			$('a',$this).stop(true,true).animate({
				'bottom':'-20px'
			}, 300);
		$('img',$this).stop(true,true).animate({
			'top':'-10px'
		}, 400);
	},
	function () {
		var $this = $(this);
		$('a',$this).stop(true,true).animate({
			'bottom':'-95px'
			}, 300);
			$('img',$this).stop(true,true).animate({
			'top':'50px'
			}, 400);
		}
	);
	//������ ������
	$('.content').each(function(){
		var text = $(this).html();
		//text = text.replace(/^((http:\/\/)+[\w\/\-%&#=.,:;?+$]+)/ig, " <a href='$1' target='_blank'>$1</a>");
		text = text.replace(/([^\"\'\=\(])((http:\/\/)+[\w\/\-%&#=.,:;?+$]+)/ig, "$1 <a href='$2' target='_blank'>$2</a>");
		//text = text.replace(/[\s\^\>]((www)[\w\/\-%&#=.,:;?+$]+)/ig, " <a href='http://$1' target='_blank'>$1</a>");
		//text = text.replace(/([\w.-]+@[\w.-]+\.\w+)/g, "<a href='mailto:$1'>$1</a>");
		$(this).html(text);
	});
});


hs.graphicsDir = '/templates/highslide/graphics/';
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.outlineType = 'rounded-white';
hs.fadeInOut = true;
hs.showCredits = false;
hs.headingEval = 'this.thumb.alt';
hs.useBox = true;
hs.width = 640;
hs.height = 600;
//hs.captionEval = 'this.a.title';
//hs.dimmingOpacity = 0.75;
// Add the controlbar
hs.addSlideshow({
	//slideshowGroup: 'group1',
	interval: 5000,
	repeat: false,
	useControls: true,
	fixedControls: 'fit',
	overlayOptions: {
		opacity: 0.75,
		position: 'bottom center',
		hideOnMouseOut: true
	}
});


