// Content Scroller
// Frank A Cefalu
// Got Frag | MLG
////Ajax related settings
var csbustcachevar=0 //bust potential caching of external pages after initial Ajax request? (1=yes, 0=no)
var enabletransition=1 //enable fade into view transition effect? (1=yes, 0=no)
var csloadstatustext="
Requesting content..." //HTML to indicate Ajax page is being fetched
var csexternalfiles=[] //External .css or .js files to load to style the external content(s), if any. Separate multiple files with comma ie: ["cat.css", dog.js"]
function hover(name,action){
if(name == "leftbutton"){
if(action == "over"){
$('leftbutton').src = '/assets/shared/images/content_scroller/scrollerimage_01on.jpg';
}else{
$('leftbutton').src = '/assets/shared/images/content_scroller/scrollerimage_01.jpg';
}
}else{
if(action == "over"){
$('rightbutton').src = '/assets/shared/images/content_scroller/scrollerimage_02on.jpg';
}else{
$('rightbutton').src = '/assets/shared/images/content_scroller/scrollerimage_02.jpg';
}}}
////NO NEED TO EDIT BELOW////////////////////////
var enablepersist=false
var slidernodes=new Object() //Object array to store references to each content slider's DIV containers (
'
//pcontent+=''
paginatediv.innerHTML=pcontent
paginatediv.onclick=function(){ //cancel auto run sequence (if defined) when user clicks on pagination DIV
if (typeof window[sliderid+"timer"]!="undefined")
clearTimeout(window[sliderid+"timer"])
}
}
ContentSlider.turnpage=function(sliderid, thepage){
var paginatelinks=document.getElementById("paginate-"+sliderid).getElementsByTagName("a") //gather pagination links
for (var i=0; i