function getInternetExplorerVersion() {

	var rv = -1; // Return value assumes failure.
	if (navigator.appName == 'Microsoft Internet Explorer') {

		var ua = navigator.userAgent;

		var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");

		if (re.exec(ua) != null)

		rv = parseFloat(RegExp.$1);

	}

	return rv;

}

if($.browser.msie && getInternetExplorerVersion() == 7)
{
	$(document).ready(function() {
	$("body").css({"overflow-y": "auto"});	
	setTimeout('inislide()',3500);	
		});
	
}
else
{
// JavaScript Document
$(window).load(function() {
				 	$("body").css({"overflow-y": "auto"});	
				$("#loader").fadeOut(3000,function(){  });							   
						
			
				$(".outerContainer").show();
				$('.contentArea').slideShow({
					interval: 7,
					start:'random',
					mousePause:false,
					slideClick: function(slideShow) {
						if (slideShow.mouse.x > slideShow.options.slideSize.width / 2) {
							slideShow.next();
						} else {
							slideShow.previous();
						}
					},
					gotoSlide: function(slideShow, index) {
						$('.callBackSlideShowLog').html('goto slide index: ' + index);
					}
				});
			});
}

function inislide()
{
	$("#loader").fadeOut(3000,function(){  });	
	$(".outerContainer").show();
	$('.contentArea').slideShow({
		interval: 7,
		start:'random',
		mousePause:false,
		slideClick: function(slideShow) {
			if (slideShow.mouse.x > slideShow.options.slideSize.width / 2) {
				slideShow.next();
			} else {
				slideShow.previous();
			}
		},
		gotoSlide: function(slideShow, index) {
			$('.callBackSlideShowLog').html('goto slide index: ' + index);
		}
	});
}
