// Modern Astronomy Javascript Framework

//Homepage scroller

/*
$(document).ready(function(){
		var sCounter = 0;
		totalSlides = 4;
		
		var scrollWrapper = $("div.scrollWrapper");	
		
		$("#slideContainer", scrollWrapper).everyTime(2000,function(){						
			if(totalSlides < sCounter){ 
			 	//$("#slideContainer").animate({"left": "=0px"}, "normal");
				sCounter = 0;
				$("div#counter").replaceWith("reset");
			 }
			sCounter++;
			$("#slideContainer").animate({"left": "-=450px"}, "normal");
			//$("div#counter").replaceWith(sCounter);
		});
				
}); //end of ready function */

$(function(){
	$('#carousel').infiniteCarousel({
		displayTime: 3000,
		textholderHeight : .25
	});
});


//Launch external links in a new window
function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
 }
}
window.onload = externalLinks;

//show hide layers

function showHide(obj)
{
	if(document.getElementById(obj).style.display == "none")
	{	
		document.getElementById(obj).style.display = "block";
	}
	else
		document.getElementById(obj).style.display = "none";
}

//Drivers for the QHY camera's

urlString="http://www.astrosoft.be/RELEASE/";
function getDriver(driverName)
{
	driverName = driverName.value;
	if(driverName != "Select")
	{
		window.location = urlString + driverName;
	}
}



