
var haier = { 

//main nav
	main_nav : function(){
		var lisp = document.getElementById("nav");
		if(lisp) {
			var lis = lisp.getElementsByTagName("li");
			for (var i=0; i<lis.length; i++) {
				lis[i].onmouseover=function() { if(this.className=="l"){
					return false} else 
					this.className ="iehover";
				}
				lis[i].onmouseout=function() { if(this.className=="l"){
					return false} else 
					this.className = ""; 
				}
			}
		}
	},

//play swf
	playswf :function (sFile,sWidth,sHeight){
		   document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+ sWidth +'" height="'+ sHeight +'">  ');
		   document.write(' <param name="movie" value="'+ sFile +'">  ');
		   document.write(' <param name="quality" value="high">  ');
		   document.write(' <param name="wmode" value="transparent">  ');
		   document.write(' <embed src="'+ sFile +'" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ sWidth +'" height="'+ sHeight +'"></embed>  ');
		   document.write('</object> ');
	  },

//addEvent
	addEvent: function(elm, evType, fn, useCapture){
		if (elm.addEventListener) 
		{
			elm.addEventListener(evType, fn, useCapture);
			return true;
		} else if (elm.attachEvent) {
			var r = elm.attachEvent('on' + evType, fn);
			return r;
		} else {
			elm['on' + evType] = fn;
		}
	}

} 

haier.addEvent(window,"load",haier.main_nav,false);