/* #------------------------------------------------------------------------ JA Purity II for Joomla 1.5 #------------------------------------------------------------------------ #Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved. #@license - GNU/GPL, http://www.gnu.org/copyleft/gpl.html #Author: J.O.O.M Solutions Co., Ltd #Websites: http://www.joomlart.com - http://www.joomlancers.com #------------------------------------------------------------------------ */ //Call noconflict if detect jquery //Apply jquery.noConflict if jquery is enabled if(typeof(jQuery) != "undefined" && $===jQuery){ jQuery.noConflict(); } 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*')); makeEqualHeight ($$(getElementsByClass('moduletable.*', $('ja-botsl')))); /* //Equal for headline $hlfirst = $('jazin-hlfirst'); $hlnext = $('jazin-hlnext'); if($hlfirst && $hlnext) { h1 = $hlfirst.getCoordinates().height; h2 = $hlnext.getCoordinates().height; if(h1 Работа и вакансии в Курске