//SUPER FISH STARTS HERE 




/*
 * Superfish v1.4.8 - jQuery menu widget
 * Copyright (c) 2008 Joel Birch
 *
 * Dual licensed under the MIT and GPL licenses:
 * 	http://www.opensource.org/licenses/mit-license.php
 * 	http://www.gnu.org/licenses/gpl.html
 *
 * CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt
 */

;(function($){
	$.fn.superfish = function(op){

		var sf = $.fn.superfish,
			c = sf.c,
			$arrow = $(['<span class="',c.arrowClass,'"> &#187;</span>'].join('')),
			over = function(){
				var $$ = $(this), menu = getMenu($$);
				clearTimeout(menu.sfTimer);
				$$.showSuperfishUl().siblings().hideSuperfishUl();
			},
			out = function(){
				var $$ = $(this), menu = getMenu($$), o = sf.op;
				clearTimeout(menu.sfTimer);
				menu.sfTimer=setTimeout(function(){
					o.retainPath=($.inArray($$[0],o.$path)>-1);
					$$.hideSuperfishUl();
					if (o.$path.length && $$.parents(['li.',o.hoverClass].join('')).length<1){over.call(o.$path);}
				},o.delay);	
			},
			getMenu = function($menu){
				var menu = $menu.parents(['ul.',c.menuClass,':first'].join(''))[0];
				sf.op = sf.o[menu.serial];
				return menu;
			},
			addArrow = function($a){ $a.addClass(c.anchorClass).append($arrow.clone()); };
			
		return this.each(function() {
			var s = this.serial = sf.o.length;
			var o = $.extend({},sf.defaults,op);
			o.$path = $('li.'+o.pathClass,this).slice(0,o.pathLevels).each(function(){
				$(this).addClass([o.hoverClass,c.bcClass].join(' '))
					.filter('li:has(ul)').removeClass(o.pathClass);
			});
			sf.o[s] = sf.op = o;
			
			$('li:has(ul)',this)[($.fn.hoverIntent && !o.disableHI) ? 'hoverIntent' : 'hover'](over,out).each(function() {
				if (o.autoArrows) addArrow( $('>a:first-child',this) );
			})
			.not('.'+c.bcClass)
				.hideSuperfishUl();
			
			var $a = $('a',this);
			$a.each(function(i){
				var $li = $a.eq(i).parents('li');
				$a.eq(i).focus(function(){over.call($li);}).blur(function(){out.call($li);});
			});
			o.onInit.call(this);
			
		}).each(function() {
			var menuClasses = [c.menuClass];
			if (sf.op.dropShadows  && !($.browser.msie && $.browser.version < 7)) menuClasses.push(c.shadowClass);
			$(this).addClass(menuClasses.join(' '));
		});
	};

	var sf = $.fn.superfish;
	sf.o = [];
	sf.op = {};
	sf.IE7fix = function(){
		var o = sf.op;
		if ($.browser.msie && $.browser.version > 6 && o.dropShadows && o.animation.opacity!=undefined)
			this.toggleClass(sf.c.shadowClass+'-off');
		};
	sf.c = {
		bcClass     : 'sf-breadcrumb',
		menuClass   : 'sf-js-enabled',
		anchorClass : 'sf-with-ul',
		arrowClass  : 'sf-sub-indicator',
		shadowClass : 'sf-shadow'
	};
	sf.defaults = {
		hoverClass	: 'sfHover',
		pathClass	: 'overideThisToUse',
		pathLevels	: 1,
		delay		: 800,
		animation	: {opacity:'show'},
		speed		: 'normal',
		autoArrows	: true,
		dropShadows : true,
		disableHI	: false,		// true disables hoverIntent detection
		onInit		: function(){}, // callback functions
		onBeforeShow: function(){},
		onShow		: function(){},
		onHide		: function(){}
	};
	$.fn.extend({
		hideSuperfishUl : function(){
			var o = sf.op,
				not = (o.retainPath===true) ? o.$path : '';
			o.retainPath = false;
			var $ul = $(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass)
					.find('>ul').hide().css('visibility','hidden');
			o.onHide.call($ul);
			return this;
		},
		showSuperfishUl : function(){
			var o = sf.op,
				sh = sf.c.shadowClass+'-off',
				$ul = this.addClass(o.hoverClass)
					.find('>ul:hidden').css('visibility','visible');
			sf.IE7fix.call($ul);
			o.onBeforeShow.call($ul);
			$ul.animate(o.animation,o.speed,function(){ sf.IE7fix.call($ul); o.onShow.call($ul); });
			return this;
		}
	});

})(jQuery);


