document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" CODEBASE= ID=banner WIDTH="750" HEIGHT="100">');
document.write('<PARAM NAME="movie" VALUE="http://banners.adnet.lt/i/dynamit_750x100.swf?clickTAG=http://www.google.com"><PARAM NAME="Autostart" VALUE="true"><PARAM NAME="Quality" VALUE="high"><PARAM NAME="wmode" VALUE="transparent">');
document.write('<EMBED SRC="http://banners.adnet.lt/i/dynamit_750x100.swf?clickTAG=http://www.google.com" swLiveConnect=TRUE WIDTH="750" HEIGHT="100" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" QUALITY="high" WMODE="transparent"></EMBED>');
document.write('</OBJECT>');

//  Floating (centre) su SELECT slepimu BEGIN
var banner_file ="http://banners.adnet.lt/i/dynamit_500x500._3.swf";  // flash banner URL
var banner_link ="http://www.google.com/";  // link URL and macros
var banner_width = 500;  // banner width (px)
var banner_height = 500; // banner height (px)
var banner_delay = 1;    // delay (s)
var banner_down = 25;    // display lower than center (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="allowScriptAccess" VALUE="Always"><PARAM NAME="wmode" VALUE="transparent"><PARAM NAME="Autostart" VALUE="true">';
kodas += '<EMBED SRC="'+banner_file+'?clickTAG='+banner_link+'" WMODE="transparent" swLiveConnect=TRUE WIDTH="'+banner_width+'" HEIGHT="'+banner_height+'" TYPE="application/x-shockwave-flash" allowScriptAccess="always" 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 = (iw - banner_width) / 2 + sl; // center
		lt = (ih - banner_height) / 2 + st + banner_down; // 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;



setTimeout("imp_simplepop('open');",banner_delay*500);



//  Floating (centre) su SELECT slepimu END


