");
var percentageDom=$("0 %
");
dom.find("div").hide();
dom.append(loadDom);
dom.append(percentageDom);
$("#loadNum").css({"text-align":"center","color":"#999","font-weight":"bold"});
var thisDivImg=dom.find("img");
var thisLiNum=thisDivImg.length;
var divImgNum=0;
var imgPercentage=0;
thisDivImg.load(function(){
divImgNum++;
imgPercentage=((divImgNum/thisLiNum)*100).toFixed(2);
$("#loadNum").html(imgPercentage+" %");
$("#loadPic").css({"width":imgPercentage+"%","height":"39px"});
if(divImgNum==thisLiNum){
var thisDivHeight=$("#showBox").css("height");
dom.find("div").css({"position":"absolute"});
$("#loadBox").remove();
$("#loadNum").remove();
dom.find("div").show();
var lastTopPx=0;
for(var q=0;qmaxTop && isNaN(lsTop[t])==false){maxTop=lsTop[t]}
}
}
lastTopPx=maxTop;
}
}
dom.css("height",(lastTopPx+60)+"px");
dom.find("div img").hover(function(){
$(this).css("opacity","0.9");
},function(){
$(this).css("opacity","1");
});
dom.find("div").css("background","#f0f0f0");
dom.find("p a").css("text-decoration","none");
}
});
//dom
}
//search当前页功能
var DOM = (document.getElementById) ? 1 : 0;
var NS4 = (document.layers) ? 1 : 0;
var IE4 = 0;
if (document.all) {
IE4 = 1;
DOM = 0;
}
var win = window;
var n = 0;
function findIt() {
if (document.getElementById("searchstr").value != "") findInPage(document.getElementById("searchstr").value);
}
function findInPage(str) {
var txt, i, found;
if (str == "") return false;
if (DOM) {
win.find(str, false, true);
return true;
}
if (NS4) {
if (!win.find(str)) while (win.find(str, false, true)) n++;
else n++;
if (n == 0) alert("Could not find the specified content.");
}
if (IE4) {
txt = win.document.body.createTextRange();
for (i = 0; i <= n && (found = txt.findText(str)) != false; i++) {
txt.moveStart("character", 1);
txt.moveEnd("textedit");
}
if (found) {
txt.moveStart("character", -1);
txt.findText(str);
txt.select();
txt.scrollIntoView();
n++;
} else {
if (n > 0) {
n = 0;
findInPage(str);
} else alert("Could not find the specified content.");
}
}
return false;
}
$(function(){
$(".closeBar").click(function(){
$(".dealsRight").hide();
});
});
function RMdiscoverIcon(){
$("span.discoverIcon").remove()
}
$(document).ready(function(e) {
$('.autowidht').each(function(index, element) {
var o=this;
$(o).find('img').each(function(index, element) {
var imgw=parseInt($(this).attr('width'));
if(!isNaN(imgw));{
$(o).css({'width':imgw,'overflow':'hidden'});
$(this).css({'width':imgw,'height':'auto'});
}
});
});
});
/*online message
$(function(){
window.$zopim||(function(d,s){var z=$zopim=function(c)
{
z._.push(c)},$=z.s=d.createElement(s),e=d.getElementsByTagName(s)[0];z.set=function(o){z.set._.push(o)
};
z._=[];z.set._=[];$.async=!0;$.setAttribute('charset','utf-8');
$.src='//v2.zopim.com/?1mJrKiyjk1q8fy8CDgsE9DCmn8hifHN8';z.t=+new Date;
$.type='text/javascript';e.parentNode.insertBefore($,e)})(document,'script');
})
*/