function galerie_scout_over(id){
    id = id.replace("galerie_scout_", "");
    document.getElementById(id).className="galerie_scout_hover";
    document.getElementById("galerie_scout_"+id).style.display="block";
}
function galerie_scout_out(id){
    id = id.replace("galerie_scout_", "");
    document.getElementById(id).className="galerie_scout";
    document.getElementById("galerie_scout_"+id).style.display="none";
}
function star_over(id) {
	/**/
	for (i = 1; i <= id; i++) {
		document.getElementById('star' + i).src = "/images/scouts/screenshots/star" + i + "_o.png";
	}
}

function star_out() {
	for (i = 1; i < 6; i++) {
		document.getElementById('star' +i ).src = "/images/scouts/screenshots/star" + i + ".png";
	}
}


function faq_start(){
    var elements = document.getElementById('main_faq').getElementsByTagName('span').length;
    if(document.URL.indexOf("?faq") > -1)
       {
          var aPosition = document.URL.indexOf("?faq");  
          var show = document.URL.substr(aPosition, 7); 
              show = show.replace(/\?faq/g, "");
              if(show <= elements)
                 {
                     document.getElementById('div_e'+show).style.display="block";
                     document.getElementById('span_e'+show).className = 'main_faq_element_open';
                 }
                 else {
                     document.getElementById('div_e1').style.display="block";
                     document.getElementById('span_e1').className = 'main_faq_element_open';
                 }
       } else {
           document.getElementById('div_e1').style.display="block";
           document.getElementById('span_e1').className = 'main_faq_element_open';
       }
}


function faq_show(id){
    var elements = document.getElementById('main_faq').getElementsByTagName('span').length;
    if(document.getElementById('div_e'+id).style.display == 'block') {
        document.getElementById('div_e'+id).style.display = 'none';
        document.getElementById('span_e'+id).className = 'main_faq_element_close';
    } else {
        document.getElementById('div_e'+id).style.display = 'block';
        document.getElementById('span_e'+id).className = 'main_faq_element_open';
    }
}
