/* all NEA.org pages use nea.js */
var NEA = {};
// flash constructor
NEA.Fla = function(file, h){
this.file = file;
this.h = h;
}
NEA.Fla.prototype.place = 'banner';
// different ones, have to change these to .prototype
// (and change usage below to point at the object instance)
NEA.Fla.w = 960;
NEA.Fla.path = "/nav/images";
// collection of objects
NEA.flash = {
academy: new NEA.Fla("NEA_Academy_Flash.swf",184),
assoc: new NEA.Fla("NEA_Association_Flash.swf",199),
org: new NEA.Fla("NEA_org_Flash.swf",239),
working: new NEA.Fla("NEA_Working_Flash.swf",184),
tour: new NEA.Fla("NEA_Tour.swf",409),
queue : []
}
// different place
NEA.flash['tour'].place = 'tour-swf';
// collect these from the calling page
NEA.writeFlash = function(idx){
NEA.flash.queue[NEA.flash.queue.length] = idx;
}
NEA.png = {};
// courtesy of http://ajaxcookbook.org/png-alpha-transparency/
NEA.png.createPNGImage = function(src, width, height) {
if (navigator.userAgent.indexOf("MSIE") != -1) {
var element = document.createElement("div");
element.style.filter = "progid:DXImageTransform.Microsoft." +
"AlphaImageLoader(src='" + src + "')";
// element.style.filters(1) = "DXImageTransform.Microsoft.Alpha".Opacity[50];
} else {
var element = document.createElement("img");
element.src = src;
}
element.style.width = width + "px";
element.style.height = height + "px";
return element;
}
NEA.video = {};
NEA.video.art = {
path: "/nav/images",
icon: "icon-play.png",
loading: "icon-load.gif"
};
NEA.video.txt = {
close: '
(close)',
mask: '
Loading...