jQuery(function() {               jQuery('#container-1').tabs();                jQuery('#container-2').tabs(2);                jQuery('#container-3').tabs({ fxSlide: true });                jQuery('#container-4').tabs({ fxFade: true, fxSpeed: 'fast' });                jQuery('#container-5').tabs({ fxSlide: true, fxFade: true, fxSpeed: 'normal' });                jQuery('#container-6').tabs({                    fxFade: true,                    fxSpeed: 'fast',                    onClick: function() {                        alert('onClick');                    },                    onHide: function() {                        alert('onHide');                    },                    onShow: function() {                        alert('onShow');                    }                });                jQuery('#container-7').tabs({ fxAutoHeight: true });                jQuery('#container-8').tabs({ fxShow: { height: 'show', opacity: 'show' }, fxSpeed: 'normal' });                jQuery('#container-9').tabs({ remote: true });                jQuery('#container-10').tabs();                jQuery('#container-11').tabs({ disabled: [3] });                jQuery('<p><a href="#">Disable third tab<\/a><\/p>').prependTo('#fragment-28').find('a').click(function() {                    jQuery(this).parents('div').eq(1).disableTab(3);                    return false;                });                jQuery('<p><a href="#">Activate third tab<\/a><\/p>').prependTo('#fragment-28').find('a').click(function() {                    jQuery(this).parents('div').eq(1).triggerTab(3);                    return false;                });                jQuery('<p><a href="#">Enable third tab<\/a><\/p>').prependTo('#fragment-28').find('a').click(function() {                    jQuery(this).parents('div').eq(1).enableTab(3);                    return false;                });            });/***********************************************Advertisement footer slider***********************************************/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 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();}if (window.addEventListener)window.addEventListener("load", staticbar, false)else if (window.attachEvent)window.attachEvent("onload", staticbar)else if (document.getElementById)window.onload=staticbarjQuery(function(){jQuery(".haccordion").haccordion();});function mainmenu(){jQuery(" #nav ul ").css({display: "none"}); 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(function() {});Liferay.Portlet.ready(function(portletId, jQueryObj) {});jQuery(document).last(function() {});var switchcontent_ajax_msg='<em>Loading Ajax content...</em>' var switchcontent_ajax_bustcache=truefunction switchcontent(className, filtertag){this.className=classNamethis.collapsePrev=false this.persistType="none" this.filter_content_tag=(typeof filtertag!="undefined")? filtertag.toLowerCase() : ""this.ajaxheaders={}}switchcontent.prototype.setStatus=function(openHTML, closeHTML){this.statusOpen=openHTMLthis.statusClosed=closeHTML}switchcontent.prototype.setColor=function(openColor, closeColor){this.colorOpen=openColorthis.colorClosed=closeColor}switchcontent.prototype.setPersist=function(bool, days){ if (bool==true){ if (typeof days=="undefined") this.persistType="session"else{ this.persistType="days"this.persistDays=parseInt(days)}}elsethis.persistType="none"}switchcontent.prototype.collapsePrevious=function(bool){ this.collapsePrev=bool}switchcontent.prototype.setContent=function(index, filepath){ this.ajaxheaders["header"+index]=filepath}switchcontent.prototype.sweepToggle=function(setting){ if (typeof this.headers!="undefined" && this.headers.length>0){ for (var i=0; i<this.headers.length; i++){if (setting=="expand")this.expandcontent(this.headers[i]) else if (setting=="contract")this.contractcontent(this.headers[i]) }}}switchcontent.prototype.defaultExpanded=function(){ var expandedindices=[] for (var i=0; (!this.collapsePrev && i<arguments.length) || (this.collapsePrev && i==0); i++)expandedindices[expandedindices.length]=arguments[i]this.expandedindices=expandedindices.join(",")}switchcontent.prototype.togglecolor=function(header, status){if (typeof this.colorOpen!="undefined")header.style.color=status}switchcontent.prototype.togglestatus=function(header, status){if (typeof this.statusOpen!="undefined")header.firstChild.innerHTML=status}switchcontent.prototype.contractcontent=function(header){var innercontent=document.getElementById(header.id.replace("-title", "")) innercontent.style.display="none"this.togglestatus(header, this.statusClosed)this.togglecolor(header, this.colorClosed)}switchcontent.prototype.expandcontent=function(header){var innercontent=document.getElementById(header.id.replace("-title", ""))if (header.ajaxstatus=="waiting"){switchcontent.connect(header.ajaxfile, header)}innercontent.style.display="block"this.togglestatus(header, this.statusOpen)this.togglecolor(header, this.colorOpen)}switchcontent.prototype.toggledisplay=function(header){var innercontent=document.getElementById(header.id.replace("-title", "")) if (innercontent.style.display=="block")this.contractcontent(header)else{this.expandcontent(header)if (this.collapsePrev && typeof this.prevHeader!="undefined" && this.prevHeader.id!=header.id) this.contractcontent(this.prevHeader) }if (this.collapsePrev)this.prevHeader=header }switchcontent.prototype.collectElementbyClass=function(classname){ var classnameRE=new RegExp("(^|\\s+)"+classname+"($|\\s+)", "i") this.headers=[], this.innercontents=[]if (this.filter_content_tag!="") var allelements=document.getElementsByTagName(this.filter_content_tag)else var allelements=document.all? document.all : document.getElementsByTagName("*")for (var i=0; i<allelements.length; i++){if (typeof allelements[i].className=="string" && allelements[i].className.search(classnameRE)!=-1){if (document.getElementById(allelements[i].id+"-title")!=null){ this.headers[this.headers.length]=document.getElementById(allelements[i].id+"-title")this.innercontents[this.innercontents.length]=allelements[i] }}}}switchcontent.prototype.init=function(){var instanceOf=thisthis.collectElementbyClass(this.className) if (this.headers.length==0) returnif (this.persistType=="days" && (parseInt(switchcontent.getCookie(this.className+"_dtrack"))!=this.persistDays))switchcontent.setCookie(this.className+"_d", "", -1) var opencontents_ids=(this.persistType=="session" && switchcontent.getCookie(this.className)!="")? ','+switchcontent.getCookie(this.className)+',' : (this.persistType=="days" && switchcontent.getCookie(this.className+"_d")!="")? ','+switchcontent.getCookie(this.className+"_d")+',' : (this.expandedindices)? ','+this.expandedindices+',' : ""for (var i=0; i<this.headers.length; i++){ if (typeof this.ajaxheaders["header"+i]!="undefined"){ this.headers[i].ajaxstatus='waiting'this.headers[i].ajaxfile=this.ajaxheaders["header"+i]}if (typeof this.statusOpen!="undefined") this.headers[i].innerHTML='<span class="status"></span>'+this.headers[i].innerHTML if (opencontents_ids.indexOf(','+i+',')!=-1){ this.expandcontent(this.headers[i]) if (this.collapsePrev) this.prevHeader=this.headers[i]  }else this.contractcontent(this.headers[i]) this.headers[i].onclick=function(){instanceOf.toggledisplay(this)}}switchcontent.dotask(window, function(){instanceOf.rememberpluscleanup()}, "unload") }switchcontent.prototype.rememberpluscleanup=function(){var opencontents=new Array("none")for (var i=0; i<this.innercontents.length; i++){if (this.persistType!="none" && this.innercontents[i].style.display=="block" && (!this.collapsePrev || (this.collapsePrev && opencontents.length<2)))opencontents[opencontents.length]=i this.headers[i].onclick=null }if (opencontents.length>1) opencontents.shift() if (typeof this.statusOpen!="undefined")this.statusOpen=this.statusClosed=null if (this.persistType=="session")switchcontent.setCookie(this.className, opencontents.join(",")) else if (this.persistType=="days" && typeof this.persistDays=="number"){ switchcontent.setCookie(this.className+"_d", opencontents.join(","), this.persistDays)switchcontent.setCookie(this.className+"_dtrack", this.persistDays, this.persistDays)}}switchcontent.dotask=function(target, functionref, tasktype){var tasktype=(window.addEventListener)? tasktype : "on"+tasktypeif (target.addEventListener)target.addEventListener(tasktype, functionref, false)else if (target.attachEvent)target.attachEvent(tasktype, functionref)}switchcontent.connect=function(pageurl, header){var page_request = falsevar bustcacheparameter=""if (window.ActiveXObject){ try {page_request = new ActiveXObject("Msxml2.XMLHTTP")} catch (e){try{page_request = new ActiveXObject("Microsoft.XMLHTTP")}catch (e){}}}else if (window.XMLHttpRequest) page_request = new XMLHttpRequest()elsereturn falsepage_request.onreadystatechange=function(){switchcontent.loadpage(page_request, header)}if (switchcontent_ajax_bustcache) bustcacheparameter=(pageurl.indexOf("?")!=-1)? "&"+new Date().getTime() : "?"+new Date().getTime()page_request.open('GET', pageurl+bustcacheparameter, true)page_request.send(null)}switchcontent.loadpage=function(page_request, header){var innercontent=document.getElementById(header.id.replace("-title", "")) innercontent.innerHTML=switchcontent_ajax_msg if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1)){innercontent.innerHTML=page_request.responseTextheader.ajaxstatus="loaded"}}switchcontent.getCookie=function(Name){ var re=new RegExp(Name+"=[^;]+", "i"); if (document.cookie.match(re)) return document.cookie.match(re)[0].split("=")[1] return ""}switchcontent.setCookie=function(name, value, days){if (typeof days!="undefined"){ var expireDate = new Date()var expstring=expireDate.setDate(expireDate.getDate()+days)document.cookie = name+"="+value+"; expires="+expireDate.toGMTString()}elsedocument.cookie = name+"="+value}function clock() {var digital = new Date();var hours = digital.getHours();var minutes = digital.getMinutes();var seconds = digital.getSeconds();var amOrPm = "a.m";if (hours > 11) amOrPm = "PM";if (hours > 24) amOrPm = "AM";if (hours > 12) hours = hours - 12;if (hours == 0) hours = 12;if (minutes <= 9) minutes = "0" + minutes;if (seconds <= 9) seconds = "0" + seconds;dispTime = "," + " " + hours + ":" + minutes + ":" + seconds + " " + amOrPm;document.getElementById('pendule').innerHTML = dispTime;setTimeout("clock()", 1000);}window.onload=clock;/*********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 = 12;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 = 12;} 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('.journal-content-article','font-size',fontSize);changecss('.content_font','font-size',fontSize);changecss('.title2_font','font-size',fontSize);}}// end setFontPlus/*********kecilkan saiz tulisan*************/function setFontMinus(id){size = document.getElementById(id).style.fontSize;if(size == "" || size == null) {size = 12;} 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('.journal-content-article','font-size',fontSize);changecss('.title2_font','font-size',fontSize);changecss('.portlet-title','font-size',fontSize);}}/********kembalikan saiz huruf kepada asal************/function revertFontStyles(id){size = document.getElementById(id).style.fontSize;if(size == "" || size == null) {size = 12;} else {size = size.substr(0,2);}if(size > 10) {if(size == 16) {size = 12;} else {size = 12;}var fontSize = size + "px";document.getElementById(id).style.fontSize=fontSize}changecss('.journal-content-article','font-size','12px',fontSize);changecss('.content_font','font-size','12px',fontSize);changecss('.title2_font','font-size','12px',fontSize);}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=='purple'){fontPurple()}else if(Color=='blue'){fontBlue()}else if(Color=='pink'){fontPink()}else if(Color=='orange') {fontOrange()}else{revertStyles()}setFontSize(size);prefsLoaded = true;}}window.onunload = saveSettings;function saveSettings(){ createCookie("fontSize", size, 365);createCookie("color", Color, 365);}function setFontSize(fontSize){fontSize=fontSize + 'px';document.getElementById('wrapper').style.fontSize = fontSize;changecss('.content_font','font-size',fontSize);changecss('.title2_font','font-size',fontSize);changecss('.journal-content-article','font-size',fontSize);};/**********kembalikan warna asal*************/function revertStyles(){Color="";changecss('.portlet-title','color','black');changecss('.portlet-topper','color','#ffffff');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('#topbg ','color','#ffffff');changecss('#topbg a ','color','#ffffff');changecss('.nav-menu-style-1 li a','color','#ffffff');changecss('#nav li ul li a','color','#ffffff');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) { 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 fontPurple(){Color='purple';changecss('body','color',Color);changecss('.portlet-title','color',Color);changecss('.portlet-topper','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('.applemenu div.search ','color',Color);changecss('#topbg ','color',Color);changecss('#topbg a ','color',Color);changecss('.nav-menu-style-1 li a','color',Color);changecss('#nav li ul li a','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('.portlet-title','color',Color);changecss('.portlet-topper','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('.applemenu div.search ','color',Color);changecss('#topbg ','color',Color);changecss('#topbg a ','color',Color);changecss('.nav-menu-style-1 li a','color',Color);changecss('#nav li ul li a','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 fontPink(){Color='pink';changecss('body','color',Color);changecss('.portlet-title','color',Color);changecss('.portlet-topper','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('.applemenu div.search ','color',Color);changecss('#topbg ','color',Color);changecss('#topbg a ','color',Color);changecss('.nav-menu-style-1 li a','color',Color);changecss('#nav li ul li a','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('.portlet-topper','color',Color);changecss('.portlet-title','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('.applemenu div.search ','color',Color);changecss('#topbg ','color',Color);changecss('#topbg a ','color',Color);changecss('.nav-menu-style-1 li a','color',Color);changecss('#nav li ul li a','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************/jQuery(document).ready(function(){jQuery(".lightbox").lightbox();});