


var persistmenu="yes" //"yes" or "no". Make sure each DIV content contains an incrementing ID starting at 1 (id="sub1", id="sub2", etc)
var persisttype="sitewide" //enter "sitewide" for menu to persist across site, "local" for this page only

if (document.getElementById){ //DynamicDrive.com change
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}

function SwitchMenu(obj)
{
	if(document.getElementById)
{
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv").getElementsByTagName("div"); //DynamicDrive.com change
		if(el.style.display != "block")
{ //DynamicDrive.com change
			for (var i=0; i<ar.length; i++)
{
				if (ar[i].className=="submenu") //DynamicDrive.com change
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}
	}
}




var persistmenu="yes" //"yes" or "no". Make sure each DIV content contains an incrementing ID starting at 1 (id="sub1", id="sub2", etc)
var persisttype="sitewide" //enter "sitewide" for menu to persist across site, "local" for this page only

if (document.getElementById){ //DynamicDrive.com change
document.write('<style type="text/css">\n')
document.write('.subtab{display: none;}\n')
document.write('</style>\n')
}

function SwitchTab(obj)
{
	if(document.getElementById)
{
	var ea = document.getElementById(obj);
	var ae = document.getElementById("commondiv").getElementsByTagName("div"); //DynamicDrive.com change
		if(ea.style.display != "block")
{ //DynamicDrive.com change
			for (var i=0; i<ae.length; i++)
{
				if (ae[i].className=="subtab") //DynamicDrive.com change
				ae[i].style.display = "none";
			}
			ea.style.display = "block";
		}
	}
}


//for bottom tab

function trade_tab1()
{
	document.getElementById("fair2").className = "t_fair1";
	document.getElementById("fair1").className = "t_fair";

}									 


function trade_tab2()
{
	document.getElementById("fair2").className = "t_fair";
	document.getElementById("fair1").className = "t_fair1";
}




//Box Script


document.write('<DIV CLASS="absoldiv1" ID="floatdiv" STYLE="top:0px; z-index:1000; display:none; right:0px;"><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" height="168" WIDTH="231"><TR><TD valign="bottom"><DIV CLASS="absoldiv"><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" HEIGHT="30"><TR><TD><DIV CLASS="buyers">Buyers Sourcing Helpdesk <BR></DIV></TD><TD STYLE="padding-left:7px;"><IMG SRC="/gifs/mini.gif" ONCLICK="hide()" STYLE="cursor:pointer;" ID="min" WIDTH="14" HEIGHT="14"><IMG SRC="/gifs/mini1.gif" ONCLICK="show()" STYLE="cursor:pointer;" class="off" ID="min1" WIDTH="14" HEIGHT="14"></TD></TR></TABLE><DIV STYLE="height:138px;" class="on" ID="divinfo"><DIV CLASS="buyerstext">Find qualified suppliers.</DIV><DIV CLASS="buyerstext1">Send us your purchase requirement and receive response only from qualified and genuine suppliers.</DIV><DIV ALIGN="CENTER"><IMG SRC="/gifs/zero.gif" WIDTH="1" HEIGHT="12"><BR><A HREF="/get-sourcing.html"><IMG SRC="/gifs/sendp.gif" BORDER="0" WIDTH="212" HEIGHT="39"></A></DIV></DIV></DIV></TD></TR></TABLE></DIV>')

function get()
{
  var myWidth = 0, myHeight = 0;
  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 ht = window.pageYOffset ||
	document.body.scrollTop ||
    document.documentElement.scrollTop;
var hp = document.body.offsetHeight;


var total = ht+myHeight;
padtotal =total-175;
padtotal1 =total-40;


if (ht <  myHeight)
{
document.getElementById('floatdiv').style.display="none";
}
else
	{
	document.getElementById('floatdiv').style.display="block";
document.getElementById('floatdiv').style.marginTop=padtotal+'px';

	}

}



function addEvent( obj, type, fn ){ 
   if (obj.addEventListener){ 
	  obj.addEventListener( type, fn, false );
   }
   else if (obj.attachEvent){ 
	  obj["e"+type+fn] = fn; 
	  obj[type+fn] = function(){ obj["e"+type+fn]( window.event ); } 
	  obj.attachEvent( "on"+type, obj[type+fn] ); 
   } 

}

addEvent(window, 'load', get);
addEvent(window, 'scroll', get);
addEvent(window, 'resize', get);


function show()
{

document.getElementById('divinfo').className="on";
document.getElementById('min').className="on";
document.getElementById('min1').className="off";

}


function hide()
{

document.getElementById('divinfo').className="off";
document.getElementById('min').className="off";
document.getElementById('min1').className="on";
}
//Box Script




if (document.images)
{
  pic1= new Image(); 
  pic1.src="/gifs/right-pan-bg.gif";
  
  pic2= new Image(); 
  pic2.src="/gifs/sendp.gif"; 
}