function mainmenu(){/* jQuery(document).ready(function(){jQuery(".accordion h3:first").addClass("active");jQuery(".accordion p:not(:first)").hide();jQuery(".accordion h3").click(function(){jQuery(this).next("p").slideDown("slow").siblings("p:visible").slideUp("slow");jQuery(this).toggleClass("active");jQuery(this).siblings("h3").removeClass("active");});}); */jQuery(document).ready(/*This function gets loaded when all the HTML, not including the portlets, isloaded.*/function() {});Liferay.Portlet.ready(/*This function gets loaded after each and every portlet on the page.portletId: the current portlet's idjQueryObj: the jQuery wrapped object of the current portlet*/function(portletId, jQueryObj) {});jQuery(document).last(/*This function gets loaded when everything, including the portlets, is onthe page.*/function() {});function mainmenu(){jQuery(" #nav li").hover(function(){jQuery(this).find('ul:first').css({visibility: "visible",display: "none"}).fadeIn(300);},function(){jQuery(this).find('ul:first').fadeOut(300);});} jQuery(document).ready(function(){					mainmenu();});jQuery(document).ready(function() {jQuery('.eco-dev').append('<span class="hover"></span>').each(function () {  var $span = jQuery('> span.hover', this).css('opacity', 0);  jQuery(this).hover(function () {    $span.stop().fadeTo(500, 1);  }, function () {    $span.stop().fadeTo(500, 0);  });});});jQuery(document).ready(function() {jQuery('.eco-data').append('<span class="hover"></span>').each(function () {  var $span = jQuery('> span.hover', this).css('opacity', 0);  jQuery(this).hover(function () {    $span.stop().fadeTo(500, 1);  }, function () {    $span.stop().fadeTo(500, 0);  });});});jQuery(document).ready(function() {jQuery('.eco-research').append('<span class="hover"></span>').each(function () {  var $span = jQuery('> span.hover', this).css('opacity', 0);  jQuery(this).hover(function () {    $span.stop().fadeTo(500, 1);  }, function () {    $span.stop().fadeTo(500, 0);  });});});jQuery(document).ready(function() {jQuery('.publications').append('<span class="hover"></span>').each(function () {  var $span = jQuery('> span.hover', this).css('opacity', 0);  jQuery(this).hover(function () {    $span.stop().fadeTo(500, 1);  }, function () {    $span.stop().fadeTo(500, 0);  });});});/* jQuery(document).ready(function(){jQuery(".accordion h3:first").addClass("active");jQuery(".accordion p:not(:first)").hide();jQuery(".accordion h3").click(function(){jQuery(this).next("p").slideDown("slow").siblings("p:visible").slideUp("slow");jQuery(this).toggleClass("active");jQuery(this).siblings("h3").removeClass("active");});}); */jQuery(document).ready(/*This function gets loaded when all the HTML, not including the portlets, isloaded.*/function() {});Liferay.Portlet.ready(/*This function gets loaded after each and every portlet on the page.portletId: the current portlet's idjQueryObj: the jQuery wrapped object of the current portlet*/function(portletId, jQueryObj) {});jQuery(document).last(/*This function gets loaded when everything, including the portlets, is onthe page.*/function() {});/*tambah lagi*/function mainmenu(){jQuery(" #nav ul ").css({display: "none"}); // Opera FixjQuery(" #nav li").hover(function(){jQuery(this).find('ul:first:hidden').css({visibility: "visible",display: "none"}).show(400);},function(){jQuery(this).find('ul:first').hide(400);});}jQuery(document).ready(function(){mainmenu();}); jQuery(document).ready(/*This function gets loaded when all the HTML, not including the portlets, isloaded.*/function() {});Liferay.Portlet.ready(/*This function gets loaded after each and every portlet on the page.portletId: the current portlet's idjQueryObj: the jQuery wrapped object of the current portlet*/function(portletId, jQueryObj) {});jQuery(document).last(/*This function gets loaded when everything, including the portlets, is onthe page.*/function() {});(function($){$(document).ready(function() {$('.styleswitch').click(function(){switchStylestyle(this.getAttribute("rel"));return false;});var c = readCookie('style');if (c) switchStylestyle(c);});function switchStylestyle(styleName){$('link[@rel*=style][title]').each(function(i) {this.disabled = true;if (this.getAttribute('title') == styleName) this.disabled = false;});createCookie('style', styleName, 365);}})(jQuery);// cookie functions http://www.quirksmode.org/js/cookies.htmlfunction createCookie(name,value,days){if (days){var date = new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires = "; expires="+date.toGMTString();}else var expires = "";document.cookie = name+"="+value+expires+"; path=/";}function readCookie(name){var nameEQ = name + "=";var ca = document.cookie.split(';');for(var i=0;i < ca.length;i++){var c = ca[i];while (c.charAt(0)==' ') c = c.substring(1,c.length);if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);}return null;}function eraseCookie(name){createCookie(name,"",-1);}// /cookie functionsfunction changed(){selObj = docu-ment.getElementById("accept");val = se-lObj.options[selObj.selectedIndex].value;for(var i=1;i<30;i++){docu-ment.getElementById(i).style.display='none';docu-ment.getElementById(val).style.display='';}		}/*******Select Option Start************/  function changed(){                 selObj = docu-ment.getElementById("accept");                 val = se-lObj.options[selObj.selectedIndex].value;                 for(var i=1;i<40;i++){                 docu-ment.getElementById(i).style.display='none';                 docu-ment.getElementById(val).style.display='';                 }                                 } /*******Select Option End************/(function($){$(document).ready(function() {$('.styleswitch').click(function(){switchStylestyle(this.getAttribute("rel"));return false;});var c = readCookie('style');if (c) switchStylestyle(c);});function switchStylestyle(styleName){$('link[@rel*=style][title]').each(function(i) {this.disabled = true;if (this.getAttribute('title') == styleName) this.disabled = false;});createCookie('style', styleName, 365);}})(jQuery);function createCookie(name,value,days){if (days){var date = new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires = "; expires="+date.toGMTString();}else var expires = "";document.cookie = name+"="+value+expires+"; path=/";}function readCookie(name){var nameEQ = name + "=";var ca = document.cookie.split(';');for(var i=0;i < ca.length;i++){var c = ca[i];while (c.charAt(0)==' ') c = c.substring(1,c.length);if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);}return null;}function eraseCookie(name){createCookie(name,"",-1);}