ddaccordion.init({
	headerclass: "headerbar2", //Shared CSS class name of headers group
	contentclass: "submenu2", //Shared CSS class name of contents group
	revealtype: "mouseover", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
	mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
	collapseprev: true, //Collapse previous content (so only one open at any time)? true/false
	defaultexpanded: [0], //index of content(s) open by default [index1, index2, etc] [] denotes no content
	onemustopen: true, //Specify whether at least one header should be open always (so never all headers closed)
	animatedefault: false, //Should contents open by default be animated into view?
	persiststate: true, //persist state of opened contents within browser session?
	toggleclass: ["", "selected"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
	togglehtml: ["", "", ""], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
	animatespeed: "normal", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
	oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
		//do nothing
	},
	onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
		//do nothing
	}
})


//SuckerTree Horizontal Menu (Sept 14th, 06)
//By Dynamic Drive: http://www.dynamicdrive.com/style/

var menuids=["treemenu"] //Enter id(s) of SuckerTree UL menus, separated by commas

function buildsubmenus_horizontal(){
for (var i=0; i<menuids.length; i++){
  var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
    for (var t=0; t<ultags.length; t++){
		if (ultags[t].parentNode.parentNode.id==menuids[i]){ //if this is a first level submenu
			ultags[t].style.top=ultags[t].parentNode.offsetHeight+"px" //dynamically position first level submenus to be height of main menu item
			ultags[t].parentNode.getElementsByTagName("a")[0].className="mainfoldericon"
		}
		else{ //else if this is a sub level menu (ul)
		  ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px" //position menu to the right of menu item that activated it
    	ultags[t].parentNode.getElementsByTagName("a")[0].className="subfoldericon"
		}
    ultags[t].parentNode.onmouseover=function(){
    this.getElementsByTagName("ul")[0].style.visibility="visible"
    }
    ultags[t].parentNode.onmouseout=function(){
    this.getElementsByTagName("ul")[0].style.visibility="hidden"
    }
    }
  }
}

if (window.addEventListener)
window.addEventListener("load", buildsubmenus_horizontal, false)
else if (window.attachEvent)
window.attachEvent("onload", buildsubmenus_horizontal)

var win = null;
function newWindow(mypage,myname,w,h,features) {
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += features;
  win = window.open(mypage,myname,settings);
  win.window.focus();
}


$(document).ready(function(){
				//Examples of how to assign the ColorBox event to elements
				$("a[rel='example1']").colorbox();
				$("a[rel='example2']").colorbox({transition:"fade", opacity:"0.3"});
				$("a[rel='example3']").colorbox({transition:"none", width:"75%", height:"75%"});
				$("a[rel='example4']").colorbox({slideshow:true});
				$(".example5").colorbox();
				$(".example6").colorbox({iframe:true, innerWidth:876, innerHeight:600});
				$(".coupon").colorbox({iframe:true, innerWidth:595, innerHeight:365});
				$(".example8").colorbox({iframe:true, innerWidth:856, innerHeight:430});
				$(".example9").colorbox({iframe:true, innerWidth:870, innerHeight:500});
				$(".youtube").colorbox({iframe:true, innerWidth:425, innerHeight:344});
				$(".coupon").colorbox({iframe:true, innerWidth:950, innerHeight:805});
				$(".youtube2").colorbox({iframe:true, innerWidth:576, innerHeight:344});
				$(".video").colorbox({iframe:true, innerWidth:440, innerHeight:405});
				$(".map").colorbox({iframe:true, innerWidth:460, innerHeight:375});
				$(".example7").colorbox({width:"80%", height:"80%", iframe:true});
				$(".monthlyspecialpopup").colorbox({inline:true, href:"#monthlyspecialhtml"});
				$(".holidayspecialpopup1").colorbox({inline:true, href:"#holidayspecialhtml1"});
				$(".holidayspecialpopup2").colorbox({inline:true, href:"#holidayspecialhtml2"});
				$(".holidayspecialpopup3").colorbox({inline:true, href:"#holidayspecialhtml3"});
				$(".holidayspecialpopup4").colorbox({inline:true, href:"#holidayspecialhtml4"});
				$(".holidayspecialpopup5").colorbox({inline:true, href:"#holidayspecialhtml5"});
				$(".gtexpresspopup").colorbox({inline:true, href:"#gtexpresshtml"});
				$(".example12").colorbox({inline:true, innerWidth:820, innerHeight:715, href:"#inline_example3"});
				 $(".example6er").colorbox({iframe:true, innerWidth:576, innerHeight:364});    
				$(".example9b").colorbox({
					onOpen:function(){ alert('onOpen: colorbox is about to open'); },
					onLoad:function(){ alert('onLoad: colorbox has started to load the targeted content'); },
					onComplete:function(){ alert('onComplete: colorbox has displayed the loaded content'); },
					onCleanup:function(){ alert('onCleanup: colorbox has begun the close process'); },
					onClosed:function(){ alert('onClosed: colorbox has completely closed'); }
				});
				
				//Example of preserving a JavaScript event for inline calls.
				$("#click").click(function(){ 
					$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
					return false;
				});
			});



animatedcollapse.addDiv('faq1', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq2', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq3', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq4', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq5', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq6', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq7', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq8', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq9', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq10', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq11', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq12', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq13', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq14', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq15', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq16', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq17', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq18', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq19', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq20', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq21', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq22', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq22', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq23', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq24', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq25', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq26', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq27', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq28', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq29', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq30', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq31', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq32', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq33', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq34', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq35', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq36', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq37', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq38', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq39', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq40', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq41', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq42', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq43', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq44', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq45', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq46', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq47', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq48', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('faq49', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('intro1', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('intro2', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('intro3', 'fade=1,speed=400,group=faq,hide=1')
animatedcollapse.addDiv('intro4', 'fade=1,speed=400,group=faq,hide=1')




animatedcollapse.ontoggle=function($, divobj, state){ //fires each time a DIV is expanded/contracted
	//$: Access to jQuery
	//divobj: DOM reference to DIV being expanded/ collapsed. Use "divobj.id" to get its ID
	//state: "block" or "none", depending on state
}

animatedcollapse.init()



