$(function(){
	$("#lavaLampBasicImage li").mouseover(function(){
		$("#lavaLampBasicImage a.on").removeClass("on").addClass("zjs");
	});
	$("#lavaLampBasicImage").parent("div").mouseout(function(){
		back();
		return false;
	}); 

	$("div.tabs ul").addClass("m_l10").find("li a").after($("<span>").addClass("tabpicl")).after($("<span>").addClass("tabpicr"));	
	
	$("#otherp").hover(over2,out2);
	$("#otherpcon").hover(over2,out2);
	
	$(".titbgg").append($("<span>").addClass("titbggl"));
	$(".btn").append($("<span>"));
	$("div[class^='service']").MyDivClear();
	$(".bkcon").MyDivClear();
});



$.fn.extend({
	MyDivClear:function(){
		this.append($("<div>").addClass("clear"));
	}			
});




function back(){
	$("#lavaLampBasicImage a.zjs").addClass("on").removeClass("zjs");	
}
/*
function over(){
	$(".tipscon").show();
}

function out(){
	$(".tipscon").hide();
}
*/
function over2(){
	$("#otherpcon").show();
}

function out2(){
	$("#otherpcon").hide();
}
function over3(){
	$(".servicetips").show();
}

function out3(){
	$(".servicetips").hide();
}


function openwindow(url,name,iWidth,iHeight)
{
var url;                                 //ת����ҳ�ĵ�ַ;
var name;                           //��ҳ��ƣ���Ϊ��;
var iWidth;                          //����ڵĿ��;
var iHeight;                        //����ڵĸ߶�;
var iTop = (window.screen.availHeight-30-iHeight)/2;       //��ô��ڵĴ�ֱλ��;
var iLeft = (window.screen.availWidth-10-iWidth)/2;           //��ô��ڵ�ˮƽλ��;
window.open(url,name,'height='+iHeight+',,innerHeight='+iHeight+',width='+iWidth+',innerWidth='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=no,menubar=no,scrollbars=none,resizeable=no,location=no,status=no');
}

function correctPNG()  
{ 
	for(var i=0; i<document.images.length; i++) 
	{ 
	  var img = document.images[i] 
	  var imgName = img.src.toUpperCase() 
	  if (imgName.substring(imgName.length-3, imgName.length) == "PNG") 
	  { 
	   var imgID = (img.id) ? "id='" + img.id + "' " : "" 
	   var imgClass = (img.className) ? "class='" + img.className + "' " : "" 

	   var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' " 
	   var imgStyle = "display:inline-block;" + img.style.cssText  
	   if (img.align == "left") imgStyle = "float:left;" + imgStyle 
	   if (img.align == "right") imgStyle = "float:right;" + imgStyle 
	   if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle   
	   var strNewHTML = "<span " + imgID + imgClass + imgTitle 
	   + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";" 
	  + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" 
	   + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"  
	   img.outerHTML = strNewHTML 
	   i = i-1 
	  } 
	} 
} 