jQuery(function(){

	jQuery('a.external').click(function(){
		//	window.open(this.href);
		setTimeout('window.open("'+this.href+'")',500);
		return false;
	});

	jQuery(function(){

		jQuery("sup").each(function (i) {
			var parent = jQuery(this).parent().get(0);
			if(parent.firstChild==jQuery(this).get(0)){
				jQuery(parent).addClass("small");
			}
		  });
	});
});


jQuery(document).ready(function() {
	jQuery('ul#accordion a.heading').click(function() {
		jQuery(this).css('outline','none');
		if(jQuery(this).parent().hasClass('current')) {
			jQuery(this).siblings('ul').slideDown('slow',function() {
				jQuery(this).parent().removeClass('current');
			});
		} else {
			jQuery('ul#accordion li.current ul').slideUp('slow');
			jQuery(this).siblings('ul').slideToggle('slow',function() {
				jQuery(this).parent().addClass('current');
			});
		}
		return false;
	});
});

var Spotlight = {
	'Facebook':'ad.doubleclick.net/activity;src=1139843;type=pgenz722;cat=onsta793',
	'Youtube':'ad.doubleclick.net/activity;src=1139843;type=pgenz722;cat=onsta497',
	'Twitter':'ad.doubleclick.net/activity;src=1139843;type=pgenz722;cat=onsta741',
	'RSS Feed':'ad.doubleclick.net/activity;src=1139843;type=pgenz722;cat=onsta621',
	'setupform':'fls.doubleclick.net/activityi;src=1139843;type=pstar455;cat=onsta712',
	'contactform':'ad.doubleclick.net/activity;src=1139843;type=eeclx810;cat=onsta835'
};

jQuery(document).ready(function() {
		jQuery("[class*=spotlight]").click(function() {
			var elem=jQuery(this)[0];
			var spotlightName = elem.title;
			if(elem.tagName.toLowerCase()=='input'){
				spotlightName=elem.form.id;
			}
			if(spotlightName!="" && Spotlight[spotlightName]){
				var axel = Math.random()+"";
				var a = axel * 10000000000000;
				var spotlightTag = new Image();
				spotlightTag.src = "http://" + Spotlight[spotlightName] + ";ord=" + a + "?";
			}
			
		});
		
	});
	
