var mH = 0;
var defSearchText, searchInput;

function InitSearch() {
    searchInput = document.getElementById("SearchTxtID");
    defSearchText = searchInput.value;
}

function addmenu(hideonly,showonly) {
	var ho;
	var so;
	if(hideonly==null) ho=false;
	else ho=hideonly;
	if(showonly==null) so=false;
	else so=showonly;
	
	if(document.getElementById("menu_alinks")) {
		var amenu = document.getElementById("menu_alinks");
		//alert("hideonly=" + ho + "\nshowonly="+so);
		if(ho) amenu.style.display = "none";
		else if(so) {
			amenu.style.display = "block";
			animate();
		} else {
			if(amenu.style.display == "block") amenu.style.display = "none";
			else {
				amenu.style.display = "block";
				animate();
			}
		}
	}
}

function getDefSearch()
{
   if(searchInput.value.length == 0) {
      searchInput.value = defSearchText;
      searchInput.className = "srchInputDef";
   }
}

function removeDefSearch()
{
   searchInput.className = "srchInput";
   if(searchInput.value == defSearchText) searchInput.value = "";
}

function dd_toggle(node_id,cclass)
{
	var note = document.getElementById("ddd_" + node_id);
	var lab = document.getElementById("ddl_" + node_id);
	if(note.style.display != "block") {
		note.style.display = "block";
		lab.className = "arrowup";
	} else {
		note.style.display = "none";
		lab.className = cclass;
	}
	//alert(note.id);
}

function clmenu_show(pID)
{
	var clmenu1 = document.getElementById("clmenu1");
	var clmenu2 = document.getElementById("clmenu2");
	var clmenu3 = document.getElementById("clmenu3");
	
	var clbtn1 = document.getElementById("clbtn1");
	var clbtn2 = document.getElementById("clbtn2");
	var clbtn3 = document.getElementById("clbtn3");

	if(pID == clmenu1.id) {
		clmenu1.style.display = "block"; clbtn1.className = "checked";
		clmenu2.style.display = "none"; clbtn2.className = "";
		clmenu3.style.display = "none"; clbtn3.className = "";
	} else if(pID == clmenu2.id) {
		clmenu2.style.display = "block"; clbtn2.className = "checked";
		clmenu1.style.display = "none"; clbtn1.className = "";
		clmenu3.style.display = "none"; clbtn3.className = "";
	} else if(pID == clmenu3.id) {
		clmenu3.style.display = "block"; clbtn3.className = "checked";
		clmenu2.style.display = "none"; clbtn2.className = "";
		clmenu1.style.display = "none"; clbtn1.className = "";
	}
}

function animate() {
	control = document.getElementById("menu_alinks");
	if(mH<200) {
		mH += 12;
		control.style.height = mH;
		control.style.width = mH+150;
		setTimeout("animate()", 12);
	} else {
		mH = 0;
	}
}

function trackimg(what,where) {
	if(where==0) {
		what.src="/c_i/c_header_phone_bover.png";
	} else {
		what.src="/c_i/c_header_phone_b.png";
	}
};

function opentab(tabBtn, price, linkStr) {
	if (tabBtn.className != "active") {
		var tabBtnStr = tabBtn.id;
		var tabIndex = parseInt(tabBtnStr.charAt(tabBtnStr.length-1),10);
		//alert(tabIndex);

		tabBtn.className = "active";
		for (var i = 1; i <= 4; i++) {
			var tab = document.getElementById("bannerTab" + i.toString());
			var tabBtn = document.getElementById("bannerTabBtn" + i.toString());
			if (tab && i == tabIndex) tab.style.display = "block";
			else if(tab) {
				tab.style.display = "none";
				tabBtn.className = "";
			}
		}
		document.getElementById("bannerImg").src = "/p_images/" + price + ".gif";
		document.getElementById("bannerOrderLink").onclick = function() { document.location = "/?s=R&p=" + linkStr; }
	}
}

