	function openICT(){
		
		flash_box(20,'#000000',1050,650,'http://www.ellsworthbikes.com/flash/2009-ICT/2009-ITC.php?SID='+Math.random(999999999),"no","no");
		
	}
	
	function openADVANTAGE(){
		
		flash_box(20,'#000000',1044,652,'http://www.ellsworthbikes.com/advantage/2009-advantage.php?SID='+Math.random(999999999),"no","no");
		
	}
	
	function openSTORE(){
		
		flash_box(0,'#000000',"100%",600,'http://store.ellsworthbikes.com/',"yes","yes");
		//flash_box(60,'#000000',"100%",600,'http://store.ellsworthbikes.com/',"yes");
		
	}
	
	function openRIDERS(){
		
		flash_box(0,'#000000',"100%",600,'http://www.ellsworthbikes.com/members/account/?SID='+Math.random(999999999),"yes","no");
		
	}
	
	function openRIDERSGALLERY(){
		
		flash_box(0,'#000000',"100%",600,'http://www.ellsworthbikes.com/members/login/?redirect=gallery&SID='+Math.random(999999999),"yes","no");
		
	}
	
	function openEVENTS(){
		
		flash_box(0,'#000000',"100%",580,'http://www.ellsworthbikes.com/members/events-calendar.php?SID='+Math.random(999999999),"yes","no");
		
	}
	
	function openFAQ(){
		
		flash_box(0,'#000000',"100%",580,'http://www.ellsworthbikes.com/2009-faq.php?SID='+Math.random(999999999),"yes","no");
		
	}
	
	function openInternationalDealers(){
		
		flash_box(60,'#000000',500,700,'http://www.ellsworthbikes.com/international/?SID='+Math.random(999999999),"yes","no");
	
	}
	
	function openSuspensions(url){
	
		flash_box(60,'#000000',"100%",610,url,"yes","no");
	
	}
	
	function openMap(id){
	
		window.open('map.php?id='+id, 'map', 'width=406, height=336')
	
	}
	
	function return_page_dimensions(){
	
		if(window.addEventListener){
		
		windowWidth = window.innerWidth;
		windowHeight = window.innerHeight;
		
		} else {
		
		windowWidth = document.documentElement.clientWidth ||
		document.body.clientWidth;
		windowHeight = document.documentElement.clientHeight ||
		document.body.clientHeight;
		
		}
	
	}
	
	function flash_box(bg_alpha,bg_color,frame_width,frame_height,frame_url,frame_scrolling,is_session){
		
		return_page_dimensions();
		
		document.getElementById('flashvisor').style.display = "none";
		document.getElementById('flashbox').style.display = "none";
		document.getElementById('flashcart').style.display = "none";
		
		//document.getElementById('flashvisor').style.display = "block";
		document.getElementById('flashvisor').style.backgroundColor = bg_color;
		
		document.getElementById('flashvisor').style.width = windowWidth + "px";
		document.getElementById('flashvisor').style.height = windowHeight + "px";
		
		document.getElementById('flashvisor').style.opacity = bg_alpha/100;
		document.getElementById('flashvisor').style.filter = "alpha(opacity=" + bg_alpha + ")";
		
		if(is_session == "yes"){
		
			frame = document.getElementById('flashcart');
		
		} else {
		
			frame = document.getElementById('flashbox');
		
		}
		
		if(is_session == "no"){
		
			frame.setAttribute('src', frame_url);
			
		}
		
		if(frame_width == "100%"){
		
			frame.setAttribute('width', frame_width); 
			frame.setAttribute('height', (windowHeight-75)); 
			
		} else {
		
			frame.setAttribute('width', frame_width); 
			frame.setAttribute('height', frame_height); 
		
		}
		frame.setAttribute('scrolling', frame_scrolling);
		
		if(frame_scrolling == "yes"){
		
			if(is_session == "yes"){
		
				document.getElementById('flashcart').style.overflowY = "auto";
				
			} else {
			
				document.getElementById('flashbox').style.overflowY = "auto";
			
			}
		
		} else {
		
			if(is_session == "yes"){
		
				document.getElementById('flashcart').style.overflowY = "hidden";
				
			} else {
			
				document.getElementById('flashbox').style.overflowY = "hidden";
				
			}
		
		}
		
		if(is_session == "yes"){
		
			document.getElementById('flashcart').style.display = "block";
			document.getElementById('flashcart').style.top = "75px";
			
		} else {
		
			document.getElementById('flashbox').style.display = "block";
			document.getElementById('flashbox').style.top = "75px";
			
		}
		
		if(frame_width == "100%"){
			
			if(is_session == "yes"){
			
				document.getElementById('flashcart').style.left = "0px";
				
			} else {
			
				document.getElementById('flashbox').style.left = "0px";
				
			}
			
			document.getElementById('flashvisor').style.display = "none";
		
		} else {
		
			if(is_session == "yes"){
			
				document.getElementById('flashcart').style.left = (windowWidth-frame_width)/2 + "px";
				
			} else {
			
				document.getElementById('flashbox').style.left = (windowWidth-frame_width)/2 + "px";
				
			}
			
			document.getElementById('flashvisor').style.display = "block";
			
		}
		
	}
	
	
	function closebox(){
	
		document.getElementById('flashvisor').style.display = "none";
		document.getElementById('flashbox').style.display = "none";
		document.getElementById('flashcart').style.display = "none";
		frame2 = document.getElementById('flashcart');
		frame2.setAttribute('width', 0); 
		frame2.setAttribute('height', 0); 
		
		frame = document.getElementById('flashbox');
		frame.setAttribute('src', '');
		frame.setAttribute('width', 0); 
		frame.setAttribute('height', 0); 
		frame.setAttribute('scrolling', "no");
	
	
	}