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://www.snexports.com/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)
		{ // if there are any cookies
			offset = document.cookie.indexOf(search)
			if (offset != -1)
			{ // if cookie exists
				offset += search.length
				// set index of beginning of value
				end = document.cookie.indexOf(";", offset)
				// set index of end of cookie value
				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(' | <a href="tradeoffers.html">Trade Offer ('+cookie+')</a>');
		}
	}
	else
	{
		var surl = "http://www.media4trade.com/tradeofferserver?id=610426&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 Offer</a>');
}

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('.sub{display: none;}\n')
document.write('.tbq{display: none;}\n')
document.write('.la{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 != "inline"){ //DynamicDrive.com change
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="tbq") //DynamicDrive.com change
				ar[i].style.display = "none";
			}
			el.style.display = "inline";
		}
	}
}

function SwitchMenu1(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv1").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=="sub") //DynamicDrive.com change
				ar[i].style.display = "none";
			}
			el.style.display = "block";}
			else{
			el.style.display = "none";
		}
	}
}

function SwitchMenu2(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv2").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=="la") //DynamicDrive.com change
				ar[i].style.display = "none";
			}
			el.style.display = "block";}
			else{
			el.style.display = "none";
		}
	}
}

function SwitchMenu3(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv3").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=="sub1") //DynamicDrive.com change
				ar[i].style.display = "none";
			}
			el.style.display = "block";}
			else{
			el.style.display = "none";
		}
	}
}

//-----------------------------------mouse over effect--------------------------------------
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];
        }
    }
}



