
/* popup script */
function PopupCenter(pageURL, title,w,h) {
var left = (screen.width/2)-(w/2);
var top = (screen.height/2)-(h/2);
var targetWin = window.open (pageURL, title, 'toolbar=no, location=yes, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
}
/* popup script */
/* popup script */
function PopupCenter2(pageURL, title,w,h) {
var left = (screen.width/2)-(w/2);
var top = (screen.height/2)-(h/2);
var targetWin = window.open (pageURL, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
}
/* popup script */

/* show and hide function */
function showhide(showid, hideid){
	document.getElementById(showid).style.display = "table-row";
	document.getElementById(hideid).style.display = "none";
    }
/* show and hide function */

/*Case studies page added on 6th dec 2010 */
			function callJSFilter(selElement){
				var value = selElement.options[selElement.selectedIndex].value;
				var rootNode = YAHOO.util.Dom.get('rootNode');
				var allLis = YAHOO.util.Dom.getChildren(rootNode);
				YAHOO.util.Dom.addClass(allLis, 'hidden')
				var toShowLis = YAHOO.util.Dom.getElementsByClassName(value, 'li',rootNode)
				YAHOO.util.Dom.removeClass(rootNode, 'hidden')
				YAHOO.util.Dom.removeClass(toShowLis, 'hidden')
			}
			function onLoadFilter(){
					var selElement = YAHOO.util.Dom.get('optionlist');
					callJSFilter(selElement)
			}
			YAHOO.util.Event.onDOMReady(onLoadFilter);
/* Case studies*/

