function checkIfFlash(){
if( $('#SWADenver object').length ){
$.log("flash enabled :)");
//Hide JS related
$('#jsgoeshere').hide();
$('#SWADenver').css({'height': 503});
//Detect version and give popup to the upload
playerVersion = swfobject.getFlashPlayerVersion();
if(playerVersion.major < 9){
if(confirm('You are running flash player'+playerVersion.major+ "." + playerVersion.minor + "." + playerVersion.release + ". For the best results, click Ok to proceed to www.adobe.com to update your flash player to a newer version, or cancel to continue without updating.")){
window.location=("http://www.adobe.com/go/getflashplayer/");
}else{
//no update
}
}
} else {
$.log("no flash enabled :(");
$('#SWADenver').css({'height': 410});
//LOAD THE JS CAROUSEL AFTER THE PAGE AND ALL OTHER SCRIPTS IF NO FLASH IS ENABLED
$("#carousel-noscript").hide();
$('#d_carousel .content').hide();
$('#d_carousel #no-script').hide();
$('#d_carousel .content').load("ajax_carousel.html", function(){
setTimeout( function(){
$('#d_carousel #loading').fadeTo(1000, 0, function(){ $(this).remove();});
$('#d_carousel .content').fadeIn(1200, function(){
$(this).css({'display': 'block'});
});
}, 1200 );
});
}
}