﻿// JScript File

ddaccordion.init({
	headerclass: "technology", //Shared CSS class name of headers group
	contentclass: "thelanguage", //Shared CSS class name of contents group
	revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click" or "mouseover"
	collapseprev: true, //Collapse previous content (so only one open at any time)? true/false 
	onemustopen: true,
	defaultexpanded: [0], //index of content(s) open by default [index1, index2, etc]. [] denotes no content.
	animatedefault: false, //Should contents open by default be animated into view?
	persiststate: true, //persist state of opened contents within browser session?
	toggleclass: ["closedlanguage", "openlanguage"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
	togglehtml: ["prefix", "' /> ", ""], 
	animatespeed: "fast", //speed of animation: "fast", "normal", or "slow"
	oninit:function(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
	}
})


//For global indicators

ddaccordion.init({
    headerclass:"technology1",
    contentclass:"thelanguage1",
    revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click" or "mouseover"
	collapseprev: true, //Collapse previous content (so only one open at any time)? true/false 
	onemustopen: true,
	defaultexpanded: [0], //index of content(s) open by default [index1, index2, etc]. [] denotes no content.
	animatedefault: false, //Should contents open by default be animated into view?
	persiststate:true, //persist state of opened contents within browser session?
	toggleclass: ["closedlanguage", "openlanguage"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
	togglehtml: ["prefix", "<img src='images/green_minus.jpg' /> ", "<img src='images/green_plus.jpg' /> "], 
	animatespeed: "fast", //speed of animation: "fast", "normal", or "slow"
	oninit:function(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
	}
})

//For Sensex-Details

ddaccordion.init({
    headerclass:"sensex_header",
    contentclass:"sensex_details",
     revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click" or "mouseover"
	collapseprev:true, //Collapse previous content (so only one open at any time)? true/false 
	onemustopen: true,
	defaultexpanded: [0], //index of content(s) open by default [index1, index2, etc]. [] denotes no content.
	animatedefault: true, //Should contents open by default be animated into view?
	persiststate:true, //persist state of opened contents within browser session?
	toggleclass: ["closedlanguage", "openlanguage"], 
	togglehtml: ["prefix", "<img src='images/green_minus.jpg' /> ", "<img src='images/green_plus.jpg'  /> "], 
	animatespeed: "fast", //speed of animation: "fast", "normal", or "slow"
	oninit:function(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
	}
})

//For Market-News-details

ddaccordion.init({
    headerclass:"market_header",
    contentclass:"market_details",
    revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click" or "mouseover"
	collapseprev: true, //Collapse previous content (so only one open at any time)? true/false 
	onemustopen: true,
	defaultexpanded: [0], //index of content(s) open by default [index1, index2, etc]. [] denotes no content.
	animatedefault: false, //Should contents open by default be animated into view?
	persiststate:true, //persist state of opened contents within browser session?
	toggleclass: ["closedlanguage", "openlanguage"],
	togglehtml: ["prefix", "<img src='images/green_minus.jpg' /> ", "<img src='images/green_plus.jpg' /> "], 
	animatespeed: "fast", //speed of animation: "fast", "normal", or "slow"
	oninit:function(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
	}
})
//for charts

ddaccordion.init({
    headerclass:"nifty_header",
    contentclass:"nifty_details",
    revealtype: "click", 
	collapseprev:true, //Collapse previous content (so only one open at any time)? true/false 
	onemustopen: true,
	defaultexpanded: [0], 
	animatedefault: false, //Should contents open by default be animated into view?
	persiststate:true, //persist state of opened contents within browser session?
	toggleclass: ["closedlanguage", "openlanguage"], 
	togglehtml: ["prefix", "<img src='images/green_minus.jpg' /> ", "<img src='images/green_plus.jpg'  /> "], 
	animatespeed: "fast", //speed of animation: "fast", "normal", or "slow"
	oninit:function(expandedindices){ //custom code to run when headers have initalized
		//do nothing
	},
	onopenclose:function(header, index, state, isuseractivated){ 
	}
})