.id
4651
.gutitle
songnite_script
.title
songnite_script
.file
.extension
.name
|/routinetype-script|
.user_id
7
.notes
.body
<!--- optionally, include js headers --->
<if isdefined("att.headers") AND att.headers EQ 1>
<tag.js_headers expires="90">
</if>


<tag.function_jquery>

<tag.function_flowplayer>


<!--- output javascript statements --->
$(document).ready(function() {

$('.select_this:last').select();


human_test_trigger();
$('.human_test_trigger').bind('keyup change', function() {
human_test_trigger();
});


$('##media_player_audio').each(function() {

var _autoplay = true;
if ($(this).hasClass('no_autoplay')) {
var _autoplay = false;
}

var Obj = {
// fullscreen button not needed here
plugins: {
controls: {
fullscreen: false,
height: 30,
autoHide: false
}
},

clip: {
autoPlay: _autoplay
}
}

flowplayer("media_player_audio","http://#this_domain#/fp.3.2.5/flowplayer-3.2.5.swf", Obj);

});

$('##media_player_video').each(function() {

var _autoplay = true;
if ($(this).hasClass('no_autoplay')) {
var _autoplay = false;
}

var Obj = {
clip: {
autoPlay: _autoplay
}
}

flowplayer("media_player_video","http://#this_domain#/fp.3.2.5/flowplayer-3.2.5.swf", Obj);

});



$('.tune_lyrics_link').click(function() {

var _html = $(this).siblings('.tune_lyrics:first').html();

$(document.body).append('<div id="lyrics_container" align="center" style="position:fixed; width:100%; height:100%; left:0px; top:0px; z-index:1000;">\
<!--- fg ---><div align="left" style="position:relative; height:80%; z-index:2; margin:2em; width:500px; padding:7px; background:white; border-radius:7px;"><div style="height:98%; overflow:auto;" id="lyrics">' + _html + '</div><!--- close ---><div style="position:absolute; right:27px; top:7px; font-size:1.5em; z-index:2; color:##555;">(<a href="##" onclick="$(\'##lyrics_container\').remove(); return false;" style="color:red; font-weight:bold;">Close</a>)</div></div>\
<!--- bg ---><div style="position:absolute; width:100%; height:100%; left:0px; top:0px; z-index:1; background:black; opacity:0.5; filter:alpha(opacity=50);"></div>\
</div>');

$('##lyrics').focus();

return false;

});
$('.tune_bandnotes_link').click(function() {

var _html = $(this).siblings('.tune_bandnotes:first').html();

$(document.body).append('<div id="bandnotes_container" align="center" style="position:fixed; width:100%; height:100%; left:0px; top:0px; z-index:1000;">\
<!--- fg ---><div align="left" style="position:relative; height:80%; z-index:2; margin:2em; width:500px; padding:7px; background:white; border-radius:7px;"><div style="height:98%; overflow:auto;" id="lyrics">' + _html + '</div><!--- close ---><div style="position:absolute; right:27px; top:7px; font-size:1.5em; z-index:2; color:##555;">(<a href="##" onclick="$(\'##bandnotes_container\').remove(); return false;" style="color:red; font-weight:bold;">Close</a>)</div></div>\
<!--- bg ---><div style="position:absolute; width:100%; height:100%; left:0px; top:0px; z-index:1; background:navy; opacity:0.5; filter:alpha(opacity=50);"></div>\
</div>');

$('##lyrics').focus();

return false;

});

$('.gsearchform').submit(function() {

var _url = 'http://google.com/##q=';

var _str = '';
$(this).find('input.google_q').each(function() {
_str = _str + ' ' + encodeURIComponent($(this).val());
});

var _str = jQuery.trim(_str);
var _url = _url + _str;

window.open(_url);

return false;

});

$('.binded_to_a').change(function() {

$('.binded_to_a').val($(this).val());

});

$('.voicemail').hover(

function() {
$(this).find('.voicemail_body').slideDown(120);
},
function() {
$(this).find('.voicemail_body').slideUp(120);
}

);


$('.delete_link').click(function() {
// each delete link is within a parent container called "otype-idnum"; the delete link itself should be called "delete:otype-idnum".
var pElId = this.id.replace('delete:','');
var c = confirm('Really delete? There is no undo.');
if (c == true) {
var _s = pElId.split('-');
var otype = _s[0];
var idnum = _s[1];
$.post('http://' + document.domain + '/?&siteformat=xml&elId=' + pElId, {'1_posttype':'delete','1_orb':otype,'1_where':otype + '.id = ' + idnum}, function(data) {
var _s = this.url.split('=');
var el = document.getElementById(_s[_s.length-1]);
var spacer_id = el.id + '-spacer';
$(el).slideUp(360);
$('##' + spacer_id).hide();
// how many records now match?
var _n = document.getElementById('num_records');
if (_n !== null) {
var num_records = $(_n).html();
var num_records = num_records - 1;
if (num_records == 1) {
var _txt = "Result";
}
else {
var _txt = "Results";
}
$(_n).html(num_records);
$('##records_match').html(_txt);
}
});
}
return false;
});

});



var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-19442168-2']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();



function human_test_trigger() {

ALL_HUMAN_TEST_TRIGGER = 0;
$('.human_test_trigger').each(function() {
if ( $(this).val() !== '' ) {
ALL_HUMAN_TEST_TRIGGER = ALL_HUMAN_TEST_TRIGGER + 1;
}
});

if (ALL_HUMAN_TEST_TRIGGER == 3) {
$('##human_test').fadeIn(360);
}
else {
$('##human_test').fadeOut(360);
}

}
 
.sum_double
0.00
.producttype
.productincludes
.physical_unsignedint
0
.isprotected_unsignedint
0
.overridesiteheader_unsignedint
0