//  ロールオーバー


function smartRollover() {   
    if(document.getElementsByTagName) {   
        var images = document.getElementsByTagName("img");   
        for(var i=0; i < images.length; i++) {   
            if(images[i].getAttribute("src").match("_n."))   
            {   
                images[i].onmouseover = function() {   
                    this.setAttribute("src", this.getAttribute("src").replace("_n.", "_ov."));   
                }   
                images[i].onmouseout = function() {   
                    this.setAttribute("src", this.getAttribute("src").replace("_ov.", "_n."));   
                }   
            }   
        }   
    }   
}   
if(window.addEventListener) {   
    window.addEventListener("load", smartRollover, false);   
}   
else if(window.attachEvent) {   
    window.attachEvent("onload", smartRollover);   
}

//  ポップアップWindow

function pop_w640_h795() {
	var url = "detail.html";
	var option = "width=640,height=795,menubar=yes,toolbar=no,location=no,status=no,resizable=yes,scrollbars=yes";
	var w = window.open(url,"detail",option);
	w.focus();

}

//　応募要項ポップアップWindow

function pop_w400_h480( url )
{
	if( url != "" ) {
		win = window.open(url,"pop_w400_h480","status=0,resizable=1,scrollbars=1,toolbar=0,directories=0,scrolling=1,menubar=0,location=0,width=400,height=480,")
		win.focus();
	}
}
function pop_w740_h610( url )
{
	if( url != "" ) {
		win = window.open(url,"pop_w740_h610","status=1,resizable=1,scrollbars=1,toolbar=0,directories=0,scrolling=1,menubar=0,location=1,width=740,height=610,")
		win.focus();
	}
}

function pop_w900_h500( url )
{
	if( url != "" ) {
		win = window.open(url,"pop_w900_h500","status=1,resizable=1,scrollbars=1,toolbar=0,directories=0,scrolling=1,menubar=0,location=1,width=900,height=500,")
		win.focus();
	}
}

function pop_w470_h600( url )
{
	if( url != "" ) {
		win = window.open(url,"pop_w470_h600","status=1,resizable=1,scrollbars=1,toolbar=0,directories=0,scrolling=1,menubar=0,location=1,width=470,height=600,")
		win.focus();
	}
}