
// 'stacks' is the Stacks global object.
// All of the other Stacks related Javascript will 
// be attatched to it.
var stacks = {};


// this call to jQuery gives us access to the globaal
// jQuery object. 
// 'noConflict' removes the '$' variable.
// 'true' removes the 'jQuery' variable.
// removing these globals reduces conflicts with other 
// jQuery versions that might be running on this page.
stacks.jQuery = jQuery.noConflict(true);

// Javascript for stacks_in_1_page1
// ---------------------------------------------------------------------

// Each stack has its own object with its own namespace.  The name of
// that object is the same as the stack's id.
stacks.stacks_in_1_page1 = {};

// A closure is defined and assined to the stack's object.  The object
// is also passed in as 'stack' which gives you a shorthand for refering
// to this object from elsewhere.
stacks.stacks_in_1_page1 = (function(stack) {

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
/* the stuff for Audio MP3 Stack by SymfoniP - 2010 , rights are reserved */
/* Symfonip MP3 Stacks - automate code copyright 2010*/
//jQuery.noConflict();
//jQuery(document).ready(function($){
$(document).ready(function(){fn_counter=0;AudioPlayer.setup("files/symaudiomp3firstgen/player.swf",{width:150,initialvolume:63,autostart:"yes",loop:"no",bg:"E5E5E5",leftbg:"CCCCCC",lefticon:"000000",voltrack:"F2F2F2",volslider:"666666",rightbg:"B4B4B4",rightbghover:"999999",righticon:"333333",righticonhover:"FFFFFF",loader:"7A9BB8",transparentpagebg:"yes"});$('a[href^="symaudio:"]').each(function(){playList=$(this).attr("href").substr(9);playItems=playList.split(",");playLists="";for(i=0;i<playItems.length;i++){playExt=playItems[i].substr(playItems[i].length-4).toLowerCase();if(playExt!=".mp3"){null}else{if(playLists==""){playLists=playItems[i]}else{playLists=playLists+","+playItems[i]}}}$(this).html('<p id="symfonip'+fn_counter+'">Latest version of Flash required. Flash 10 is a good start!');AudioPlayer.embed("symfonip"+fn_counter++,{soundFile:playLists});$(this).removeAttr('href')});$('a[href$=mp3]:not(a[href^="symaudio:"])').each(function(){$(this).html('<p id="symfonip'+fn_counter+'">Latest version of Flash required. Flash 10 is a good start!');audioFile=$(this).attr('href').replace(new RegExp("^ *","g"),"");AudioPlayer.embed("symfonip"+fn_counter++,{soundFile:audioFile});$(this).removeAttr('href')})});
/* end of MP3 Stacks Javascript */
	return stack;
})(stacks.stacks_in_1_page1);



