//  Floating (centre) su SELECT slepimu BEGIN

var banner_file ="http://www.impartner.lt/ads/omni_surfport_polter_1000x920_3.swf";  // flash banner URL
var banner_link ="http://www.google.lt/";  // link URL and macros
var banner_width = 1000;  // banner width (px)
var banner_height = 920; // banner height (px)

var kodas = '';

kodas += '<DIV ID="baneris" STYLE="position:absolute; width:'+banner_width+'px; height:'+banner_height+'px; left:0px; top:0px; visibility:hidden; z-index:99999;">';
kodas += '<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="'+banner_width+'" HEIGHT="'+banner_height+'">';
kodas += '<PARAM NAME="movie" VALUE="'+banner_file+'?clickTAG='+banner_link+'">';
kodas += '<PARAM NAME="Quality" VALUE="high"><PARAM NAME="wmode" VALUE="transparent"><PARAM NAME="allowscriptaccess" VALUE="always"><PARAM NAME="Autostart" VALUE="true">';
kodas += '<EMBED SRC="'+banner_file+'?clickTAG='+banner_link+'" WMODE="transparent" allowscriptaccess="always" swLiveConnect=TRUE WIDTH="'+banner_width+'" HEIGHT="'+banner_height+'" TYPE="application/x-shockwave-flash" QUALITY="high"></EMBED>';
kodas += '</OBJECT></DIV>';

document.write(kodas);

function imp_findObj(n, d) { 
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i>d.layers.length;i++) x=imp_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function imp_adlayers_place()
{
	var c = imp_findObj('baneris');

	if (!c)
		return false;

	if (c.style)
		c = c.style;

	if (window.innerHeight)
	{
		ih = window.innerHeight;
		iw = window.innerWidth;
		sl = window.pageXOffset;
		st = window.pageYOffset;

		if (window.opera)
			of = 0;
		else
			of = 16;
	}

	else if (document.documentElement && document.documentElement.clientHeight)

	{
		ih = document.documentElement.clientHeight;
		iw = document.documentElement.clientWidth;
		sl = document.documentElement.scrollLeft;
		st = document.documentElement.scrollTop;
		of = 0;		

	}

	else if (document.body)

	{

		ih = document.body.clientHeight;

		iw = document.body.clientWidth;

		sl = document.body.scrollLeft;

		st = document.body.scrollTop;

		of = 0;

	}



		ll = 0; // center

		lt = 0; // center + more



	if (c.pixelLeft)

		c.pixelLeft = ll;

	else if (window.opera)

		c.left = ll;

	else

		c.left = ll + 'px';

		

	if (c.pixelTop)

		c.pixelTop = lt;

	else if (window.opera)

		c.top = lt;

	else

		c.top = lt + 'px';



	c.visibility = imp_adlayers_visible;

}



function imp_switch_select(value) {

	for (i = 0; i < document.all.tags('SELECT').length; i++) {obj = document.all.tags('SELECT')[i];if (! obj || ! obj.offsetParent) continue; obj.style.visibility = value;}

}



function imp_simplepop(what)

{

	var c = imp_findObj('baneris');



	if (!c)

		return false;



	if (c.style)

		c = c.style;



	switch(what)

	{

		case 'close':

			imp_adlayers_visible = 'hidden';

			imp_adlayers_place();

			window.clearInterval(imp_adlayers_timerid);

			if (document.all) imp_switch_select('visible'); // show SELECT

			break;



		case 'open':

			imp_adlayers_visible = 'visible';

			imp_adlayers_place();

			imp_adlayers_timerid = window.setInterval('imp_adlayers_place()', 10);

			if (document.all) imp_switch_select('hidden'); // hide SELECT

			// return window.setTimeout('imp_simplepop(\'close\')', 15000); // close banner (s)

			break;

	}

}



function ad_close() {

	imp_simplepop('close');

}



var imp_adlayers_timerid;

var imp_adlayers_visible;


imp_simplepop('open');

setTimeout("imp_switch_select('hidden');",500);

//  Floating (centre) su SELECT slepimu END
