function fixheight()
 {
   var a1 = document.getElementById('leftcolumn');
   var b1 = document.getElementById('rightcolumn');
		 
   if ((a1 != null) && (b1 != null))
   {
    if (a1.offsetHeight > b1.offsetHeight) { b1.style.height = a1.offsetHeight + 'px'; }
                                    else  { a1.style.height = b1.offsetHeight + 'px'; }
   }
}       

function embedrotator()
{
 	var cacheBuster = "?t=" + Date.parse(new Date());
			var stageW = "700";//"100%";
			var stageH = "250";//"100%";
			
			// ATTRIBUTES
			var attributes = {};
			attributes.id = 'rotator';
			attributes.name = 'rotator';

			// PARAMS
			var params = {};
			params.bgcolor = "#ffffff";
		    params.menu = "false";
		    params.scale = 'noScale';
		    params.wmode = "opaque";
		    params.allowfullscreen = "false";
		    params.allowScriptAccess = "always";			
			
			/* FLASH VARS */
			var flashvars = {};
			
			/// if commented / delete these lines, the component will take the stage dimensions defined 
			/// above in "JAVASCRIPT SECTIONS" section or those defined in the settings xml
		  flashvars.componentWidth = stageW;
			flashvars.componentHeight = stageH;
			
			/// path to the content folder(where the xml files, images or video are nested)
			/// if you want to use absolute paths(like "http://domain.com/images/....") then leave it empty("")			
			flashvars.pathToFiles = "flash/banner/";
			
			// path to content XML
			flashvars.xmlPath = "xml/banner.xml";
			
			
			/** EMBED THE SWF**/
			swfobject.embedSWF("flash/rotator.swf"+cacheBuster, attributes.id, stageW, stageH, "9.0.124", "", flashvars, params, attributes);   
}
