function fn_show_page_spec(id)

{

	var _id = id.str_replace('head_page_', '');



    //if (_id != '1999') {

	    $(".hovered-header").removeClass('hovered-header');
		$('#' + id).addClass('hovered-header');
		
	//}



    $('.special-footer-content').hide();

    $('#special_footer_content_' + _id).show();



	return true;

}



function fn_hide_page_spec(id)

{

	//var _id = id.str_replace('head_page_', '');



    //$('.special-footer-content').hide();

    //$('#special_footer_content_' + _id).show();



    //$('#' + id).removeClass('hovered-header');



	return true;

}



function fn_hl_spec1(id)

{

	$('#' + id).removeClass('opacity-03');



    return true;

}



function fn_h_spec1(id)

{

	if (!$('#' + id).hasClass('displayed-layer')) {

		$('#' + id).addClass('opacity-03');

	}



    return true;

}



function fn_change_src_special1(src) {

    $('#general_special1_image').attr('src', src);



    return true;

}



function fn_change_special1_img(src, id, url, target) {

	$('.small-special-img').addClass('opacity-03');

	$('.small-special-img').removeClass('displayed-layer');

	$('#small_special1_img_' + id).removeClass('opacity-03');

	$('#small_special1_img_' + id).addClass('displayed-layer');



    $('.general-images').fadeOut('slow');



    $('#general_special1_image_' + id).fadeIn('slow');



    return true;

}



function fn_dysplay_next_special1(delay)

{

	id = $('.displayed-layer').attr('id');



    next_id = id.str_replace('small_special1_img_', '') * 1 + 1;



    if(typeof($('#small_special1_img_' + next_id).attr('id')) == 'undefined') {

    	next_id = 0;

    }



	fn_change_special1_img($('#src_small_special1_' + next_id).val(), next_id, $('#url_small_special1_' + next_id).val(), $('#target_small_special1_' + next_id).val());



    setTimeout('fn_dysplay_next_special1(' + delay + ');', delay);

}



function fn_check_filter_checkbox(id)

{

	var _id = id.str_replace('img_id_', '')



	if ($('#' + id).hasClass('checked-sp')) {

		$('#' + id).addClass('unchecked-sp');

		$('#' + id).removeClass('checked-sp');

		$('#variants_' + _id).removeAttr('checked');

    } else {

		$('#' + id).addClass('checked-sp');

		$('#' + id).removeClass('unchecked-sp');

		$('#variants_' + _id).attr('checked', 'checked').change();

    }



    return true;

}