var preloadFlag = false;
function preloadImages() {
    if (document.images) {
index_1 = newImage("http://imghost1.indiamart.com/data2/PI/ND/MY-610426/chainmaille-our-coll-img-250x250.jpg");
index_2 = newImage("http://imghost1.indiamart.com/data2/HY/GF/MY-610426/steel-ar-cat-2-250x250.jpg");
index_3 = newImage("http://imghost1.indiamart.com/data2/FA/FP/MY-610426/our-collection-laeather-250x250.jpg");
index_4 = newImage("http://imghost1.indiamart.com/data2/AI/DY/MY-610426/movie-cat-img-1-250x250.jpg");
index_5 = newImage("http://imghost1.indiamart.com/data2/HF/NS/MY-610426/gambeson-cat-3-250x250.jpg");
index_6 = newImage("http://imghost1.indiamart.com/data2/HJ/SG/MY-610426/shield-cat-4-250x250.jpg");
index_7 = newImage("http://imghost1.indiamart.com/data2/JJ/KS/MY-610426/helmet-cat-5-250x250.jpg");
index_8 = newImage("http://imghost1.indiamart.com/data2/EI/WB/MY-610426/minihelmets-cat-img-250x250.jpg");
index_9 = newImage("http://imghost1.indiamart.com/data2/CI/OD/MY-610426/damascus-cat-7-250x250.jpg");
index_10 = newImage("http://imghost1.indiamart.com/data2/PQ/SN/MY-610426/koftgari-cat-8-250x250.jpg");
index_11 = newImage("http://imghost1.indiamart.com/data2/TX/WY/MY-610426/daggers12-250x250.jpg");
index_12 = newImage("http://imghost1.indiamart.com/data2/IQ/NG/MY-610426/wooden-swords-cat-10-250x250.jpg");
index_13 = newImage("http://imghost1.indiamart.com/data2/EY/EN/MY-610426/4-250x250.jpg");
index_14 = newImage("http://imghost1.indiamart.com/data2/TE/XL/MY-610426/handmade-250x250.jpg");
index_15 = newImage("http://imghost1.indiamart.com/data2/HJ/RR/MY-610426/accesorie23-250x250.jpg");
index_16 = newImage("http://imghost.indiamart.com/data/1/P/MY-610426/Chainmail-Hauberk_250x250.jpg");
index_17 = newImage("http://imghost.indiamart.com/data/T/P/MY-610426/Chainmail-Haubergeon12_250x250.jpg");
index_18 = newImage("http://imghost.indiamart.com/data/G/U/MY-610426/Medieval-Chainmail-Coif12_250x250.jpg");
index_19 = newImage("http://imghost.indiamart.com/data/H/6/MY-610426/Lorica-Hamata_250x250.jpg");
index_20 = newImage("http://imghost.indiamart.com/data/B/V/MY-610426/Leggings_250x250.jpg");
index_21 = newImage("http://imghost.indiamart.com/data/K/X/MY-610426/Aventail_250x250.jpg");
index_22 = newImage("http://imghost.indiamart.com/data/F/J/MY-610426/voiders_250x250.jpg");
index_23 = newImage("http://imghost.indiamart.com/data/0/9/MY-610426/Chainmaille-components_250x250.jpg");
index_24 = newImage("http://imghost.indiamart.com/data/4/8/MY-610426/cuirass_250x250.jpg");
index_25 = newImage("http://imghost.indiamart.com/data/J/C/MY-610426/muscle_250x250.jpg");
index_26 = newImage("http://imghost.indiamart.com/data/J/6/MY-610426/NEWlo_250x250.jpg");
index_27 = newImage("http://imghost.indiamart.com/data/N/A/MY-610426/Pauldrons-B_250x250.jpg");
index_28 = newImage("http://imghost.indiamart.com/data/W/V/MY-610426/Bracers-B_250x250.jpg");
index_29 = newImage("http://imghost.indiamart.com/data/J/4/MY-610426/Bracers-C_250x250.jpg");
index_30 = newImage("http://imghost.indiamart.com/data/Y/C/MY-610426/gorget_250x250.jpg");
index_31 = newImage("http://imghost.indiamart.com/data/B/9/MY-610426/gauntless_250x250.jpg");
index_32 = newImage("http://imghost1.indiamart.com/data2/EJ/UA/MY-610426/gauntlets-b-250x250.jpg");
index_33 = newImage("http://imghost1.indiamart.com/data2/XB/XQ/MY-610426/gauntlets-c-250x250.jpg");
index_34 = newImage("http://imghost.indiamart.com/data/S/7/MY-610426/greaves-B_250x250.jpg");
index_35 = newImage("http://imghost.indiamart.com/data/5/A/MY-610426/greaves-C_250x250.jpg");
index_36 = newImage("http://imghost.indiamart.com/data/B/7/MY-610426/greaves-D_250x250.jpg");
index_37 = newImage("http://imghost.indiamart.com/data/Q/O/MY-610426/plate-armour_250x250.jpg");
index_38 = newImage("http://imghost.indiamart.com/data/V/5/MY-610426/bracer_250x250.jpg");
index_39 = newImage("http://imghost.indiamart.com/data/9/G/MY-610426/LEATHER-SCABBARDS_250x250.jpg");
index_40 = newImage("http://imghost1.indiamart.com/data2/SF/IQ/MY-610426/leather-pouches-250x250.jpg");
index_41 = newImage("http://imghost.indiamart.com/data/6/M/MY-610426/caligare_250x250.jpg");
index_42 = newImage("http://imghost.indiamart.com/data/1/P/MY-610426/aluminium-chaimaille_250x250.jpg");
index_43 = newImage("http://imghost.indiamart.com/data/C/P/MY-610426/Plastic-Chainmaille12_250x250.jpg");
index_44 = newImage("http://imghost1.indiamart.com/data2/FF/KV/MY-610426/gambeson-type1-250x250.jpg");
index_45 = newImage("http://imghost1.indiamart.com/data2/TK/PT/MY-610426/gambeson-type3-250x250.jpg");
index_46 = newImage("http://imghost.indiamart.com/data/N/I/MY-610426/black_250x250.jpg");
index_47 = newImage("http://imghost.indiamart.com/data/B/U/MY-610426/white_250x250.jpg");
index_48 = newImage("http://imghost1.indiamart.com/data2/HH/HK/MY-610426/14-250x250.jpg");
index_49 = newImage("http://imghost.indiamart.com/data/U/C/MY-610426/padder21_250x250.jpg");
index_50 = newImage("http://imghost.indiamart.com/data/H/0/MY-610426/Padded-Arming-Caps_250x250.jpg");
index_51 = newImage("http://imghost1.indiamart.com/data2/BE/BP/MY-610426/paded-legs-250x250.jpg");
index_52 = newImage("http://imghost1.indiamart.com/data2/TP/RL/MY-610426/padded-greaves-250x250.jpg");
index_53 = newImage("http://imghost1.indiamart.com/data2/SR/PS/MY-610426/padded-bracers-250x250.jpg");
index_54 = newImage("http://imghost1.indiamart.com/data2/LD/BI/MY-610426/brigantine-250x250.jpg");
index_55 = newImage("http://imghost1.indiamart.com/data2/WV/XW/MY-610426/coat-of-arms-250x250.jpg");
index_56 = newImage("http://imghost.indiamart.com/data/A/G/MY-610426/padded-mittens_250x250.jpg");
index_57 = newImage("http://imghost.indiamart.com/data/Z/F/MY-610426/Roman-Shield_250x250.jpg");
index_58 = newImage("http://imghost.indiamart.com/data/Z/L/MY-610426/ROMAN-SHIELD_250x250.jpg");
index_59 = newImage("http://imghost.indiamart.com/data/G/E/MY-610426/ROMAN-CENTURION-SCUTUM_250x250.jpg");
index_60 = newImage("http://imghost.indiamart.com/data/A/J/MY-610426/2106_250x250.jpg");
index_61 = newImage("http://imghost.indiamart.com/data/Y/V/MY-610426/Spartan_Shield_250x250.jpg");
index_62 = newImage("http://imghost.indiamart.com/data/X/2/MY-610426/VIKING-DRAGON-SHIELD_250x250.jpg");
index_63 = newImage("http://imghost.indiamart.com/data/1/E/MY-610426/Kite-Shield_250x250.jpg");
index_64 = newImage("http://imghost.indiamart.com/data/5/I/MY-610426/Trojan-Shield-1_250x250.jpg");
index_65 = newImage("http://imghost1.indiamart.com/data2/CT/NX/MY-610426/viking-shield1-250x250.jpg");
index_66 = newImage("http://imghost.indiamart.com/data/C/S/MY-610426/Crusader-Lion-Shield_250x250.jpg");
index_67 = newImage("http://imghost.indiamart.com/data/U/R/MY-610426/CROSS-SHIELD_250x250.jpg");
index_68 = newImage("http://imghost.indiamart.com/data/E/6/MY-610426/St-George-Shield_250x250.jpg");
index_69 = newImage("http://imghost.indiamart.com/data/Q/W/MY-610426/SPARTAN-SHIELD_250x250.jpg");
index_70 = newImage("http://imghost.indiamart.com/data/M/O/MY-610426/Fleur-Shield_250x250.jpg");
index_71 = newImage("http://imghost.indiamart.com/data/A/Q/MY-610426/Viking-Ship-Shield_250x250.jpg");
index_72 = newImage("http://imghost.indiamart.com/data/X/P/MY-610426/Viking-Shield_250x250.jpg");
index_73 = newImage("http://imghost.indiamart.com/data/O/U/MY-610426/Trojan-Shield_250x250.jpg");
index_74 = newImage("http://imghost.indiamart.com/data/I/7/MY-610426/Norman-Nasal-Helmet1_250x250.jpg");
index_75 = newImage("http://imghost.indiamart.com/data/G/1/MY-610426/Roman-Trooper-Helmet_250x250.jpg");
index_76 = newImage("http://imghost.indiamart.com/data/Z/R/MY-610426/Gladiator-Helmet1_250x250.jpg");
index_77 = newImage("http://imghost.indiamart.com/data/8/8/MY-610426/Knights-Crusader-Great-Helm_250x250.jpg");
index_78 = newImage("http://imghost.indiamart.com/data/Y/D/MY-610426/Greek-Corinthian-Helmet1_250x250.jpg");
index_79 = newImage("http://imghost.indiamart.com/data/9/P/MY-610426/Maximilian-Helmet1_250x250.jpg");
index_80 = newImage("http://imghost.indiamart.com/data/C/B/MY-610426/Barbute-Helmet_250x250.jpg");
index_81 = newImage("http://imghost.indiamart.com/data/0/Q/MY-610426/Pigface-Bascinet-Helmet_250x250.jpg");
index_82 = newImage("http://imghost.indiamart.com/data/I/9/MY-610426/Spanish-Comb-Morion-Helmet_250x250.jpg");
index_83 = newImage("http://imghost.indiamart.com/data/M/2/MY-610426/SPANGENHELM-HELMET_250x250.jpg");
index_84 = newImage("http://imghost.indiamart.com/data/B/6/MY-610426/Sugar-Loaf-Helmet_250x250.jpg");
index_85 = newImage("http://imghost.indiamart.com/data/3/Y/MY-610426/kettle-hat-helmet_250x250.jpg");
index_86 = newImage("http://imghost.indiamart.com/data/A/C/MY-610426/Sentinel-Helmet_250x250.jpg");
index_87 = newImage("http://imghost.indiamart.com/data/9/K/MY-610426/ROMAN-CENTURION-HELMET-WITH_250x250.jpg");
index_88 = newImage("http://imghost.indiamart.com/data/T/L/MY-610426/SPECTACLE-HELMET-WITH-CAMAI_250x250.jpg");
index_89 = newImage("http://imghost.indiamart.com/data/0/Q/MY-610426/Pauldron_250x250.jpg");
index_90 = newImage("http://imghost.indiamart.com/data/Y/M/MY-610426/European-Sallet_250x250.jpg");
index_91 = newImage("http://imghost.indiamart.com/data/5/K/MY-610426/French-Bucket-Helmet_250x250.jpg");
index_92 = newImage("http://imghost.indiamart.com/data/7/M/MY-610426/Gjermundbu-Helmet_250x250.jpg");
index_93 = newImage("http://imghost.indiamart.com/data/V/G/MY-610426/Open-Face-Celeta-Helmet_250x250.jpg");
index_94 = newImage("http://imghost1.indiamart.com/data2/RW/PF/MY-610426/german-sallet-250x250.jpg");
index_95 = newImage("http://imghost.indiamart.com/data/R/I/MY-610426/Mini-Helmets_250x250.jpg");
index_96 = newImage("http://imghost1.indiamart.com/data2/EA/TN/MY-610426/mini-new-roman-helmet-with--250x250.jpg");
index_97 = newImage("http://imghost1.indiamart.com/data2/QF/FO/MY-610426/mini-gladiator-250x250.jpg");
index_98 = newImage("http://imghost1.indiamart.com/data2/HS/DW/MY-610426/mini-maximillian-helmet-250x250.jpg");
index_99 = newImage("http://imghost1.indiamart.com/data2/HT/KR/MY-610426/mini-roman-shield1-250x250.jpg");
index_100 = newImage("http://imghost.indiamart.com/data/6/G/MY-610426/full_250x250.jpg");
index_101 = newImage("http://imghost.indiamart.com/data/M/S/MY-610426/Damascus-Spear-Heads-SND-25_250x250.jpg");
index_102 = newImage("http://imghost.indiamart.com/data/J/T/MY-610426/Mini-Damascus-Blades_250x250.jpg");
index_103 = newImage("http://imghost.indiamart.com/data/1/W/MY-610426/damascus31_250x250.jpg");
index_104 = newImage("http://imghost.indiamart.com/data/B/G/MY-610426/Damascus-Paper-Cutter1_250x250.jpg");
index_105 = newImage("http://imghost.indiamart.com/data/H/O/MY-610426/Damascus-Knife11_250x250.jpg");
index_106 = newImage("http://imghost.indiamart.com/data/9/V/MY-610426/Damascus-Knife-SND-2518_250x250.jpg");
index_107 = newImage("http://imghost.indiamart.com/data/0/P/MY-610426/Damascus-Knife-SND-2519_250x250.jpg");
index_108 = newImage("http://imghost.indiamart.com/data/X/Y/MY-610426/SND-2520_250x250.jpg");
index_109 = newImage("http://imghost.indiamart.com/data/3/W/MY-610426/Damascus-Knife-SND-2521_250x250.jpg");
index_110 = newImage("http://imghost.indiamart.com/data/3/M/MY-610426/SND-2522_250x250.jpg");
index_111 = newImage("http://imghost.indiamart.com/data/V/X/MY-610426/Damascus-Knife-SND-2523_250x250.jpg");
index_112 = newImage("http://imghost.indiamart.com/data/2/U/MY-610426/SND-2524_250x250.jpg");
index_113 = newImage("http://imghost.indiamart.com/data/B/C/MY-610426/SND-2525_250x250.jpg");
index_114 = newImage("http://imghost1.indiamart.com/data2/AL/TW/MY-610426/folding-damascus-knife-1-250x250.jpg");
index_115 = newImage("http://imghost.indiamart.com/data/H/N/MY-610426/DAMASCUS-KNIVES-6-INCHES1_250x250.jpg");
index_116 = newImage("http://imghost.indiamart.com/data/A/L/MY-610426/lock_250x250.jpg");
index_117 = newImage("http://imghost.indiamart.com/data/T/8/MY-610426/papercutter_250x250.jpg");
index_118 = newImage("http://imghost.indiamart.com/data/S/9/MY-610426/mughal-bichoa2601_250x250.jpg");
index_119 = newImage("http://imghost.indiamart.com/data/2/3/MY-610426/DAGGERS_250x250.jpg");
index_120 = newImage("http://imghost.indiamart.com/data/7/Y/MY-610426/KHUKRi_250x250.jpg");
index_121 = newImage("http://imghost.indiamart.com/data/E/S/MY-610426/wooden-sword_250x250.jpg");
index_122 = newImage("http://imghost.indiamart.com/data/N/Z/MY-610426/wax_250x250.jpg");
index_123 = newImage("http://imghost.indiamart.com/data/2/C/MY-610426/dishes_250x250.jpg");
index_124 = newImage("http://imghost.indiamart.com/data/G/0/MY-610426/bone_250x250.jpg");
index_125 = newImage("http://imghost.indiamart.com/data/N/R/MY-610426/ASSORTMENTS_250x250.jpg");
index_126 = newImage("http://imghost1.indiamart.com/data2/DL/UQ/MY-610426/medieval-diaries-250x250.jpg");
index_127 = newImage("http://imghost1.indiamart.com/data2/DU/WU/MY-610426/yak-250x250.jpg");
index_128 = newImage("http://imghost.indiamart.com/data/C/4/MY-610426/HOBNAILS_250x250.jpg");
index_129 = newImage("http://imghost.indiamart.com/data/J/K/MY-610426/Stone-Age-Artifacts_250x250.jpg");
index_130 = newImage("http://imghost.indiamart.com/data/2/O/MY-610426/FIRE-HITTER_250x250.jpg");
index_131 = newImage("http://imghost1.indiamart.com/data2/QH/GR/MY-610426/qwqwqw21-250x250.jpg");
index_132 = newImage("ts/lnkb1.gif");
index_133 = newImage("ts/tlb1.gif");
index_134 = newImage("ts/on1.gif");
index_135 = newImage("ts/off1.gif");
index_136 = newImage("ts/yahoo1.png");
index_137 = newImage("ts/msn1.png");
index_138 = newImage("ts/skype1.png");
index_139 = newImage("ts/google1.png");
preloadFlag = true;
}
}


//---------------------------dynamiclayout effect---------------------------------

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;
	}

// dynamicLayout
function dynamicLayout(){
	var browserWidth = getBrowserWidth();

	//Load Wider CSS Rules
	if (browserWidth > 1024){
		changeLayout("above1024");
	}
}

// changeLayout is based on setActiveStyleSheet function

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;

		}
   }
}

//addEvent()
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] );
   }
}

//Run dynamicLayout function when page loads and when it resizes.
addEvent(window, 'load', dynamicLayout);
addEvent(window, 'resize', dynamicLayout);

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+'');
}


function bg(c)
{
	document.getElementById(c).className='tlnk2'
}
function bg1(c)
{
	document.getElementById(c).className='tlnk1'
}
//for open vidio's
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><LINK HREF="ts/dir_video.css" REL="stylesheet" TYPE="text/css" TITLE="default"></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="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="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>');
}

