function ImageNavigator(_1,_2){
var _3=null;
var _4=null;
var _5=null;
var i=0;
var _6=new Array();
function _7(_8,_9,f){
if(window.attachEvent){
_9.attachEvent("on"+_8,f);
}else{
if(window.addEventListener){
_9.addEventListener(_8,f,false);
}
}
};
function _a(_b,_c,f){
if(window.detachEvent){
_c.detachEvent("on"+_b,f);
}else{
if(window.addEventListener){
_c.removeEventListener(_b,f,false);
}
}
};
function _d(){
i--;
if(i==0){
_a("mousedown",_3,_d);
_3.style.cursor="default";
_3.style.fontWeight="normal";
_3.style.color="#666666";
}
if(i==(_6.length-2)){
_7("mousedown",_4,_e);
_4.style.cursor="pointer";
_4.style.fontWeight="bold";
_4.style.color="#004D66";
}
var _f=document.createElement("img");
_f.src=_6[i].src;
_5.parentNode.replaceChild(_f,_5);
_5=_f;
};
function _e(){
i++;
if(i==(_6.length-1)){
_a("mousedown",_4,_e);
_4.style.cursor="default";
_4.style.fontWeight="normal";
_4.style.color="#666666";
}
if(i==1){
_7("mousedown",_3,_d);
_3.style.cursor="pointer";
_3.style.fontWeight="bold";
_3.style.color="#004D66";
}
var img=document.createElement("img");
img.src=_6[i].src;
_5.parentNode.replaceChild(img,_5);
_5=img;
};
function _10(){
_3=document.getElementById("imgleft");
_4=document.getElementById("imgright");
_5=document.getElementById("pimagetarget");
if(_3&&_4&&_5){
if((typeof _1=="object")&&(typeof _1.length=="number")&&(_1.length>0)){
for(var i=0;i<_1.length;i++){
var s=new Image();
s.src=_1[i];
_6.push(s);
}
if(_6.length>1){
_7("mousedown",_4,_e);
_4.style.cursor="pointer";
_4.style.fontWeight="bold";
_4.style.color="#004D66";
}
}
}
};
_7("load",window,_10);
};


