// central code to initialise filters (part of tipmessage)
//var FiltersEnabled = 1 // if your not going to use transitions or filters in any of the tips set this to 0
//Style[0]=["white","black","#1B1284","#efefef","","/scripts/popups/bg.gif","","","","","","sticky","","",250,"",1,2,10,10,37,0.3,0,"complex","#999999"]
//applyCssFilter()


var TipId="tiplayer" // should be the same as <div> tag's id
var FiltersEnabled = 1 // should be the set as to 1 if your going to use visual effects if not set to 0
Style[0]=["#f89c41","black","","","","","black","#efefef","/scripts/popups/bg.gif","","","",250,"",1,"black",2,37,0.3,0,2,"#999999",3,"",10,10]
Style[1]=["#f89c41","black","","","",,"black","#efefef","","","",,,,1,"black",0,37,0.3,0,2,"#999999",,,,]
// Style[.]=[titleColr,TitleBgColor,TitleBgImag,TitleTextAlign,TitleFontFace,TitleFontSize,TextColor,TextBgColor,TextBgImag,TextTextAlign,TextFontFace,
// TextFontSize,Width,Height,BorderSize,BorderColor,Textpadding,transition number,Transition duration,Transparency level,shadow type,shadow color,Appearance behavior,TipPositionType,Xpos,Ypos]
mig_clay()


// script to dynamically build a popup

// calls GetXmlHttpObject which is in the central functions js file
function displayPopup(Source_Type, Source_ID)
	{
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
	alert ("Browser does not support HTTP Request")
	return
	} 

	// call asp file to get contents of popup, passing current page (used on OOB popup to see whether to display "more information")
	var url="/scripts/popups/get_popupContents.asp?Source_Type="+Source_Type+"&Source_ID="+Source_ID+"&pageURL="+window.location.pathname;

	xmlHttp.open("GET",url,false)
	xmlHttp.send(null)

//	alert(xmlHttp.responseText);
	eval(xmlHttp.responseText);
	stm([popupTitle,popupBody],Style[0]); // call tipmessage code, passing it title, body and style
}