﻿/*
 * jQuery TOOLS plugin :: ComSite Support 1.0
 * 
 * Copyright (c) 2009 Jay Kappel
 * http://www.comsite.org
 *
 */
var csObj, w; jQuery.tools.tabs.addEffect("csfade", function(i, done) { var conf = this.getConf(), curPane = this.getCurrentPane(), newPane = this.getPanes().eq(i); if (conf.fadeOutSpeed) { if (curPane.is(':visible') == true) { curPane.fadeOut(conf.fadeOutSpeed, function() { newPane.fadeIn(conf.fadeInSpeed, done); }); } else { newPane.fadeIn(conf.fadeInSpeed, done); } } else { curPane.hide(); newPane.fadeIn(conf.fadeInSpeed, done); } }); jQuery.tools.tabs.addEffect("csslide", function(i, done) { var conf = this.getConf(), curPane = this.getCurrentPane(), newPane = this.getPanes().eq(i); if (curPane.is(':visible') == true) { w = curPane.width(); curPane.animate({ width: 0 }, conf.fadeOutSpeed, function() { curPane.hide(); curPane.width(w); newPane.width(0); newPane.show(); newPane.animate({ width: w }, conf.fadeInSpeed, done); }); } else { w = newPane.width(); newPane.width(0); newPane.show(); newPane.animate({ width: w }, conf.fadeInSpeed, done); } }); jQuery.tools.tabs.initRollover = function(api, iDelay) { var tabs = api.getTabs(); for (var tab = 0; tab < tabs.length; tab++) { tabs[tab].tabNo = tab; tabs[tab].tabApi = api; tabs[tab].timeoutId = -1; jQuery(tabs[tab]).bind("mouseenter mouseleave", function(event) { jQuery.tools.tabs.activeEvent = event; if (event.type == 'mouseenter') { this.timeoutId = window.setTimeout(function() { var node = jQuery.tools.tabs.activeEvent.target; node.tabApi.click(node.tabNo); }, iDelay); } else if (event.type == 'mouseleave') { if (this.timeoutId >= 0) window.clearTimeout(this.timeoutId); this.timeoutId = -1; } }); } }
function dnnGup(sTag) { var sVal = false; sTag = sTag.toLowerCase(); var sUrl = decodeURI(document.location.href).toLowerCase(); if (sUrl.indexOf(sTag) > 0) { var sVal = sUrl.split(sTag)[1]; if (sVal.substring(0, 1) == '/') sVal = parseInt(sVal.split('/')[1]); else if (sVal.substring(0, 1) == '=') sVal = parseInt(sVal.split('&')[0].replace('=', '')); else sVal = false; } return sVal; }