// check if custom params have been specified
if(!window.msisac_tip_fontColor){
	window.msisac_tip_fontColor = "0x000000";
}
if(!window.msisac_tip_divid){
	window.msisac_tip_divid ="msisac_tip_icon";
	document.write('<div id="msisac_tip_icon"><a href="http://www.msisac.org/daily-tips/" target="_blank">MS-ISAC Cyber Tip of the Day</a></div>');
}
if(!window.msisac_tip_style){
	window.msisac_tip_style ="";
}
if(!window.msisac_tip_size){
	//window.msisac_tip_size ="180x150";
	window.msisac_tip_size ="120x90";
}
msisac_tip_asize = msisac_tip_size.split("x");
msisac_tip_size_w = msisac_tip_asize[0];
msisac_tip_size_h = msisac_tip_asize[1];

// GET THE URL FROM THE DOM
var url = document.URL;
var baseURL = "http://www.msisac.org/";
// CHECK THE URL TO SEE IF THE PAGE IS RUNNING ON THE PRODUCTION DOMAIN.
if(url.match("qa.msisac.org") != void(null)){
	// CHANGE THE FOLDER TO POINT TO THE PRODUCTION SERVER PATH 
	baseURL = "http://qa.msisac.org/";
}// end if

if(url.match("cswebdev001.cscic.state.ny.us.local") != void(null)){
	// CHANGE THE FOLDER TO POINT TO THE PRODUCTION SERVER PATH 
	baseURL = "http://cswebdev001.cscic.state.ny.us.local/msisac/www/";
}// end if
var version = deconcept.SWFObjectUtil.getPlayerVersion();
// MAKE SURE WE CAN TARGET THE DIV AND THAT THE PLAYER HAS THE RIGHT VERSION OF THE FLASH PLAYER
if (document.getElementById && (version['major'] >= 8)) {
// CREATE AN INSTANCE OF THE SWF OBJECT JAVASCRIPT UTILITY
var so = new SWFObject(baseURL+"flash/swf/cyber-tip_"+window.msisac_tip_style+window.msisac_tip_size+".swf", "msisac_tip", msisac_tip_size_w, msisac_tip_size_h, 8, "#000000");
// ADD PARAMETERS TO THE SWF FILE OBJECT AS NEEDED
so.addParam("quality", "high");
so.addParam("menu", "false");
so.addParam("wmode", "transparent");
// ADD FLASHVARS TO THE SWF FILE OBJECT AS NEEDED
// MODIFY THE FONT COLORS
so.addVariable("baseURL", baseURL);
so.addVariable("fontColor", window.msisac_tip_fontColor);
// CALL THE WRITE METHOD OF THE SWF OBJECT TO WRITE THE NEEDED HTML INTO THE DIV CONTAINER. NOTE THE ARGUMENT PASSED TO THE FUNCTION IS THE NAME OF THE DIV ABOVE
so.write(window.msisac_tip_divid);
}// end if 