var flashLayerURL="http://static1.origos.hu/p/banner/sticky/borsodi/sor_2.swf";
var gifURL="http://static8.origos.hu/p/banner/sticky/borsodi/sor.png"
var advurl="http://www.borsodi.hu";
var advurl2="http://www.borsodi.hu";
var flashLayerX=780; 



var flashLayerWidth=121;
var flashLayerHeight=400;
var dcadvurl=escape(advurl);
var dcadvurl2=escape(advurl2);
var requiredFlashVer=5;
var plugin=false;

if (document.all) {
document.write('<scr' + 'ipt language=VBScript>' + '\n' +
			'dcmaxversion = 7\n' +
			'dcminversion = '+ requiredFlashVer + '\n' +
			'Do' + '\n' +
				'On Error Resume Next' + '\n' +
				'plugin = (IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.\" & dcmaxversion & \"\")))' + '\n' +
				'If plugin = true Then Exit Do' + '\n' +
				'dcmaxversion = dcmaxversion - 1' + '\n' +
			'Loop While dcmaxversion >= dcminversion' + '\n' +
			'</scr' + 'ipt>');
}

function position_it(){
	if (document.all) {
		var crossobj=document.all.bors;
		var top=document.body.scrollTop;
		crossobj.style.top=parseInt(top);
	}
}


if (document.all && window.print && plugin==true) {
	document.write('<DIV id="bors" STYLE="position:absolute; top: 0px; left:'+flashLayerX+'px; width:'+flashLayerWidth+'px; height:'+flashLayerHeight+'px; z-index:1000; visibility:visible"> ');
	document.write('<OBJECT id="bors_flash" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" ');
	document.write('width="'+flashLayerWidth+'" height="'+flashLayerHeight+'">');
	document.write('<PARAM NAME=FlashVars VALUE="clickTag=' + dcadvurl + '&clickTag2=' + dcadvurl2  + '">');
	document.write('<PARAM NAME=movie VALUE="'+flashLayerURL+'?clickTag='+dcadvurl+ '&clickTag2=' + dcadvurl2  +'">');
	document.write('<PARAM NAME=play VALUE=true><PARAM NAME=menu VALUE=false><PARAM NAME=quality VALUE=high><PARAM NAME=wmode VALUE=transparent>'); 
	document.write('</OBJECT></DIV>');
} else {
	document.write('<DIV id="bors" STYLE="position:absolute; top: 0px; left:'+flashLayerX+'px; width:'+flashLayerWidth+'px; height:'+flashLayerHeight+'px; z-index:1000; visibility:visible"> ');
	document.write('<a href="'+advurl+'" target="_blank"><img border=0 src="'+gifURL+'" width='+flashLayerWidth+' height='+flashLayerHeight +'></a>');
	document.write('</DIV>');
}

window.onload=position_it;
window.onscroll=position_it;
window.onresize=position_it;

