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 tabLinks = new Array();var contentDivs = new Array();function init() {// Grab the tab links and content divs from the pagevar tabListItems = document.getElementById('tabs').childNodes;for ( var i = 0; i < tabListItems.length; i++ ) {if ( tabListItems[i].nodeName == "LI" ) {var tabLink = getFirstChildWithTagName( tabListItems[i], 'A' );var id = getHash( tabLink.getAttribute('href') );tabLinks[id] = tabLink;contentDivs[id] = document.getElementById( id );}}// Assign onclick events to the tab links, and// highlight the first tabvar i = 0;for ( var id in tabLinks ) {tabLinks[id].onclick = showTab;tabLinks[id].onfocus = function() { this.blur() };if ( i == 0 ) tabLinks[id].className = 'selected';i++;}// Hide all content divs except the firstvar i = 0;for ( var id in contentDivs ) {if ( i != 0 ) contentDivs[id].className = 'tabContent hide';i++;}}function showTab() {var selectedId = getHash( this.getAttribute('href') );// Highlight the selected tab, and dim all others.// Also show the selected content div, and hide all others.for ( var id in contentDivs ) {if ( id == selectedId ) {tabLinks[id].className = 'selected';contentDivs[id].className = 'tabContent';} else {tabLinks[id].className = '';contentDivs[id].className = 'tabContent hide';}}// Stop the browser following the linkreturn false;}function getFirstChildWithTagName( element, tagName ) {for ( var i = 0; i < element.childNodes.length; i++ ) {if ( element.childNodes[i].nodeName == tagName ) return element.childNodes[i];}}function getHash( url ) {var hashPos = url.lastIndexOf ( '#' );return url.substring( hashPos + 1 );}function setCookie( name, value, expires) {delCookie();var today = new Date();today.setTime( today.getTime() );if ( expires ) {expires = expires * 1000 * 60 * 60 * 24;}var expires_date = new Date( today.getTime() + (expires) );document.cookie = name + "=" +escape( value ) + ";expires=" + expires_date.toGMTString() + ";path=/";}function getCookie() {if (document.cookie.length>0) {c_start=document.cookie.indexOf("w3c");if (c_start!=-1) {if (document.cookie.indexOf("kalerMerah")!=-1) {redFont();}if (document.cookie.indexOf("kalerHijau")!=-1) {greenFont();}if (document.cookie.indexOf("kalerBiru")!=-1) {blueFont();}}else { return }d_start=document.cookie.indexOf("w3cFont");if (d_start!=-1) {if (document.cookie.indexOf("fontBesar")!=-1) {		Syah = document.cookie.indexOf("w3cFont");rul = Syah + 20;Syafri = rul + 2;TMSB = unescape(document.cookie.substring(rul,Syafri));increaseFontSize2(TMSB);}if (document.cookie.indexOf("fontKecik")!=-1) {Syah = document.cookie.indexOf("w3cFont");rul = Syah + 20;Syafri = rul + 2;TMSB = unescape(document.cookie.substring(rul,Syafri));increaseFontSize2(TMSB);}}else { return }}}function delCookie() {document.cookie = "w3c;expires=Thu, 01-Jan-1970 00:00:01 GMT";document.cookie = "w3cFont;expires=Thu, 01-Jan-1970 00:00:01 GMT";}function increaseFontSize2(tmsb) {for(i=0;i<p.length;i++) {p[i].style.fontSize = tmsb+"px"}for(i=0;i<font.length;i++) {font[i].style.fontSize = tmsb+"px"}for(i=0;i<span.length;i++) {span[i].style.fontSize = tmsb+"px"}for(i=0;i<link.length;i++) {link[i].style.fontSize = tmsb+"px"}for(i=0;i<table.length;i++) {table[i].style.fontSize = tmsb+"px"}for(i=0;i<div.length;i++) {div[i].style.fontSize = tmsb+"px"}for(i=0;i<td.length;i++) {td[i].style.fontSize = tmsb+"px"}}var min=8;var max=12;var p = document.getElementsByTagName('p');var font = document.getElementsByTagName('font');var span = document.getElementsByTagName('span');var link = document.getElementsByTagName('a');var table = document.getElementsByTagName('table');var div = document.getElementsByTagName('div');var td = document.getElementsByTagName('td');var defaultFont = Array(0);var defaultSpan = Array(0);var defaultTable = Array(0);var defaultLink = Array(0);var defaultDiv = Array(0);var defaultP = Array(0);var defaultTd = Array(0);function initFontColor() {if(defaultTd.length == 0 && defaultP.length == 0 && defaultFont.length == 0 && defaultSpan.length == 0 && defaultTable.length == 0 && defaultLink.length == 0 && defaultDiv.length == 0){for(i=0;i<font.length;i++) {defaultFont[i] = font[i].style.color;}for(i=0;i<span.length;i++) {defaultSpan[i] = span[i].style.color;}for(i=0;i<table.length;i++) {defaultTable[i] = table[i].style.color;}for(i=0;i<link.length;i++) {defaultLink[i] = link[i].style.color;}for(i=0;i<div.length;i++) {defaultDiv[i] = div[i].style.color;}for(i=0;i<p.length;i++) {defaultP[i] = p[i].style.color;}for(i=0;i<td.length;i++) {defaultTd[i] = td[i].style.color;}}}function redFont() {setCookie('w3c','kalerMerah','1');initFontColor();for(i=0;i<font.length;i++) {font[i].style.color = "#FF0000"}for(i=0;i<span.length;i++) {span[i].style.color = "#FF0000"}for(i=0;i<table.length;i++) {table[i].style.color = "#FF0000"}for(i=0;i<link.length;i++) {link[i].style.color = "#FF0000"}for(i=0;i<div.length;i++) {div[i].style.color = "#FF0000"}for(i=0;i<p.length;i++) {p[i].style.color = "#FF0000"}for(i=0;i<td.length;i++) {td[i].style.color = "#FF0000"}}function blueFont() {setCookie('w3c','kalerBiru','1');initFontColor();for(i=0;i<font.length;i++) {font[i].style.color = "#0000FF"}for(i=0;i<span.length;i++) {span[i].style.color = "#0000FF"}for(i=0;i<table.length;i++) {table[i].style.color = "#0000FF"}for(i=0;i<link.length;i++) {link[i].style.color = "#0000FF"}for(i=0;i<div.length;i++) {div[i].style.color = "#0000FF"}for(i=0;i<p.length;i++) {p[i].style.color = "#0000FF"}for(i=0;i<td.length;i++) {td[i].style.color = "#0000FF"}}function greenFont() {setCookie('w3c','kalerHijau','1');initFontColor();for(i=0;i<font.length;i++) {font[i].style.color = "#00FF00"}for(i=0;i<span.length;i++) {span[i].style.color = "#00FF00"}for(i=0;i<table.length;i++) {table[i].style.color = "#00FF00"}for(i=0;i<link.length;i++) {link[i].style.color = "#00FF00"}for(i=0;i<div.length;i++) {div[i].style.color = "#00FF00"}for(i=0;i<p.length;i++) {p[i].style.color = "#00FF00"}for(i=0;i<td.length;i++) {td[i].style.color = "#00FF00"}}function resetFontSize() {for(i=0;i<p.length;i++) {p[i].style.fontSize = "";p[i].style.color = defaultP[i];}for(i=0;i<font.length;i++) {font[i].style.fontSize = "";font[i].style.color = defaultFont[i];}for(i=0;i<span.length;i++) {span[i].style.fontSize = "";span[i].style.color = defaultSpan[i];}for(i=0;i<link.length;i++) {link[i].style.fontSize = "";link[i].style.color = defaultLink[i];}for(i=0;i<table.length;i++) {table[i].style.fontSize = "";table[i].style.color = defaultTable[i];}for(i=0;i<div.length;i++) {div[i].style.fontSize = "";div[i].style.color = defaultDiv[i];}for(i=0;i<td.length;i++) {td[i].style.fontSize = "";td[i].style.color = defaultTd[i];}setCookie('w3c','fCUK','0');setCookie('w3cFont','fCUK','0');}function increaseFontSize() {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"setCookie('w3cFont','fontBesar '+s,'1');	}for(i=0;i<font.length;i++) {if(font[i].style.fontSize) {var s = parseInt(font[i].style.fontSize.replace("px",""));} else {var s = 12;}if(s!=max) {s += 1;}font[i].style.fontSize = s+"px"}for(i=0;i<span.length;i++) {if(span[i].style.fontSize) {var s = parseInt(span[i].style.fontSize.replace("px",""));} else {var s = 12;}if(s!=max) {s += 1;}span[i].style.fontSize = s+"px"}for(i=0;i<link.length;i++) {if(link[i].style.fontSize) {var s = parseInt(link[i].style.fontSize.replace("px",""));} else {var s = 12;}if(s!=max) {s += 1;}link[i].style.fontSize = s+"px"}for(i=0;i<table.length;i++) {if(table[i].style.fontSize) {var s = parseInt(table[i].style.fontSize.replace("px",""));} else {var s = 12;}if(s!=max) {s += 1;}table[i].style.fontSize = s+"px"}for(i=0;i<div.length;i++) {if(div[i].style.fontSize) {var s = parseInt(div[i].style.fontSize.replace("px",""));} else {var s = 12;}if(s!=max) {s += 1;}div[i].style.fontSize = s+"px"}for(i=0;i<td.length;i++) {if(td[i].style.fontSize) {var s = parseInt(td[i].style.fontSize.replace("px",""));} else {var s = 12;}if(s!=max) {s += 1;}td[i].style.fontSize = s+"px"}	}function decreaseFontSize() {for(i=0;i<p.length;i++) {if(p[i].style.fontSize) {var s = parseInt(p[i].style.fontSize.replace("px",""));} else {var s = 10;}if(s!=min) {s -= 1;}p[i].style.fontSize = s+"px"setCookie('w3cFont','fontKecik '+s,'1');	}for(i=0;i<font.length;i++) {if(font[i].style.fontSize) {var s = parseInt(font[i].style.fontSize.replace("px",""));} else {var s = 10;}if(s!=min) {s -= 1;}font[i].style.fontSize = s+"px"}for(i=0;i<span.length;i++) {if(span[i].style.fontSize) {var s = parseInt(span[i].style.fontSize.replace("px",""));} else {var s = 10;}if(s!=min) {s -= 1;}span[i].style.fontSize = s+"px"}for(i=0;i<link.length;i++) {if(link[i].style.fontSize) {var s = parseInt(link[i].style.fontSize.replace("px",""));} else {var s = 10;}if(s!=min) {s -= 1;}link[i].style.fontSize = s+"px"}for(i=0;i<table.length;i++) {if(table[i].style.fontSize) {var s = parseInt(table[i].style.fontSize.replace("px",""));} else {var s = 10;}if(s!=min) {s -= 1;}table[i].style.fontSize = s+"px"}for(i=0;i<div.length;i++) {if(div[i].style.fontSize) {var s = parseInt(div[i].style.fontSize.replace("px",""));} else {var s = 10;}if(s!=min) {s -= 1;}div[i].style.fontSize = s+"px"}for(i=0;i<td.length;i++) {if(td[i].style.fontSize) {var s = parseInt(td[i].style.fontSize.replace("px",""));} else {var s = 10;}if(s!=min) {s -= 1;}td[i].style.fontSize = s+"px"}}