function swpimg(n){
	var imgsrc = document.images[n].src;
	var ext = imgsrc.substring(imgsrc.lastIndexOf("."), imgsrc.length);
	
	if(imgsrc.indexOf("_ov") < 0){
		document.images[n].src=imgsrc.substring(0,imgsrc.length-ext.length) + "_ov" + ext;
	}
	else{
		document.images[n].src=imgsrc.substring(0,imgsrc.length-ext.length-3) + ext;
	}
}

function scroller(ps){
        scroller_up(ps,70);
}
    
function scroller_up(ps,y){
    y = y + (ps - y)*.1;
    window.scroll(0,y);
    if (((ps - y) <= .5)&&((ps - y) >= -.5))
    {                   
        y = ps;
    }else{
        setTimeout("scroller_up("+ps+","+y+")",1);
    }
}

function scroller_e(ps){
    y = 1;
    kyoukai = ps*.5;
    while(y <= kyoukai)
    {
        window.scroll(0,y);
        y = y + (y*.05);
    }
    while(y != ps)
    {
        window.scroll(0,y);
        y = y + (ps-y)*.05;
        if (((ps - y) <= .5)&&((ps - y) >= -.5))
        {                   
            y = ps;
        }       
    }
}

try {
  document.execCommand("BackgroundImageCache", false, true);
} catch(err) {}


function Wopen(url,fname,width,height){
	window.open(url,fname,"width="+width+",height="+height+",scrollbars=yes,status=no,resizable=no,toolbar=no,location=no,menubar=no");
}

