/* ######################################
Basic functions for "mandala style" tarot readings

Included by the entry & spread states of these readings

 ####################################### */
 
function about_your_deck(deckId) {
    var file = "/tarot/deck-details.php?deckID=" + deckId + "&shuffled=1";
    newWindow(file, 499, 381, 100, 100, 'help', 'no', 'yes');
}

// used by mandala & burning love
function readingHelp(spreadID, context) {
    var file = "/tarot/help.php?spreadID=" + spreadID + "&context=" + context;
    newWindow(file, 381, 381, 100, 100, 'help', 'no', 'yes');
}

// used by karma & hopefully all standard readings
function readingHelp2(stup_id, context) {
    var file = "/tarot/help_standard.php?stup_id=" + stup_id + "&context=" + context;
    newWindow(file, 381, 381, 100, 100, 'help_standard', 'no', 'yes');
}

function change_subject()
{
    document.getElementById('TF_question_hidden').value = document.getElementById('question_txt').value;
}

// image variable (shuffle_off_img) needs to be set to the correct graphic for your reading
// full url needed
function stop_shuffle()
{
    var id = document.getElementById("rshuffle");
    id.src = shuffle_off_img;
}  


function show_blowup(){
    document.getElementById('card_blowup').src = this.prototype; 
    document.getElementById('card_blowup_container').style.display = 'block';
    my_position = this.name.match(/\d+/);
    if (typeof disableBlowupBackground == 'undefined' || ! disableBlowupBackground){
      document.getElementById('card_blowup_container').style.background = 'url("http://gfx.tarot.com/images/product/en_us/' + product_id + '/backgrounds/rollovers/' + my_position + '.gif") no-repeat';
    }
}

function hide_blowup(){
    document.getElementById('card_blowup_container').style.display = 'none';
}

