var strPath = window.location.hostname; var strLang = "alldatasheet.com"; if(strPath=="alldatasheet.com" || strPath=="www.alldatasheet.com") strLang = "alldatasheet.com"; else if(strPath=="alldatasheet.net" || strPath=="www.alldatasheet.net") strLang = "alldatasheet.net"; else if(strPath=="alldatasheetcn.com" || strPath=="www.alldatasheetcn.com") strLang = "alldatasheetcn.com"; else if(strPath=="alldatasheetde.com" || strPath=="www.alldatasheetde.com") strLang = "alldatasheetde.com"; else if(strPath=="alldatasheet.jp" || strPath=="www.alldatasheet.jp") strLang = "alldatasheet.jp"; else if(strPath=="alldatasheetru.com" || strPath=="www.alldatasheetru.com") strLang = "alldatasheetru.com"; else if(strPath=="alldatasheet.co.kr" || strPath=="www.alldatasheet.co.kr") strLang = "alldatasheet.co.kr"; else if(strPath=="alldatasheet.es" || strPath=="www.alldatasheet.es") strLang = "alldatasheet.es"; else if(strPath=="alldatasheet.fr" || strPath=="www.alldatasheet.fr") strLang = "alldatasheet.fr"; else if(strPath=="alldatasheetit.com" || strPath=="www.alldatasheetit.com") strLang = "alldatasheetit.com"; else if(strPath=="alldatasheetpt.com" || strPath=="www.alldatasheetpt.com") strLang = "alldatasheetpt.com"; else if(strPath=="alldatasheet.pl" || strPath=="www.alldatasheet.pl") strLang = "alldatasheet.pl"; else if(strPath=="alldatasheet.vn" || strPath=="www.alldatasheet.vn") strLang = "alldatasheet.vn"; else if(strPath=="alldatasheet.in" || strPath=="www.alldatasheet.in") strLang = "alldatasheet.in"; else if(strPath=="alldatasheet.co.uk" || strPath=="www.alldatasheet.co.uk") strLang = "alldatasheet.co.uk"; else if(strPath=="alldatasheet.co.nz" || strPath=="www.alldatasheet.co.nz") strLang = "alldatasheet.co.nz"; else if(strPath=="alldatasheet.com.mx" || strPath=="www.alldatasheet.com.mx") strLang = "alldatasheet.com.mx"; var bSplit = false; if(strLang != "alldatasheet.in" && strLang != "alldatasheet.co.uk" && !strLang != "alldatasheet.co.nz" && !strLang != "alldatasheet.com.mx") bSplit = true; var dp_page_su = 1,dp_start =1,dd= document.getElementById('dp'),dp_end,dp_max; function make_code(chk,code,i){var tmp_arr=code.split("/");if(chk==1) return (tmp_arr[1].length*tmp_arr[2].length*tmp_arr[2].length*i)+(tmp_arr[3].length*i-tmp_arr[1].length-i); else return (tmp_arr[1].length*tmp_arr[2].length*tmp_arr[2].length*tmp_arr[2].length*i)+(tmp_arr[3].length*i-tmp_arr[1].length-i-tmp_arr[2].length);} function s_L(){if(dp_start !=1){dp_start -=1;dp_end -=1;tb1dp.rows[0].deleteCell(tb1dp.rows[0].cells.length-2);resize_dp1(tb1dp.rows[0].insertCell(1),dp_start);if(dp_start ==1) tb1dp.rows[0].cells[0].innerHTML="";if(tb1dp.rows[0].cells[tb1dp.rows[0].cells.length-1].innerHTML.indexOf("html_img/pg_next1.gif")>-1 )tb1dp.rows[0].cells[tb1dp.rows[0].cells.length-1].innerHTML="";}} function s_R(){if(dp_end !=dp_max){dp_start +=1;dp_end+=1;tb1dp.rows[0].deleteCell(1);var objcell = tb1dp.rows[0].insertCell(tb1dp.rows[0].cells.length-1);resize_dp1(objcell,dp_start+dp_page_su-1);if(dp_end ==dp_max) tb1dp.rows[0].cells[tb1dp.rows[0].cells.length-1].innerHTML="";if(tb1dp.rows[0].cells[0].innerHTML.indexOf("html_img/pg_back1.gif")>-1 ) tb1dp.rows[0].cells[0].innerHTML="";}} function resize_dp1(objcell,i) { if(strLang != "alldatasheet.in" && strLang != "alldatasheet.co.uk" && strLang != "alldatasheet.co.nz" && strLang != "alldatasheet.com.mx") bSplit = true; else bSplit = false; var code2=code.replace("/datasheet-pdf/pdf","").replace("/datasheet-pdf/marking","").replace(".html",""); var tmp_arr=code2.split("/"); objcell.width="85"; objcell.innerHTML=""; }