function google_ad_request_done(b){var c="";var a;if(b.length==0){return}if(b[0].type=="text"){if(b.length==1){c+='<br><a href="'+google_info.feedback_url+'" TARGET="_blank">Ads by Google</a><a href="'+b[0].url+'" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to '+b[0].visible_url+"';return true\">"+b[0].line1+'</a><br><span style="font-size:14px;color:#db0a00">'+b[0].line2+"&nbsp;"+b[0].line3+'<br></span> <span><a style="color:#333" href="'+b[0].url+'" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to '+b[0].visible_url+"';return true\">"+b[0].visible_url+"</span></a>"}else{if(b.length>1){c+='<a href="'+google_info.feedback_url+'" Target="_blank" style="color:#616161;padding:6px 0 0 1px">Ads by Google</a>';if(mytype=="TOP"){c+='<div style="';if(b.length<=3){c+='line-height:16px;">'}else{c+='line-height:16px;">'}for(a=0;a<b.length;++a){if(a>0){c+='<div style="padding-top:6px"></div>'}c+='<a style="';if(b.length<=3){c+="font-size:14px;"}else{c+="font-size:14px;"}c+='color:#db0a00;font-weight:700;" Target="_blank" href="'+b[a].url+'" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to '+b[a].visible_url+"';return true\">"+b[a].line1+'</a><br><span style="font-size:11px">'+b[a].line2+" "+b[a].line3+" : ";if(b.length<=3){c+='</span> <span><a style="font-size:10px;'}else{c+='</span> <span><a style="font-size:10px;'}c+='color:#008a00;font-size:11px;" Target="_blank" href="'+b[a].url+'" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to '+b[a].visible_url+"';return true\">"+b[a].visible_url+"</span></a><br>"}c+="</div>";if(b[0].bidtype=="CPC"){google_adnum=google_adnum+b.length}}else{c+='<div style="';if(b.length<=3){c+='line-height:18px;">'}else{c+='line-height:18px;">'}for(a=0;a<b.length;++a){if(a>0){c+='<a style="'}b[a].url+'" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to '+b[a].visible_url+"';return true\">"+b[a].line1+"</a><br>"+b[a].line2+" "+b[a].line3+" : ";c+='<a style="color:#158f01;" href="'+b[a].url+'" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to '+b[a].visible_url+"';return true\">"+b[a].visible_url+"</a><br></div>"}if(b[0].bidtype=="CPC"){google_adnum=google_adnum+b.length}}}}}document.write(c);return}function callgoogle(){google_ad_client="pub-8525015516580200";google_ad_output="js";google_max_num_ads=ads_count;google_ad_type="text";google_feedback="on";google_skip=google_adnum}
function searchCheck()
{
var str = '';
if (document.frm.ss.value=='' || document.frm.ss.value=='Enter Search Keyword...')	{
alert("Please enter some keyword to search.");
document.frm.ss.focus();
document.frm.ss.value='';
return false;
}

if (document.frm.ss.value.length < 3) {
alert("Please Enter atleast 3 character");
document.frm.ss.focus();
return false;
}

if (document.frm.ss.value) {
var str1;
str1 = document.frm.ss.value.replace(/^\s+/g, '').replace(/\s+$/g, '');
str1 = str1.replace(/[^a-zA-Z0-9+ ]/g, ' ');
str1 = str1.replace(/\+/g, ' ');
str1 = str1.replace(/\s+/g, '+');
str += 'ss='+str1;
window.location = "http://beads-manufacturers/search.html?"+str;
return false;
}}

function searchClear()
{
if (document.frm.ss.value=='Enter Search Keyword...')	{
document.frm.ss.value='';
}}

