﻿function popupdiv(){
	yScroll = document.documentElement.scrollTop;
	xScroll = document.documentElement.scrollLeft;
	templatebg.style.top = 0;
	templatebg.style.left = xScroll;
	templatebg.style.width=document.body.clientWidth;
	templatebg.style.height=document.body.clientHeight;
	divdetails.style.top = yScroll+100;
	return false;
}

function popupcertdiv(div){
	yScroll = document.documentElement.scrollTop;
	xScroll = document.documentElement.scrollLeft;
	templatebg.style.top = 0;
	templatebg.style.left = xScroll;
	templatebg.style.width=document.body.clientWidth;
	templatebg.style.height=document.body.clientHeight + 1000;
	div.style.top = yScroll+100;
	return false;
}

function changeimg(oImg, src, dest, url){
    if (oImg.src.indexOf("blank") > -1) return;
    
    if (src.indexOf("product_images") > -1) {
      url = src;
    }
    document.getElementById(dest).src = url;
}

// 左边菜单排序
jQuery(function() {

    var table = "<table>" + jQuery("#divlmenu01 table:eq(1)").html() + "</table>";

    jQuery("#divlmenu01 span").append(table);

    jQuery("#divlmenu01 table:eq(1)").remove();
    jQuery("#divlmenu01 br:eq(1)").remove();

    jQuery(".PurpleFont table").show();
    if (document.getElementById('divlmenu01')) {
        document.getElementById('divlmenu01').style.display = "";
        document.getElementById('divlmenu06').style.display = "";
    }
});

