function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i0&&intheight>0) { window.resizeTo(intwidth,intheight); window.location.href=url; } } var rurl = location.href; var purl = getUrl(rurl); function getUrl(url_str) { var real_url; if (url_str.indexOf('/') > 0) { real_url = url_str.split('/'); real_url = real_url[0]+'//'+real_url[2]+'/'+real_url[3]+'/'; } return real_url; } function goLocate(go_url) { document.location = purl + go_url; } (function ($) { Slides = function () { var n = this; this._init = function (c, d) { this.options = $.extend({}, this._settings, d); this.domObj = $(c); this.isPlaying = null; this.index = 1; this.prevIndex = 0; this.limit = this.domObj.find('ul>li').size(); this.domObj.find('.slide_nav>span:eq(0)').addClass('on'); this.domObj.find('ul>li').css('display','none').css('opacity', '0'); this.domObj.find('ul>li:first').css('display', 'block').css('opacity', '1'); this.domObj.find('.slide_nav span').bind({ mouseover: function(){ if (n.isPlaying != null) { n.changeWithId(getIndex(this, "span"), n.prevIndex); n.prevIndex = getIndex(this, "span"); n.index = getIndex(this, "span"); n._stop() } }, mouseout: function(){ n._start() } }); this._start(); function getIndex(a, b) { return $(b, $(a).parent()).index(a) } } this._settings = { autospeed: 3000 } this._start = function () { var a = this; this.isPlaying = setInterval(function () { a._play() }, a.options.autospeed) } this._stop = function () { clearTimeout(n.isPlaying); n.isPlaying = null; }; this._play = function () { n.prevIndex = n.index; if(n.index >= n.limit) n.index=1; else n.index++; if(n.isPlaying) this._change(n.prevIndex-1, n.index-1); } this._change = function (a, b) { this.domObj.find('.slide_nav span').removeClass('on'); this.domObj.find('.slide_nav>span:eq('+b+')').addClass('on'); this.domObj.find('ul>li:eq('+a+')').animate({ opacity:'0' }, 2000, function(){ }); this.domObj.find('ul>li:eq('+b+')').css('display', 'block').animate({ opacity:'1' }, 2000, function(){ }); } this.changeWithId = function (a, b) { this._change(b, a) }; }; $.fn.slides = function (a) { return this.each(function () { $(this).data("slides", new Slides()._init(this, a)) }) } })(jQuery); //Get the screen height and width