var currentQuestion;

function init()
{
 if(location.href.lastIndexOf("&id=") == -1)
 {
  currentQuestion = "default";
 } 
 else
 {
  var _l = location.href.substring(location.href.lastIndexOf("&id=")+4);
  if(_l.indexOf("&") >= 0){
   _l = _l.substring(0,_l.indexOf("&"));
  }
  currentQuestion = _l;
 }
 view_question(currentQuestion);
}

function show_question(_link)
{
  var _l = _link.substring(_link.lastIndexOf("&id=")+4);
  if(_l.indexOf("&") >= 0){
   _l = _l.substring(0,_l.indexOf("&"));
  }
 view_question(_l);
}

function hide_question()
{
 view_question(currentQuestion);
}

function view_question(_which)
{ 
 var _img = document.images["bannerQuestion"];
 switch(_which){
  case "46":
   _img.src = "images/question-et.jpg";
   break;
  case "47":
   _img.src = "images/question-s.jpg";
   break;
  case "44":
   _img.src = "images/question-e.jpg";
   break;
  case "48":
   _img.src = "images/question-rl.jpg";
   break;
  case "49":
   _img.src = "images/question-faq.jpg"; 
   break;
  case "50":
   _img.src = "images/question-s.jpg";
   break;
  case "51":
   _img.src = "images/question-s.jpg";
   break;
  case "52":
   _img.src = "images/question-s.jpg";
   break;
  case "57":
   _img.src = "images/question-et.jpg";
   break;
  case "59":
   _img.src = "images/question-e.jpg";
   break;
  default:
   _img.src = "images/question.jpg";
   break;
 }
}

if(window.attachEvent){
 window.attachEvent("onload",init);
} else if(document.addEventListener || window.addEventListener){
 if(document.addEventListener){
  document.addEventListener("load",init,false);
 }
 if(window.addEventListener){
  window.addEventListener("load",init,false);
 }
} else {
 if(typeof window.onload=="function"){
  var fOld=window.onload;
  window.onload=function(){fOld();init();};
 } else {
  window.onload=init;
 }
}
