// JavaScript Document
var total=1;
var faqSelected = '';
flag = false;
function wipe(id) {
    if(faqSelected==id) {
        wipeOutOne(id);
        faqSelected = '';
    } else {
        for(i=1; i<=total; i++) {
            faq = 'faq'+i;
            if(faq!=id) {
                wipeOutOne(faq);
            }
        }
        wipeInOne(id);
        faqSelected = id;
    }
}

function wipeDiv(id) {
    if(flag){
        wipeOutOne(id);
        flag = false;
    } else {
        wipeInOne(id);
        flag = true;
    }
}

function wipeInOne(id){
  dojo.fx.wipeIn({
    node: id,
    duration: 300
  }).play();
}

function wipeOutOne(id){
  dojo.fx.wipeOut({
    node: id,
    duration: 300
  }).play();
}