/*
 * Supersubs v0.2b - jQuery plugin
 * Copyright (c) 2008 Joel Birch
 *
 * Dual licensed under the MIT and GPL licenses:
 * 	http://www.opensource.org/licenses/mit-license.php
 * 	http://www.gnu.org/licenses/gpl.html
 *
 *
 * This plugin automatically adjusts submenu widths of suckerfish-style menus to that of
 * their longest list item children. If you use this, please expect bugs and report them
 * to the jQuery Google Group with the word 'Superfish' in the subject line.
 *
 */

;(function($){ // $ will refer to jQuery within this closure

	$.fn.supersubs = function(options){
		var opts = $.extend({}, $.fn.supersubs.defaults, options);
		// return original object to support chaining
		return this.each(function() {
			// cache selections
			var $$ = $(this);
			// support metadata
			var o = $.meta ? $.extend({}, opts, $$.data()) : opts;
			// get the font size of menu.
			// .css('fontSize') returns various results cross-browser, so measure an em dash instead
			var fontsize = $('<li id="menu-fontsize">&#8212;</li>').css({
				'padding' : 0,
				'position' : 'absolute',
				'top' : '-999em',
				'width' : 'auto'
			}).appendTo($$).width(); //clientWidth is faster, but was incorrect here
			// remove em dash
			$('#menu-fontsize').remove();
			// cache all ul elements
			$ULs = $$.find('ul');
			// loop through each ul in menu
			$ULs.each(function(i) {	
				// cache this ul
				var $ul = $ULs.eq(i);
				// get all (li) children of this ul
				var $LIs = $ul.children();
				// get all anchor grand-children
				var $As = $LIs.children('a');
				// force content to one line and save current float property
				var liFloat = $LIs.css('white-space','nowrap').css('float');
				// remove width restrictions and floats so elements remain vertically stacked
				var emWidth = $ul.add($LIs).add($As).css({
					'float' : 'none',
					'width'	: 'auto'
				})
				// this ul will now be shrink-wrapped to longest li due to position:absolute
				// so save its width as ems. Clientwidth is 2 times faster than .width() - thanks Dan Switzer
				.end().end()[0].clientWidth / fontsize;
				// add more width to ensure lines don't turn over at certain sizes in various browsers
				emWidth += o.extraWidth;
				// restrict to at least minWidth and at most maxWidth
				if (emWidth > o.maxWidth)		{ emWidth = o.maxWidth; }
				else if (emWidth < o.minWidth)	{ emWidth = o.minWidth; }
				emWidth += 'em';
				// set ul to width in ems
				$ul.css('width',emWidth);
				// restore li floats to avoid IE bugs
				// set li width to full width of this ul
				// revert white-space to normal
				$LIs.css({
					'float' : liFloat,
					'width' : '100%',
					'white-space' : 'normal'
				})
				// update offset position of descendant ul to reflect new width of parent
				.each(function(){
					var $childUl = $('>ul',this);
					var offsetDirection = $childUl.css('left')!==undefined ? 'left' : 'right';
					$childUl.css(offsetDirection,emWidth);
				});
			});
			
		});
	};
	// expose defaults
	$.fn.supersubs.defaults = {
		minWidth		: 9,		// requires em unit.
		maxWidth		: 25,		// requires em unit.
		extraWidth		: 0			// extra width can ensure lines don't sometimes turn over due to slight browser differences in how they round-off values
	};
	
})(jQuery); // plugin code ends



