var browserInfo = window.navigator.userAgent.toLowerCase(); function bookmarksite(title,url){ if ( browserInfo.indexOf('msie') != -1 ) { window.external.AddFavorite(url, title); } else if ( browserInfo.indexOf('firefox') != -1 ) { alert('CTRL+D'); } else if ( browserInfo.indexOf('safari') != -1 ) { } else if ( browserInfo.indexOf('opera') != -1 ) { var elem = document.createElement('a'); elem.setAttribute('href',url); elem.setAttribute('title',title); elem.setAttribute('rel','sidebar'); elem.click(); } } function topMenu_toggle (el_nm,sw) { document.getElementById(el_nm).style.display = sw; } function topMenu_toggle (el_nm,sw) { document.getElementById(el_nm).style.display = sw; } /*******error ### ***************/ window.onerror = ErrorSetting var e_msg=""; var e_file=""; var e_line=""; function ErrorSetting(msg, file_loc, line_no) { e_msg=msg; e_file=file_loc; e_line=line_no; return true; } function searchFormSubmitConfirm (form) { form.searchTerm.value = form.searchTerm.value.replace(/\'/g, ''); form.searchTerm.value = form.searchTerm.value.replace(/\"/g, ''); form.searchTerm.value = form.searchTerm.value.replace(/^\ {1,}|\ {1,}$/g, ''); if (form.searchTerm.value == '') { alert('####.!'); form.searchTerm.focus(); return false; } switch (form.searchCategory.value) { case "event": form.action = "#"; break; case "brand": form.action = "#"; break; case "total": default: form.action = "#"; break; } form.submit(); } function xwzRollingImageTransLow2(imageName, thumbnailName, eventName, winName, index){ this.Index = 0; this.ListItem = new Array(0); this.Name = imageName; this.Thumbnail = thumbnailName; this.tmRotate = null; this.nInterval = 3000; this.eventName = eventName; this.winTarget = winName; if(window.xwzRollObject == null) window.xwzRollObject = new Array(0); window.xwzRollObject[this.Name] = this; //== this.install = function(){ if(this.ListItem.length == 0) return; this.tmRotate = setTimeout("window.xwzRollObject['" + this.Name + "'].rotateTrans()" , this.nInterval); var icons = document.getElementsByName(this.Thumbnail); for(var i = 0; i < icons.length; i++){ if(this.eventName == 'over') icons[i].onmouseover=new Function("window.xwzRollObject['"+this.Name+"'].alterImage(" + i + ")"); else icons[i].onclick=new Function("window.xwzRollObject['"+this.Name+"'].alterImage(" + i + ")"); } } //== this.addItem = function(Link, ImgSrc, Icon1, Icon2 ){ var itmX = {Link : "", ImgSrc : "", DefIcon : "", OvrIcon : ""}; itmX.Link = Link; itmX.ImgSrc = ImgSrc; itmX.DefIcon = Icon1; itmX.OvrIcon = Icon2; this.ListItem[this.ListItem.length] = itmX; } //== this.alterImage = function(index){ var icons = document.getElementsByName(this.Thumbnail); if(this.Index == index) return; if(this.ListItem[this.Index].DefIcon !="") icons[this.Index].src = this.ListItem[this.Index].DefIcon; this.Index = index; this.imgTrans(); clearTimeout(this.tmRotate); this.tmRotate = null; this.tmRotate = setTimeout("window.xwzRollObject['" + this.Name + "'].rotateTrans()" , this.nInterval); } //== this.goLink = function(){ var name = this.getAttribute('name'); var xwzRoll = window.xwzRollObject[name]; clearTimeout(xwzRoll.tmRotate); xwzRoll.tmRotate = null; if(xwzRoll.winTarget == '' || xwzRoll.winTarget == null){ window.location.href=xwzRoll.ListItem[xwzRoll.Index].Link; }else if(xwzRoll.winTarget.toLowerCase().indexOf("javascript") == 0){ alert( winTarget.replace(/javascript:/gi,'') ) }else{ window.open(xwzRoll.ListItem[xwzRoll.Index].Link, xwzRoll.winTarget); } } //== this.rotateTrans = function(){ var icons = document.getElementsByName(this.Thumbnail); var itmX = this.ListItem[this.Index]; if(itmX.DefIcon !="") icons[this.Index].src = itmX.DefIcon; this.Index +=1; if(this.Index >= this.ListItem.length) this.Index = 0; this.imgTrans(); clearTimeout(this.tmRotate); this.tmRotate = null; this.tmRotate = setTimeout("window.xwzRollObject['" + this.Name + "'].rotateTrans()" , this.nInterval); } //== this.imgTrans = function(){ var icons = document.getElementsByName(this.Thumbnail); var itmX = this.ListItem[this.Index]; if(itmX.OvrIcon !=null && itmX.OvrIcon !="") icons[this.Index].src = itmX.OvrIcon; try{ document.images[this.Name].filters[0].apply(); document.images[this.Name].src = itmX.ImgSrc; document.getElementById('IMG_COMM_ROLL_MAIN').useMap = '#'+itmX.Link; document.images[this.Name].filters[0].play(); }catch(e){ document.images[this.Name].src = itmX.ImgSrc; document.getElementById('IMG_COMM_ROLL_MAIN').useMap = '#'+itmX.Link; } } }