function slide(obj){
    TEST_ADS = $('#adv_block > div');
    if(obj.attr("class") == "right")
    {
        $('#scroller').css("left", "812px");
        obj.removeClass("right").addClass("left");
        $('.about_head_body_item5').removeClass("left").addClass("right");
        $('.about_head_body_item10, .about_head_body_item9').hide();
        $('.about_head_body_item1, .about_head_body_item2').show();
        $('#about_content').load('about_adv.html', function(){
            $('#adv_block').html($(TEST_ADS));
            TEST_ADS = null;
        }).show();;
    }
    else
    {
        $('#scroller').css("left", "0px");
        obj.removeClass("left").addClass("right");
        $('.about_head_body_item5').removeClass("right").addClass("left");
        $('.about_head_body_item1, .about_head_body_item2').hide();
        $('.about_head_body_item10, .about_head_body_item9').show();
        $('#about_content').load('about_web.html', function(){
            if(!TEST_ADS) {
                TEST_ADS = $('#test-ads > div').clone().get(0);
                $('#adv_block').html($('#test-ads > div'));
            } else {
                $('#adv_block').html($(TEST_ADS));
            }
        }).show()
    }
}

function sc(){
	$.scrollTo('#scroller',800);
}

function showError(obj, msg){
	if($('.error').css('display') != 'block')
	{
		var html = '<div class="error" style=""><div class="error_close" onclick="closeError($(this))"></div>'
			+'<span id="error_message">'+msg+'</span></div>';
		$(document.body).append(html);
		var XY = obj.offset();
		$('.error').fadeIn('slow');	
		$('.error').css({top: XY.top-60 +'px' , left : XY.left +'px'});
		$.scrollTo('.error',800);
	}
}
function closeError(obj){
	var error = obj.parent();
	error.fadeOut('slow', function(){error.remove()});
}

//-- cone code




