//expand collapse layer - for flash fly-outs
function expandCollapse(obj, width, height, overflow) { 
    if(document.getElementById) {
      	divs = document.getElementsByTagName("div");
		divs[obj].style.width = width;
		divs[obj].style.height = height;
		divs[obj].style.overflow = overflow;
		 //alert("flash ran function expandCollapse()")
    }
}

//show / hide layer - for swapping static ads in a flyout
function showHide(obj, visibility, width, height, overflow) {
	if(document.getElementById){
		divs = document.getElementsByTagName("div");
    		divs[obj].style.visibility = visibility;
			divs[obj].style.width = width;
			divs[obj].style.height = height;
			divs[obj].style.overflow = overflow
			//alert("static ad ran showHide();")
	}
}

//window scripts
function openNewWindow(winURL, winName, winFeatures) { 
  window.open(winURL, winName, winFeatures);
  //alert(winURL);
}

function closeWindow(winName) {
	window.close(winName);
}

//DART specific
var axel = Math.random() + "";
var ord = axel * 1000000000000000000;

//AdTech Group functions
if (window.adgroupid == undefined) {
    window.adgroupid = Math.round(Math.random() * 1000); 
}

if (window.adbggroupid == undefined) {
    window.adbggroupid = Math.round(Math.random() * 1000); 
}


