if (location.href.indexOf("www.") == -1) {
    if (location.href.indexOf("?www") == -1) {
        window.location = "http://www." + location.href.substring(7, location.href.length);
    }
}

	//top banner rotation and links
    var global_imgID = "imgSplashArea_1";
    $(document).ready(function() {
 	  if (document.getElementById('splash_check')){
        $('#slideshow').cycle({
		    fx: 'turnLeft', 
            speed: 500,
            pause: true,
            pagerAnchorBuilder: function(idx, slide) {
                return '#Map1 area:eq(' + (idx) + ')';
            }, 
            after: function(idx, slide) {
                global_imgID = $(slide).attr("id");
            }
	    });
	    global_imgID = "imgSplashArea_1";
	  } // document.getElementById('splash_check')
    });
	
	
	function gotoReadMore() {
        switch(global_imgID)
        {
            case "imgSplashArea_1":
                window.location = "cloud-computing-konecranes.aspx";
                break;
            case "imgSplashArea_2":
                window.location = "cloud-computing-het-software.aspx";
                break;                
            case "imgSplashArea_3":
                window.location = "cloud-computing-ebay.aspx";
                break;
            case "imgSplashArea_4":
                window.location = "Testimonials.aspx";
                break;
        }
    }
	//CASE STUDY 2 SETTINGS
	function gotoReadMore2() {
        switch(global_imgID)
        {
            case "imgSplashArea_1":
                window.location = "cloud-computing-het-software.aspx";
                break;
            case "imgSplashArea_2":
                window.location = "cloud-computing-ebay.aspx";
                break;                
            case "imgSplashArea_3":
                window.location = "Testimonials.aspx";
                break;
            case "imgSplashArea_4":
                window.location = "CaseStudy1.aspc";
                break;
        }
    }
	//CASE STUDY 3 SETTINGS
	function gotoReadMore3() {
        switch(global_imgID)
        {
            case "imgSplashArea_1":
                window.location = "Testimonials.aspx";
                break;
            case "imgSplashArea_2":
                window.location = "cloud-computing-konecranes.aspx";
                break;                
            case "imgSplashArea_3":
                window.location = "cloud-computing-het-software.aspx";
                break;
            case "imgSplashArea_4":
                window.location = "cloud-computing-ebay.aspx";
                break;
        }
    }
	
	//CASE STUDY 4 SETTINGS
	function gotoReadMore4() {
        switch(global_imgID)
        {
            case "imgSplashArea_1":
                window.location = "cloud-computing-ebay.aspx";
                break;
            case "imgSplashArea_2":
                window.location = "cloud-computing-konecranes.aspx";
                break;                
            case "imgSplashArea_3":
                window.location = "Testimonials.aspx";
                break;
            case "imgSplashArea_4":
                window.location = "cloud-computing-het-software.aspx";
                break;
        }
    }


/*	
    // Google Analytics //
	  var _gaq = _gaq || [];
	  _gaq.push(['_setAccount', 'UA-23692630-1']);
	  _gaq.push(['_trackPageview']);

	  (function() {
	    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	  })();
*/

    function slideTo(slidenumber) {
        //if (navigator.userAgent.indexOf("Mozilla") == -1) {
            //alert(navigator.userAgent);
            $('#slideshow').cycle(slidenumber);
            return false;
        //}
    }
