# On the fly combine requested javascript modules as a single download
# Can be (and should be) optimised to only do so once for high use configurations

||ifany(not(selected_only),istrue(x_browser_id))|| 	||include||../shared/modules/browser_id.js|| 	||endif||	

||ifany(not(selected_only),istrue(x_domdrag))|| 	||include||../shared/modules/dom-drag.js|| 	||endif||	
||ifany(not(selected_only),istrue(x_domdrag))|| 	||include||../shared/modules/dom-region.js|| 	||endif||	
||ifany(not(selected_only),istrue(x_domdrag))|| 	||include||../shared/modules/dom-popover.js|| 	||endif||	

||ifany(not(istrue(x_dbg)))|| 						||include||../shared/modules/dbg_none.js|| 	||else||	
													||include||../shared/modules/dbg.js|| 		||endif||	

||ifany(not(selected_only),istrue(x_bench))|| 		||include||../shared/modules/bench.js|| 		||endif||	
||ifany(not(selected_only),istrue(x_flash_audio))||	||include||../shared/modules/flash_audio.js|| ||endif||	
||ifany(not(selected_only),istrue(x_dragdrop))|| 	||include||../shared/modules/drag_drop.js|| 	||endif||	

||ifany(not(selected_only),istrue(x_alerts))||		||include||../shared/modules/x_alerts.js|| 	||endif||	
||ifany(not(selected_only),istrue(x_ajax_req))||	||include||../shared/modules/ajax_req.js|| 	||endif||	
||ifany(not(selected_only),istrue(x_editor_plain))||||include||../shared/modules/editor_plain.js||||endif||	

||ifany(not(selected_only),istrue(x_panels))|| 		||include||../shared/modules/panels.js|| 	||endif||	
||ifany(not(selected_only),istrue(x_sel))|| 		||include||../shared/modules/sel.js|| 	||endif||	


# the core surgeweb "webmail" code
||ifany(not(selected_only),istrue(x_sw_core))||		||include||sw_core.js|| 			||endif||	

||ifany(not(selected_only),istrue(x_sw_windowing))||||include||sw_windowing.js|| 		||endif||	
||ifany(not(selected_only),istrue(x_sw_ui))||		||include||sw_ui.js|| 				||endif||	
||ifany(not(selected_only),istrue(x_sw_util))||  	||include||sw_util.js|| 			||endif||	
||ifany(not(selected_only),istrue(x_sw_betapane))|| ||include||sw_betapane.js|| 		||endif||	

||ifany(not(selected_only),istrue(x_sw_ui))|| 		||include||../shared/modules/sw_ui_shared.js|| 	||endif||	
||ifany(not(selected_only),istrue(x_sw_util))|| 	||include||../shared/modules/sw_util_shared.js|| 	||endif||	

||ifany(not(selected_only),istrue(x_upload))|| 		||include||../shared/modules/swfupload.js|| 			||endif||	
||ifany(not(selected_only),istrue(x_upload))|| 		||include||x_upload_fileprogress.js|| 		||endif||	
||ifany(not(selected_only),istrue(x_sw_attach))|| 	||include||sw_attach.js|| 			||endif||	
||ifany(not(selected_only),istrue(x_sw_chat))|| 	||include||sw_chat.js|| 			||endif||	
||ifany(not(selected_only),istrue(x_sw_xol))|| 		||include||xol.js|| 			||endif||	
||ifany(not(selected_only),istrue(x_sw_cal))|| 		||include||sw_cal.js|| 			||endif||	
||ifany(not(selected_only),istrue(x_sw_cal))|| 		||include||../shared/modules/cal.js|| 			||endif||	
||ifany(not(selected_only),istrue(x_sw_cloud))|| 	||include||sw_cloud.js|| 			||endif||	

# Addresbook autocompletion : CODE NEEDS TIDYING

||ifany(not(selected_only),istrue(x_autocomplete))|| ||include||../shared/modules/x_abk_util.js|| 				||endif||	
||ifany(not(selected_only),istrue(x_autocomplete))|| ||include||../shared/modules/x_abk_autocomplete.js|| 		||endif||	

||ifany(not(selected_only),istrue(x_autocomplete))|| ||include||../shared/modules/abook.js|| 		||endif||	


# Spellchecker : CODE NEEDS TIDYING

||ifany(not(selected_only),istrue(x_spelcheck))|| 	||include||../shared/modules/spell.js|| 			||endif||	
||ifany(not(selected_only),istrue(x_bookmark))|| 	||include||../shared/modules/bookmark.js|| 			||endif||	

||include||sw_controls.js||

# the core surgeweb ui interface code
||ifany(not(selected_only),istrue(x_sw))||			||include||sw.js|| 					||endif||	

// back to combined.js