function redirect(){
	location.href = $('#sel_cat').attr('value');
}

function centerElement(id){
        var w = $(window);
        var elem = $(id);
        elem.css("position", "absolute");
//        elem.css("top", (w.height() - elem.height()) / 2 + w.scrollTop() + "px");
        elem.css("left", (w.width() - elem.width()) / 2 + w.scrollLeft() + "px");
        return true;
 }

function start_site(){
	$('#intro').hide();
}

function start_flash(){
//	$('#for_intro').css("margin","0 auto");;
	 centerElement('#for_intro');
}


hs.graphicsDir = '/images/graphics/';
$(document).ready(function(){
						   $('#scroller').cycle({
							fx: 'scrollHorz',
							timeout:0,
							next: '#next',
							prev: '#prev'
						 });
	//				   centerElement('#intro');

						   }
				  );

