window.addEvent('domready', function(){
	//pluck out the h2s
	/*var tabs = new Element('ul', {'id': 'tabs'}).inject($('tab_blocks'), 'top');
	//set up tabs
	$$('#tab_blocks .tab').each(function(el, i){
		var tab = new Element('li', {'class': 'tab_li'}).inject(tabs);
		el.inject(tab);
		var tab_text = el.get('html');
		el.set('html', '');
		var tab_a = new Element('a', {'href':'#'}).inject(el);
		new Element('span').inject(tab_a).set('html', tab_text);
		if (i == 0)
			tab_a.addClass('current');
	});
	new Element('div', {'id': 'slidey'}).wraps($('tab_blocks_sleeve'));
	new Element('div', {'id': 'slidey_box'}).wraps($('tab_blocks_sleeve'));
	
	var slide_obj = new noobSlide({
		box: $('slidey_box'),
		items: $$('.block'),
		size: 700,
		handles: $$('#tabs a'),
		onWalk: function(currentItem,currentHandle){
			this.handles.removeClass('current');
			currentHandle.addClass('current');
			$$('.flv_player object').each(function(el){
				if (el.resetVideoFunc)
					el.resetVideoFunc();
			});
		}
	});
	$$('#tabs a').addEvent('click', function(){ return false; });
	$('tab_blocks').setStyles({'position':'static', 'left':0});
	
	var videoFile_str = '../flvs/familyguy.flv';
	
	var flash1 = new Swiff('flash/flv_player.swf', {
		width: 320, 
		height: 270,
		container: $('flash1'),
		params: { quality:'best', scale:'exactfit', allowFullScreen:'true', salign:'TL', allowScripAccess:'always' },
		vars: { videoFile: videoFile_str }
	});
	var flash2 = new Swiff('flash/flv_player.swf', {
		width: 320, 
		height: 270,
		container: $('flash2'),
		params: { quality:'best', scale:'exactfit', allowFullScreen:'true', salign:'TL', allowScripAccess:'always' },
		vars: { videoFile: videoFile_str }
	});
	var flash3 = new Swiff('flash/flv_player.swf', {
		width: 320, 
		height: 270,
		container: $('flash3'),
		params: { quality:'best', scale:'exactfit', allowFullScreen:'true', salign:'TL', allowScripAccess:'always' },
		vars: { videoFile: videoFile_str }
	});;*/
});

