/***********************************************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="fromtop" //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***********************************************/var textPadding = 3; // Padding at the left of tab text - bigger value gives you wider tabsvar strictDocType = true;var tabView_maxNumberOfTabs = 6;	// Maximum number of tabs/* Don't change anything below here */var dhtmlgoodies_tabObj = new Array();var activeTabIndex = new Array();var MSIE = navigator.userAgent.indexOf('MSIE')>=0?true:false;var regExp = new RegExp(".*MSIE ([0-9]\.[0-9]).*","g");var navigatorVersion = navigator.userAgent.replace(regExp,'$1');var ajaxObjects = new Array();var tabView_countTabs = new Array();var tabViewHeight = new Array();var tabDivCounter = 0;var closeImageHeight = 8;	// Pixel height of close buttonsvar closeImageWidth = 8;	// Pixel height of close buttonsfunction setPadding(obj,padding){var span = obj.getElementsByTagName('SPAN')[0];span.style.paddingLeft = padding + 'px';span.style.paddingRight = padding + 'px';}function showTab(parentId,tabIndex){var parentId_div = parentId + "_";if(!document.getElementById('tabView' + parentId_div + tabIndex)){return;}if(activeTabIndex[parentId]>=0){if(activeTabIndex[parentId]==tabIndex){return;}var obj = document.getElementById('tabTab'+parentId_div + activeTabIndex[parentId]);obj.className='tabInactive';var img = obj.getElementsByTagName('IMG')[0];if(img.src.indexOf('tab_')==-1)img = obj.getElementsByTagName('IMG')[1];img.src = '../images/tab_right_inactive.gif';document.getElementById('tabView' + parentId_div + activeTabIndex[parentId]).style.display='none';}var thisObj = document.getElementById('tabTab'+ parentId_div +tabIndex);thisObj.className='tabActive';var img = thisObj.getElementsByTagName('IMG')[0];if(img.src.indexOf('tab_')==-1)img = thisObj.getElementsByTagName('IMG')[1];img.src = '../images/tab_right_active.gif';document.getElementById('tabView' + parentId_div + tabIndex).style.display='block';activeTabIndex[parentId] = tabIndex;var parentObj = thisObj.parentNode;var aTab = parentObj.getElementsByTagName('DIV')[0];countObjects = 0;var startPos = 2;var previousObjectActive = false;while(aTab){if(aTab.tagName=='DIV'){if(previousObjectActive){previousObjectActive = false;startPos-=2;}if(aTab==thisObj){startPos-=2;previousObjectActive=true;setPadding(aTab,textPadding+1);}else{setPadding(aTab,textPadding);}aTab.style.left = startPos + 'px';countObjects++;startPos+=2;}aTab = aTab.nextSibling;}return;}function tabClick(){var idArray = this.id.split('_');showTab(this.parentNode.parentNode.id,idArray[idArray.length-1].replace(/[^0-9]/gi,''));}function rolloverTab(){if(this.className.indexOf('tabInactive')>=0){this.className='inactiveTabOver';var img = this.getElementsByTagName('IMG1')[0];if(img.src.indexOf('tab_')<=0)img = this.getElementsByTagName('IMG')[1];img.src = '../images/tab_right_over.gif';}}function rolloutTab(){if(this.className ==  'inactiveTabOver'){this.className='tabInactive';var img = this.getElementsByTagName('IMG1')[0];if(img.src.indexOf('tab_')<=0)img = this.getElementsByTagName('IMG')[1];img.src = '../images/tab_right_inactive.gif';}}function hoverTabViewCloseButton(){this.src = this.src.replace('../images/close.gif','../images/close_over.gif');}function stopHoverTabViewCloseButton(){this.src = this.src.replace('../images/close_over.gif','close.gif');}function initTabs(mainContainerID,tabTitles,activeTab,width,height,closeButtonArray,additionalTab){if(!closeButtonArray)closeButtonArray = new Array();if(!additionalTab || additionalTab=='undefined'){dhtmlgoodies_tabObj[mainContainerID] = document.getElementById(mainContainerID);width = width + '';if(width.indexOf('%')<0)width= width + 'px';dhtmlgoodies_tabObj[mainContainerID].style.width = width;height = height + '';if(height.length>0){if(height.indexOf('%')<0)height= height + 'px';dhtmlgoodies_tabObj[mainContainerID].style.height = height;}tabViewHeight[mainContainerID] = height;var tabDiv = document.createElement('DIV');var firstDiv = dhtmlgoodies_tabObj[mainContainerID].getElementsByTagName('DIV')[0];dhtmlgoodies_tabObj[mainContainerID].insertBefore(tabDiv,firstDiv);tabDiv.className = 'dhtmlgoodies_tabPane';tabView_countTabs[mainContainerID] = 0;}else{var tabDiv = dhtmlgoodies_tabObj[mainContainerID].getElementsByTagName('DIV')[0];var firstDiv = dhtmlgoodies_tabObj[mainContainerID].getElementsByTagName('DIV')[1];height = tabViewHeight[mainContainerID];activeTab = tabView_countTabs[mainContainerID];}for(var no=0;no<tabTitles.length;no++){var aTab = document.createElement('DIV');aTab.id = 'tabTab' + mainContainerID + "_" +  (no + tabView_countTabs[mainContainerID]);aTab.onmouseover = rolloverTab;aTab.onmouseout = rolloutTab;aTab.onclick = tabClick;aTab.className='tabInactive';tabDiv.appendChild(aTab);var span = document.createElement('SPAN');span.innerHTML = tabTitles[no];span.style.position = 'relative';aTab.appendChild(span);if(closeButtonArray[no]){var closeButton = document.createElement('IMG');closeButton.src = '../images/close.gif';closeButton.height = closeImageHeight + 'px';closeButton.width = closeImageHeight + 'px';closeButton.setAttribute('height',closeImageHeight);closeButton.setAttribute('width',closeImageHeight);closeButton.style.position='absolute';closeButton.style.top = '6px';closeButton.style.right = '0px';closeButton.onmouseover = hoverTabViewCloseButton;closeButton.onmouseout = stopHoverTabViewCloseButton;span.innerHTML = span.innerHTML + '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';var deleteTxt = span.innerHTML+'';closeButton.onclick = function(){ deleteTab(this.parentNode.innerHTML) };span.appendChild(closeButton);}var img = document.createElement('IMG');img.valign = 'bottom';img.src = '../images/tab_right_inactive.gif';// IE5.X FIXif((navigatorVersion && navigatorVersion<6) || (MSIE && !strictDocType)){img.style.styleFloat = 'none';img.style.position = 'relative';img.style.top = '4px'span.style.paddingTop = '4px';aTab.style.cursor = 'hand';}	// End IE5.x FIXaTab.appendChild(img);}var tabs = dhtmlgoodies_tabObj[mainContainerID].getElementsByTagName('DIV');var divCounter = 0;for(var no=0;no<tabs.length;no++){if(tabs[no].className=='dhtmlgoodies_aTab' && tabs[no].parentNode.id == mainContainerID){if(height.length>0)tabs[no].style.height = height;tabs[no].style.display='none';tabs[no].id = 'tabView' + mainContainerID + "_" + divCounter;divCounter++;}}tabView_countTabs[mainContainerID] = tabView_countTabs[mainContainerID] + tabTitles.length;showTab(mainContainerID,activeTab);return activeTab;}function showAjaxTabContent(ajaxIndex,parentId,tabId){var obj = document.getElementById('tabView'+parentId + '_' + tabId);obj.innerHTML = ajaxObjects[ajaxIndex].response;}function resetTabIds(parentId){var tabTitleCounter = 0;var tabContentCounter = 0;var divs = dhtmlgoodies_tabObj[parentId].getElementsByTagName('DIV');for(var no=0;no<divs.length;no++){if(divs[no].className=='dhtmlgoodies_aTab'){divs[no].id = 'tabView' + parentId + '_' + tabTitleCounter;tabTitleCounter++;}if(divs[no].id.indexOf('tabTab')>=0){divs[no].id = 'tabTab' + parentId + '_' + tabContentCounter;tabContentCounter++;}}tabView_countTabs[parentId] = tabContentCounter;}function createNewTab(parentId,tabTitle,tabContent,tabContentUrl,closeButton){if(tabView_countTabs[parentId]>=tabView_maxNumberOfTabs)return;	// Maximum number of tabs reached - returnvar div = document.createElement('DIV');div.className = 'dhtmlgoodies_aTab';dhtmlgoodies_tabObj[parentId].appendChild(div);var tabId = initTabs(parentId,Array(tabTitle),0,'','',Array(closeButton),true);if(tabContent)div.innerHTML = tabContent;if(tabContentUrl){var ajaxIndex = ajaxObjects.length;ajaxObjects[ajaxIndex] = new sack();ajaxObjects[ajaxIndex].requestFile = tabContentUrl;	// Specifying which file to getajaxObjects[ajaxIndex].onCompletion = function(){ showAjaxTabContent(ajaxIndex,parentId,tabId); };	// Specify function that will be executed after file has been foundajaxObjects[ajaxIndex].runAJAX();		// Execute AJAX function}}function getTabIndexByTitle(tabTitle){var regExp = new RegExp("(.*?)&nbsp.*$","gi");tabTitle = tabTitle.replace(regExp,'$1');for(var prop in dhtmlgoodies_tabObj){var divs = dhtmlgoodies_tabObj[prop].getElementsByTagName('DIV');for(var no=0;no<divs.length;no++){if(divs[no].id.indexOf('tabTab')>=0){var span = divs[no].getElementsByTagName('SPAN')[0];var regExp2 = new RegExp("(.*?)&nbsp.*$","gi");var spanTitle = span.innerHTML.replace(regExp2,'$1');if(spanTitle == tabTitle){var tmpId = divs[no].id.split('_');return Array(prop,tmpId[tmpId.length-1].replace(/[^0-9]/g,'')/1);}}}}return -1;}/* Call this function if you want to display some content from external file in one of the tabsArguments: Title of tab and relative path to external file */function addAjaxContentToTab(tabTitle,tabContentUrl){var index = getTabIndexByTitle(tabTitle);if(index!=-1){var ajaxIndex = ajaxObjects.length;tabId = index[1];parentId = index[0];ajaxObjects[ajaxIndex] = new sack();ajaxObjects[ajaxIndex].requestFile = tabContentUrl;	// Specifying which file to getajaxObjects[ajaxIndex].onCompletion = function(){ showAjaxTabContent(ajaxIndex,parentId,tabId); };	// Specify function that will be executed after file has been foundajaxObjects[ajaxIndex].runAJAX();		// Execute AJAX function}}function deleteTab(tabLabel,tabIndex,parentId){if(tabLabel){var index = getTabIndexByTitle(tabLabel);if(index!=-1){deleteTab(false,index[1],index[0]);}}else if(tabIndex>=0){if(document.getElementById('tabTab' + parentId + '_' + tabIndex)){var obj = document.getElementById('tabTab' + parentId + '_' + tabIndex);var id = obj.parentNode.parentNode.id;obj.parentNode.removeChild(obj);var obj2 = document.getElementById('tabView' + parentId + '_' + tabIndex);obj2.parentNode.removeChild(obj2);resetTabIds(parentId);activeTabIndex[parentId]=-1;showTab(parentId,'0');}}}/******************start mobile web*****************/function popupnr(mylink, windowname, refocus){var mywin, href;if (typeof(mylink) == 'string')   href=mylink;else   href=mylink.href;mywin = window.open('', windowname, 'width=400,height=500,scrollbars=yes');// if we just opened the windowif (   mywin.closed ||   (! mywin.document.URL) ||   (mywin.document.URL.indexOf("about") == 0)   )   mywin.location=href;else if (refocus)   mywin.focus();return false;}/*********end mobile web*********************//*********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 = 11;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','12px');changecss('#nav li a','font-size','12px');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);};i/**********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************/jQuery(document).ready(/*This function gets loaded when all the HTML, not including the portlets, isloaded.*/function() {imagePreview();});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(document).ready(function() {jQuery(".sliderFAMA").hrzAccordion({containerClass     : "container1",listItemClass      : "listItem",openOnLoad         :"4",				eventTrigger	   : "mouseover",contentWrapper     : "contentWrapper1",contentInnerWrapper: "contentInnerWrapper1",handleClass        : "handle1",handleClassOver    : "handleOver1",handleClassSelected: "handleSelected1",handlePosition     : "left",handlePositionArray: "left,left,left,left"});});/*********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 = 11;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','12px');changecss('#nav li a','font-size','12px');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************/