
banner_num = 1;

bannerEnabled = 1;
bannerGo = "http://isd-group.com/about/vacancy/";
bannerWidth = 330;
bannerHeight = 330;
bannerPosX = 1;
bannerPosY = 1.1;
bannerShow = "";
bannerPath = "/images/news/2008/02/SnUrb_banRM" + banner_num + ".swf?clickTag=" + bannerGo + "&url_close=";
bannerNoFlash = "";
bannerName = "snickers0";
bannerTimeout = 1; //sec 86400 *
bannerScroll = 1;
bannerCookieDomain = "";
flashVersion = 6;
xclick=0;

var bnDiv;

function showRM(showmode, n) {

	var content, stat;

	if(showmode) {
		content = '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=' + flashVersion + ',0,0,0" ID="fluff1" WIDTH=' + bannerWidth + ' HEIGHT=' + bannerHeight + '><param name=movie value="' + bannerPath + '"><param name=quality value=high><param name=bgcolor value=#FFFFFF><param name=wmode value=transparent><param name="allowScriptAccess" value="always" /><param name=swLiveConnect value=true><param name=menu value=false><embed src="' + bannerPath + '" quality="high" bgcolor="#ffffff" width="' + bannerWidth + '" height="' + bannerHeight + '" name="fluff1" align="middle" type="application/x-shockwave-flash" menu="false" wmode="transparent" swLiveConnect="true" allowScriptAccess="always" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';
		stat = '';
	}
	else if(bannerNoFlash != "") {
		content = '<a href="' + bannerGo + '" onClick="javascript:closeRM();" target="_blank"><img src="' + bannerNoFlash + '" border=0 alt="" style="border: 1px solid; border-color: #000000; "></a><div style="position: relative; top: -' + bannerHeight + 'px; left: ' + (350) + 'px;"><a href="javascript:closeRM();"><img src="http://lvivske.bbh.isd/images/banners/close.gif" alt="" width="25" height="25" border="0"></a></div>';
		stat = '<div id="rmstats" style="visibility: hidden; position: absolute;"><img src="' + bannerShow + '" alt="" width=1 height=1 border=0></div>';
	}

	document.write('<div id="rmflash' + n + '" style="position: absolute; top: 0px; left: 0px; visibility: hidden; z-index: 1001;">' + content + '</div>' + stat);

}

function closeRM() {
	if(bnDiv) bnDiv.style.visibility="hidden";
}

function setBannerPos() {
	if(bnDiv) {
		layer_l=Math.round(document.body.scrollLeft + ((document.body.clientWidth * bannerPosX) - bannerWidth) / 2);
		layer_t=Math.round(document.body.scrollTop + ((document.body.clientHeight * bannerPosY) - bannerHeight) / 2);

		bnDiv.style.left = layer_l + "px";
		bnDiv.style.top = layer_t + "px";

		if(!isInternetExplorer) {
			setTimeout("setBannerPos()", 10);
		}
	}
}

function fluff1_DoFSCommand(command, args) {
	if((command=="close") && (args == 1)) {
		closeRM();
	}
	else
	if ((command=="openurl") && (args == 1) && (!xclick)) {
		xclick = 1;
	}
}

var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<script language=\"VBScript\"\>\n');
	document.write('On Error Resume Next\n');
	document.write('Sub fluff1_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call fluff1_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}

var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if(plugin){
	plugin = (parseInt(plugin.description.substring(plugin.description.indexOf("Flash ") + 6)) >= flashVersion);
}
else if((navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0)&&((navigator.userAgent.indexOf("Windows 95")>=0)||(navigator.userAgent.indexOf("Windows 98")>=0)||(navigator.userAgent.indexOf("Windows NT")>=0))) {
	fObj = "ShockwaveFlash.ShockwaveFlash." + flashVersion;
	document.write('<'+'SCRIPT LANGUAGE=VBScript'+'>\n');
	document.write('on error resume next\n');
	document.write('plugin = (IsObject(CreateObject("' + fObj + '")))\n');
	document.write('</'+'SCRIPT'+'>');
}

bannerPath = "/images/news/2008/02/SnUrb_banRM" + 1 + ".swf?url=" + bannerGo + "&url_close=";
showRM(plugin, 1);
bannerPath = "/images/news/2008/02/SnUrb_banRM" + 2 + ".swf?url=" + bannerGo + "&url_close=";
showRM(plugin, 2);
bannerPath = "/images/news/2008/02/SnUrb_banRM" + 3 + ".swf?url=" + bannerGo + "&url_close=";
showRM(plugin, 3);
bannerPath = "/images/news/2008/02/SnUrb_banRM" + 4 + ".swf?url=" + bannerGo + "&url_close=";
showRM(plugin, 4);

function ShowBanner(x) {
	document.getElementById("rmflash1").style.visibility = "hidden";
	document.getElementById("rmflash2").style.visibility = "hidden";
	document.getElementById("rmflash3").style.visibility = "hidden";
	document.getElementById("rmflash4").style.visibility = "hidden";
	setBannerPos();
	if(bnDiv = document.getElementById("rmflash" + x)) {
		bnDiv.style.visibility="visible";
		setBannerPos();
	}
}

