//////////////// Javascript ///////////////
//	NEODYM DESIGN
//	com.js
///////////////////////////////////////////

var theURL = "";

function linkSelect(form, sel){
	adrs = sel.options[sel.selectedIndex].value;
	if (adrs != "-" ){
		parent.location = adrs;
	}
}

function imgAct(imgName) {
	if (document.images) {
		document[imgName].src = eval(imgName + "on.src");
	}
}

function imgInact(imgName) {
	if (document.images) {
		document[imgName].src = eval(imgName + "off.src");
	}
}

function opnWin(url) {
	var ltn = 'window';
	var url = url + '.html';
	navWindow=window.open( url , ltn , "width=575,height=450,menubar=no,scrollbars=yes,status=no,resizable=no");
	navWindow.focus();
}

function pntcng(url){
	url = url + ".html";
	window.opener.document.location.href = url;
}

function opnGenre(){
	loadUrl();
	if(theURL == ""){
		history.go(-1);
		return;
	}
	theURL = theURL + ".html";
	top.main.document.location.href = theURL;
}

function opnTopics(){
	loadUrl();
	if(theURL == ""){
		history.go(-1);
		return;
	}
	theURL = "../../" + theURL + ".html";
	top.main.document.location.href = theURL;
}

function setUrl(url){
	theName  = "seito";
	theDay   = 7;
	setDay = new Date();
	setDay.setTime(setDay.getTime()+(theDay*1000*60*60*24));
	expDay = setDay.toGMTString();
	document.cookie = theName + "="+escape(url)+";expires="+expDay;
	document.location.href = "index.html";
}

function topicsUrl(url){
	theName  = "seito";
	theDay   = 7;
	setDay = new Date();
	setDay.setTime(setDay.getTime()+(theDay*1000*60*60*24));
	expDay = setDay.toGMTString();
	document.cookie = theName + "="+escape(url)+";expires="+expDay;
	window.top.document.location.href = "common/html/index.html";
}

function loadUrl(){
	theData   = "";
	theName   = "seito=";
	theCookie = document.cookie+";";
	start = theCookie.indexOf(theName);
	if (start != -1){
		end = theCookie.indexOf(";",start);
		theData = unescape(theCookie.substring(start+theName.length,end));
	}
	theURL = theData;
	theName = "seito";
	document.cookie = theName + "=;expires=Thu,01-Jan-70 00:00:01 GMT";
}

if ((navigator.userAgent.indexOf('Win') != -1 && navigator.userAgent.indexOf('MSIE') == -1)) {
	document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="/Common/win_nn.css">');
			document.close();
} else if (navigator.userAgent.indexOf('Win') != -1) {
	document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="/Common/win.css">');
	document.close();
}

		
///////////////////////////////////////
//	NEODYM	UCHIDA T.   2003/08/29
//


