/*
#########################################################
#
# default javascript settings for the entire site
#
# Copyright:		2000-2008 S-Inside
# Project:			sd2.nl
# Platform:			Javascript
#
#########################################################
*/

// settings for this website
var $sHomepage = "index.html";					// where should site go to if loaded in frame
var $nScrollFaceColor = "#a71f1f";				// colors for scrollbars
var $nScrollArrowColor = "#000000";				// colors for scrollbars
var $nScrollTrackColor = "#dfdbdb";				// colors for scrollbars
var $nScrollShadowColor = "#5c5a5a";			// colors for scrollbars
var $nScrollHighlightColor = "#d1cfcf";			// colors for scrollbars
var $nScroll3dlightColor = "#e0dada";			// colors for scrollbars
var $nScrollDarkshadowColor = "#2e2a2a";		// colors for scrollbars
var $nErrorBoxWidth = 500;						// the width of the javascript error box
var $nErrorBoxHeight = 260;						// the height of the javascript error box

// settings for image slide
var $sPath = "";								// extra path to images
var $nCounter = 1;								// counter to go to next array element
var $vActiveImage;								// the image that is shown	
var $bLoopEndless = true;						// must slide run in a loop
var $nHome;										// object for fade image
var $aImages = new Array();
var $nAmountImages = $aImages.length - 1;		// total amount of customers

// settings for nextbigimage
var $nNextImages = 10;
var $aNextImages = new Array();

var $sURL = "";									// URL for check language, to jump to right page/site
var $sPath = window.location.pathname;
var $sPage = $sPath.substring($sPath.lastIndexOf('/') + 1);

// extra stuff per website that should start on onload
function extraStartFunctions() {
	
	if ($sPage == "prijzen.html") {
		$('.slidedeck').slidedeck();
	} else if ($sPage == "projecten.html") {
		$(document).ready(function(){
			// This initializes carousels on the container elements specified, in this case, carousel1.
			$("#carousel1").CloudCarousel(		
				{			
					xPos: 300,
					yPos: 32,
					xRadius: 304,
					yRadius: 43,
					buttonLeft: $("#left-but"),
					buttonRight: $("#right-but"),
					altBox: $("#alt-text"),
					titleBox: $("#title-text"),
					autoRotate: "left",
					speed: 0.1,
					autoRotateDelay: 2000,
					mouseWheel: "true",
					bringToFront: "true",
					reflHeight: 20,
					reflGap: 1,
					reflOpacity: 0.8,
					FPS: 32
				}
			);
		});
	}
	
	// extra stuff that should start on onload
	if (document.getElementById("blendimage")) {
		switchImage();
	}
	externalLinks();
}



