/*-- プリロードイメージ -----------------------------------*/
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


/*-- ポップアップ --*/
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}



/*-- ページトップ --*/
function jumpToPageTop(e) {
 UAGENT = navigator.userAgent.toUpperCase();
 if (UAGENT.indexOf("MSIE") >=0) {
  pos = event.y;
 } else {
  pos = e.pageY;
 }
 pageScroll(pos);
}

function pageScroll(posi) {
 dist = posi / 6;
 nPos = parseInt(posi - dist);
 scrollTo(0,nPos);
 if (nPos > 0) {
  setTimeout("pageScroll(nPos)",10);
 }
}


/*-- プルダウン --*/
var target = ""; 


function jump1(){ 

var url = document.form1.select.options[document.form1.select.selectedIndex].value; 

if(url != "" ){ 

if(target == 'top'){ 
top.location.href = url; 
} 
else if(target == 'blank'){ 
window.open(url, 'window_name'); 
} 
else if(target != ""){ 
eval('parent.' + target + '.location.href = url'); 
} 
else{ 
location.href = url; 
} 

} 

} 

function jump2(){ 

var url = document.form2.select2.options[document.form2.select2.selectedIndex].value; 

if(url != "" ){ 

if(target == 'top'){ 
top.location.href = url; 
} 
else if(target == 'blank'){ 
window.open(url, 'window_name'); 
} 
else if(target != ""){ 
eval('parent.' + target + '.location.href = url'); 
} 
else{ 
location.href = url; 
} 

} 

} 

function jump3(){ 

var url = document.form3.select3.options[document.form3.select3.selectedIndex].value; 

if(url != "" ){ 

if(target == 'top'){ 
top.location.href = url; 
} 
else if(target == 'blank'){ 
window.open(url, 'window_name'); 
} 
else if(target != ""){ 
eval('parent.' + target + '.location.href = url'); 
} 
else{ 
location.href = url; 
} 

} 

} 

function jump4(){ 

var url = document.form4.select4.options[document.form4.select4.selectedIndex].value; 

if(url != "" ){ 

if(target == 'top'){ 
top.location.href = url; 
} 
else if(target == 'blank'){ 
window.open(url, 'window_name'); 
} 
else if(target != ""){ 
eval('parent.' + target + '.location.href = url'); 
} 
else{ 
location.href = url; 
} 

} 

} 

function jump5(){ 

var url = document.form5.select5.options[document.form5.select5.selectedIndex].value; 

if(url != "" ){ 

if(target == 'top'){ 
top.location.href = url; 
} 
else if(target == 'blank'){ 
window.open(url, 'window_name'); 
} 
else if(target != ""){ 
eval('parent.' + target + '.location.href = url'); 
} 
else{ 
location.href = url; 
} 

} 

} 
