﻿function showHideDiv(clkObj) {
	var cObj = document.getElementById(clkObj.id);
	var eid = document.getElementById(clkObj.id).getAttribute('eid');
	var eObj = document.getElementById(eid);
	var action = 'col';
	if(eObj.style.display == 'none') {
		action = 'exp';
		eObj.style.display = 'block';
	    set_arrow(cObj, action);
	} else { 
		eObj.style.display = 'none';
	    set_arrow(cObj, action);
	}
}


function set_arrow(clkdObj, action) {
	if(action == 'exp') {
		clkdObj.className = 'faq_exp_blue';
		} else { clkdObj.className = 'faq_col_blue';
	}
}


function check_query() {
    var sub_id = window.location.search.substring(1);
    if(sub_id != '') {
        var subObj = document.getElementById(sub_id);
        subObj.style.display = 'block';
        var txtObj = document.getElementById(subObj.eid);
        txtObj.style.display = 'block';
        window.location.hash = sub_id;
        window.location.refresh();
    }else{return false;}
}
