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() {});var delayb4scroll=2000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)var marqueespeed=1 //Specify marquee scroll speed (larger is faster 1-10)var pauseit=1 //Pause marquee onMousever (0=no. 1=yes)?////NO NEED TO EDIT BELOW THIS LINE////////////var copyspeed=marqueespeedvar pausespeed=(pauseit==0)? copyspeed: 0var actualheight=''function scrollmarquee(){if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8))cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px"elsecross_marquee.style.top=parseInt(marqueeheight)+8+"px"}function initializemarquee(){cross_marquee=document.getElementById("vmarquee")cross_marquee.style.top=0marqueeheight=document.getElementById("marqueecontainer").offsetHeightactualheight=cross_marquee.offsetHeightif (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exitcross_marquee.style.height=marqueeheight+"px"cross_marquee.style.overflow="scroll"return}setTimeout('lefttime=setInterval("scrollmarquee()",30)', delayb4scroll)}if (window.addEventListener)window.addEventListener("load", initializemarquee, false)else if (window.attachEvent)window.attachEvent("onload", initializemarquee)else if (document.getElementById)window.onload=initializemarquee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() {});jQuery().ready(function(){// simple accordionjQuery('#list1a').accordion({active: true,header: '.head',navigation: true,event: 'mouseover'});});//** Tab Content script- © Dynamic Drive DHTML code library (http://www.dynamicdrive.com)//** Last updated: Nov 8th, 06var enabletabpersistence=1 //enable tab persistence via session only cookies, so selected tab is remembered?////NO NEED TO EDIT BELOW////////////////////////var tabcontentIDs=new Object()function expandcontent(linkobj){var ulid=linkobj.parentNode.parentNode.id //id of UL elementvar ullist=document.getElementById(ulid).getElementsByTagName("li") //get list of LIs corresponding to the tab contentsfor (var i=0; i<ullist.length; i++){ullist[i].className=""  //deselect all tabsif (typeof tabcontentIDs[ulid][i]!="undefined") //if tab content within this array index exists (exception: More tabs than there are tab contents)document.getElementById(tabcontentIDs[ulid][i]).style.display="none" //hide all tab contents}linkobj.parentNode.className="selected"  //highlight currently clicked on tabdocument.getElementById(linkobj.getAttribute("rel")).style.display="block" //expand corresponding tab contentsaveselectedtabcontentid(ulid, linkobj.getAttribute("rel"))}function expandtab(tabcontentid, tabnumber){ //interface for selecting a tab (plus expand corresponding content)var thetab=document.getElementById(tabcontentid).getElementsByTagName("a")[tabnumber]if (thetab.getAttribute("rel"))expandcontent(thetab)}function savetabcontentids(ulid, relattribute){// save ids of tab content divsif (typeof tabcontentIDs[ulid]=="undefined") //if this array doesn't exist yettabcontentIDs[ulid]=new Array()tabcontentIDs[ulid][tabcontentIDs[ulid].length]=relattribute}function saveselectedtabcontentid(ulid, selectedtabid){ //set id of clicked on tab as selected tab id & enter into cookieif (enabletabpersistence==1) //if persistence feature turned onselectedtabid = "tcontent1";setCookie(ulid, selectedtabid)}function getullistlinkbyId(ulid, tabcontentid){ //returns a tab link based on the ID of the associated tab contentvar ullist=document.getElementById(ulid).getElementsByTagName("li")for (var i=0; i<ullist.length; i++){if (ullist[i].getElementsByTagName("a")[0].getAttribute("rel")==tabcontentid){return ullist[i].getElementsByTagName("a")[0]break}}}function initializetabcontent(){for (var i=0; i<arguments.length; i++){ //loop through passed UL idsif (enabletabpersistence==0 && getCookie(arguments[i])!="") //clean up cookie if persist=offsetCookie(arguments[i], "")var clickedontab=getCookie(arguments[i]) //retrieve ID of last clicked on tab from cookie, if anyvar ulobj=document.getElementById(arguments[i])var ulist=ulobj.getElementsByTagName("li") //array containing the LI elements within ULfor (var x=0; x<ulist.length; x++){ //loop through each LI elementvar ulistlink=ulist[x].getElementsByTagName("a")[0]if (ulistlink.getAttribute("rel")){savetabcontentids(arguments[i], ulistlink.getAttribute("rel")) //save id of each tab content as loop runsulistlink.onclick=function(){expandcontent(this)return false}if (ulist[x].className=="selected" && clickedontab=="") //if a tab is set to be selected by defaultexpandcontent(ulistlink) //auto load currenly selected tab content}} //end inner for loopif (clickedontab!=""){ //if a tab has been previously clicked on per the cookie valuevar culistlink=getullistlinkbyId(arguments[i], clickedontab)if (typeof culistlink!="undefined") //if match found between tabcontent id and rel attribute valueexpandcontent(culistlink) //auto load currenly selected tab contentelse //else if no match found between tabcontent id and rel attribute value (cookie mis-association)expandcontent(ulist[0].getElementsByTagName("a")[0]) //just auto load first tab instead}} //end outer for loop}function getCookie(Name){ var re=new RegExp(Name+"=[^;]+", "i"); //construct RE to search for target name/value pairif (document.cookie.match(re)) //if cookie foundreturn document.cookie.match(re)[0].split("=")[1] //return its valuereturn ""}function setCookie(name, value){document.cookie = name+"="+value //cookie value is domain wide (path=/)}<!-- Original:  Robert Bui (astrogate@hotmail.com) --><!-- Web Site:  http://astrogate.virtualave.net --><!-- This script and many more are available free online at --><!-- The JavaScript Source!! http://javascript.internet.com --><!-- Beginvar interval = 2.5; // delay between rotating images (in seconds)var random_display = 1; // 0 = no, 1 = yesinterval *= 1000;var image_index = 0;image_list = new Array();image_list[image_index++] = new imageItem("http://javascript.internet.com/img/image-cycler/01.jpg");image_list[image_index++] = new imageItem("http://javascript.internet.com/img/image-cycler/02.jpg");image_list[image_index++] = new imageItem("http://javascript.internet.com/img/image-cycler/03.jpg");image_list[image_index++] = new imageItem("http://javascript.internet.com/img/image-cycler/04.jpg");var number_of_image = image_list.length;function imageItem(image_location) {this.image_item = new Image();this.image_item.src = image_location;}function get_ImageItemLocation(imageObj) {return(imageObj.image_item.src)}function generate(x, y) {var range = y - x + 1;return Math.floor(Math.random() * range) + x;}function getNextImage() {if (random_display) {image_index = generate(0, number_of_image-1);}else {image_index = (image_index+1) % number_of_image;}var new_image = get_ImageItemLocation(image_list[image_index]);return(new_image);}function rotateImage(place) {var new_image = getNextImage();document[place].src = new_image;var recur_call = "rotateImage('"+place+"')";setTimeout(recur_call, interval);}//  End -->var min=8;var max=18;function increaseFontSize() {   var p = document.getElementsByTagName('p');   for(i=0;i<p.length;i++) {      if(p[i].style.fontSize) {         var s = parseInt(p[i].style.fontSize.replace("px",""));      } else {         var s = 12;      }      if(s!=max) {         s += 1;      }      p[i].style.fontSize = s+"px"   }}function decreaseFontSize() {   var p = document.getElementsByTagName('p');   for(i=0;i<p.length;i++) {      if(p[i].style.fontSize) {         var s = parseInt(p[i].style.fontSize.replace("px",""));      } else {         var s = 12;      }      if(s!=min) {         s -= 1;      }      p[i].style.fontSize = s+"px"   }   } 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"}).fadeIn(100);},function(){jQuery(this).find('ul:first').fadeOut(100);});}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() {});/*********start accessibilty***************/function toggle (id) {var post = document.getElementById(id);if (post.className=="portletshown") { post.className="portlethidden"; } else { post.className="portletshown"; }}function changeLocation (targetURL) {window.location = targetURL;}var size;var defaultFontSize = 4;var currentFontSize = size;	var Color;var defaultColor = 'black';var currentColor = Color;	var prefsLoaded = false;/*********besarkan saiz tulisan**************/	function setFontPlus(id){size = document.getElementById(id).style.fontSize;if(size == "" || size == null) {size = 13;} else {size = size.substr(0,2);}if(size < 15) {if(size == 14) {size = eval(size) + 2;} else {size = eval(size) + 1;}var fontSize = size + "px";document.getElementById(id).style.fontSize=fontSizechangecss('#nav li a','font-size',fontSize);changecss('.portlet-title','font-size',fontSize);changecss('.journal-content-article','font-size',fontSize);changecss('.content_font','font-size',fontSize);changecss('.title2_font','font-size',fontSize);changecss('#portlet-wrapper-56_INSTANCE_xaD8 .portlet-title,#portlet-wrapper-56_INSTANCE_ZDcF .portlet-title,#portlet-wrapper-56_INSTANCE_6cyX .portlet-title','font-size',fontSize);}}// end setFontPlus/*********kecilkan saiz tulisan*************/function setFontMinus(id){size = document.getElementById(id).style.fontSize;if(size == "" || size == null) {size = 11; } else {size = size.substr(0,2);} if(size > 11) {if(size == 17) {size = eval(size) - 2;} else {size = eval(size) - 1;}var fontSize = size + "px";document.getElementById(id).style.fontSize=fontSizechangecss('.content_font','font-size',fontSize);changecss('.title2_font','font-size',fontSize);	changecss('#nav li a','font-size',fontSize);changecss('.portlet-title','font-size',fontSize);changecss('.journal-content-article','font-size',fontSize);changecss('#portlet-wrapper-56_INSTANCE_xaD8 .portlet-title,#portlet-wrapper-56_INSTANCE_ZDcF .portlet-title,#portlet-wrapper-56_INSTANCE_6cyX .portlet-title','font-size',fontSize);}}/********kembalikan saiz huruf kepada asal************/function revertFontStyles(id){size = document.getElementById(id).style.fontSize;if(size == "" || size == null) {size = 11; } else {size = size.substr(0,2);} if(size > 10) {if(size == 16) {size = 11;} else {size = 11;}var fontSize = size + "px";document.getElementById(id).style.fontSize=fontSize}changecss('.portlet-title','font-size','10px');changecss('#portlet-wrapper-56_INSTANCE_xaD8 .portlet-title,#portlet-wrapper-56_INSTANCE_ZDcF .portlet-title,#portlet-wrapper-56_INSTANCE_6cyX .portlet-title','font-size','11px');changecss('#nav li a','font-size','11px');changecss('.journal-content-article','font-size','11px;');changecss('.content_font','font-size','11px;');changecss('.title2_font','font-size','11px;');}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 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;};window.onload = setUserOptions;function setUserOptions(){if(!prefsLoaded){cookie = readCookie("fontSize");size = cookie ? cookie : 11;cookieColor = readCookie("color");Color = cookieColor ? cookieColor : 'black';if(Color=='red'){fontRed()}else if(Color=='blue'){fontBlue()}else if(Color=='green'){fontGreen()}else if(Color=='orange') {fontOrange()}else{revertStyles()}setFontSize(size);prefsLoaded = true;}}window.onunload = saveSettings;function saveSettings(){createCookie("color", Color, 365);  createCookie("fontSize", size, 365); }function setFontSize(fontSize){document.getElementById('wrapper').style.fontSize = fontSize + 'px';//alert (document.body.style.fontSize);};/**********kembalikan warna asal*************/function revertStyles(){Color='';changecss('.portlet-title','color','black');changecss('#nav a','color','#ffffff');changecss('body','color','black');changecss('a','color','#5078AA');changecss('a:hover','color','#7EACD6');changecss('.title2_font','color','#0000FF');changecss('.content_font','color','#000000');changecss('input[type="text"], input[type="password"], input[type="file"],input[type="submit"], input[type="button"], input[type="reset"], select, textarea, .textarea','color','black');}function changecss(theClass,element,value) {//Last Updated on May 21, 2008//documentation for this script at//http://www.shawnolson.net/a/503/altering-css-class-attributes-with-javascript.html var cssRules; if (document.all) { cssRules = 'rules'; } else if (document.getElementById) { cssRules = 'cssRules'; } var added = false; for (var S = 0; S < document.styleSheets.length; S++){ for (var R = 0; R < document.styleSheets[S][cssRules].length; R++) { if (document.styleSheets[S][cssRules][R].selectorText == theClass) { if(document.styleSheets[S][cssRules][R].style[element]){ document.styleSheets[S][cssRules][R].style[element] = value; added=true; break; } } } if(!added){ if(document.styleSheets[S].insertRule){ document.styleSheets[S].insertRule(theClass+' { '+element+': '+value+'; }',document.styleSheets[S][cssRules].length); } else if (document.styleSheets[S].addRule) { document.styleSheets[S].addRule(theClass,element+': '+value+';'); } } }}// end function changecss/*************tukar warna tulisan kepada warna merah**********//****changecss('<nama class@ id>','<element>','<value>');*************/function fontRed(){Color='red';changecss('body','color',Color);changecss('a','color',Color);changecss('#nav a','color',Color);changecss('a:hover','color',Color);changecss('.title2_font','color',Color);changecss('.content_font','color',Color);changecss('input[type="text"], input[type="password"], input[type="file"],input[type="submit"], input[type="button"], input[type="reset"], select, textarea, .textarea','color',Color);}/*************tukar warna tulisan kepada warna biru**********//****changecss('<nama class@ id>','<element>','<value>');*************/function fontBlue(){Color='blue';changecss('body','color',Color);changecss('a','color',Color);changecss('#nav a','color',Color);changecss('a:hover','color',Color);changecss('.title2_font','color',Color);changecss('.content_font','color',Color);changecss('input[type="text"], input[type="password"], input[type="file"],input[type="submit"], input[type="button"], input[type="reset"], select, textarea, .textarea','color',Color);}/*************tukar warna tulisan kepada warna green **********//****changecss('<nama class@ id>','<element>','<value>');*************/function fontGreen(){Color='green';changecss('body','color',Color);changecss('a','color',Color);changecss('#nav a','color',Color);changecss('a:hover','color',Color);changecss('.title2_font','color',Color);changecss('.content_font','color',Color);changecss('input[type="text"], input[type="password"], input[type="file"],input[type="submit"], input[type="button"], input[type="reset"], select, textarea, .textarea','color',Color);}/*************tukar warna tulisan kepada warna orange**********//****changecss('<nama class@ id>','<element>','<value>');*************/function fontOrange(){Color='orange';changecss('body','color',Color);changecss('a','color',Color);changecss('#nav a','color',Color);changecss('a:hover','color',Color);changecss('.title2_font','color',Color);changecss('.content_font','color',Color);changecss('input[type="text"], input[type="password"], input[type="file"],input[type="submit"], input[type="button"], input[type="reset"], select, textarea, .textarea','color',Color);}/*******end accessibility************/