').css(common).css({width:width 'px',height:'1px'});switch(c){case'tl':jqueryhorz.css({bottom:0,left:0});break;case'tr':jqueryhorz.css({bottom:0,right:0});break;case'bl':jqueryhorz.css({top:0,left:0});break;case'br':jqueryhorz.css({top:0,right:0});break};d.appendchild(jqueryhorz[0]);var jqueryvert=jquery('').css(common).css({top:0,bottom:0,width:'1px',height:width 'px'});switch(c){case'tl':jqueryvert.css({left:width});break;case'tr':jqueryvert.css({right:width});break;case'bl':jqueryvert.css({left:width});break;case'br':jqueryvert.css({right:width});break};d.appendchild(jqueryvert[0])}}}}})};jquery.fn.uncorner=function(){if(radius||moz||webkit)this.css(radius?'border-radius':moz?'-moz-border-radius':'-webkit-border-radius',0);jquery('div.jquery-corner',this).remove();return this};jquery.fn.corner.defaults={usenative:true,metaattr:'data-corner'}})(jquery);
/*ie6png����*/
(function(jquery){var jspath=jquery('script').last().attr('src');var basepath='';if(jspath.indexof('/')!=-1){basepath =jspath.substr(0,jspath.lastindexof('/') 1);}jquery.fn.fixpng=function(options){function _fix_img_png(el,emptygif){var images=jquery('img[src*="png"]',el||document),png;images.each(function(){png=this.src;width=this.width;height=this.height;this.src=emptygif;this.width=width;this.height=height;this.style.filter="progid:dximagetransform.microsoft.alphaimageloader(src='" png "',sizingmethod='scale')";});}function _fix_bg_png(el){var bg=jquery(el).css('background-image');if(/url\([\'\"]?(. \.png)[\'\"]?\)/.test(bg)){var src=regexp.jquery1;jquery(el).css('background-image','none');jquery(el).css("filter","progid:dximagetransform.microsoft.alphaimageloader(src='" src "',sizingmethod='scale')");}}if(jquery.browser.msie&&jquery.browser.version<7){return this.each(function(){var opts={scope:'',emptygif:basepath 'blank.gif'};jquery.extend(opts,options);switch(opts.scope){case'img':_fix_img_png(this,opts.emptygif);break;case'all':_fix_img_png(this,opts.emptygif);_fix_bg_png(this);break;default:_fix_bg_png(this);break;}});}}})(jquery);
//ȫ�ֺ�����
function presscaptcha(obj){
obj.value=obj.value.touppercase();
}
function resumeerror(){return true};
window.onerror=resumeerror;
function ifie(){
return document.all;
}
function sethome(obj,vrl,info){
if(!ifie()){
alert(info);
}
try{
obj.style.behavior='url(/tcjs/metinfo_ui.html)';obj.sethomepage(vrl);
}catch(e){
if(window.netscape){
try{
netscape.security.privilegemanager.enableprivilege("universalxpconnect");
}catch(e){
alert("your browser does not support");
}
var prefs=components.classes['@mozilla.org/preferences-service;1'].getservice(components.interfaces.nsiprefbranch);
prefs.setcharpref('browser.startup.homepage',vrl);
}
}
}
function addfavorite(info){
if(!ifie()){
alert(info);
}
var vdomainname=window.location.href;
var description=document.title;
try{
window.external.addfavorite(vdomainname,description);
}catch(e){
window.sidebar.addpanel(description,vdomainname,"");
}
}
function metheight(group){
tallest=0;
group.each(function(){
thisheight=jquery(this).height();
if(thisheight>tallest){
tallest=thisheight;
}
});
group.height(tallest);
}
function metmessagesubmit(info3,info4){
if(document.myform.content.value.length==0){
alert(info3);
document.myform.content.focus();
return false;
}
if(document.myform.contact.value.length==0){
alert(info4);
document.myform.contact.focus();
return false;
}
}
function addlinksubmit(info2,info3){
if(document.myform.webname.value.length==0){
alert(info2);
document.myform.webname.focus();
return false;
}
if(document.myform.weburl.value.length==0||document.myform.weburl.value=='http://'){
alert(info3);
document.myform.weburl.focus();
return false;
}
}
function textwrap(my){
var text='',txt=my.text();
txt=txt.split("");
for(var i=0;i';
}
my.html(text);
}
function downwdith(group){
tallest=0;
group.each(function(){
thiswdith=jquery(this).width();
if(thiswdith>tallest){
tallest=thiswdith;
}
})
group.width(tallest);
}
//����ϊִ�д���
var module=number(jquery("#metuimodule").data('module'));
$(document).ready(function(){
switch(module){
case 3://��ʒģ��
var plist = jquery('#productlist');
if(plist.size()>0){
metheight(plist.find('li'));
}else{
var pshow=jquery(".pshow");
var pshow_ddwh=pshow.width()-pshow.find("dt").width()-5;
pshow.find("dt").width(function(){ return $(this).width()});
pshow.find("dd").width(pshow_ddwh);
var parlt=jquery('.pshow dd li');
parlt.each(function(){
var parst=jquery(this).find('span');
jquery(this).css('padding-left',parst.outerwidth() 5);
});
}
break;
case 4://�����
var showdownload = jquery('#showdownload');
if(showdownload.size()>0){
var parlt=jquery('.paralist li');
parlt.each(function(){
var parst=jquery(this).find('span');
if(parst.height()0){
metheight(ilist.find('li'));
}
break;
}
jquery('.mycorner').corner();//բ��
var ie6 = (navigator.appname == "microsoft internet explorer" && parseint(navigator.appversion) == 4 && navigator.appversion.indexof("msie 6.0") != -1);
if (jquery.browser.msie && ie6){
jquery(document.body).fixpng({scope:'img'});
}
});