$(document).ready(function(){
	$("select#filter_dose").change(function(){
		window.location = $("select#filter_dose").val(); 
	});
	$("select#filter_container").change(function(){
		window.location = $("select#filter_container").val(); 
	});
	$("select#filter_application").change(function(){
		window.location = $("select#filter_application").val(); 
	});
	
	$('#flash').flash({
		src: '/interface/flash/header2.swf',
		width: 360,
		height: 51,
		wmode : 'transparent',
		version: '8',
		flashvars: { wmode: 'transparent'}
	});
	
	
	// anchors in ID.thumbs trigger an ID.main_image (img) to update
	$("#thumbs a").click(function(){
		$("#caption").html("");
		$("#caption").html($(this).attr("title"));
		$("#main_image").attr({ src: $(this).attr("href") });return false;
		
		});
		
		//alert($("#caption").html());
		//});
});


var interstate = {
	src: '/interface/flash/interstate.swf'
	,ratios: [7, 1.32, 11, 1.31, 13, 1.24, 14, 1.25, 19, 1.23, 27, 1.2, 34, 1.19, 42, 1.18, 47, 1.17, 48, 1.18, 69, 1.17, 74, 1.16, 75, 1.17, 1.16]
};

sIFR.activate(interstate);

sIFR.replace(interstate,{
	selector: '#main h1'
	,wmode: 'transparent'
	,css: [
	'.sIFR-root {color:#0066FF;font-weight:bold;}'
	]
});
sIFR.replace(interstate,{
	selector: 'h2#title'
	,wmode: 'transparent'
	,css: [
	'.sIFR-root {color:#0066FF;font-weight:bold;}'
	]
});

