// hier kommen die javascripts rein
var strUrl;

function checkBrowser(){
	
	var browser = navigator['appVersion'];
    
    if (browser.indexOf('MSIE') != -1) {
        var strPos = browser.indexOf('MSIE');
        var vers = browser.substr(strPos + 5, 1);
        if (vers < 8) {
        	$('#jsinfo').html('It looks like you are using an older version of Internet Explorer. At least Internet Explorer 8 is required to watch this Website.\nPlease update your browser or use another browser like Firefox.\n\nThank you, United Fire Administrator');
        }
        else
        {
        	$('#jsinfo').hide();        	
        }
    }
    else{
    	$('#jsinfo').hide();
    }
    
}

leadIn = function()
{
//	$("#page_content").ready(function(){$("#page_content").slideDown(3000);});
//	$("#page_content").delay(200).slideDown(3000);
	$("#page_content").ready( function() { $("#page_content").slideDown(3000);} )
}

leadOut = function()
{
//	$('#page_content').load(strUrl, '', leadIn);
	$('#page_content').load(strUrl, leadIn);
//	$('#page_content').load(strUrl, function() {$('#page_content').ready(leadIn);} );
	
}

function go(strPage){
	var iScrollDuration = 1000;
	$.scrollTo(0,iScrollDuration);
	var varReq = strPage.split("/");
	strUrl = '/?p=' + varReq[0] +'&b='+varReq[1] +'&aj=1';
//	$("#page_content").delay(iScrollDuration).slideUp(800, leadOut);	
	$("#page_content").ready( function() {$("#page_content").delay(300).slideUp(800, leadOut);});	
	
    return false;
}

function _enableContent(){
        $("#page_content").css({
            'visibility': 'visible'
        });
}

checkBrowser();

