This will solve your problem witha simple and elegant case statement to properly trigger the pieces of code in a cascading fashion:
$(document).ready(function() {
var cookieRCCS = (+$.cookie('shownDialog')) + 1;
$.cookie('shownDialog', cookieRCCS,{expires: 7});
console.log(cookieRCCS);
switch (cookieRCCS) {
case 1:
console.log("1st if statement " + cookieRCCS);
$("#hellopanel1").show();
break;
case 2:
console.log("2nd if statement " + cookieRCCS);
$("#hellopanel2").show();
break;
case 3:
console.log("3rd if statement " + cookieRCCS);
$("#hellopanel3").show();
break;
default:
console.log("4th+ Time Here");
}
});