	function fChangeIndex(pId, pIndex)
	{
	  if (pId && pIndex)
	  {
	    document.getElementById(pId).style.zIndex = pIndex;
	  }
	}

	function fChangeVisibility(pId, pVisibility)
	{
	  if (pId && pVisibility)
	  {
	    document.getElementById(pId).style.visibility = pVisibility;
	  }
	}

	function fGetHeight()
	{
		var h = 768;
		if (window.innerHeight)
		{
			h = window.innerHeight;
		} 
		else 
		{
			if (document.body.clientHeight) 
			{
				h = document.body.clientHeight;
			}
		}
		return h;
	}

	var h = fGetHeight();

	function fGetWidth()
	  {
			var w = 1024;
			if (window.innerWidth)
			{
				w = window.innerWidth;
			}
			else
			{
				if (document.body.clientWidth)
				{
					w = document.body.clientWidth;
				}
			}
			return w;
	  }

		var w = fGetWidth();


		var pBroadChocoWidth = 470;
		var pBroadRodWidth = 636;
		var pBroadVdaleWidth = 399;
		var pBroadLuxWidth = 565;
		var pBroadSelWidth = 731;
		var pGirlWidth = 700;
    var pMainWidth = 0;

		if (w > 1024)
		{
			pBroadChocoWidth = Math.ceil(((w-1024)/2)+470);
			pBroadRodWidth = Math.ceil(((w-1024)/2)+636);
			pBroadVdaleWidth = Math.ceil(((w-1024)/2)+399);
			pBroadLuxWidth = Math.ceil(((w-1024)/2)+565);
			pBroadSelWidth = Math.ceil(((w-1024)/2)+731);
			pGirlWidth = Math.ceil(((w-1024)/2)+700);
      pMainWidth = Math.ceil((w-1024)/2);
		}

		var pBroadChocoHeight = 100;
		var pBroadRodHeight = 102;
		var pBroadVdaleHeight = 201;
		var pBroadLuxHeight = 217;
		var pBroadSelHeight = 220;
		var pGirlHeight = 488;
    var pMainHeight = 0;

		if (h > 768)
		{
			pBroadChocoHeight = Math.ceil(((h-768)/2)+100);
			pBroadRodHeight = Math.ceil(((h-768)/2)+102);
			pBroadVdaleHeight = Math.ceil(((h-768)/2)+201);
			pBroadLuxHeight = Math.ceil(((h-768)/2)+217);
			pBroadSelHeight = Math.ceil(((h-768)/2)+220);
			pGirlHeight = Math.ceil(((h-768)/2)+488);
      pMainHeight = Math.ceil((h-768)/2);
		}

		document.write('<style type="text/css">#broad_choco{position:absolute;left:'+pBroadChocoWidth+'px; top:'+pBroadChocoHeight+'px;z-index:100;}</style>');
		document.write('<style type="text/css">#broad_rod{position:absolute;left:'+pBroadRodWidth+'px; top:'+pBroadRodHeight+'px;z-index:99;}</style>');
		document.write('<style type="text/css">#broad_vdale{position:absolute;left:'+pBroadVdaleWidth+'px; top:'+pBroadVdaleHeight+'px;z-index:98;}</style>');
		document.write('<style type="text/css">#broad_lux{position:absolute;left:'+pBroadLuxWidth+'px; top:'+pBroadLuxHeight+'px;z-index:97;}</style>');
		document.write('<style type="text/css">#broad_sel{position:absolute;left:'+pBroadSelWidth+'px; top:'+pBroadSelHeight+'px;z-index:96;}</style>');
		document.write('<style type="text/css">#girl{position:absolute;left:'+pGirlWidth+'px; top:'+pGirlHeight+'px;z-index:102;}</style>');
    document.write('<style type="text/css">#main{top:'+pMainHeight+'px;position:absolute;z-index:1;}</style>');