/** Script **/
$(document).ready(function() {

	$('.lightbox a').lightBox();
	
	$(".popup").fancybox();
	
});		
	
	
/** Script **/
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));


/** Script **/
try {
	var pageTracker = _gat._getTracker("UA-7666755-28");
	pageTracker._trackPageview();
} 
catch(err) {}
	
			
/** Script **/
function popUp(URL) {
  newwindow = window.open(URL, 'page', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=543,height=469,left = 440,top = 160');
  if (window.focus) {newwindow.focus()};
}

function popUpWindow(URL,w,h) {
  newwindow = window.open(URL, 'page', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width='+w+',height='+h+',left = 440,top = 160');
  if (window.focus) {newwindow.focus()};
}

/** Script **/	

/* Old Sldieshow JS
	
var currentSlide = 0;
var slideshowData;
var slideDuration = 4;
var fadeDuration = 0.5;
var slideshowOn = true;

$(function() {
	$.getJSON('headerswfconfig.php?page=welcome',function(response,status) {
		slideshowData = response;
		$("#slideshow").html('<a id="slideshow_link"><img id="slideshow_image" /></a>');
		if (slideshowData.length > 1) {
			for (var i = 0; i < slideshowData.length; i++) {
				$("#slideshow").append('<a href="javascript:directToSlide('+i.toString()+')" class="slideshow_button" style="left:'+(i*10+5).toString()+'px;">&bull;</a>');
			}
		}
		if (slideshowData.length > 0)
		slideContinue();
	});
});

function changeSlide() {
	if (slideshowOn) {
		currentSlide++;
		if (currentSlide >= slideshowData.length) {
			currentSlide = 0;
		}
		$("#slideshow").fadeTo(fadeDuration*1000,0,slideContinue);
	}
}

function slideContinue() {
	$("#slideshow_image").attr("src", slideshowData[currentSlide].source);
	$("#slideshow_link").attr("href",slideshowData[currentSlide].destination);
	$("#slideshow_link").attr("target",slideshowData[currentSlide].target);
	$(".slideshow_button").each(function(i) {
		if (i == currentSlide) {
			$(this).css("color","#fff");
		} else {
			$(this).css("color","#000");
		}
		});
		
		if (slideshowData.length > 1) {
			$("#slideshow").fadeTo(fadeDuration*1000,1,function() {
			setTimeout(changeSlide,slideDuration*1000);
		});
	}
}

function directToSlide(i) {
	currentSlide = i;
	slideshowOn = false;
	$("#slideshow").fadeTo(fadeDuration*1000,0,slideContinue);
}
*/

