/*function getTopPositionBanner(obj)
{
	var divs = obj.getElementsByTagName('div');
	for (var i = 0; i < divs.length; i++)
	{
		if (divs[i].className == 'banner_content')
		{
			return divs[i].offsetTop;
		}
	}
}*/
function loadBigBanner(url, w, h, banner_id)
{
	var flash_div = document.getElementById(url);
	flash_div.innerHTML = AC_FL_RunDinamicContent(
		'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
		'width', w,
		'height', h,
		'src', 'brand_images/' + url,
		'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
		'id', 'standart_banner_flash',
		'bgcolor', '#FFFFFF',
		'name', 'stand_banner',
		'menu', 'true',
		'scale', 'noscale',
		'salign', 't',
		'wmode', 'transparent',
		'allowScriptAccess','always',
		'movie', 'brand_images/' + url
		);
}

function loadSyncBanner(name, w, h)
{
	var custom_banner = document.getElementById(name);
	custom_banner.innerHTML = AC_FL_RunDinamicContent(
		'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
		'width', w,
		'height', h,
		'src', 'brand_images/' + name,
		'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
		'id', 'standart_banner_flash',
		'bgcolor', '#FFFFFF',
		'name', 'stand_banner',
		'menu', 'true',
		'wmode', 'transparent',
		'allowScriptAccess','always',
		'movie', 'brand_images/' + name
	);
	custom_banner.style.visibility = 'visible';
	document.getElementById('banner_' + w + 'x' + h).getElementsByTagName('iframe')[0].style.display = 'none';
}

function closeBigBanner(banner_id)
{
	var obj = document.getElementById(banner_id);
		obj.innerHTML = '';
		obj.style.display = 'none';
}

function showBigBanner(banner_id)
{

	document.getElementById(banner_id).style.display = 'block';
}

function hideSmallBanner(banner_id)
{
	document.getElementById(banner_id).style.visibility = 'hidden';
}

function showSmallBanner(banner_id)
{
	document.getElementById(banner_id).style.visibility = 'visible';
}
