/*Design*/var frm=''; var frm1=''; var frm2=''; var frm3=''; var a=''; var b=''; var c=''; var d='';
function opdisp(obj) { obj.style.display="block";} function cldisp(obj) { obj.style.display="none";}
function obr(id) {return (document.getElementById(id));}
function tob() { frm = obr('form'); frm1 = obr('form1'); frm2 = obr('form2'); frm3 = obr('form3');
a = obr('a'); b = obr('b'); c = obr('c');  d = obr('d');}
function tab1_new(){ tob(); opdisp(frm); cldisp(frm1); cldisp(frm2);if(frm3){cldisp(frm3);}
a.className="fs jz1 jz3 a1 z6 jz4 kk jz5"; b.className="jz3 fs kg a1 z6 jz4 kg3 kk"; c.className="fs kgg jz3 a1 z6 jz4 kk gg3";  if(d){d.className = "fs ug jz3 a1 z6 jz4 ug2";}}
function tab2_new(){ tob(); cldisp(frm); opdisp(frm1); cldisp(frm2);if(frm3){cldisp(frm3);}
a.className="fs jz1 jz3 a1 z6 jz4 kk jz6"; b.className="jz3 fs kg a1 z6 jz4 kg2 kk"; c.className="fs kgg jz3 a1 z6 jz4 kk gg3"; if(d){d.className = "fs ug jz3 a1 z6 jz4 ug2";}}
function tab3(){ tob(); cldisp(frm); cldisp(frm1); opdisp(frm2);if(frm3){cldisp(frm3);}
a.className="fs jz1 jz3 a1 z6 jz4 kk jz6"; b.className="jz3 fs kg a1 z6 jz4 kg3 kk"; c.className="fs kgg jz3 a1 z6 jz4 kk gg2"; if(d){d.className = "fs ug jz3 a1 z6 jz4 ug2";}}
/*Img*/var myWidth = 0, myHeight = 0; var path = ''; var imgid = "0"; var nex=''; var pre=''; var imd=''; var msg2='';
function setobj() {nex = obr('next'); pre = obr('pre'); imd = obr('imagediv'); ms2 = obr('message2'); dsr = obr('divscroll');}
function bhw(){ setobj(); if(typeof(window.innerWidth) == 'number') { myWidth = window.innerWidth; myHeight = window.innerHeight;}
else if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight;}
else if(document.body && (document.body.clientWidth || document.body.clientHeight)) {
myWidth = document.body.clientWidth; myHeight = document.body.clientHeight; }
var h = window.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop;
var iewidth = myWidth-516; var iewidth1 = iewidth/2; var aboveheight = myHeight-584; var aboveheight1 = aboveheight/2+h;
dsr.style.height="500px"; dsr.style.width="504px"; obr('blwtbl').style.height="478px";
ms2.style.top=aboveheight1+'px'; ms2.style.left=iewidth1+'px'; dsr.name="miniwin"; }
function blowup_show(){ obr('message2').className="don"; bhw();} function blowup_off(){ obr('message2').className="doff"; }
function imageset(id){setobj(); if(id == dataref.length){ cldisp(nex); opdisp(pre);}
else if(id == 1){cldisp(pre); opdisp(nex);} else{ opdisp(pre); opdisp(nex);} set_big_img_path(id); imgid = id;
var pic = obr(imgid); productName =pic.alt; productName = unescape(productName);
if(productName.length > 40){ var c = productName.substring(0,40); c = c + "..."; productName = c; }
imd.innerHTML='<img class="tb mb" src="'+path+'" onload="loadimg()" alt="'+productName+'">'; obr('prname').innerHTML=productName;
if(dataref.length==1){ obr('table_nxt').style.display='none'; } }
function nextimg(){setobj(); imgid++; if(imgid < dataref.length){ opdisp(nex);opdisp(pre);} else{ cldisp(nex); opdisp(pre);} set_big_img_path(imgid); 
if (obr(imgid)){var pic = obr(1); productName=pic.alt; productName = unescape(productName); 
imd.innerHTML='<img class="tb mb" src="'+path+'" onload="loadimg()"  alt="'+productName+'">';} }
function previousimg(){ setobj(); imgid--; if (imgid <= 1){ cldisp(pre); opdisp(nex);} else{ opdisp(nex); opdisp(pre); }
set_big_img_path(imgid); 
if (obr(imgid)){var pic = obr(1); productName =pic.alt; productName = unescape(productName); 
imd.innerHTML='<img class="tb mb" src="'+path+'" onload="loadimg()" alt="'+productName+'">'; } }
function set_big_img_path(imgid){ obr('loadimg').className="don"; obr('imagediv').className="doff";
if((dataref.length-1) >= 0){ path = eval("dataref["+(imgid-1)+"].img_path"); } }
function loadimg(){ obr('loadimg').className="doff"; obr('imagediv').className="don"; }
document.write('<DIV ID="message2" STYLE="position: absolute; z-index: 2000;" ALIGN="center" class="doff"><TABLE ID="tableheight" ALIGN="center" BORDER="0" CELLPADDING="0" CELLSPACING="0"><TR><TD ALIGN="center"><TABLE CLASS="ibg bc2" BORDER="0" CELLPADDING="0" CELLSPACING="0"><TR><TD ALIGN="center"><TABLE class="b1 bbg" ALIGN="center" BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%" HEIGHT="35"><TR><TD><DIV ID="prname" CLASS="lf d1 f5 bo pt1 pb1 w4"></DIV></TD><TD ALIGN="right" STYLE="padding-right:0px;" WIDTH="100"><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0"><TR><TD><img src="http://eto.imimg.com/gifs/z.gif" class="b1 cr" onclick="blowup_off()" style="cursor: pointer;" height="21" width="21" hspace="4"></TD></TR></TABLE></TD></TR></TABLE><DIV STYLE="height: 500px; width: 504px;" CLASS="ht2 vv wd4 ov mb2" ID="divscroll" ALIGN="center"><TABLE ID="blwtbl" ALIGN="center" BGCOLOR="#ffffff" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR><TD ALIGN="center"><DIV ID="loadimg" STYLE="font-family: arial; font-size: 15px;" class="doon"><IMG SRC="http://eto.imimg.com/gifs/indicator-new.gif" height="36" width="36"><BR><BR>Loading...</DIV><DIV ID="imagediv" class="doff"></DIV></TD></TR></TABLE></DIV><TABLE CLASS="button2" BORDER="0" id="table_nxt" CELLPADDING="0" CELLSPACING="0" WIDTH="100%"><TR><TD HEIGHT="22"><img src="http://eto.imimg.com/gifs/z.gif" width="90" height="1"><br><a class="doff e1 g1 bo" style="cursor: pointer;" id="pre" onclick="previousimg()"><span class="cb w1 bo"><</span> previous</a></TD><TD WIDTH="100%" align="center"></TD><TD ALIGN="right"><IMG SRC="http://eto.imimg.com/gifs/z.gif" WIDTH="40" HEIGHT="1"><img src="http://eto.imimg.com/gifs/z.gif" width="60" height="1"><a class="don e1 g1 bo" id="next" style="cursor: pointer;" onclick="nextimg()">next <span class="cb w1 bo"> > </span></a></TD></TR></TABLE></TD></TR></TABLE></TD></TR></TABLE></DIV>');
/*Tech*/function focusElm(elmObj){ elmObj.focus();return false;}
function show_alert(id) {opdisp(obr(id));} function show_alert_off(id){cldisp(obr(id));}
function ajaxFunction() { var xmlHttp; try{ xmlHttp=new XMLHttpRequest();}
catch (e){ try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");} catch (e){ try { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
catch (e){ alert("Your browser does not support AJAX!"); return false; } } } return xmlHttp; }
/*resp*/function newreg_sell_form(){ tab2_new(); if(obr('rerr') && obr('rerr').value == ''){ disRespfrm(); } }
function characterLimit(obj){ var MyForm = eval('document.'+obj); var characters = MyForm.mesg.value;
obr('charUpdate').innerHTML = 2000-characters.length; return false;}
function disRespfrm() { var usr = obr('usr').value; var rerr = obr('rerr').value;
var offer = obr('offer').value; var ofr_type = obr('ofr_type').value; var offerSubject=''; var catID='';
if(ofr_type == 'S') {catID = obr('catID').value; offerSubject = obr('offerSubject').value;}
var params ='usr='+usr+'&rerr='+rerr+'&offer='+offer+'&ofr_type='+ofr_type+'&catID='+catID+'&offerSubject='+offerSubject;
var jsloaded=''; if(obr('jsloaded')){ jsloaded = obr('jsloaded'); }
if(jsloaded && jsloaded.value=='') { var xmlHttp=ajaxFunction(); if(xmlHttp) { xmlHttp.onreadystatechange=function(){
if(xmlHttp.readyState==4){ var temp =xmlHttp.responseText; obr('responsefrm').innerHTML=temp;
if(ofr_type == 'S' || usr == '') {
if(ofr_type == 'S' && usr != '') { obr('rerr').value=1;}
else { var autocomp_script = obr('autocomp_script'); autocomp_script.src = 'http://eto.imimg.com/gl-include/autocomplete_more.js'; }
var country_script = obr('country_script'); country_script.src = 'http://eto.imimg.com/gl-include/country-1.1.js'; }
obr('jsloaded').value=1; }
else { obr('responsefrm').innerHTML='<div align="center" style="margin-top:0px;margin-bottom:100px;"><BR><BR><img src="http://eto.imimg.com/gifs/indicator.gif"><BR><BR><B>Loading Response Form ...</B></div>';} }
var str="eto-responsefrm.mp?"+params; xmlHttp.open("get",str,true); xmlHttp.send(null); return false; } } }
/*Quick Tools*/ function sendOfferToMyMail(serial,cnt){ var emId = 'send_ofr_email'+cnt;
var offer=obr('ofrid'+serial).value; var spanID = 'sendMail'+cnt+offer; var email='';
if(obr(emId)){ email=obr(emId).value; if(email == ""  || email == 'Enter your email'){ alert("Kindly enter registered e-mail id.");
obr(emId).value=''; return focusElm(obr(emId)); }
else if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(email))){
alert("Invalid Email ID. Kindly enter the correct ID."); return focusElm(obr(emId)); } } var xmlHttp=ajaxFunction();
if(xmlHttp){ xmlHttp.onreadystatechange=function(){
if(xmlHttp.readyState==4){ var temp=xmlHttp.responseText; obr(spanID).innerHTML=temp;}
else { obr(spanID).innerHTML='<img src=http://eto.imimg.com/gifs/indicator.gif>&nbsp;Sending Mail...'; } }
var str='/cgi/eto-send-to-mymail.mp?offer='+offer+'&send_email='+email;
xmlHttp.open("GET",str,true); xmlHttp.send(null); return false; } }
function del_mymail(cnt){ var EmId = 'send_ofr_email'+cnt; if(obr(EmId).value == 'Enter your email'){ obr(EmId).value=''; } }
function mail_box(obj,cnt) { var frmName = 'Send_Mail'+cnt; var emId = 'send_ofr_email'+cnt;
obr(obj).innerHTML ='<form name="'+frmName+'" method="post" onsubmit="return sendOfferToMyMail(1,'+cnt+');" class="bv w1"><input STYLE="width:120px;" id="'+emId+'" size="60" MAXLENGTH="60" value="Enter your email" type="text" onfocus="return del_mymail('+cnt+');"><BR><input value="Send" type="submit" style="margin-left:30px;margin-top:5px;"></form>'; }
function QuickTools() { var offer = obr('offer').value; var usr = obr('usr').value; var catlink = obr('catlink').value;
var rssfile = obr('rsslink').value; var ofr_type = obr('ofr_type').value; var sendMail1Id = 'sendMail1'+offer; var rightDiv='';
var sendMailDisp = '';  var dirFile=''; var prodServPage =''; var dirlink = '';
if(obr('dirFile')) { dirFile = obr('dirFile').value;
if(obr('prodServPage'))  { prodServPage = obr('prodServPage').value; }
if (prodServPage == 'S') { dirlink='- <A HREF="http://dir.indiamart.com/indianservices/'+dirFile+'.html" target="_blank" class="g1">View Related Suppliers</a>'; }
else  { dirlink='- <A HREF="http://dir.indiamart.com/indianexporters/'+dirFile+'.html" target="_blank" class="g1">View Related Suppliers</a>'; } }
var ofrTyp = 'Sell Offer'; var postOfr ='Buy Lead'; var postTyp='B';
if(ofr_type == 'B') { ofrTyp = 'Buy Lead'; postOfr ='Sell Offer'; postTyp='S';}
rightDiv = '<div class="zg z2 lh3 ef3 gv a1"> <div class="u15 n9 w1 w3 z6 f1 b1"><b>Not Interested in this '+ofrTyp+'?</b><br> - <a href="'+catlink+'" class="g1">View other '+ofrTyp+'s of this Category</a><br>- <a href="http://my.indiamart.com/cgi/eto-post-offer-new.mp?type='+postTyp+'" class="g1">Post your '+postOfr+'</a><br>'+dirlink+'</div> </div>';
if(ofr_type != 'B') {
if(usr) { sendMailDisp = '<A HREF="javascript:void(0);" onclick="sendOfferToMyMail(1,1);">Send this to My Mail</A>'; }
else { sendMailDisp = '<A HREF="javascript:void(0);" onclick="return mail_box(\''+sendMail1Id+'\',1);">Send this to My Mail</A>'; }
sendMailDisp = '<p class="e1 l1 b1 u12 p1 bv lh a1"><span id="'+sendMail1Id+'">'+sendMailDisp+'</span></p>';
}
obr('QuickTools').innerHTML='<div class="pr pr1 ef3 a1"> <p class="e1 l1 b1 u13 bv lh a1"><a href="http://my.indiamart.com/cgi/eto-alerts-new.mp?modid=MY" target="_blank">Subscribe for Trade Alert</a></p><p class="lh1 a1 e1 l1 bv b1 u11"><a href="'+rssfile+'" target="_blank">Subscribe for RSS Feed</a></p><p class="aa6"></p><p class="e1 l1 b1 u14 p1 bv lh a1"><a href="http://www.indiamart.com/feedback.html" target="_blank"><nobr>Need Help? Ask our Expert!</nobr></a></p>'+sendMailDisp+'<p class="aa6"></p><br></div>'+rightDiv+'<p class="m2"><br></p>'; }
/*scroll*/window.onscroll = function scrl() { if(obr('scrlld') && obr('scrlld').value=='') { obr('scrlld').value=1; var j=0;
for (var i = 1; i <= obr('otofrs').value; i++) { var image = 'img'+i; if(obr(image)) { j++;var path = eval("ref["+(j-1)+"].img_path"); var titleimg = ''; if(obr('title'+image)){titleimg=obr('title'+image).value;}; obr(image).innerHTML='<DIV CLASS="tb e4 wd2 a1 a2"><img src="'+path+'" alt="'+titleimg+'"></DIV>'; } } } }