/*Shit*/
function shar_l(s,l_s)
	{
	var  i,ii,ibr,ss,sss,t_s,t_top=0
	sss='àáâãäå¸æçèéêëìíîïðñòóôõö÷øùúûüýþÿÀÁÂÃÄÅ¨ÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890*#,;.-:?!+_)(%$&@=/\][}{';
	//s=s.toUpperCase();
	t_s='';ibr=0;
	for (i=0;i<s.length;i++)
		{ ibr++;
		ss=s.substr(i,1)
		ii=sss.indexOf(ss)
		if ((ii<sss.length)&(ii>-1))
			{
			t_s=t_s+'<img style=\'position:relative;top:'+t_top+'px\' src=\'/img_shar/let/0_bukvi_shar'+((ii+1)*2)+'.gif\' border=0>';
			}else {if ((ss==' ')&(ibr>l_s)&(s.length>l_s)) {t_s=t_s+'<img style=\'position:relative;top:'+t_top+'px\' height=13 width=1 src=\'/1X1.gif\' border=0><br/>';ibr=0;} else {t_s=t_s+'<img style=\'width:4px;position:relative;top:'+t_top+'px\' src=\'/1X1.gif\' border=0>';}}
		}
		return t_s;
	};

function w_blue(s)
	{
	var  i,ii,ss,sss,t_s
	sss='àáâãäå¸æçèéêëìíîïðñòóôõö÷øùúûüýþÿÀÁÂÃÄÅ¨ÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890*#,;.-:?!+_)(%$&@=/\][}{ ';
	s=s.toUpperCase();
	t_s='';
	for (i=0;i<s.length;i++)
		{
		ss=s.substr(i,1)
		ii=sss.indexOf(ss)
		if ((ii<sss.length-1)&(ii>-1))
			{
			t_s=t_s+'<img style=\'position:relative;top:2px\' src=\'/c_i/word_c/word_ccc'+((ii+1)*2)+'.gif\' border=0>';
				}
				else
				{
				t_s=t_s+'&nbsp;'
				}
			}
		return t_s;
	};

function w_gray(s)
	{
	var  i,ii,ss,sss,t_s
	sss='àáâãäå¸æçèéêëìíîïðñòóôõö÷øùúûüýþÿÀÁÂÃÄÅ¨ÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890*#,;.-:?!+_)(%$&@=/\][}{ ';
	s=s.toUpperCase();
	t_s='';
	for (i=0;i<s.length;i++)
		{
		ss=s.substr(i,1)
		ii=sss.indexOf(ss)
		if ((ii<sss.length-1)&(ii>-1))
			{
			t_s=t_s+'<img style=\'position:relative;top:2px\' src=\'/c_i/word_c/word_cccc'+((ii+1)*2)+'.gif\' border=\'0\' />';
				}
				else
				{
				t_s=t_s+'&nbsp;'
				}
			}
		return t_s;
	};

function f_shar(t_x,t_y,t_t)
{
var pp,p1,p2,p3,p4,bo,yy,pou,tt;
pou="<img style='vertical-align:top' src='/shar/pou.gif' border='0' />";
tt="top.gif";
if (t_t) tt="top_t.gif";
if (t_x.length==0) t_x="0";
if (t_x.length>3) 
	{
	p1=t_x.charAt(0);p2=t_x.charAt(1);p3=t_x.charAt(2);p4=t_x.charAt(3);
	pp="<img src='/shar/smad_"+p1+".gif' border='0' /><img src='/shar/smad_"+p2+".gif' border='0' /><img src='/shar/smad_"+p3+".gif' border=0><img src='/shar/smad_"+p4+".gif' border=0>";
	}
	else
	if (t_x.length>2)
		{
		p1=t_x.charAt(0);p2=t_x.charAt(1);p3=t_x.charAt(2);
		pp="<img src='/shar/bigd_"+p1+".gif' border='0' /><img src='/shar/bigd_"+p2+".gif' border='0' /><img src='/shar/bigd_"+p3+".gif' border='0' />";
		}
		else
		if (t_x.length>1)
			{
			p1=t_x.charAt(0);p2=t_x.charAt(1);
			pp=pou+"<img src='/shar/bigd_"+p1+".gif' border='0' /><img src='/shar/bigd_"+p2+".gif' border='0' />";
			pou="";
			}
			else
			{
			p1=t_x.charAt(0);
			pp=pou+"<img src='/shar/bigd_"+p1+".gif' border='0' />";
			pou="";
			}
if ((t_y)&&(t_y!='p'))
	{
	yy="<img src='/shar/yea.gif' border='0' /><br /><img width='24' height='1' src='/shar/one.gif' border='0' />"
	}
	else
	{
	yy="<img width='24' height='11' src='/shar/one.gif' border='0' />"
	}
bo="<table style='display:inline' cellspacing='0' cellpadding='0'>";
bo+="<tr><td colspan=3><img src='/shar/"+tt+"' border='0'></td></tr>";
bo+="<tr>";
bo+="<td style='background-image:url(/shar/lef.gif);background-repeat:no-repeat;text-align:right;vertical-align:top'>"+pou+"<br /><img width='13' height='1' src='/shar/one.gif' border='0' /></td>";
bo+="<td style='background-image:url(/shar/cen.gif);background-repeat:no-repeat;text-align:right;vertical-align:top'>"+pp+"<br /><img width=40 height=1 src='/shar/one.gif' border='0' /></td>";
bo+="<td style='background-image:url(/shar/rig.gif);background-repeat:no-repeat;text-align:left;vertical-align:top'><img src='/shar/zer.gif' border='0' /><br />"+yy+"</td></tr>";
if (t_y.charAt(0)!='p') 
	{
	bo+="<tr><td colspan='3'><img src='/shar/bot.gif' border='0' /></td></tr>";
	}
	else
	{
	bo+="<tr><td colspan='3'><img src='/shar/bot_price.gif' border='0' /></td></tr>";
	}
bo+="</table>";
document.write (bo);
}

