<!--- 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();
$('##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);
});
$('##new_stuff').each(function() {
$(this).hover(
function() { this.mouse_is_over = 1; },
function() { this.mouse_is_over = 0; }
);
setTimeout('new_stuff()',2000);
return false;
});
});
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-4']);
_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);
})();