function init(cols, spc) {
	// cols: number of columns on page
	// spc: pixels between long column and footer
	var cnt = getDIV('ContentMarket1_contents');
	var ftr = getDIV('footer');
	var h1 = 0;
	var h2 = 0;
	var h3 = 0;
	var h = 0;
    if (cols > 0 && cols <= 3) {
		col1 = getDIV('ContentMarket1_columnOne');
		h1 = col1.scrollHeight || col1.offsetHeight;
		h2 = 0; h3 = 0;
	} else { return; }
    if (cols > 1 && cols <= 3) {
		col2 = getDIV('ContentMarket1_columnTwo');
	    h2 = col2.scrollHeight || col2.offsetHeight;
		h3 = 0;
	}
    if (cols == 3) {
		col3 = getDIV('ContentMarket1_columnThree');
	    h3 = col2.scrollHeight || col2.offsetHeight;
	}

	var y =  cnt.offsetTop + col1.offsetTop;
					
	if (h1 >= h2 && h1 >= h3) { h = y+h1+spc; }
	if (h2 >= h1 && h2 >= h3) { h = y+h2+spc; }
	if (h3 >= h1 && h3 >= h2) { h = y+h3+spc; }
    ftr.style.top = h;
    ftr.style.visibility = 'visible';
}
		
				function popUp(u,w,h,o) {
				// pops open a popup window, window object popUp(string u url, int w width, int h height, string o options)
				// example popUp('popup.html',400,300,'location,scrollbars');
					if (window.popWin && !popWin.closed) {
	 					if (o != popWinOptions) {
							popWin.close();
							popUp(u,w,h,o);
						} // ensure that the same options apply
						if (popWin.resizeTo) {
							popWin.resizeTo(w,h);
						} else {
							popWin.outerWidth = w;
							popWin.outerHeight = h;
						}
						popWin.location = u;
						popWin.focus();
						return popWin;
					} else {
						if (o) {
							popWin = window.open(u,'pop','width='+w+',height='+h+','+o);
							popWinOptions = o;
						} else {
							popWin = window.open(u,'pop','width='+w+',height='+h);
							popWinOptions = '';
						}
						popWin.opener = window;
						popWin.focus();
						return popWin;
					}
				}

				function popDown() {
				// closes the popup when this window regains focus
				// call in the body tag onFocus event
					if (window.popWin && !popWin.closed) {
						popWin.close();
					}
				}


window.onerror=e
function e(){return true}

 
var bToggle = 0;
var bTranState = 0;

function fnToggle() {
    oTransContainer.filters[0].Apply();
    if (bTranState=='0') { 
		bTranState = 1;
        oDIV2.style.visibility="visible"; 
		oDIV1.style.visibility="hidden";
		oDIV3.style.visibility="hidden";}
    else if (bTranState=='1'){  
		bTranState = 2;
		oDIV3.style.visibility="visible";
        oDIV2.style.visibility="hidden"; 
		oDIV1.style.visibility="hidden";}
	else {  
		bTranState = 0;
		oDIV1.style.visibility="visible";
        oDIV3.style.visibility="hidden"; 
		oDIV2.style.visibility="hidden";}
    
    oTransContainer.filters[0].Play();
   setTimeout('fnToggle();',5000)
   }
 
//setTimeout('fnToggle();',2000);