/*google ads*/function google_ad_request_done(google_ads) {
	var s = ''; var i;
	if (google_ads.length == 0) { return; }
	if (google_ads[0].type == "html") { s += google_ads[0].snippet; }
	else {
		var div_id = '';
		if(mytype=='TOP')
		{
			div_id = 'gtop';
			s += '<TABLE WIDTH="680" BORDER="0" CELLPADDING="0" CELLSPACING="0" ALIGN="CENTER" HEIGHT="107" ><TR><TD VALIGN="TOP"><TABLE CELLSPACING="0" CELLPADDING="0" ALIGN="center" BORDER="0" WIDTH="100%"><TR><td valign="top" width="100%" align="center" colspan="3"><div class="p1 w3 w12" ALIGN="left"><a class="j1 as td bo" href=\"' + google_info.feedback_url + '\" TARGET="_blank" >Ads by Google</a></div></td></tr><tr>';
			for(i = 0; i < google_ads.length; ++i) {
			s += '<td valign="top" CLASS="g1 p4" width="50%" ><div><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" STYLE="MARGIN-BOTTOM:3PX;"><TR><TD VALIGN="TOP"><b><a STYLE="text-decoration:underline;" class="f1" href="' + google_ads[i].url + '" onmouseout="window.status=\'\'" TARGET="_blank" onmouseover="window.status=\'go to ' + google_ads[i].visible_url + '\';return true"><b>' + google_ads[i].line1 + '</b><br></a></b></TD></TR></TABLE>' + google_ads[i].line2 + '<br>' + google_ads[i].line3 + '<br><a class="j1 gg td" href="' + google_ads[i].url + '" TARGET="_blank" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' + google_ads[i].visible_url + '\';return true">' + google_ads[i].visible_url + '</a></div></td>';}
			s += '</tr></table></TD></TR></TABLE>';
		}
		else if(mytype=='MIDDLE')
		{
			div_id = 'gmiddle';
			s += '<div class="p1 w4 w3"><a class="j1 as td bo" href=\"' + google_info.feedback_url + '\" TARGET="_blank">Ads by Google</a></div><div class="g3 g4 g9 w1 p2 w4">';
			for(i = 0; i < google_ads.length; ++i) {
			s += '<a class="fs bo" target="_blank" href="' + google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' + google_ads[i].visible_url + '\';return true">' + google_ads[i].line1 + '</a><br>' + google_ads[i].line2 + '.&nbsp;' + google_ads[i].line3 + '&nbsp;&nbsp;|&nbsp;&nbsp;<a target="_blank" class="j1 gg td" href="' + google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' + google_ads[i].visible_url + '\';return true">' + google_ads[i].visible_url + '</a><P CLASS="hei w0"></P>';}
			s += '</div>';
		}
		else
		{
			div_id = 'gright';
			s += '<div class="pr1 p1  p2 g1 g3 g4">';
			for(i = 0; i < google_ads.length; ++i) {
			dis_url = google_ads[i].visible_url; maxlength = 35;
			if(dis_url.length > maxlength) { dis_url1 = dis_url.substring(0, maxlength);
			dis_url2 = dis_url.substring(maxlength, dis_url.length); dis_url = dis_url1+'<BR>'+dis_url2; }
			s += '<a target="_blank" class="fs bo" href="' + google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' + google_ads[i].visible_url + '\';return true">' + google_ads[i].line1 + '</a><br>' + google_ads[i].line2 + ' ' + google_ads[i].line3 + '<br><a target="_blank" class="j1 gg td" href="' + google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' + google_ads[i].visible_url + '\';return true" style="line-height:13px;">' + dis_url + '</a><P CLASS="hei w0"></P>';
			}
			s += '</div><div><a class="z1 j1 w3 p2 as td bo" href=\"' + google_info.feedback_url + '\" TARGET="_blank">Ads by Google</a></div>';
		}
	}
	if (google_ads[0].bidtype == "CPC") { google_adnum = google_adnum + google_ads.length;}
	if(document.getElementById(div_id)) { document.getElementById(div_id).innerHTML = s;}
	else {document.write(s); }
	return;
}

