/*	-------------------------------------------------------------
	SPLASH interactive
	- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	Description:	Generic Scripts / Functions
	Filename:		jsLib.js
	Version:		1.1
	Date:			June 12, 2006
	-------------------------------------------------------------	*/
	
	/*	-------------------------------------------------------------
	function getCookie(), setCookie(), deleteCookie()
	- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	Description:	Yes, these functions are used for handling
					cookies.
	- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -	*/
		
		<!--
		
		function getCookie(CookieName) {
			var start = document.cookie.indexOf(CookieName + '=');
			var len = start + CookieName.length + 1;
			if ((!start) && (CookieName != document.cookie.substring(0,CookieName.length)))
				return null;
			if (start == -1)
				return null;
			var end = document.cookie.indexOf(';',len);
			if (end == -1) end = document.cookie.length;
				return unescape(document.cookie.substring(len,end));
		}

		function setCookie(CookieName,value,expires,path,domain,secure) {
			document.cookie = CookieName + "=" +escape(value) +
			( (expires) ? ";expires=" + expires : "") +
			( (path) ? ";path=" + path : "") + 
			( (domain) ? ";domain=" + domain : "") +
			( (secure) ? ";secure" : "");
		}

		function deleteCookie(CookieName,path,domain) {
			if (getCookie(CookieName))
				document.cookie =
				CookieName + '=' +
				( (path) ? ';path=' + path : '') +
				( (domain) ? ';domain=' + domain : '') +
				';expires=Thu, 01-Jan-1970 00:00:01 GMT';
		}
		//-->
		
		
		
/*	-------------------------------------------------------------
	function getBrowserWidth()
	- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	Description:	This function returns
					the browser's width in pixels.
	- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	Credits:		Script found on Particle Tree
					http://www.particletree.com
	- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -	*/
	
		<!--
		function getBrowserWidth(){
			if (window.innerWidth){
				return window.innerWidth;}	
			else if (document.documentElement && document.documentElement.clientWidth != 0){
				return document.documentElement.clientWidth;	}
			else if (document.body){return document.body.clientWidth;}		
				return 0;
		}
		//-->

/*	-------------------------------------------------------------
	function determineStyle()
	- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	Description:	This function swaps the styles.
	- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	Credits:		Script found on A List Apart
					http://www.alistapart.com
	- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -	*/
	
		<!--
		
		function doOnResize () {
				determineStyle();
			}
			
			window.onresize =	doOnResize;
			
			
			
			
		function determineStyle(){
			
			var browserWidth = getBrowserWidth();
				
			var i, a, main;
			
			if (browserWidth <= 810){
				for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
					if(a.getAttribute("rel").indexOf("style") != -1
					&& a.getAttribute("title")) {
						a.disabled = true;
						if(a.getAttribute("title") == "oldSchool") a.disabled = false;
					}
				}
			}
			
			
			if (browserWidth >= 811 && browserWidth <= 1050){
				for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
					if(a.getAttribute("rel").indexOf("style") != -1
					&& a.getAttribute("title")) {
						a.disabled = true;
						if(a.getAttribute("title") == "lessThan1600") a.disabled = false;
					}
				}
			}
			
			if (browserWidth > 1050 ){
				for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
					if(a.getAttribute("rel").indexOf("style") != -1
					&& a.getAttribute("title")) {
						a.disabled = true;
						if(a.getAttribute("title") == "wide") a.disabled = false;
					}
				}
			}
		}
		//-->
		
/*	-------------------------------------------------------------
	function show_RL_rollover()
	- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	Description:	These functions hide and show divs based on 
					actions and time
	- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -	*/
	
	<!--
	
	var currentDiv = ''

function showDiv(id){

			if(document.all && !document.getElementById) {
				x = document.all[id]
			}else{
				x = document.getElementById(id)
			}
					
			//show div
			if(currentDiv == '')
			{
				currentDiv = x;
			}
			else
			{
				//swap div
				currentDiv.style.display = 'none';
				currentDiv = x;
			}
			x.style.display = 'block';
			closeDivTimer(id);
		}
		
		
	function closeDivTimer(id)
		{
			setTimeout("hideDiv(\""+id+"\");",15000);
		}
		
	
	function hideDiv(id)
		{
		if(document.all && !document.getElementById) 
		{
			x = document.all[id]
		}
		
		else
		{
			x = document.getElementById(id)
		}
		
		x.style.display = 'none';	
		
		}//end doHideDiv
	
	

	//-->
	
	
	
	// write year  
var theDate=new Date()

function writeYear(){
  document.write(theDate.getFullYear())
}
		

		

