$(document).ready(function(){ $.tabs("tabs"); //$("#promos").jKwick({min: 145, max: 525, mid: 272}); $("#teknet").hover( function (){ $("div.utils-box").hide(); $("div#teknetbox").fadeIn(); }, function (){ $("div#teknetbox").fadeOut(); }); $("#logins").hover( function (){ $("div.utils-box").hide(); $("div#loginsbox").fadeIn(); }, function (){ $("div#loginsbox").fadeOut(); }); $("#global").hover( function (){ $("div.utils-box").hide(); $("div#globalbox").fadeIn(); }, function (){ $("div#globalbox").fadeOut(); }); $("#subscribeshow").hover( function (){ $("div.utils-box").hide(); $("div#subscribebox").fadeIn(); }, function (){ $("div#subscribebox").fadeOut(); }); }); // are YOU ready? $(document).ready(function(){ $("#promos li").hover(function(){ $(this).addClass("biggertext"); $(this).children('span.homeslider').animate({bottom:0},100); $(this).children('p.link').fadeTo('fast', 1.0); },function(){ $(this).removeClass("biggertext"); $(this).children('span.homeslider').animate({bottom:-50},100); $(this).children('p.link').fadeTo('fast', 0.0); }); // Rollover Images $("img.rollover").hover( function() { this.src = this.src.replace("_off","_on"); }, function() { this.src = this.src.replace("_on","_off"); } ); }); // you STILL ready? $.tabs = function(containerId, start) { var ON_CLASS = 'on'; var id = '#' + containerId; var i = (typeof start == "number") ? start - 1 : 0; $(id + '>div:lt(' + i + ')').add(id + '>div:gt(' + i + ')').hide(); $(id + '>ul>li:nth-child(' + i + ')').addClass(ON_CLASS); $(id + '>ul>li>a').click(function() { if (!$(this.parentNode).is('.' + ON_CLASS)) { var re = /([_\-\w]+$)/i; var target = $('#' + re.exec(this.href)[1]); if (target.size() > 0) { $(id + '>div:visible').hide(); target.show(); $(id + '>ul>li').removeClass(ON_CLASS); $(this.parentNode).addClass(ON_CLASS); } else { } } return false; }); }; $.fn.jKwick = function(o) { o = $.extend({ min: 0, // Minimum size of each element. All other elements other than the currently hovered element get this size max: 0, // Maximum size of the element. The element that is currently hovered gets this size mid: 0, // Middle size of each element. All the elements get this size when no element is hovered upon speed: 100, // Speed with which the animation should be applied while moving the focus for the element easing: "linear" // The easing effect to be applied to the animation that moves the element's focus }, o || {}); var $ul = $("ul", this), $li = $("li", $ul), liLength = $li.length, $old = null, $new = null, first = true, running = false, noop = function() {}; $li.hover(function() { if(!running) { running = true; $new = $(this); if(first) { $new.animate({width: o.max}, o.speed); $li.not(this).animate({width: o.min}, o.speed, function() { $old = $new; first = running = false; }); } else { var newWidth = $new.width(), oldWidth = $old.width(); $new.animate( { width: o.max }, { duration: o.speed, easing: o.easing, step: function(n) { $old.width(Math.ceil( oldWidth - (n-newWidth))); }, complete: function() { $old = $new; running = false; } }); } } }, noop); $ul.hover(noop, function() { $li.animate({width: o.mid}, o.speed); first = true; }); }; // bigTarget.js - A jQuery Plugin // Version 1.0.1 // Written by Leevi Graham - Technical Director - Newism Web Design & Development // http://newism.com.au // Notes: Tooltip code from fitted.js - http://www.trovster.com/lab/plugins/fitted/ // create closure (function($) { // plugin definition $.fn.bigTarget = function(options) { debug(this); // build main options before element iteration var opts = $.extend({}, $.fn.bigTarget.defaults, options); // iterate and reformat each matched element return this.each(function() { // set the anchor attributes var $a = $(this); var href = $a.attr('href'); var title = $a.attr('title'); // build element specific options var o = $.meta ? $.extend({}, opts, $a.data()) : opts; // update element styles $a.parents(o.clickZone) .hover(function() { $h = $(this); $h.addClass(o.hoverClass); if(typeof o.title != 'undefined' && o.title === true && title != '') { $h.attr('title',title); } }, function() { $h.removeClass(o.hoverClass); if(typeof o.title != 'undefined' && o.title === true && title != '') { $h.removeAttr('title'); } }) // click .click(function() { if(getSelectedText() == "") { if($a.is('[rel*=external]')){ window.open(href); return false; } else { //$a.click(); $a.trigger('click'); window.location = href; } } }); }); }; // private function for debugging function debug($obj) { if (window.console && window.console.log) window.console.log('bigTarget selection count: ' + $obj.size()); }; // get selected text function getSelectedText(){ if(window.getSelection){ return window.getSelection().toString(); } else if(document.getSelection){ return document.getSelection(); } else if(document.selection){ return document.selection.createRange().text; } }; // plugin defaults $.fn.bigTarget.defaults = { hoverClass : 'hover', clickZone : 'div:eq(0)', title : true }; // end of closure })(jQuery); // jquery.zrssfeed.min javascript file (function($){$.fn.rssfeed=function(url,options){var defaults={limit:10,header:false,linktarget:'_blank', titletag:'h6',date:true,content:false,snippet:true,showerror:true,errormsg:'',key:null,ssl:false};var options=$.extend(defaults,options);return this.each(function(i,e){var $e=$(e);var s='';if(options.ssl)s='s';if(!$e.hasClass('rssFeed'))$e.addClass('rssFeed');if(url==null)return false;var api="http"+s+"://ajax.googleapis.com/ajax/services/feed/load?v=1.0&callback=?&q="+encodeURIComponent(url);if(options.limit!=null)api+="&num="+options.limit;if(options.key!=null)api+="&key="+options.key;$.getJSON(api,function(data){if(data.responseStatus==200){_callback(e,data.responseData.feed,options);}else{if(options.showerror) if(options.errormsg!=''){var msg=options.errormsg;}else{var msg=data.responseDetails;};$(e).html('
'+msg+'
'+content+'
'} html+='';if(row=='odd'){row='even';}else{row='odd';}} html+='