function show(id)
{
var obj = document.getElementById(id);
	obj.style.display = "";
	//document.getElementById('wel').style.display='none';
	//document.getElementById('wel').style.height='200px';
}
function hide(id)
{
var obj = document.getElementById(id);
	obj.style.display = "none";
	//document.getElementById('wel').style.display='none';
	//document.getElementById('wel').style.height='0';
}
window.onload = function () 
{
	hide('more');
	hide('clos');
	hide('wel');
	show('more');
}

function GetBannerImages2(BannerID,FlashObjectWidth,FlashObjectHeight,IsRounded,PagingYaxis)
{
	var PowerProductsDirectory = "/PowerProducts/";

var flashFilesServerPath = "http://wms.tkcarsites.com/PowerProducts/"; // read it from xml file later
var printPagesPath = "http://wms.tkcarsites.com/PowerProducts/";

    var flashFile;
    if(!IsRounded)
    {
        flashFile = flashFilesServerPath + "BannerImages.swf";
    }
    else
    {
        flashFile = flashFilesServerPath + "BannerImagesRounded.swf";
    }
    
    var variable = flashFilesServerPath + "BannerImagesFlashHandler.ashx?BannerID="+ BannerID +"," + PagingYaxis + "," + GetReferrerUrlParameters();
    document.getElementById('flash_BannerImages2').innerHTML =  
    "<object id='FlashID' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='"+ FlashObjectWidth +"' height='"+ FlashObjectHeight +"'>"
    +"<param name='movie' value='" + flashFile +"?BannerImagesSource=" + variable + "'/>"
    +"<param name='quality' value='high' /><param name='wmode' value='transparent' />"
    +"<param name='swfversion' value='6.0.65.0' />"
    +"<param name='expressinstall' value='Scripts/expressInstall.swf' />"
    +"<param name='allowScriptAccess' value='always'/>"
    +"<object type='application/x-shockwave-flash' data='" + flashFile + "?BannerImagesSource=" + variable + "' width='" + FlashObjectWidth + "' height='"+ FlashObjectHeight +"'>"
    +"<param name='quality' value='high' />"
    +"<param name='wmode' value='transparent' />"
    +"<param name='swfversion' value='6.0.65.0' />"
    +"<param name='expressinstall' value='Scripts/expressInstall.swf' />"
    +"<param name='allowScriptAccess' value='always'/>"
    +"<div>"
    +"<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>"
    +"<p><a href='http://www.adobe.com/go/getflashplayer'><img src='http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' width='112' height='33' /></a></p>"
    +"</div>"
    +"</object>"
    +"</object>";
    
}