function callgoogle() {
google_ad_client='pub-8525015516580200';
google_ad_channel=ch_id; google_ad_output='js';
google_max_num_ads=ads_count; google_ad_type='text';
google_feedback='on'; google_skip=google_adnum; }


var myWidthnew=0, myHeightnew=0;
var divscroll,message2,prname,imagediv,blwtbl,mx,mx1;
function bhw1(val){
if( typeof( window.innerWidth )=='number' ){myWidthnew=window.innerWidth;myHeightnew=window.innerHeight;} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {myWidthnew=document.documentElement.clientWidth;myHeightnew=document.documentElement.clientHeight;} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {myWidthnew=document.body.clientWidth;myHeightnew=document.body.clientHeight;}var h=window.pageYOffset || document.body.scrollTop || document.documentElement.scrollTop;var browserName=navigator.appName; var imagedivheight=myHeightnew-93;var test=myWidthnew*24/100;var divwidth=myWidthnew-test;var widthformizilla=myWidthnew-538;var mozillawidth=widthformizilla-divwidth;var mozillawidth1=mozillawidth/2;var mtop=h+7;var iewidth=myWidthnew-516;var aboveheight=myHeightnew-584;if (val=="cal"){iewidth=myWidthnew-730;aboveheight=myHeightnew-410;}var iewidth1=iewidth/2;var aboveheight1=aboveheight/2+h;divscroll.style.height="500px";divscroll.style.width="504px";blwtbl.style.height="478px";if (val=="cal"){blwtbl.style.height="320px";divscroll.style.width='730px';divscroll.style.height='335px';}message2.style.top=aboveheight1+'px';message2.style.left=iewidth1+'px';divscroll.name="miniwin";if ((myHeightnew <=586) && (val !="cal")){divscroll.style.height=imagedivheight+'px';divscroll.style.width="522px";blwtbl.style.height=imagedivheight+'px';message2.style.top=mtop+'px';}}
function blowup_show2(){divscroll=document.getElementById('divscrollctc');message2=document.getElementById('message2ctc');prname=document.getElementById('prnamectc');imagediv=document.getElementById('imagedivctc');blwtbl=document.getElementById('blwtblctc');mx=document.getElementById('mxctc');mx1=document.getElementById('mx1ctc');divscroll.style.height="";divscroll.style.width="";mx.className="doff";mx1.className="doff"; var nAgt=navigator.userAgent;var patt=/Chrome/;if(patt.test(nAgt)){message2.className="don";bhw1('cal');}else{document.body.style.overflow="hidden";document.getElementsByTagName("html")[0].style.overflow="hidden";message2.className="don";bhw1('cal');}}
function blowup_off1(){prname.innerHTML="";message2.className="doff";document.body.style.overflow="";document.getElementsByTagName("html")[0].style.overflow="";document.getElementById('loadimg1').className="don";imagediv.className="doff";}var path='';var imgid="0";
function callfree1(callpath,comp_nm){
comp_nm=comp_nm.replace(/\\'/g,"'");
comp_nm=escape(comp_nm);
comp_nm='&supCompName='+comp_nm;
callpath=callpath+comp_nm;
imagediv.innerHTML='<iframe src="'+callpath+'" height="320" width="720" onload="loadimg1()" FRAMEBORDER="0" MARGINWIDTH="0" SCROLLING="no"></iframe>';
mx.className="doff";
document.body.style.overflow="";
document.getElementsByTagName("html")[0].style.overflow="";}
function loadimg1(){document.getElementById('loadimg1').className="doff";imagediv.className="don";}document.write('<DIV ID="message2ctc" STYLE="position:absolute;top:0px;left:0px;z-index:2000";ALIGN="center" class="doff"><TABLE ID="tableheightctc" ALIGN="center" BORDER="0" CELLPADDING="0" CELLSPACING="0"><TR><TD ALIGN="center"><TABLE CLASS="ibg bc2" BORDER="0" CELLPADDING="0" CELLSPACING="0"><TR><TD ALIGN="center"><TABLE CLASS="b1 bbg" ALIGN="center" BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%" HEIGHT="35"><TR><TD ID="titleBar" STYLE="cursor:move"><ILAYER WIDTH="100%" ONSELECTSTART="return false"> </ILAYER><LAYER WIDTH="100%" ONMOUSEOVER="isHot=true;if (isN4) ddN4(message2ctc)" ONMOUSEOUT="isHot=false"><DIV ID="prnamectc" class="p"></DIV></LAYER></TD><TD ALIGN="right" STYLE="padding-right:0px;" WIDTH="100"><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0"><TR><TD><IMG SRC="http://eto.imimg.com/gifs/max1.gif" id="mxctc" WIDTH="21" HEIGHT="21" STYLE="cursor:pointer" ONCLICK="max()" HSPACE="2"></TD><TD><IMG SRC="http://eto.imimg.com/gifs/max.gif" id="mx1ctc" WIDTH="21" HEIGHT="21" STYLE="cursor:pointer;" class="doff" ONCLICK="max()" HSPACE="2"></TD><TD><IMG SRC="http://eto.imimg.com/gifs/cl.gif" class="a1" WIDTH="21" HEIGHT="21" hspace="3" ONCLICK="blowup_off1()" STYLE="cursor:pointer"></TD></TR></TABLE></TD></TR></TABLE><DIV CLASS="image_div" ID="divscrollctc" ALIGN="center"><TABLE ID="blwtblctc" ALIGN="center" BGCOLOR="#ffffff" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR><TD ALIGN="center"><DIV ID="loadimg1" STYLE="font-family:arial;font-size:15px;" class="doon"><IMG SRC="http://eto.imimg.com/gifs/indicator-new.gif" height="36" width="36"><BR><BR>Loading...</DIV><DIV ID="imagedivctc" class="doff"></DIV></TD></TR></TABLE></DIV></TD></TR></TABLE></TD></TR></TABLE></DIV>');
isIE=document.all;
isNN=!document.all&&document.getElementById;
isN4=document.layers;
isHot=false;

function ddInit(e){
  topDog=isIE ? "BODY" : "HTML";
  whichDog=isIE ? document.all.message2ctc : document.getElementById("message2ctc");  
  hotDog=isIE ? event.srcElement : e.target;  
  while (hotDog.id!="titleBar"&&hotDog.tagName!=topDog){
    hotDog=isIE ? hotDog.parentElement : hotDog.parentNode;
  }  
  if (hotDog.id=="titleBar"){
    offsetx=isIE ? event.clientX : e.clientX;
    offsety=isIE ? event.clientY : e.clientY;
    nowX=parseInt(whichDog.style.left);
    nowY=parseInt(whichDog.style.top);
    ddEnabled=true;
    document.onmousemove=dd;
  }
}

function dd(e){
  if (!ddEnabled) return;
  whichDog.style.left=isIE ? nowX+event.clientX-offsetx : nowX+e.clientX-offsetx+'px'; 
  whichDog.style.top=isIE ? nowY+event.clientY-offsety : nowY+e.clientY-offsety+'px';
  return false;  
}

function ddN4(whatDog){
  if (!isN4) return;
  N4=eval(whatDog);
  N4.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP);
  N4.onmousedown=function(e){
    N4.captureEvents(Event.MOUSEMOVE);
    N4x=e.x;
    N4y=e.y;
  }
  N4.onmousemove=function(e){
    if (isHot){
      N4.moveBy(e.x-N4x,e.y-N4y);
      return false;
    }
  }
  N4.onmouseup=function(){
    N4.releaseEvents(Event.MOUSEMOVE);
  }
}

function hideMe(){
  if (isIE||isNN) whichDog.style.visibility="hidden";
  else if (isN4) document.message2ctc.visibility="hide";
}

function showMe(){
  if (isIE||isNN) whichDog.style.visibility="visible";
  else if (isN4) document.message2ctc.visibility="show";
}

document.body.onmousedown=ddInit;
document.body.onmouseup=Function("ddEnabled=false");