function settext()
{
if (document.frm.ss.value=='')  {
document.frm.ss.value='Enter Search Keyword...';
}}
function settextvalue()
{
document.frm.ss.value='Enter Search Keyword...';
}
function getDwsCookie(Name)
{
var search = Name + "="
if (document.cookie.length > 0)
{
offset = document.cookie.indexOf(search)
if (offset != -1)
{
offset += search.length
end = document.cookie.indexOf(";", offset)
if (end == -1) end = document.cookie.length
return unescape(document.cookie.substring(offset, end))
}}
return "";
}
function setDwsCookie(name, value)
{
expires = new Date();
expires.setTime (expires.getTime() + 24 * 60 * 60 * 150 * 1000);

if (value.length > 0)
document.cookie = name + "=" + escape(value)+ ";"+"expires=" + expires.toGMTString() + ";";
}
function showTradeOfferLink()
{
if( (cookie = getDwsCookie("ETO_OFFERS")) > "")
{
if(cookie != "")
{
document.write('&nbsp; | &nbsp;<a href="tradeoffers.html">Trade Offers ('+cookie+')</a>');
}}
else
{
var surl = "http://www.media4trade.com/tradeofferserver?id=709101&setcookie=1&disp=link";
document.write('<scr' + 'ipt language="javascript"' + ' src="' + surl + '"></scr' + 'ipt>');
}}
function showTradeOfferLink1()
{
if( (cookie = getDwsCookie("ETO_OFFERS")) > "")
{
if(cookie != "")
{
document.write('<LI><B><a href="tradeoffers.html">Trade Offers ('+cookie+')</a></B></LI>');
}}
else
{
var surl = "http://www.media4trade.com/tradeofferserver?id=709101&setcookie=1&disp=link";
document.write('<scr' + 'ipt language="javascript"' + ' src="' + surl + '"></scr' + 'ipt>');
}}
function showTradeOfferCount()
{
if( (cookie = getDwsCookie("ETO_OFFERS")) > "")
{
if(cookie != "")
{
document.write(' ('+cookie+')');
}}}
function showTradeOfferLink2()
{
document.write(' | <a href="tradeoffers.html">Trade Offers</a>');
}
var persistmenu="yes"
var persisttype="sitewide"
if (document.getElementById){
document.write('<style type="text/css">\n')
document.write('.hn{display: none;}\n')
document.write('.sub{display: none;}\n')
document.write('.sub1{display: none;}\n')
document.write('.tbq{display: none;}\n')
document.write('</style>\n')
}
function SwitchMenu2(obj){
if(document.getElementById){
var el = document.getElementById(obj);
var ar = document.getElementById("masterdiv2").getElementsByTagName("div");
if(el.style.display != "inline"){
for (var i=0; i<ar.length; i++){
if (ar[i].className=="hn")
ar[i].style.display = "none";
}
el.style.display = "inline";
}}}
var news=1;
var cnt=0
function SwitchMenu(obj){
if(document.getElementById){
var el = document.getElementById(obj);
if (obj=='sub3')news=5;
else news=1;
var ar = document.getElementById("masterdiv").getElementsByTagName("div"); //DynamicDrive.com change
if(el.style.display != "inline"){
for (var i=0; i<ar.length; i++){
if (ar[i].className=="tbq")
ar[i].style.display = "none";
}
el.style.display = "inline";
}}}
function SwitchMenu3(obj){
if(document.getElementById){
var el = document.getElementById(obj);
var ar = document.getElementById("masterdiv3").getElementsByTagName("div");
if(el.style.display != "block"){
for (var i=0; i<ar.length; i++){
if (ar[i].className=="sub")
ar[i].style.display = "none";
}
el.style.display = "block";}
else{
el.style.display = "none";
}}}
function SwitchMenu4(obj){
if(document.getElementById){
var el = document.getElementById(obj);
var ar = document.getElementById("masterdiv4").getElementsByTagName("div");
if(el.style.display != "block"){
for (var i=0; i<ar.length; i++){
if (ar[i].className=="sub1")
ar[i].style.display = "none";
}
el.style.display = "block";}
else{
el.style.display = "none";
}}}

function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}}
function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
}}}

