$(function()
{
	$("a.external").newWin();
	$('.hp_slideshow').cycle('fade');
	
	$.ajax({
	  url: "struct/gpx/controller/twitter.php",
	  dataType: 'json',
	  data: "",
	  success: success = function(msg) { 
	  	twitterCallback2(msg);
		$("#sitewrapper").append("<div class='clear'></div>");
	  }
	});
});

/*
jQuery New Window Plugin
Author: Shane Riley
Author URL: http://shaneriley.com
Version: 1
Description: To keep the doctype strict and pass validation, you need to open
links in a new target using Javascript (no more using the target attribute).
This plugin makes opening links in new targets stupid simple. Default target is
"_blank", but you can feed it a different target like in the example below.
Usage: $("a").newWin({target: "_parent"});
*/
(function($)
{
	$.fn.newWin = function(options)
	{
		var defaults =
		{
			target: "_blank"
		};
		var opts = $.extend(defaults, options);
		return this.each(function()
		{
			$(this).click(openWin);
		});
		function openWin()
		{
			$link = $(this);
			window.open($(this).attr("href"), opts.target);
			return false;
		}
	};
})(jQuery);
