a2a_linkname=document.title;
a2a_linkurl=location.href;

var temp;

/**
 * Function that returns the first node that isn't a #TEXT.
 **/
function GetFirstChildElement(element_children) {
	for (var count = 0; count <= element_children.length; count++) {
		if (element_children[count].nodeType == 1) {
			return element_children[count];
		}
	}
}

$(document).ready(function() {
	$('#slideshow').after('<ul class="nav">').cycle({
		fx: 'fade',
		speed: 3000,
		timeout: 10000,
		pager: '.nav',
		pagerAnchorBuilder: function(idx, slide) {
			return '<li><a href=' + idx + '><img src=' + GetFirstChildElement(slide.childNodes).src + ' /></a></li>';	
		}
	});	
	
	$("a.link_box_right_link span").mouseup(function() {
		$(this).css({
			'background-image' : 'url(o/5888/images/side_button.jpg)'
		});
	}).mousedown(function() {
		$(this).css({
			'background-image' : 'url(o/5888/images/side_button_down.jpg)'
		});
	});
   
	
	$(function(){ $('.three_col').equalHeights(); });
	$(function(){ $('.three_info_box').equalHeights(); });
	$(function(){ $('#footer_top_box').equalHeights(); });
	$(function(){ $('.two_col').equalHeights(); });

});
