function swpimg(n){
	var imgsrc = document.images[n].src;
	var ext = imgsrc.substring(imgsrc.lastIndexOf("."), imgsrc.length);
	
	if(imgsrc.indexOf("-on") < 0){
		document.images[n].src=imgsrc.substring(0,imgsrc.length-ext.length) + "-on" + ext;
	}
	else{
		document.images[n].src=imgsrc.substring(0,imgsrc.length-ext.length-3) + ext;
	}

}

window.onunload=dmyFnc;
function dmyFnc(){
	//空っぽ
}


function MM_goToURL() { 
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  subwin = window.open(theURL,winName,features);
  window.subwin.focus();
}


function open1(){
  window.open('http://www.trion-net.co.jp/map1.html', 'map', 'width=600, height=540, menubar=no, toolbar=no, scrollbars=no, resizable=yes');
}
function open2(){
  window.open('http://www.trion-net.co.jp/map2.html', 'map', 'width=600, height=540, menubar=no, toolbar=no, scrollbars=no, resizable=yes');
}

function campaign(){
  subwin = window.open('http://www.trion-net.co.jp/campaign/index.html', 'campaign', 'width=700, height=780, menubar=no, toolbar=no, scrollbars=yes, resizable=yes');
  window.subwin.focus();
}
function mail(){
  subwin = window.open('http://www.trion-net.co.jp/mailmagazine/mailmagazine.html', 'mail', 'width=750, height=780, menubar=no, toolbar=yes, scrollbars=yes, resizable=yes,location=yes');
  window.subwin.focus();
}


function noveltycampaign(){
	var boo;
	var blowser = navigator.userAgent.toLowerCase();
	
	if(blowser.indexOf("opera") == -1){
		
		subwin = window.open('../novelty/', 'novelty', 'width=650, height=630, menubar=no, toolbar=no, scrollbars=yes, resizable=yes');
		window.subwin.focus();
	}
	else{
		boo = "true";
		return boo;
	}
}
function novelty1th(){
	var boo;
	var blowser = navigator.userAgent.toLowerCase();
	
	if(blowser.indexOf("opera") == -1){
		
		subwin = window.open('../novelty/', 'novelty1th', 'width=670, height=630, menubar=no, toolbar=no, scrollbars=yes, resizable=yes');
		window.subwin.focus();
	}
	else{
		boo = "true";
		return boo;
	}
}


function xmascampaign(){
	var boo;
	var blowser = navigator.userAgent.toLowerCase();
	
	if(blowser.indexOf("opera") == -1){
		
		subwin = window.open('../xmas/', 'xmas', 'width=640, height=630, menubar=no, toolbar=no, scrollbars=yes, resizable=yes');
		window.subwin.focus();
	}
	else{
		boo = "true";
		return boo;
	}
}

function mother(){
	var boo;
	var blowser = navigator.userAgent.toLowerCase();
	
	if(blowser.indexOf("opera") == -1){
		
		subwin = window.open('../mother/', 'mother', 'width=670, height=630, menubar=no, toolbar=yes, scrollbars=yes, resizable=yes');
		window.subwin.focus();
	}
	else{
		boo = "true";
		return boo;
	}
}

function fukubukuro(){
	var boo;
	var blowser = navigator.userAgent.toLowerCase();
	
	if(blowser.indexOf("opera") == -1){
		
		subwin = window.open('../fukubukuro/', 'fukubukuro', 'width=650, height=630, menubar=no, toolbar=no, scrollbars=yes, resizable=yes');
		window.subwin.focus();
	}
	else{
		boo = "true";
		return boo;
	}
}

function fukubukurocampaign(){
	var boo;
	var blowser = navigator.userAgent.toLowerCase();
	
	if(blowser.indexOf("opera") == -1){
		
		subwin = window.open('../fukubukuro/', 'fukubukuro', 'width=710, height=630, menubar=no, toolbar=yes, scrollbars=yes, resizable=yes');
		window.subwin.focus();
	}
	else{
		boo = "true";
		return boo;
	}
}

function campaignfree(){
	var boo;
	var blowser = navigator.userAgent.toLowerCase();
	
	if(blowser.indexOf("opera") == -1){
		
		subwin = window.open('../campaign/', 'campaignfree', 'width=670, height=630, menubar=no, toolbar=yes, scrollbars=yes, resizable=yes');
		window.subwin.focus();
	}
	else{
		boo = "true";
		return boo;
	}
}

function opencampaign(){
	var boo;
	var blowser = navigator.userAgent.toLowerCase();
	
	if(blowser.indexOf("opera") == -1){
		
		subwin = window.open('../mailmagazine/mailmagazine.html', 'campaign', 'width=710, height=780, menubar=no, toolbar=no, scrollbars=yes, resizable=yes');
		window.subwin.focus();
	}
	else{
		boo = "true";
		return boo;
	}
}

function valentine(){
	var boo;
	var blowser = navigator.userAgent.toLowerCase();
	
	if(blowser.indexOf("opera") == -1){
		
		subwin = window.open('http://www.trion-net.co.jp/valentine/', 'valentine', 'width=650, height=780, menubar=no, toolbar=no, scrollbars=yes, resizable=yes');
		window.subwin.focus();
	}
	else{
		boo = "true";
		return boo;
	}
}

function specialcampaign(){
	var boo;
	var blowser = navigator.userAgent.toLowerCase();
	
	if(blowser.indexOf("opera") == -1){
		
		subwin = window.open('../novelty/', 'special', 'width=630, height=620, menubar=no, toolbar=no, scrollbars=yes, resizable=yes, location=yes');
		window.subwin.focus();
	}
	else{
		boo = "true";
		return boo;
	}
}