function w_shar(tttt_x,ttt_x,tt_x,lnk,t_x,t_y)
{
var tbo

tbo="<table cellspacing='0' cellpadding='0'>";
tbo+="<tr>";
tbo+="<td style='background-image:url(/shar/one_b.gif);background-position:left;background-repeat:repeat-y;text-align:left;vertical-align:top'>";
tbo+="<img width='1' height='7' src='/shar/one_w.gif' border='0' /><br />";
tbo+="<table width='100%' cellspacing='0' cellpadding='0'>";
tbo+="<tr>";
tbo+="<td>";
tbo+="<table width='100%' style='background-image:url(/img_shar/top_b.gif);background-repeat:repeat-x;background-position:top;text-align:left;' cellspacing='0' cellpadding='0'>";
tbo+="<tr><td style='background-image:url(/img_shar/bot_b.gif);background-repeat:repeat-x;background-position:bottom;text-align:left;'><img width='1' height='23' src='one_g.gif' border='0' /></td><td style='background-image:url(/img_shar/bot_b.gif);background-repeat:repeat-x;background-position:bottom;text-align:left;'>";
tbo+=w_gray(tttt_x);

tbo+="</td></tr>";
tbo+="</table>";
tbo+="</td>";
tbo+="<td>";
tbo+="<table style='background-image:url(/img_shar/top_b_m.gif);background-repeat:no-repeat;background-position:top;text-align:left;' cellspacing='0' cellpadding='0'>";
tbo+="<tr><td style='background-image:url(/img_shar/bot_b_m.gif);background-repeat:no-repeat;background-position:bottom;text-align:left;'><img width='21' height='23' src='/shar/one.gif' border='0' /></td></tr>";
tbo+="</table>";
tbo+="</td>";
tbo+="<td width='100%'>";
tbo+="<table width='100%' style='background-image:url(/img_shar/top_g.gif);background-repeat:repeat-x;background-position:top;text-align:left;' cellspacing='0' cellpadding='0'>";
tbo+="<tr><td style='background-image:url(/img_shar/bot_g.gif);background-repeat:repeat-x;background-position:bottom;text-align:left;'><img width='1' height='23' src='/shar/one.gif' border='0' /></td><td style='background-image:url(/img_shar/bot_g.gif);background-repeat:repeat-x;background-position:bottom;text-align:left;'>";

tbo+=w_blue(ttt_x);

tbo+="</td></tr>";
tbo+="</table>";
tbo+="</td>";
tbo+="</tr>";
tbo+="</table>";
	tbo+="<table width='100%' cellspacing='0' cellpadding='0'>";
	tbo+="<tr>";
	tbo+="<td style='padding:5;padding-left:10;font-family:verdana;font-size:10px;'>";
	tbo+=tt_x;
	tbo+="</td>";
	tbo+="</tr>";
	tbo+="</table>";
tbo+="</td>";
tbo+="<td style='background-image:url(/img_shar/rig_g.gif);background-position:right;background-repeat:repeat-y;text-align:left;vertical-align:top'>";
document.write(tbo);

f_shar(t_x,t_y,"r");

tbo="</td>";
tbo+="</tr>";
tbo+="<tr>";
tbo+="<td style='background-image:url(/shar/one_b.gif);background-position:left;background-repeat:repeat-y;text-align:left;vertical-align:top'>";
tbo+="<table width='100%' cellspacing='0' cellpadding='0'>";
tbo+="<tr>";
tbo+="<td width='100%'>";
tbo+="<table width='100%' style='background-image:url(/shar/one.gif);background-repeat:repeat-x;background-position:top;text-align:left;' cellspacing='0' cellpadding='0'>";
tbo+="<tr><td style='background-image:url(/img_shar/bot_z.gif);background-repeat:repeat-x;background-position:bottom;text-align:left;'><img width='1' height='21' src='one_b.gif' border='0' /></td><td style='background-image:url(/img_shar/bot_z.gif);background-repeat:repeat-x;background-position:bottom;text-align:left;color:white;'>s</td></tr>";
tbo+="</table>";
tbo+="</td>";
tbo+="<td>";
tbo+="<table style='background-image:url(/img_shar/top_z_m.gif);background-repeat:no-repeat;background-position:top;text-align:left;' cellspacing='0' cellpadding='0'>";
tbo+="<tr><td style='background-image:url(/img_shar/bot_z_m.gif);background-repeat:no-repeat;background-position:bottom;text-align:left;'><img width='21' height='21' src='/shar/one.gif' border='0' /></td></tr>";
tbo+="</table>";
tbo+="</td>";
tbo+="<td>";
tbo+="<table width='100%' style='background-image:url(/img_shar/top_z.gif);background-repeat:repeat-x;background-position:top;text-align:left;' cellspacing=0 cellpadding=0>";
tbo+="<tr><td style='background-image:url(/shar/one.gif);background-repeat:repeat-x;background-position:bottom;text-align:left;'><img width=1 height=21 src='/shar/one.gif' border=0></td><td style='background-image:url(/shar/one.gif);background-repeat:repeat-x;background-position:bottom;text-align:left;color:white;'><img width=1 height=3 src='/shar/one.gif' border=0><br><a href='"+lnk+"'><img src='/image/d_apply.gif' border=0></a></td></tr>";
tbo+="</table>";
tbo+="</td>";
tbo+="</tr>";
tbo+="</table>";
tbo+="</td>";
tbo+="<td style='background-image:url(/img_shar/top_z.gif);background-position:top;background-repeat:repeat-x;text-align:right;vertical-align:top'><img width=7 height=1 src='/shar/one_w.gif' border=0></td>";
tbo+="</tr>";
tbo+="</table>";
document.write(tbo);
}

