var params = {
	wmode: "transparent"
};

var attributes = {
	id: "headerFlash",
	name: "header",
	wmode: "transparent"
	
};

if (swfpath == undefined) {
	var swfpath = "/Content/flash/header.swf";
}
swfobject.embedSWF(swfpath, "header_flash_container", "100%", "100%", "9.0.0","/Content/flash/expressInstall.swf", flashvars, params, attributes);


var iv;
var ch;
var step;

var resizeHeader = function(h) {
	ch = Math.round(h);
	
	step = Math.round((ch - $('#header_flash').height())/26);
	iv = setInterval("resize()", 1);
}

var resize = function() {
	if(step > 0) {
		if($('#header_flash').height() < ch) {
			$('#header_flash').height($('#header_flash').height() + step);
		} else {
			$('#header_flash').height(ch);
			clearInterval(iv);
		}
	} else {
			$('#header_flash').height(ch);
			clearInterval(iv);
	}
}
