var ownedNetwork = {RIDER:
					{logo: '/RESOURCES/IMG/ownedToolBar/RIDERlogo.png', home: 'http://www.riderowned.com', fellow: 'RIDERS', editor:'http://www.riderowned.com/user/control/customizer'}
				  }		
				  
if (DetectFlashVer(9, 0, 0) == false) {
	staleFlashVersion();
} 

function staleFlashVersion() {
	var r=confirm("Please upgrade to the new version of Flash Player to enjoy all the content on this site. Clicking OK will open a new window where you can download and install Flash Player.");
	if (r==true) {
		window.open('http://www.macromedia.com/go/getflashplayer', '_blank', '','');
	} else {
		
	}
}
function createAdPopup(videofile) {
	var width = document.documentElement.clientWidth;
	var height = jQ(window).height();
	left = (width/2)-175;
	top = (height/2)-160;
	jQ('body').append('<div id="videoPopup" style="display:none;"></div>');
	jQ('#videoPopup').append('<div id="video_holder"></div>');
	jQ("#videoPopup").css('display', 'block');
	jQ('<img src="/RESOURCES/IMG/close_info.png" onclick="jQ(this).parent().remove();" style="cursor:pointer;">').appendTo('#videoPopup');
	jQ("#video_holder").css('margin', '5px 5px 5px 5px');
	jQ("#videoPopup").css('width', '353px');
	jQ("#videoPopup").css('height', '319px');
	jQ("#videoPopup").css('backgroundColor', '#b5b2b2');
	jQ("#videoPopup").css('position', 'absolute');
	jQ("#videoPopup").css('left', left);
	jQ("#videoPopup").css('top', top);
	jQ("#videoPopup").css('z-index', '100000');
	jQ("#videoPopup").css('padding', '10px 10px 10px 10px');
	jQ("#videoPopup").draggable();
	
	var vPopup = new SWFObject("/RESOURCES/FLASH/simpleVideo.swf", "nav1fl", "343", "269", "9", "#FFFFFF");
	vPopup.addParam("wmode", "transparent");
	vPopup.addVariable('videosource', videofile);
	vPopup.write("video_holder");
}
function behaviorFix() {
	jQ('div').each(function(){
		jQ(this).css('behavior', 'url(/RESOURCES/iepngfix.htc)');
	});
	jQ('img').each(function(){
		jQ(this).css('behavior', 'url(/RESOURCES/iepngfix.htc)');
	});
}
function autoSizeNav(elem, width, height) {
	var width = parseInt(width);
	if (jQ('#'+elem).parent().attr('id') == 'object_id_247') { // hack for nav cuz jojo isn't around
		width = parseInt(width)+250;
	}	
	var height = parseInt(height);
	var location = window.location+'';
	if (location.search(/snoop/i) != -1 && jQ.browser.msie) { //IE hack for snoop demo
		flashEmbed = jQ('object[movie=/RESOURCES/FLASH/standard_nav_182.swf]').get(0);
	} else {
		flashEmbed = document.getElementById(elem);
	}
	flashEmbed.setAttribute("height", height);
	flashEmbed.setAttribute("width", width);
}
/*jQ(document).ready(function(){
	jQ('.imageText').each(function() {
		jQ(this).hide();
	});
	var sess_hash='{/literal}{$hash}{literal}';
	jQ.ajax({
		type: 'post',
		url: '/ajax/userobjects/?do=checksessiondata',
		data: 'sess_hash='+sess_hash+'&userId='+userId,
		success: function(data) {
			data=parseInt(data);
			if (data==1) {
				rider_sess = true;
			}
		}
	});
});*/