function ww_shar(tttt_x,ttt_x,tt_x,lnk,t_x,t_y)
{
var tbo

tbo="<table cellspacing=0 cellpadding=0>";
tbo+="<tr>";
tbo+="<td style='background-image:url(/shar/one_b.gif);background-position:left;background-repeat:repeat-y;text-align:left;vertical-align:top'>";
tbo+="<img width=1 height=7 src='/shar/one_w.gif' border=0><br>";
tbo+="<table width='100%' cellspacing=0 cellpadding=0>";
tbo+="<tr>";
tbo+="<td>";
tbo+="<table width='100%' style='background-image:url(/img_shar/top_b.gif);background-repeat:repeat-x;background-position:top;text-align:left;' cellspacing=0 cellpadding=0>";
tbo+="<tr><td style='background-image:url(/img_shar/bot_b.gif);background-repeat:repeat-x;background-position:bottom;text-align:left;'><img width=1 height=23 src='one_g.gif' border=0></td><td style='background-image:url(/img_shar/bot_b.gif);background-repeat:repeat-x;background-position:bottom;text-align:left;'>";
tbo+=w_gray(tttt_x);

tbo+="</td></tr>";
tbo+="</table>";
tbo+="</td>";
tbo+="<td>";
tbo+="<table style='background-image:url(/img_shar/top_b_m.gif);background-repeat:no-repeat;background-position:top;text-align:left;' cellspacing=0 cellpadding=0>";
tbo+="<tr><td style='background-image:url(/img_shar/bot_b_m.gif);background-repeat:no-repeat;background-position:bottom;text-align:left;'><img width=21 height=23 src='/shar/one.gif' border=0></td></tr>";
tbo+="</table>";
tbo+="</td>";
tbo+="<td width='100%'>";
tbo+="<table width='100%' style='background-image:url(/img_shar/top_g.gif);background-repeat:repeat-x;background-position:top;text-align:left;' cellspacing=0 cellpadding=0>";
tbo+="<tr><td style='background-image:url(/img_shar/bot_g.gif);background-repeat:repeat-x;background-position:bottom;text-align:left;'><img width=1 height=23 src='/shar/one.gif'   border=0></td><td style='background-image:url(/img_shar/bot_g.gif);background-repeat:repeat-x;background-position:bottom;text-align:left;'>";

tbo+=w_blue(ttt_x);

tbo+="</td></tr>";
tbo+="</table>";
tbo+="</td>";
tbo+="</tr>";
tbo+="</table>";
	tbo+="<table width='100%' cellspacing=0 cellpadding=0>";
	tbo+="<tr>";
	tbo+="<td style='padding:5;padding-left:10;font-family:verdana;font-size:11px;'>";
	tbo+=tt_x;
	tbo+="</td>";
	tbo+="</tr>";
	tbo+="</table>";
tbo+="</td>";
tbo+="<td style='background-image:url(/img_shar/rig_g.gif);background-position:right;background-repeat:repeat-y;text-align:left;vertical-align:top'>";
document.write(tbo);



tbo="</td>";
tbo+="</tr>";
tbo+="<tr>";
tbo+="<td style='background-image:url(/shar/one_b.gif);background-position:left;background-repeat:repeat-y;text-align:left;vertical-align:top'>";
tbo+="<table width='100%' cellspacing=0 cellpadding=0>";
tbo+="<tr>";
tbo+="<td width='100%'>";
tbo+="<table width='100%' style='background-image:url(/shar/one.gif);background-repeat:repeat-x;background-position:top;text-align:left;' cellspacing=0 cellpadding=0>";
tbo+="<tr><td style='background-image:url(/img_shar/bot_z.gif);background-repeat:repeat-x;background-position:bottom;text-align:left;'><img width=1 height=21 src='one_b.gif' border=0></td><td style='background-image:url(/img_shar/bot_z.gif);background-repeat:repeat-x;background-position:bottom;text-align:left;color:white;'>s</td></tr>";
tbo+="</table>";
tbo+="</td>";
tbo+="<td>";
tbo+="<table style='background-image:url(/img_shar/top_z_m.gif);background-repeat:no-repeat;background-position:top;text-align:left;' cellspacing=0 cellpadding=0>";
tbo+="<tr><td style='background-image:url(/img_shar/bot_z_m.gif);background-repeat:no-repeat;background-position:bottom;text-align:left;'><img width=21 height=21 src='/shar/one.gif' border=0></td></tr>";
tbo+="</table>";
tbo+="</td>";
tbo+="<td>";
tbo+="<table width='100%' style='background-image:url(/img_shar/top_z.gif);background-repeat:repeat-x;background-position:top;text-align:left;' cellspacing=0 cellpadding=0>";
tbo+="<tr><td style='background-image:url(/shar/one.gif);background-repeat:repeat-x;background-position:bottom;text-align:left;'><img width=1 height=21 src='/shar/one.gif' border=0></td><td style='background-image:url(/shar/one.gif);background-repeat:repeat-x;background-position:bottom;text-align:left;color:white;'><img width=1 height=3 src='/shar/one.gif' border=0><br><a href='"+lnk+"'><img src='/image/d_apply.gif' border=0></a></td></tr>";
tbo+="</table>";
tbo+="</td>";
tbo+="</tr>";
tbo+="</table>";
tbo+="</td>";
tbo+="<td style='background-image:url(/img_shar/top_z.gif);background-position:top;background-repeat:repeat-x;text-align:right;vertical-align:top'><img width=7 height=1 src='/shar/one_w.gif' border=0></td>";
tbo+="</tr>";
tbo+="</table>";
document.write(tbo);
}

