function chLink(obj,s) {
	if (s==1) {
		if (obj.firstChild.tagName=="IMG"||obj.firstChild.tagName=="img") {
			img=obj.firstChild.src; n=img.lastIndexOf("/"); img=img.substring(n+1); n=img.indexOf("-"); img=img.substring(0,n);
			obj.firstChild.src="/i/m/"+img+"-on.gif";
			a=obj.parentNode.previousSibling.firstChild.className="on";
		} else {
			img=obj.parentNode.nextSibling.firstChild.firstChild.src; n=img.lastIndexOf("/"); img=img.substring(n+1); n=img.indexOf("-"); img=img.substring(0,n);
			obj.parentNode.nextSibling.firstChild.firstChild.src="/i/m/"+img+"-on.gif";
		}
	} else if (s==0) {
		if (obj.firstChild.tagName=="IMG"||obj.firstChild.tagName=="img") {
			img=obj.firstChild.src; n=img.lastIndexOf("/"); img=img.substring(n+1); n=img.indexOf("-"); img=img.substring(0,n);
			obj.firstChild.src="/i/m/"+img+"-off.gif";
			a=obj.parentNode.previousSibling.firstChild.className="off";
		} else {
			img=obj.parentNode.nextSibling.firstChild.firstChild.src; n=img.lastIndexOf("/"); img=img.substring(n+1); n=img.indexOf("-"); img=img.substring(0,n);
			obj.parentNode.nextSibling.firstChild.firstChild.src="/i/m/"+img+"-off.gif";
		}
	}
}
var onPic=new Array(); onPic[1]=new Image(); onPic[1].src="/i/pic/pic1-on.jpg"; onPic[2]=new Image(); onPic[2].src="/i/pic/pic2-on.jpg";
onPic[3]=new Image(); onPic[3].src="/i/pic/pic3-on.jpg";
var offPic=new Array();  offPic[1]=new Image(); offPic[1].src="/i/pic/pic1-off.jpg"; offPic[2]=new Image(); offPic[2].src="/i/pic/pic2-off.jpg";
offPic[3]=new Image(); offPic[3].src="/i/pic/pic3-off.jpg";
function chPic(obj,s) { img=obj.firstChild; n=img.src.lastIndexOf("/"); name=img.src.substring(n+4); n=parseInt(name);
(s==1)?img.src=onPic[n].src:img.src=offPic[n].src; }

function browse_check() {
this.ver=navigator.appVersion; this.agent=navigator.userAgent; this.dom=document.getElementById?1:0;
this.opera5=(window.opera&&this.dom)?1:0; this.opera6=(this.opera5&&window.print)?1:0; this.opera7=(this.opera5&&document.readyState)?1:0;
this.ie5=(this.ver.indexOf("MSIE 5")>-1&&this.dom&&!this.opera5)?1:0; this.ie6=(this.ver.indexOf("MSIE 6")>-1&&this.dom&&!this.opera5)?1:0;
this.ie4=(document.all&&!this.dom&&!this.opera5)?1:0; this.ie=this.ie4||this.ie5||this.ie6; this.mac=this.agent.indexOf("Mac")>-1;
this.ns6=(this.dom&&parseInt(this.ver)>=5)?1:0; this.ns4=(document.layers&&!this.dom)?1:0;
this.bw=(this.ie6||this.ie5||this.ie4||this.ns4||this.ns6||this.opera5||this.opera6||this.opera7); return this; }
bw=new browse_check();
var el=document.documentElement||document.body; var tID;
function vPic(pObj) {
img=pObj.firstChild.src; p=img.lastIndexOf("/"); img=img.substring(p+1);
divPic=(bw.dom)?document.getElementById("vImg"):(!bw.dom&&bw.ie)?document.all["vImg"]:null;
divPicImg=divPic.firstChild.firstChild.firstChild; divPicImg.src="/pub/portfolio/l/"+img;
w=el.offsetWidth; h=el.scrollTop; w=(w-500)/2; divPic.style.left=w+"px"; divPic.style.top=h+20+"px"; divPic.style.visibility="visible"; }
function hPic() { divPic.style.left=0+"px"; divPic.style.top=-1000+"px"; divPicImg.src="/i/p.gif"; divPic.style.visibility="hidden"; }
function pScr() { divPic=(bw.dom)?document.getElementById("vImg"):(!bw.dom&&bw.ie)?document.all["vImg"]:null;
if (divPic.style.visibility=="visible") { h=el.scrollTop; divPic.style.top=h+20+"px"; } }
window.onscroll=pScr;