// Roll Over ----------------------------------------------------------------------
function rollover(path, imgsrc, imgid) {
	if ( ! document.images ) return;
	if ( -1 != imgsrc.indexOf('.gif') )      { ext = '.gif'; }
	else if ( -1 != imgsrc.indexOf('.jpg') ) { ext = '.jpg'; }
	document.images[imgid].src = path + imgid + '_2' + ext;
}
function rollout(path, imgsrc, imgid) {
	if ( ! document.images ) return;
	if ( -1 != imgsrc.indexOf('.gif') )      { ext = '.gif'; }
	else if ( -1 != imgsrc.indexOf('.jpg') ) { ext = '.jpg'; }
	document.images[imgid].src = path + imgid + '_1' + ext;
}
// Open Window ---------------------------------------------------------------------
function open_win(el) {
	var onwin = window.open(el.href, 'onw');
	onwin.focus();
	return false;
}
// News Img Window Open
function openimgwin(el) {
	var nwin = window.open(el.href, 'nw', 'width=700, height=500px, resizable=yes, scrollbars=yes, status=yes, menubar=yes, toolbar=no, directories=no, location=yes');
	nwin.focus();
	return false;
}
//slidepage ------------------------------------------------------------------------
function slidePage(point) {
	start=getWinYOffset();
	difference=point-start;
	tmp=difference;
	k = 0.90;
	move()
}
function move() {
  if (Math.abs(tmp)>0.5) {
    tmp=tmp*k;
    window.scroll(0,start+(difference-tmp));
    setTimeout("move()",0)
  } else {
    window.scroll(0,difference+start)
  }
}
function getWinYOffset(){
  if(window.scrollY) return window.scrollY; // Mozilla
  if(window.pageYOffset) return window.pageYOffset; // Opera, NN4
  if(document.documentElement && document.documentElement.scrollTop){ // °Ê²¼ IE
   return document.documentElement.scrollTop;
  }
  else if(document.body && document.body.scrollTop){
   return document.body.scrollTop;
  }
  return 0;
}
//slidepage ----------------------------------------------------------------------