function f_shar_euro(t_x,t_y,t_t)
{
var pp,p1,p2,p3,p4,bo,yy,pou,tt;
pou="<img style='vertical-align:top' src='/shar/eur.gif' border=0>";
tt="top.gif";
if (t_t) tt="top_t.gif";
if (t_x.length==0) t_x="0";
if (t_x.length>3) 
	{
	p1=t_x.charAt(0);p2=t_x.charAt(1);p3=t_x.charAt(2);p4=t_x.charAt(3);
	pp="<img src='/shar/smad_"+p1+".gif' border=0><img src='/shar/smad_"+p2+".gif' border=0><img src='/shar/smad_"+p3+".gif' border=0><img src='/shar/smad_"+p4+".gif' border=0>";
	}
	else
	if (t_x.length>2)
		{
		p1=t_x.charAt(0);p2=t_x.charAt(1);p3=t_x.charAt(2);
		pp="<img src='/shar/bigd_"+p1+".gif' border=0><img src='/shar/bigd_"+p2+".gif' border=0><img src='/shar/bigd_"+p3+".gif' border=0>";
		}
		else
		if (t_x.length>1)
			{
			p1=t_x.charAt(0);p2=t_x.charAt(1);
			pp=pou+"<img src='/shar/bigd_"+p1+".gif' border=0><img src='/shar/bigd_"+p2+".gif' border=0>";
			pou="";
			}
			else
			{
			p1=t_x.charAt(0);
			pp=pou+"<img src='/shar/bigd_"+p1+".gif' border=0>";
			pou="";
			}
if ((t_y)&&(t_y!='p'))
	{
	yy="<img src='/shar/yea.gif' border=0><br><img width=24 height=1 src='/shar/one.gif' border=0>"
	}
	else
	{
	yy="<img width=24 height=11 src='/shar/one.gif' border=0>"
	}
bo="<table style='display:inline' cellspacing=0 cellpadding=0>";
bo+="<tr><td colspan=3><img src='/shar/"+tt+"' border=0></td></tr>";
bo+="<tr>";
bo+="<td style='background-image:url(/shar/lef.gif);background-repeat:no-repeat;text-align:right;vertical-align:top'>"+pou+"<br><img width=13 height=1 src='/shar/one.gif' border=0></td>";
bo+="<td style='background-image:url(/shar/cen.gif);background-repeat:no-repeat;text-align:right;vertical-align:top'>"+pp+"<br><img width=40 height=1 src='/shar/one.gif' border=0></td>";
bo+="<td style='background-image:url(/shar/rig.gif);background-repeat:no-repeat;text-align:left;vertical-align:top'><img src='/shar/zer.gif' border=0><br>"+yy+"</td></tr>";
if (t_y.charAt(0)!='p') 
	{
	bo+="<tr><td colspan=3><img src='/shar/bot.gif' border=0></td></tr>";
	}
	else
	{
	bo+="<tr><td colspan=3><img src='/shar/bot_price.gif' border=0></td></tr>";
	}
bo+="</table>";
document.write (bo);
}

