/*------------------------------------------------------------------------ # JA Teline II for Joomla 1.5 - Version 1.6 - Licence Owner JA126191 # ------------------------------------------------------------------------ # Copyright (C) 2004-2008 J.O.O.M Solutions Co., Ltd. All Rights Reserved. # @license - Copyrighted Commercial Software # Author: J.O.O.M Solutions Co., Ltd # Websites: http://www.joomlart.com - http://www.joomlancers.com # This file may not be redistributed in whole or significant part. -------------------------------------------------------------------------*/ function switchFontSize (ckname,val){ var bd = $E('body'); switch (val) { case 'inc': if (CurrentFontSize+1 < 7) { bd.removeClass('fs'+CurrentFontSize); CurrentFontSize++; bd.addClass('fs'+CurrentFontSize); } break; case 'dec': if (CurrentFontSize-1 > 0) { bd.removeClass('fs'+CurrentFontSize); CurrentFontSize--; bd.addClass('fs'+CurrentFontSize); } break; default: bd.removeClass('fs'+CurrentFontSize); CurrentFontSize = val; bd.addClass('fs'+CurrentFontSize); } Cookie.set(ckname, CurrentFontSize,{duration:365}); } function switchTool (ckname, val) { createCookie(ckname, val, 365); window.location.reload(); } 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=/"; } String.prototype.trim = function() { return this.replace(/^\s+|\s+$/g, ""); }; //addEvent - attach a function to an event function jaAddEvent(obj, evType, fn){ if (obj.addEventListener){ obj.addEventListener(evType, fn, false); return true; } else if (obj.attachEvent){ var r = obj.attachEvent("on"+evType, fn); return r; } else { return false; } } function equalHeight(){ if($('ja-botsl')) makeEqualHeight ($$('#ja-botsl .moduletable')); /* //Equal for headline $hlfirst = $('jazin-hlfirst'); $hlnext = $('jazin-hlnext'); if($hlfirst && $hlnext) { h1 = $hlfirst.getCoordinates().height; h2 = $hlnext.getCoordinates().height; if(h1