// SWF Players minimum major version
var flashMinimumVersion = 9;

/**
 * Content is MIRROR IMAGE in flash, based on the same URL and is loaded using a '#' symbol
 * e.g. /island-living/island-living in flash is loaded using
 *      /#/island-living/island-living
 * If a user shows up to this page from google and they have flash support, push them there
 */
$(document).ready(function() {      
    var base = $('base').attr('href');
    var version = deconcept.SWFObjectUtil.getPlayerVersion();
    var hasFlash = version['major'] >= flashMinimumVersion;
    $('a.goFlash').click(function() { 
    	if(hasFlash) {
            window.location.href = base + '/#/' + $(this).attr('href');
            return false;
    	}
    });
});