.id
4528
.gutitle
spf_script
.title
spf_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>

<tag.function_fcode>

<tag.function_jfield>


<!--- 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';
var extra_hide_id = 'hide\\:' + el.id;
$(el).slideUp(360);
$('##' + spacer_id).hide();
$('##' + extra_hide_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;
});

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

$(this).hover(
function() { this.mouse_is_over = 1; },
function() { this.mouse_is_over = 0; }
);

setTimeout('new_stuff()',2000);
return false;

});

$('.nice_back_btn').click(function() {
window.history.back();
return false;
});

$('.secret_hover').each(function() {

$(this).css('opacity','0');

$(this).hover(
function() {
$(this).css('opacity','1');
},
function() {
$(this).css('opacity','0');
}
);

});

$('.fcode_me').each(function() {

var _do_focus = 0;
if ( $(this).hasClass('select_this') ) {
var _do_focus = 1;
}

fcode(this,_do_focus);

});

$('.tbl_entry_field').bind('keyup blur change', function(e) {
var a = this.value;
var b = jQuery.trim(this.value.toLowerCase()).replace(/[^a-z_]/g,'').replace(/[_]+/g,'_').replace(/^_/,'');
if (a !== b) {
this.value = b;
}
});

});


function new_stuff() {
if ($('##new_stuff:first')[0].mouse_is_over == 1) {
setTimeout('new_stuff()',1500);
}
else {
var _first_link = $('##new_stuff').children('a:first')[0];
$('##new_stuff').append(_first_link);
setTimeout('new_stuff()',2700);
}
}



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);
}

}






/*

jQuery Tools 1.2.5 Tooltip - UI essentials

NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.

http://flowplayer.org/tools/tooltip/

Since: November 2008
Date: Wed Sep 22 06:02:10 2010 +0000
*/
(function(f){function p(a,b,c){var h=c.relative?a.position().top:a.offset().top,d=c.relative?a.position().left:a.offset().left,i=c.position[0];h-=b.outerHeight()-c.offset[0];d+=a.outerWidth()+c.offset[1];if(/iPad/i.test(navigator.userAgent))h-=f(window).scrollTop();var j=b.outerHeight()+a.outerHeight();if(i=="center")h+=j/2;if(i=="bottom")h+=j;i=c.position[1];a=b.outerWidth()+a.outerWidth();if(i=="center")d-=a/2;if(i=="left")d-=a;return{top:h,left:d}}function u(a,b){var c=this,h=a.add(c),d,i=0,j=
0,m=a.attr("title"),q=a.attr("data-tooltip"),r=o[b.effect],l,s=a.is(":input"),v=s&&a.is(":checkbox, :radio, select, :button, :submit"),t=a.attr("type"),k=b.events[t]||b.events[s?v?"widget":"input":"def"];if(!r)throw'Nonexistent effect "'+b.effect+'"';k=k.split(/,\s*/);if(k.length!=2)throw"Tooltip: bad events configuration for "+t;a.bind(k[0],function(e){clearTimeout(i);if(b.predelay)j=setTimeout(function(){c.show(e)},b.predelay);else c.show(e)}).bind(k[1],function(e){clearTimeout(j);if(b.delay)i=
setTimeout(function(){c.hide(e)},b.delay);else c.hide(e)});if(m&&b.cancelDefault){a.removeAttr("title");a.data("title",m)}f.extend(c,{show:function(e){if(!d){if(q)d=f(q);else if(b.tip)d=f(b.tip).eq(0);else if(m)d=f(b.layout).addClass(b.tipClass).appendTo(document.body).hide().append(m);else{d=a.next();d.length||(d=a.parent().next())}if(!d.length)throw"Cannot find tooltip for "+a;}if(c.isShown())return c;d.stop(true,true);var g=p(a,d,b);b.tip&&d.html(a.data("title"));e=e||f.Event();e.type="onBeforeShow";
h.trigger(e,[g]);if(e.isDefaultPrevented())return c;g=p(a,d,b);d.css({position:"absolute",top:g.top,left:g.left});l=true;r[0].call(c,function(){e.type="onShow";l="full";h.trigger(e)});g=b.events.tooltip.split(/,\s*/);if(!d.data("__set")){d.bind(g[0],function(){clearTimeout(i);clearTimeout(j)});g[1]&&!a.is("input:not(:checkbox, :radio), textarea")&&d.bind(g[1],function(n){n.relatedTarget!=a[0]&&a.trigger(k[1].split(" ")[0])});d.data("__set",true)}return c},hide:function(e){if(!d||!c.isShown())return c;
e=e||f.Event();e.type="onBeforeHide";h.trigger(e);if(!e.isDefaultPrevented()){l=false;o[b.effect][1].call(c,function(){e.type="onHide";h.trigger(e)});return c}},isShown:function(e){return e?l=="full":l},getConf:function(){return b},getTip:function(){return d},getTrigger:function(){return a}});f.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","),function(e,g){f.isFunction(b[g])&&f(c).bind(g,b[g]);c[g]=function(n){n&&f(c).bind(g,n);return c}})}f.tools=f.tools||{version:"1.2.5"};f.tools.tooltip=
{conf:{effect:"toggle",fadeOutSpeed:"fast",predelay:0,delay:30,opacity:1,tip:0,position:["top","center"],offset:[0,0],relative:false,cancelDefault:true,events:{def:"mouseenter,mouseleave",input:"focus,blur",widget:"focus mouseenter,blur mouseleave",tooltip:"mouseenter,mouseleave"},layout:"<div/>",tipClass:"tooltip"},addEffect:function(a,b,c){o[a]=[b,c]}};var o={toggle:[function(a){var b=this.getConf(),c=this.getTip();b=b.opacity;b<1&&c.css({opacity:b});c.show();a.call()},function(a){this.getTip().hide();
a.call()}],fade:[function(a){var b=this.getConf();this.getTip().fadeTo(b.fadeInSpeed,b.opacity,a)},function(a){this.getTip().fadeOut(this.getConf().fadeOutSpeed,a)}]};f.fn.tooltip=function(a){var b=this.data("tooltip");if(b)return b;a=f.extend(true,{},f.tools.tooltip.conf,a);if(typeof a.position=="string")a.position=a.position.split(/,?\s/);this.each(function(){b=new u(f(this),a);f(this).data("tooltip",b)});return a.api?b:this}})(jQuery);
 
.sum_double
0.00
.producttype
.productincludes
.physical_unsignedint
0
.isprotected_unsignedint
0
.overridesiteheader_unsignedint
0