var conf={preloader:{loadedImages:[],load:function(url){var img=this.loadedImages;var l=img.length;img[l]=new Image();img[l].src=url}},URI:function(s){var getAbsolutePath=function(s){var e=document.createElement('span');e.innerHTML='<a href="'+s+'" />';return e.firstChild.href};var absolutePath=getAbsolutePath(s);var locationPath=location.href.split("#");var fileName=location.href.split("/").pop();if(fileName==""){locationPath[0]+="index.html"}if(locationPath[1]&&absolutePath.indexOf('#')==-1){absolutePath+="#"+locationPath[1];locationPath[0]+="#"+locationPath[1]}this.isSelfLink=(absolutePath==locationPath[0])}};$(function(){$("h2#flashcontent").each(function(){var url="../index2.swf";$("body.jp").each(function(){url=url.substring(3)});var so=new SWFObject(url,"flash","780","180","8","#FFFFFF");so.addParam("wmode","transparent");so.write("flashcontent")});$("img.btn").each(function(){this.originalSrc=$(this).attr('src');this.rolloverSrc=this.originalSrc.replace(/(\.gif|\.jpg|\.png)/,"_o$1");conf.preloader.load(this.rolloverSrc)}).hover(function(){$(this).attr('src',this.rolloverSrc)},function(){$(this).attr('src',this.originalSrc)});$("li.pull").each(function(){$(this).children("a").removeAttr("href").children("img.btn").each(function(){$(this).unbind('mouseout')})}).hover(function(){$(this).addClass('hover')},function(){$(this).removeClass('hover');$(this).children("a").children("img.btn").each(function(){$(this).attr('src',this.originalSrc)})});$("a[@href]").each(function(){var href=new conf.URI(this.getAttribute('href'));if(href.isSelfLink){$(this).addClass('current').removeAttr("href");$(this).children("img.btn").each(function(){$(this).unbind('mouseover');$(this).unbind('mouseout');$(this).attr('src',this.rolloverSrc)})}});$('a[@href*="://"]').click(function(){var win={};win.name=this.href.split(/[:|#|?]/)[1].split(/[/|.|-]/).join("");win=window.open(this.href,win.name);win.focus();return false})});