function novelty(){
  subwin = window.open('http://www.trion-net.co.jp/novelty/', 'novelty', 'width=650, height=630, menubar=no, toolbar=no, scrollbars=yes, resizable=yes, location=yes');
  window.subwin.focus();
}


function fuku(){
  subwin = window.open('http://www.trion-net.co.jp/fukubukuro/', 'fukubukuro', 'width=710, height=630, menubar=no, toolbar=yes, scrollbars=yes, resizable=yes, location=yes');
  window.subwin.focus();
}

function xmas(){
  subwin = window.open('http://www.trion-net.co.jp/xmas/', 'xmas', 'width=640, height=630, menubar=no, toolbar=no, scrollbars=yes, resizable=yes, location=yes');
  window.subwin.focus();
}

function mother(){
  subwin = window.open('http://www.trion-net.co.jp/mother/', 'mother', 'width=670, height=630, menubar=no, toolbar=no, scrollbars=yes, resizable=yes, location=yes');
  window.subwin.focus();
}
function father(){
  subwin = window.open('http://www.trion-net.co.jp/father/index.html', 'father', 'width=670, height=536, menubar=no, toolbar=no, scrollbars=yes, resizable=yes, location=yes');
  window.subwin.focus();
}




/* Aシリーズ表*/
function windowopen(page){
	if(page=="A108" || page=="A108D"){
		subwin = window.open('../../size/aseries.html#a108', 'mywindow2', 'width=848, height=630, scrollbars=yes, resizable=yes');
  		window.subwin.focus();
	}else if(page=="A109" || page=="A109D"){
		subwin = window.open('../../size/aseries.html#a109', 'mywindow2', 'width=848, height=630, scrollbars=yes, resizable=yes');
  		window.subwin.focus();
	}else if(page=="A112" || page=="A112D"){
		subwin = window.open('../../size/aseries.html#a112', 'mywindow2', 'width=848, height=630, scrollbars=yes, resizable=yes');
  		window.subwin.focus();
	}else if(page=="A113" || page=="A113D"){
		subwin = window.open('../../size/aseries.html#a113', 'mywindow2', 'width=848, height=630, scrollbars=yes, resizable=yes');
  		window.subwin.focus();
	}else if(page=="A114" || page=="A114D"){
		subwin = window.open('../../size/aseries.html#a114', 'mywindow2', 'width=848, height=630, scrollbars=yes, resizable=yes');
  		window.subwin.focus();
	}else if(page=="A115" || page=="A115D"){
		subwin = window.open('../../size/aseries.html#a115', 'mywindow2', 'width=848, height=630, scrollbars=yes, resizable=yes');
  		window.subwin.focus();
	}else if(page=="A116" || page=="A116D"){
		subwin = window.open('../../size/aseries.html#a116', 'mywindow2', 'width=848, height=630, scrollbars=yes, resizable=yes');
  		window.subwin.focus();
	}else if(page=="A117" || page=="A117D"){
		subwin = window.open('../../size/aseries.html#a117', 'mywindow2', 'width=848, height=630, scrollbars=yes, resizable=yes');
  		window.subwin.focus();
	}else if(page=="A118" || page=="A118D"){
		subwin = window.open('../../size/aseries.html#a118', 'mywindow2', 'width=848, height=630, scrollbars=yes, resizable=yes');
  		window.subwin.focus();
	}else if(page=="A119" || page=="A119D"){
		subwin = window.open('../../size/aseries.html#a119', 'mywindow2', 'width=848, height=630, scrollbars=yes, resizable=yes');
  		window.subwin.focus();
	}else{
		subwin = window.open('../../size/aseries.html', 'mywindow2', 'width=848, height=630, scrollbars=yes, resizable=yes');
  		window.subwin.focus();
	}
}

function windowopen2(){
  subwin = window.open('../size/aseries.html', 'mywindow2', 'width=848, height=630, scrollbars=yes, resizable=yes');
  window.subwin.focus();
}

function windowopen0(){
  subwin = window.open('size/aseries.html', 'mywindow2', 'width=848, height=630, scrollbars=yes, resizable=yes');
  window.subwin.focus();
}


function windowopen_in(){
  subwin = window.open('http://www.trion-net.co.jp/trion/size/aseries_in.html', 'mywindow2', 'width=848, height=630, scrollbars=yes, resizable=yes');
  window.subwin.focus();
}

function aging(){
	subwin = window.open('http://www.trion-net.co.jp/stylesnap/pickup/no5.html', 'mywindow3', 'width=975, height=630, scrollbars=yes, resizable=yes');
  window.subwin.focus();
}


function snapopen0(){
  subwin = window.open('../stylesnap/index.html', 'mywindow3', 'width=975, height=630, scrollbars=yes, resizable=yes');
  window.subwin.focus();
}

function snapopen2(){
  subwin = window.open('../../stylesnap/index.html', 'mywindow3', 'width=975, height=630, scrollbars=yes, resizable=yes');
  window.subwin.focus();
}

function snapopen3(){
  subwin = window.open('../../../stylesnap/index.html', 'mywindow3', 'width=975, height=630, scrollbars=yes, resizable=yes');
  window.subwin.focus();
}

function design(){
	subwin = window.open('http://www.trion-net.co.jp/trion/design/pwseries.html', 'mywindow3', 'width=975, height=630, scrollbars=yes, resizable=yes');
  window.subwin.focus();
}

