var browser = navigator.appName;
var str = navigator.appVersion;
var IS_IE=false;


if (browser == "Microsoft Internet Explorer"){
IS_IE=true;
IS_IE6 = /msie|MSIE 6/.test(navigator.userAgent);
}


		  
function alert800by600(){
	    if (screen.width <=800){	
			alert("This site is best viewed with a screen resolution larger than 600x800.  Your visual experience with this site will be comprimised.");
	    }
}

function linkCSS(){
	    
    document.write('<link type="text/css" rel="stylesheet" href="css/style.css"/>');
    document.write('<!--[if lte IE 7]><link rel ="stylesheet" type="text/css" href="styleIE6.css" /><![endif]-->');

if ((screen.width <= 1024) && (screen.width > 800)){
            document.write('<link rel="stylesheet" type="text/css" href="style800-1024.css" />');
    }else if (screen.width <=800){
            document.write('<link rel ="stylesheet" type ="text/css" href ="style800.css" />');
    }
}


function slideSwitch() {
    var $active = $('#my_slideshow IMG.active');

    if ( $active.length == 0 ) $active = $('#my_slideshow IMG:last');

    // use this to pull the images in the order they appear in the markup
    var $next =  $active.next().length ? $active.next()
        : $('#my_slideshow IMG:first');

    // uncomment the 3 lines below to pull the images in random order
    
    // var $sibs  = $active.siblings();
    // var rndNum = Math.floor(Math.random() * $sibs.length );
    // var $next  = $( $sibs[ rndNum ] );


    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}