function w_shar_euro(tttt_x,ttt_x,tt_x,lnk,t_x,t_y)
{
var tbo

tbo="<table cellspacing=0 cellpadding=0>";
tbo+="<tr>";
tbo+="<td style='background-image:url(/shar/one_b.gif);background-position:left;background-repeat:repeat-y;text-align:left;vertical-align:top'>";
tbo+="<img width=1 height=7 src='/shar/one_w.gif' border=0><br>";
tbo+="<table width='100%' cellspacing=0 cellpadding=0>";
tbo+="<tr>";
tbo+="<td>";
tbo+="<table width='100%' style='background-image:url(/img_shar/top_b.gif);background-repeat:repeat-x;background-position:top;text-align:left;' cellspacing=0 cellpadding=0>";
tbo+="<tr><td style='background-image:url(/img_shar/bot_b.gif);background-repeat:repeat-x;background-position:bottom;text-align:left;'><img width=1 height=23 src='one_g.gif' border=0></td><td style='background-image:url(/img_shar/bot_b.gif);background-repeat:repeat-x;background-position:bottom;text-align:left;'>";
tbo+=w_gray(tttt_x);

tbo+="</td></tr>";
tbo+="</table>";
tbo+="</td>";
tbo+="<td>";
tbo+="<table style='background-image:url(/img_shar/top_b_m.gif);background-repeat:no-repeat;background-position:top;text-align:left;' cellspacing=0 cellpadding=0>";
tbo+="<tr><td style='background-image:url(/img_shar/bot_b_m.gif);background-repeat:no-repeat;background-position:bottom;text-align:left;'><img width=21 height=23 src='/shar/one.gif' border=0></td></tr>";
tbo+="</table>";
tbo+="</td>";
tbo+="<td width='100%'>";
tbo+="<table width='100%' style='background-image:url(/img_shar/top_g.gif);background-repeat:repeat-x;background-position:top;text-align:left;' cellspacing=0 cellpadding=0>";
tbo+="<tr><td style='background-image:url(/img_shar/bot_g.gif);background-repeat:repeat-x;background-position:bottom;text-align:left;'><img width=1 height=23 src='/shar/one.gif'   border=0></td><td style='background-image:url(/img_shar/bot_g.gif);background-repeat:repeat-x;background-position:bottom;text-align:left;'>";

tbo+=w_blue(ttt_x);

tbo+="</td></tr>";
tbo+="</table>";
tbo+="</td>";
tbo+="</tr>";
tbo+="</table>";
	tbo+="<table width='100%' cellspacing=0 cellpadding=0>";
	tbo+="<tr>";
	tbo+="<td style='padding:5;padding-left:10;font-family:verdana;font-size:10px;'>";
	tbo+=tt_x;
	tbo+="</td>";
	tbo+="</tr>";
	tbo+="</table>";
tbo+="</td>";
tbo+="<td style='background-image:url(/img_shar/rig_g.gif);background-position:right;background-repeat:repeat-y;text-align:left;vertical-align:top'>";
document.write(tbo);

f_shar_euro(t_x,t_y,"r");

tbo="</td>";
tbo+="</tr>";
tbo+="<tr>";
tbo+="<td style='background-image:url(/shar/one_b.gif);background-position:left;background-repeat:repeat-y;text-align:left;vertical-align:top'>";
tbo+="<table width='100%' cellspacing=0 cellpadding=0>";
tbo+="<tr>";
tbo+="<td width='100%'>";
tbo+="<table width='100%' style='background-image:url(/shar/one.gif);background-repeat:repeat-x;background-position:top;text-align:left;' cellspacing=0 cellpadding=0>";
tbo+="<tr><td style='background-image:url(/img_shar/bot_z.gif);background-repeat:repeat-x;background-position:bottom;text-align:left;'><img width=1 height=21 src='one_b.gif' border=0></td><td style='background-image:url(/img_shar/bot_z.gif);background-repeat:repeat-x;background-position:bottom;text-align:left;color:white;'>s</td></tr>";
tbo+="</table>";
tbo+="</td>";
tbo+="<td>";
tbo+="<table style='background-image:url(/img_shar/top_z_m.gif);background-repeat:no-repeat;background-position:top;text-align:left;' cellspacing=0 cellpadding=0>";
tbo+="<tr><td style='background-image:url(/img_shar/bot_z_m.gif);background-repeat:no-repeat;background-position:bottom;text-align:left;'><img width=21 height=21 src='/shar/one.gif' border=0></td></tr>";
tbo+="</table>";
tbo+="</td>";
tbo+="<td>";
tbo+="<table width='100%' style='background-image:url(/img_shar/top_z.gif);background-repeat:repeat-x;background-position:top;text-align:left;' cellspacing=0 cellpadding=0>";
tbo+="<tr><td style='background-image:url(/shar/one.gif);background-repeat:repeat-x;background-position:bottom;text-align:left;'><img width=1 height=21 src='/shar/one.gif' border=0></td><td style='background-image:url(/shar/one.gif);background-repeat:repeat-x;background-position:bottom;text-align:left;color:white;'><img width=1 height=3 src='/shar/one.gif' border=0><br><a href='"+lnk+"'><img src='/image/d_apply.gif' border=0></a></td></tr>";
tbo+="</table>";
tbo+="</td>";
tbo+="</tr>";
tbo+="</table>";
tbo+="</td>";
tbo+="<td style='background-image:url(/img_shar/top_z.gif);background-position:top;background-repeat:repeat-x;text-align:right;vertical-align:top'><img width=7 height=1 src='/shar/one_w.gif' border=0></td>";
tbo+="</tr>";
tbo+="</table>";
document.write(tbo);
}

function calcHeight(the_iframe)
{
	if(the_iframe != null) {
		the_iframe.height = the_iframe.contentWindow.document.body.scrollHeight + 20;	//change the height of the iframe
		the_iframe.width = the_iframe.contentWindow.document.body.scrollWidth + 20;	//change the width of the iframe
	}
}
