// JavaScript Document
/*TECHNOVA*/
/*var ImagePath = '/vishnuu/nicennecessary/published/SC/html/scripts/repo_themes/nice/';*/
/*ONLINE*/
var ImagePath = '/nnn/published/SC/html/scripts/repo_themes/nice/';

ddaccordion.init({
	headerclass: "expandable", //Shared CSS class name of headers group that are expandable
	contentclass: "categoryitems", //Shared CSS class name of contents group
	revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click" 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: false, //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: ["", "openheader"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
	togglehtml: ["prefix", "", ""], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
	animatespeed: "fast", //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
	}
})

//Script for text counter
function textCounter(field, countfield, maxlimit)
{
	if (field.value.length > maxlimit) // if too long...trim it!
		field.value = field.value.substring(0, maxlimit);

	// otherwise, update 'characters left' counter
	else
		countfield.value = maxlimit - field.value.length;
}

<!-- Script for mouse over effect
  if (document.images) {
    servicesbuttonup       = new Image();
    servicesbuttonup.src   = ImagePath+"images/menuServicesActive.jpg" ;
    servicesbuttondown     = new Image() ;
    servicesbuttondown.src = ImagePath+"images/menuServicesInactive.jpg" ;

    productbuttonup       = new Image();
    productbuttonup.src   = ImagePath+"images/menuProductActive.jpg" ;
    productbuttondown     = new Image() ;
    productbuttondown.src = ImagePath+"images/menuProductInactive.jpg" ;
	
	basketbuttonup       = new Image();
    basketbuttonup.src   = ImagePath+"images/menuBasketActive.jpg" ;
    basketbuttondown     = new Image() ;
    basketbuttondown.src = ImagePath+"images/menuBasketInactive.jpg" ;

    wishlistbuttonup       = new Image();
    wishlistbuttonup.src   = ImagePath+"images/menuWishListActive.jpg" ;
    wishlistbuttondown     = new Image() ;
    wishlistbuttondown.src = ImagePath+"images/menuWishListInactive.jpg" ;
	
	reviewsbuttonup       = new Image();
    reviewsbuttonup.src   = ImagePath+"images/menuReviewActive.jpg" ;
    reviewsbuttondown     = new Image() ;
    reviewsbuttondown.src = ImagePath+"images/menuReviewInactive.jpg" ;

    testimonialsbuttonup       = new Image();
    testimonialsbuttonup.src   = ImagePath+"images/menuTestimonialsActive.jpg" ;
    testimonialsbuttondown     = new Image() ;
    testimonialsbuttondown.src = ImagePath+"images/menuTestimonialsInactive.jpg" ;
    
    homebuttonup       = new Image();
    homebuttonup.src   = ImagePath+"images/menuHomeActive.jpg" ;
    homebuttondown     = new Image() ;
    homebuttondown.src = ImagePath+"images/menuHomeInactive.jpg" ;
	
 }
 function buttondown( buttonname )
 {
    if (document.images) {
      document[ buttonname ].src = eval( buttonname + "down.src" );
    }
 }
 function buttonup ( buttonname )
 {
    if (document.images) {
      document[ buttonname ].src = eval( buttonname + "up.src" );
    }
 }
 // -->