
var myLightWindow;

function company_window(){
	// window.open('company.html', 'popup', 'width=740, height=500, menubar=no, toolbar=no, scrollbars=yes');
	
	myLightWindow = new lightwindow({
		skin : {
		loading : '<div id="lightwindow_loading" ><img src="images/ajax-loading.gif"></div>'
		} });


	myLightWindow.activateWindow({
		href : 'company.html',
		title : '',
		height: 700,
		width : 740
	});
	
}

function news_window(){
	// window.open('news.html', 'popup', 'width=740, height=500, menubar=no, toolbar=no, scrollbars=yes');
	myLightWindow = new lightwindow({
		skin : {
		loading : '<div id="lightwindow_loading" ><img src="images/ajax-loading.gif"></div>'
		} });


	myLightWindow.activateWindow({
		href : 'news.html',
		title : '',
		height: 700,
		width : 740
	});
}

function recruit_window(){
	// window.open('recruit.html', 'popup', 'width=740, height=500, menubar=no, toolbar=no, scrollbars=yes');
	myLightWindow = new lightwindow({
		skin : {
		loading : '<div id="lightwindow_loading" ><img src="images/ajax-loading.gif"></div>'
		} });


	myLightWindow.activateWindow({
		href : 'recruit.html',
		title : '',
		height: 700,
		width : 740
	});
}

function shopinfo_window(){
	// window.open('shopinfo.html', 'popup', 'width=740, height=500, menubar=no, toolbar=no, scrollbars=yes');
	myLightWindow = new lightwindow({
		skin : {
		loading : '<div id="lightwindow_loading" ><img src="images/ajax-loading.gif"></div>'
		} });


	myLightWindow.activateWindow({
		href : 'shopinfo.html',
		title : '',
		height: 700,
		width : 740
	});
}

function press_window(){
	// window.open('press.html', 'popup', 'width=740, height=500, menubar=no, toolbar=no, scrollbars=yes');
	myLightWindow = new lightwindow({
		skin : {
		loading : '<div id="lightwindow_loading" ><img src="images/ajax-loading.gif"></div>'
		} });


	myLightWindow.activateWindow({
		href : 'press.html',
		title : '',
		height: 700,
		width : 740
	});
}

function salesrule_window(){
	myLightWindow = new lightwindow({
		skin : {
		loading : '<div id="lightwindow_loading" ><img src="images/ajax-loading.gif"></div>'
		} });


	myLightWindow.activateWindow({
		href : 'salesrule.html',
		title : '',
		height: 700,
		width : 740
	});
}

var strUA = "";
strUA = navigator.userAgent.toLowerCase();

// if(strUA.indexOf("safari") != -1){
// }else if(strUA.indexOf("firefox") != -1){
// }else if(strUA.indexOf("opera") != -1){
// }else if(strUA.indexOf("netscape") != -1){
// }else if(strUA.indexOf("msie") != -1){
// }else if(strUA.indexOf("mozilla/4") != -1){
// }

var win1;
var win2;
var win3;

function image_catalog_window(){
	if(strUA.indexOf("firefox") != -1){
		location.href = "./image_catalog/index.html";
	}else{
		//if (win2) win2.close();
		win2 = window.open('./image_catalog/index.html', 'window2');
		win2.focus();
	}
}

function item_window(){
	if(strUA.indexOf("firefox") != -1){
		location.href = "./itemcatalog/index.html";
	}else{
		//if (win2) win2.close();
		win2 = window.open('./itemcatalog/index.html', 'window2');
		win2.focus();
	}
}

function lookbook_window(){
	if(strUA.indexOf("firefox") != -1){
		location.href = "./lookbook/index.html";
	}else{
		//if (win2) win2.close();
		win2 = window.open('./lookbook/index.html', 'window2');
		win2.focus();
	}
}

function blog_window(){
	//if (win3) win3.close();
	win3 = window.open('http://ameblo.jp/coola-blog/', 'blog');
	win3.focus();
}


function blog_window2(){
	//if (win4) win4.close();
	win4 = window.open('http://shop.plaza.rakuten.co.jp/coola/', 'blog2');
	win4.focus();
}



