var persistclose= 1 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser sessionvar startX = 0 //set x offset of bar in pixelsvar startY = 0 //set y offset of bar in pixelsvar verticalpos="frombottom" //enter "fromtop" or "frombottom"function iecompattest(){return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body}function get_cookie(Name) {var search = Name + "="var returnvalue = "";if (document.cookie.length > 0) {offset = document.cookie.indexOf(search)if (offset != -1) {offset += search.lengthend = document.cookie.indexOf(";", offset);if (end == -1) end = document.cookie.length;returnvalue=unescape(document.cookie.substring(offset, end))}}return returnvalue;}function closebar3(){document.cookie="kuantantutup=1"document.getElementById("topbar3").style.visibility="hidden"}function closebar4(){document.cookie="khastutup=1"document.getElementById("topbar4").style.visibility="hidden"}function closebar(){if (persistclose)document.cookie="remainclosed=1"document.getElementById("topbar").style.visibility="hidden"}function staticbar(){barheight=document.getElementById("topbar").offsetHeightvar ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;var d = document;function ml(id){var el=d.getElementById(id);if (!persistclose || persistclose && get_cookie("remainclosed")=="")el.style.visibility="visible"if(d.layers)el.style=el;el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};el.x = startX;if (verticalpos=="fromtop")el.y = startY;else{el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;el.y -= startY;}return el;}window.stayTopLeft=function(){if (verticalpos=="fromtop"){var pY = ns ? pageYOffset : iecompattest().scrollTop;ftlObj.y += (pY + startY - ftlObj.y)/8;}else{var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;ftlObj.y += (pY - startY - ftlObj.y)/8;}ftlObj.sP(ftlObj.x, ftlObj.y);setTimeout("stayTopLeft()", 10);}ftlObj = ml("topbar");stayTopLeft();}function checkKuantan() {if (!get_cookie("kuantantutup")) {return "yela";}}function checkKhas() {if (!get_cookie("khastutup")) {return "yela";}}function SMEBANKpopap(id) {if (id == 1) {closebar3();window.open('/web/guest/pengumuman?p_p_id=101_INSTANCE_ESRW&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-4&p_p_col_count=1&_101_INSTANCE_ESRW_struts_action=%2Ftagged_content%2Fview_content&_101_INSTANCE_ESRW_redirect=%2Fweb%2Fguest%2Fpengumuman&_101_INSTANCE_ESRW_assetId=121749');}if (id == 11) {closebar4();window.open('/web/guest/pengumuman?p_p_id=101_INSTANCE_ESRW&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-4&p_p_col_count=1&_101_INSTANCE_ESRW_struts_action=%2Ftagged_content%2Fview_content&_101_INSTANCE_ESRW_redirect=%2Fweb%2Fguest%2Fpengumuman&_101_INSTANCE_ESRW_assetId=121749');}if (id == 2) {closebar3();}if (id == 3) {closebar4();}}if (window.addEventListener)window.addEventListener("load", staticbar, false)else if (window.attachEvent)window.attachEvent("onload", staticbar)else if (document.getElementById)window.onload=staticbar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 setFontPlus(id){var 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}}// end setFontPlusfunction setFontMinus(id){var size = document.getElementById(id).style.fontSize;if(size == "" || size == null) {size = 13; } else {size = size.substr(0,2);} if(size > 13) {if(size == 16) {size = eval(size) - 2;} else {size = eval(size) - 1;}var fontSize = size + "px";document.getElementById(id).style.fontSize=fontSize}}