/* jQuery Expander Plugin - Added by TJ 25-03-2011 - see http://plugins.learningjquery.com/expander/ */
(function(a){a.fn.expander=function(d){var f=a.extend({},a.fn.expander.defaults,d);var c;return this.each(function(){var r=a(this);var k=a.meta?a.extend({},f,r.data()):f;var u,y,m;var q=r.html();var v=q.slice(0,k.slicePoint).replace(/\w+$/,"");y=v.match(/<\w[^>]*>/g);if(y){v=q.slice(0,k.slicePoint+y.join("").length).replace(/\w+$/,"")}if(v.lastIndexOf("<")>v.lastIndexOf(">")){v=v.slice(0,v.lastIndexOf("<"))}var l=q.slice(v.length);if(!a("span.details",this).length){if(l.replace(/\s+$/,"").split(" ").length<k.widow){return}if(l.indexOf("</")>-1){m=l.match(/<(\/)?[^>]*>/g);for(var p=0;p<m.length;p++){if(m[p].indexOf("</")>-1){var x,t=false;for(var n=0;n<p;n++){x=m[n].slice(0,m[n].indexOf(" ")).replace(/(\w)$/,"$1>");if(x==g(m[p])){t=true}}if(!t){v=v+m[p];var h=false;for(var A=y.length-1;A>=0;A--){if(y[A].slice(0,y[A].indexOf(" ")).replace(/(\w)$/,"$1>")==g(m[p])&&h==false){u=u?y[A]+u:y[A];h=true}}}}}l=u&&u+l||l}r.html([v,'<span class="read-more">',k.expandPrefix,'<a href="#">',k.expandText,"</a>","</span>",'<span class="details">',l,"</span>"].join(""))}var w=a("span.details",this),z=a("span.read-more",this);w.hide();z.find("a").click(function(){z.hide();if(k.expandEffect==="show"&&!k.expandSpeed){k.beforeExpand(r);w.show();k.afterExpand(r);e(k,w)}else{k.beforeExpand(r);w[k.expandEffect](k.expandSpeed,function(){w.css({zoom:""});k.afterExpand(r);e(k,w)})}return false});if(k.userCollapse){r.find("span.details").append('<span class="re-collapse">'+k.userCollapsePrefix+'<a href="#">'+k.userCollapseText+"</a></span>");r.find("span.re-collapse a").click(function(){clearTimeout(c);var i=a(this).parents("span.details");b(i);k.onCollapse(r,true);return false})}});function b(h){h.hide().prev("span.read-more").show()}function e(i,h){if(i.collapseTimer){c=setTimeout(function(){b(h);i.onCollapse(h.parent(),false)},i.collapseTimer)}}function g(h){return h.replace(/\//,"")}};a.fn.expander.defaults={slicePoint:100,widow:4,expandText:"read more",expandPrefix:"&hellip; ",collapseTimer:0,expandEffect:"fadeIn",expandSpeed:"",userCollapse:true,userCollapseText:"[Hide expanded text]",userCollapsePrefix:" ",beforeExpand:function(b){},afterExpand:function(b){},onCollapse:function(c,b){}}})(jQuery);




function winBRopen(theURL, Name, popW, popH, scroll) { // V 1.0
var winleft = (screen.width - popW) / 2;
var winUp = (screen.height - popH) / 2;
winProp = 'width='+popW+',height='+popH+',left='+winleft+',top='+winUp+',scrollbars='+scroll+',resizable'
Win = window.open(theURL, Name, winProp)
if (parseInt(navigator.appVersion) >= 4) { Win.window.focus(); }

}





function showPosts(what)
	{
	document.getElementById('dnn_newsLatest').className='hiddy';
	document.getElementById('dnn_newsPopular').className='hiddy';
	document.getElementById('dnn_newsComment').className='hiddy';

	document.getElementById('dnn_newsLatestLink').className='menNews';
	document.getElementById('dnn_newsPopularLink').className='menNews';
	document.getElementById('dnn_newsCommentLink').className='menNews';

	
	document.getElementById(what).className='vissy';
	document.getElementById(what+"Link").className='menNewsActive';
	}


//Email validation
function isValidEmailAddress(emailAddress){var pattern=new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);return pattern.test(emailAddress);}




// JavaScript Document
jQuery.noConflict();

jQuery(document).ready(function() {
	
	/* jQuery Expander Plugin & Initialisation - Added by TJ 25-03-2011 - see http://plugins.learningjquery.com/expander/ */
	jQuery('.readmore').expander({
		slicePoint:      0,  // default is 100
		userCollapseText: 'Hide expanded text'  // default is '[collapse expanded text]'
	});
	
	
	//ACCORDION BUTTON ACTION	
	jQuery('.hostAccordion').click(function() {
		jQuery('.hostContainer').slideUp('normal');	
		jQuery(this).next().slideDown('normal');
//		jQuery('a.hostAccordion').css("background-image", "url(../../images/container/hostBulletDown.gif)");
	});
	
								
	     jQuery("ul.sf-menu").supersubs({ 
            minWidth:    12,   // minimum width of sub-menus in em units 
            maxWidth:    27,   // maximum width of sub-menus in em units 
            extraWidth:  1,     // extra width can ensure lines don't sometimes turn over 
			pathLevels:   2
                               // due to slight rounding differences and font-family 
        }).superfish({ 
		  hoverClass:    'sfHover',    
            delay:       2000,                            // one second delay on mouseout 
            animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
            speed:       'fast',                          // faster animation speed 
            autoArrows:  false,                           // disable generation of arrow mark-up 
            dropShadows: false                            // disable drop shadows 			
        }); 


    jQuery('.error').hide();

    jQuery(".emailButton").click(function() {
        // validate and process form
        // first hide any error messages

        jQuery('.error').hide();

        var name = jQuery("input#name").val();
        if (name == "") {
            jQuery("label#name_error").show();
            jQuery("input#name").focus();
            return false;
        }
        var email = jQuery("input#email").val();
        if (email == "") {
            jQuery("label#email_error").show();
            jQuery("input#email").focus();
            return false;
        }
		
		var emailTo = jQuery("input#emailTo").val();
        
        if (email!="" && !isValidEmailAddress(email)) {
            jQuery("label#email_error").show();
            jQuery("input#email").focus();
            jQuery("label#email_error").html("Invalid email");
            return false;
        }

        var message = jQuery("textarea[name='ta']").val();
        if (message == "") {
            jQuery("label#message_error").show();
            jQuery("textarea[name='ta']").focus();
            return false;
        }

        var dataString = 'name=' + name + '&email=' + email + '&emailTo=' + emailTo + '&message=' + message;
        //alert(dataString); return false;

        jQuery.ajax({
            type: "POST",
            url: "http://www.radiolive.co.nz/Handlers/EmailContactUs.ashx",
            data: dataString,
            success: function() {
                jQuery('#contact_form').html("<div id='message'></div>");
                jQuery('#message').html("<b>Your email has been sent.</b>")
        .append("<p>Thanks for taking the time to contact us.</p>")
        .hide()
        .fadeIn(1500, function() {
                jQuery('#message');
        });
            }
        });

        return false;
    });

	var d = new Date();
	var curr_day = d.getDay();
	var weekDay = false;

	if(curr_day>=1 && curr_day <=5)
	{
		weekDay = true;	
	}
	else
	{
		weekDay = false;			
	}

	if(weekDay)
	{
		/*WESTPAC*/
		/*
		jQuery('.hostDetails').remove();
		jQuery('.hostContainer:eq(4)').css('overflow', 'visible');
		jQuery('.hostContainer:eq(4)').css('height', 90);
		jQuery('.hostContainer:eq(4)').css('background-image', 'url(/Portals/0/images/westpacLogo.gif)');
		jQuery('.hostContainer:eq(4)').css('background-Repeat', 'no-repeat');
		jQuery('.hostContainer:eq(4)').css('backgroundPosition', 'bottom center');
		*/
		/*TSB*/
		jQuery('.hostDetails').remove();
		jQuery('.hostContainer:eq(0)').css('overflow', 'visible');
		jQuery('.hostContainer:eq(0)').css('height', 90);
		jQuery('.hostContainer:eq(0)').css('background-image', 'url(/Portals/0/images/Sponsorship/TSBLogoBreakfast.gif)');
		jQuery('.hostContainer:eq(0)').css('background-Repeat', 'no-repeat');
		jQuery('.hostContainer:eq(0)').css('backgroundPosition', 'bottom center');
	}

/*BALANCE (Promotion Ewing Show - 1-30 September 2010)*/
	/*
	if(curr_day==1 || curr_day==2)
	{
		jQuery('.hostDetails').remove();
		jQuery('.hostContainer:eq(7)').css('overflow', 'visible');
		jQuery('.hostContainer:eq(7)').css('height', 90);
		jQuery('.hostContainer:eq(7)').css('background-image', 'url(/Portals/0/images/balanceLogo.gif)');
		jQuery('.hostContainer:eq(7)').css('background-Repeat', 'no-repeat');
		jQuery('.hostContainer:eq(7)').css('backgroundPosition', 'bottom center');
	}
	if(curr_day==7)
	{
		jQuery('.hostDetails').remove();
		jQuery('.hostContainer:eq(6)').css('overflow', 'visible');
		jQuery('.hostContainer:eq(6)').css('height', 90);
		jQuery('.hostContainer:eq(6)').css('background-image', 'url(/Portals/0/images/balanceLogo.gif)');
		jQuery('.hostContainer:eq(6)').css('background-Repeat', 'no-repeat');
		jQuery('.hostContainer:eq(6)').css('backgroundPosition', 'bottom center');
	}*/
	//HIDE THE DIVS ON PAGE LOAD
	jQuery('.hostContainer').hide();

	if(curr_day>=1 && curr_day <=5)
	{
		weekDay = true;	
	}
	else
	{
		weekDay = false;			
	}

		
	var curr_hour = d.getHours();

//Weekday shows
	if(weekDay)
	{
		//Wednesday
		if(curr_day==3)
		{
			//Marcus Lush
			if(curr_hour>6 && curr_hour<9){
				jQuery('.hostContainer:eq(0)').slideDown('normal');
			}
			//Michael Laws
			if(curr_hour>=9 && curr_hour<12){
				jQuery('.hostContainer:eq(1)').slideDown('normal');
			}
			//The world at noon
			if(curr_hour>=12 && curr_hour<13){
				jQuery('.hostContainer:eq(2)').slideDown('normal');
			}
			//Willie & JT
			if(curr_hour>=13 && curr_hour<16){
				jQuery('.hostContainer:eq(3)').slideDown('normal');
			}
			//Maggie Barry 
			if(curr_hour>=16 && curr_hour<18){
			jQuery('.hostContainer:eq(4)').slideDown('normal');
			/*	WESTPAC		*/
			}
			//The Naked All Blacks
			if(curr_hour>=18 && curr_hour<20){
				jQuery('.hostContainer:eq(5)').slideDown('normal');
			}
			//Fagan and Hay
			if(curr_hour>=20 && curr_hour<22){
				jQuery('.hostContainer:eq(6)').slideDown('normal');
			}
			//Martin Crump
			if(curr_hour>=22 && curr_hour<24){
				jQuery('.hostContainer:eq(7)').slideDown('normal');
			}
			//Martin Crump
			if(curr_hour==1){
				jQuery('.hostContainer:eq(7)').slideDown('normal');
			}
			//Ewing Stevens
			if(curr_hour>=1 && curr_hour<5){
				jQuery('.hostContainer:eq(8)').slideDown('normal');
			}
			//Richard Lowe
			if(curr_hour>=5 && curr_hour<6){
				jQuery('.hostContainer:eq(9)').slideDown('normal');
			}
		}
		else
		{
			//Marcus Lush
			if(curr_hour>6 && curr_hour<9){
				jQuery('.hostContainer:eq(0)').slideDown('normal');
			}
			//Michael Laws
			if(curr_hour>=9 && curr_hour<12){
				jQuery('.hostContainer:eq(1)').slideDown('normal');
			}
			//The world at noon
			if(curr_hour>=12 && curr_hour<13){
				jQuery('.hostContainer:eq(2)').slideDown('normal');
			}
			//Willie & JT
			if(curr_hour>=13 && curr_hour<16){
				jQuery('.hostContainer:eq(3)').slideDown('normal');
			}
			//Maggie Barry 
			if(curr_hour>=16 && curr_hour<18){
			jQuery('.hostContainer:eq(4)').slideDown('normal');
			/*	WESTPAC		*/
			}
			//Hay and Fagan
			if(curr_hour>=18 && curr_hour<22){
				jQuery('.hostContainer:eq(5)').slideDown('normal');
			}
			//Martin Crump
			if(curr_hour>=22 && curr_hour<24){
				jQuery('.hostContainer:eq(6)').slideDown('normal');
			}
			//Martin Crump
			if(curr_hour==1){
				jQuery('.hostContainer:eq(6)').slideDown('normal');
			}
			//Ewing Stevens
			if(curr_hour>=1 && curr_hour<5){
				jQuery('.hostContainer:eq(7)').slideDown('normal');
			}
			//Richard Lowe
			if(curr_hour>=5 && curr_hour<6){
				jQuery('.hostContainer:eq(8)').slideDown('normal');
			}
		}
	}
	else
	{
		//Saturday
		if(curr_day==6)
		{
			//Kitchen and Garden
			if(curr_hour>=6 && curr_hour<10){
				jQuery('.hostContainer:eq(0)').slideDown('normal');
			}
			//Graeme Hill
			if(curr_hour>=10 && curr_hour<14){
				jQuery('.hostContainer:eq(1)').slideDown('normal');
			}
			//Devlin
			if(curr_hour>=14 && curr_hour<19){
				jQuery('.hostContainer:eq(2)').slideDown('normal');
			}
			//Pop goes the weasel
			if(curr_hour>=19 && curr_hour<20){
				jQuery('.hostContainer:eq(3)').slideDown('normal');
			}
			//Keith
			if(curr_hour>=20 && curr_hour<24){
				jQuery('.hostContainer:eq(4)').slideDown('normal');
			}
			//Keith
			if(curr_hour==1){
				jQuery('.hostContainer:eq(4)').slideDown('normal');
			}
			//Bruce
			if(curr_hour>=1 && curr_hour<5){
				jQuery('.hostContainer:eq(5)').slideDown('normal');
			}
			//Bruce
			if(curr_hour>=5 && curr_hour<6){
				jQuery('.hostContainer:eq(5)').slideDown('normal');
			}
		}
		//Sunday
		else
		{
			//Kitchen and Garden
			if(curr_hour>=6 && curr_hour<9){
				jQuery('.hostContainer:eq(0)').slideDown('normal');
			}
			//Sunday Business
			if(curr_hour>=9 && curr_hour<10){
				jQuery('.hostContainer:eq(1)').slideDown('normal');
			}
			//Graeme Hill
			if(curr_hour>=10 && curr_hour<14){
				jQuery('.hostContainer:eq(2)').slideDown('normal');
			}
			//Devlin
			if(curr_hour>=14 && curr_hour<19){
				jQuery('.hostContainer:eq(3)').slideDown('normal');
			}
			//Public
			if(curr_hour>=19 && curr_hour<20){
				jQuery('.hostContainer:eq(4)').slideDown('normal');
			}
			//Nutters
			if(curr_hour>=20 && curr_hour<24){
				jQuery('.hostContainer:eq(5)').slideDown('normal');
			}
			//Ewing
			if(curr_hour>=1 && curr_hour<6){
				jQuery('.hostContainer:eq(6)').slideDown('normal');
			}
		}		
	}




setTimeout(function(){jQuery("#talkbackAdvert").fadeTo('slow', 0, removeAd);}, 7000);

jQuery("#hoverPoint").mouseover(function(){
	jQuery("#talkbackAdvert").show();
	jQuery("#panelAdvert").css("margin-top",-55);
	jQuery("#talkbackAdvert").stop().fadeTo('slow', 1);
});
jQuery("#hoverPoint").mouseout(function(){
	jQuery("#talkbackAdvert").stop().fadeTo(3000, 0, removeAd);
});

function removeAd(){
	jQuery("#talkbackAdvert").hide();
	jQuery("#panelAdvert").css("margin-top",245);
}



/* TABS */ 


jQuery('#tabs div').hide();
jQuery('#tabs div:first').show();
jQuery('#tabs ul li:first').addClass('active');
 
jQuery('#tabs ul li a').click(function(){
jQuery('#tabs ul li').removeClass('active');
jQuery(this).parent().addClass('active');
var currentTab = jQuery(this).attr('href');
jQuery('#tabs div').hide();
jQuery(currentTab).fadeIn();
return false;
});



/*
        jQuery('.CommentSubmitButton').click(function(){
         tb_show('Your post will appear after it has been moderated','TB_inline?height=120&amp;width=800&amp;inlineId=comsubmit');
            return false;
        });
 
 
       jQuery('input#TBsubmit').click(function(){
            document.Form.submit();
        });

*/


jQuery('.newsBulletin').popupWindow({ 
centerBrowser:1,
height:415, 
width:470
}); 


jQuery('.audioPlayer,#listenLive').popupWindow({ 
centerBrowser:1,
height:415, 
width:470
}); 

jQuery('.webCam,#viewWebcam').popupWindow({ 
centerBrowser:1,
height:415, 
width:470
});

});
         


