// cr 15.09.09 --> new layout
var i_blink_started = 0;
function blink_customer_info(){
    if (i_blink_started == 0) {
        blink_customer_info_show();
        i_blink_started = 1;
    }
}

function blink_restart(){
	var i_line_blink = 0;
	blink_customer_info_show();
}

var i_line_blink = 0;

function blink_customer_info_show(){
	
    var s_index_line = "c_" + i_line_blink;
	var s_index_line_highlights = "h_" + i_line_blink;
	
	if(document.getElementById(s_index_line_highlights)) {
		document.getElementById(s_index_line_highlights).style.visibility = "visible";
	}
	
	
	if(document.getElementById(s_index_line)) {
    document.getElementById(s_index_line).style.visibility = "visible";
	//document.getElementById(s_index_line_highlights).style.visibility = "visible";
    i_line_blink++;
    window.setTimeout("blink_customer_info_show()", 50);
	}
	else {
		i_line_blink = 1;
		blink_customer_info_show_2();
	}
}

function blink_customer_info_show_2(){
    var s_index_line = "c_" + i_line_blink;
	
	if(document.getElementById(s_index_line)) {
	blink_unset_all();
    document.getElementById(s_index_line).style.backgroundColor = "#C06536";
    i_line_blink++;
    window.setTimeout("blink_customer_info_show_2()", 2000);
	}
	else {
	i_line_blink = 1;
	blink_highlights_show_2();	
	}
}

function blink_highlights_show_2(){
	var s_index_line_highlights = "h_" + i_line_blink;
	
	if(document.getElementById(s_index_line_highlights)) {
	blink_unset_all();
    document.getElementById(s_index_line_highlights).style.backgroundColor = "#C06536";
    i_line_blink++;
    window.setTimeout("blink_highlights_show_2()", 2000);
	}
	else {
		blink_restart();
	}
}

function blink_unset_all(){
	document.getElementById('c_1').style.backgroundColor = "#000000";
	document.getElementById('c_2').style.backgroundColor = "#000000";
	document.getElementById('c_3').style.backgroundColor = "#000000";
	document.getElementById('c_4').style.backgroundColor = "#000000";
	document.getElementById('c_5').style.backgroundColor = "#000000";
	document.getElementById('c_6').style.backgroundColor = "#000000";
	document.getElementById('c_7').style.backgroundColor = "#000000";
	document.getElementById('c_8').style.backgroundColor = "#000000";
	document.getElementById('c_9').style.backgroundColor = "#000000";
	document.getElementById('c_10').style.backgroundColor = "#000000";
	document.getElementById('c_11').style.backgroundColor = "#000000";
	document.getElementById('c_12').style.backgroundColor = "#000000";
	document.getElementById('h_1').style.backgroundColor = "#121212";
	document.getElementById('h_2').style.backgroundColor = "#121212";
	document.getElementById('h_3').style.backgroundColor = "#121212";
	document.getElementById('h_4').style.backgroundColor = "#121212";
	document.getElementById('h_5').style.backgroundColor = "#121212";
	document.getElementById('h_6').style.backgroundColor = "#121212";
	document.getElementById('h_7').style.backgroundColor = "#121212";
	document.getElementById('h_8').style.backgroundColor = "#121212";
	document.getElementById('h_9').style.backgroundColor = "#121212";
	document.getElementById('h_10').style.backgroundColor = "#121212";
}