function getBrowserWidth(){
if (window.innerWidth){
return window.innerWidth;}
else if (document.documentElement && document.documentElement.clientWidth != 0){
return document.documentElement.clientWidth;	}
else if (document.body){return document.body.clientWidth;}
return 0;
}
function dynamicLayout(){
var browserWidth = getBrowserWidth();
if (browserWidth > 1280){
changeLayout("above1280");
}}
function changeLayout(description){
var i, a;
for(i=0; (a = document.getElementsByTagName("link")[i]); i++){
if(a.getAttribute("title") != "default"){
a.disabled = true;
}}
for(i=0; (a = document.getElementsByTagName("link")[i]); i++){
if(a.getAttribute("title") == description){
a.disabled = false;
}}}
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', dynamicLayout);
addEvent(window, 'resize', dynamicLayout);
var win = null;
function NewWinIM(mypage,myname,compname)
{
var embedcode='';
var arr=mypage.split('/');
if (mypage.search(/heavy\#\#/) != -1){
mypage = mypage.replace('heavy##','');
var hw='height=350,width=370';
var embedcode = '<embed src="http://www.videowebtown.com/community/flvplayer/flvplayer.swf?file=http://www.videowebtown.com/indiamartvideo/video/'+mypage+'.flv&autoStart=false"   quality="high" bgcolor="#ffffff" width="352" height="288" name="movie" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>';
}
else{
var hw='height=350,width=370';
var embedcode = '<embed src="http://www.4shared.com/flash/flvplayer.swf"    style="width: 400px; height: 326px;" bgcolor="#ffffff" allowscriptaccess="always" allowfullscreen="true" flashvars="file=http://dc152.4shared.com/img/'+arr[0]+'/'+arr[1]+'/dlink__2Fdownload_2F'+arr[0]+'_2F'+arr[1]+'_3Fdsid_3DJGITKOINJZHYGJIAJPJYHXISIQKIJFIVHXHZHYJIIZJBJPIWKSIRKQITIGJTIAGHGCIAHYJHINIQKVKU/preview.flv&amp;image=http://dc152.4shared.com/img/'+mypage+'&amp;autostart=true">';
}
LeftPosition = (screen.width) ? (screen.width-400)/2 : 0;
TopPosition = (screen.height) ? (screen.height-326)/2 : 0;

var settings = 'width=460';
settings += ', height=400';
settings += ', top='+TopPosition+', left='+LeftPosition;
settings += ', directories=no';
settings += ', location=no';
settings += ', menubar=no';
settings += ', resizable=no';
settings += ', scrollbars=no';
settings += ', status=no';
settings += ', toolbar=no';
win = window.open("",myname,settings);
win.document.write('<HTML><HEAD><TITLE>'+compname+' Video</TITLE></HEAD><BODY BGCOLOR="#ffffff"><DIV style="color:#000000;font-size:11px;font-family:arial" align="center">Video by '+compname+'</DIV><DIV ALIGN="CENTER"><table BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="440"> <tr> <TD><img src="ts/top-left-1.gif"   WIDTH="7" HEIGHT="9"></TD> <TD BACKGROUND="ts/bottom-lcenter.gif"></TD> <TD><img src="ts/top-right-1.gif"   WIDTH="7" HEIGHT="9"></TD> </tr> <tr> <TD BACKGROUND="ts/l-bg1.gif"><img src="ts/zero.gif"   WIDTH="7" HEIGHT="1"></TD> <TD VALIGN="TOP"> <table CELLPADDING="0" CELLSPACING="0" BORDER="0"> <tr> <TD WIDTH="460" HEIGHT="350"> <DIV CLASS="sec-div" STYLE="background-image:url(ts/indicator-new.gif); background-repeat:no-repeat; background-position: center center;padding:10px;" > '+embedcode+'</DIV></TD> </tr> </table></TD> <TD BACKGROUND="ts/l-bg1.gif"><img src="ts/zero.gif"   WIDTH="7" HEIGHT="1"></TD> </tr> <tr> <TD><img src="ts/bottom-left-1.gif"   WIDTH="7" HEIGHT="9"></TD> <TD BACKGROUND="ts/bottom-lcenter.gif"></TD> <TD><img src="ts/bottom-right-1.gif"   WIDTH="7" HEIGHT="9"></TD> </tr> </table> </DIV></BODY></HTML>');
}

function openchild(sPicURL,h,w)
{
window.open(sPicURL, 'Lookup', 'toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width='+w+',height='+h+'');
}
var plnew = "pl2";
function show(obj, plus)
{
if(document.getElementById)
{
var el = document.getElementById(obj);
var ar = document.getElementById("masterdiv1").getElementsByTagName("div");
for (var i=0; i<ar.length; i++)
{
if(ar[i].className == "on")
{
ar[i].className = "off";
}}
document.getElementById(obj).className = "on";
}
if(document.getElementById(plnew))
{
document.getElementById(plnew).className = "prhd";
}
if(document.getElementById(plus).className == "prhd")
{
document.getElementById(plus).className = "prhdm";
}
plnew = plus;
}
function show1(obj, plus)
{
document.getElementById(obj).className = "on";
document.getElementById(plus).className = "off";
}
function show2(obj, plus)
{
document.getElementById(obj).className = "prdnm1";
document.getElementById(plus).className = "off";
}