function gmrt(B) { document.getElementById(B).innerHTML = '<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/eXggnlPe6-E&hl=en_US&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/eXggnlPe6-E&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>' };
(function(B) { B.fn.fadeTransition = function(D) { var D = B.extend({ pauseTime: 3000, transitionTime: 550 }, D); var A; Trans = function(L) { var K = null; var M = 0; var C = B("> *", L).css("display", "none").css("left", "0").css("top", "0").css("position", "absolute"); B(L).css("position", "relative"); B(C[M]).css("display", "block"); function J(E) { B(C[M]).fadeOut(D.transitionTime); B(C[E]).fadeIn(D.transitionTime); M = E; N() } function N() { if (B("> *", L).length < 2) { return true } if (K) { clearTimeout(K) } K = setTimeout(function() { J((M + 1) % C.length | 0) }, D.pauseTime) } this.showItem = function(E) { if (K) { clearTimeout(K) } J(E) }; N() }; this.showItem = function(C) { A.showItem(C) }; return this.each(function() { A = new Trans(this) }) } })(jQuery); var page = { tr: null, init: function() { page.tr = $(".area").fadeTransition({ pauseTime: 3000, transitionTime: 500 }); $("div.navigation").each(function() { $(this).children().each(function(B) { if ($(this).is("a")) { $(this).click(function() { page.tr.showItem(B) }) } }) }) }, show: function(B) { if (page.tr.timer) { clearTimeout(page.tr.timer) } page.tr.showItem(B) } }; $(document).ready(page.init);
