<!--
/*window.onload = function() {
var node_a = document.getElementsByTagName('a');
for (var i in node_a) {
if (node_a[i].className == 'works') {
node_a[i].onclick = function() {
return window01(this.href)
};
}
}
};

function window01(url) {
window.open(
url,'works',
'width=896,height=623,scrollbars=0,resizable=0');
return false;
};*/


$(document).ready(function(){
	$("a[href='http://www.am-design.co.jp/works/index.html']").click(
		function(){
			window.open('http://www.am-design.co.jp/works/index.html','works','width=896,height=623,scrollbars=yes,resizable=yes');
			return false;
	});

	$('a[rel="works"]').click(function(){
		var win;
		win=window.open(this.href, "works","width=896,height=623,scrollbars=yes, resizable=yes");
		win.focus();
		return false;
	});
	
	$('a[rel="dbook"]').click(function(){
		var win;
		win=window.open(this.href, "dbook","width=940,height=635,menubar=no, toolbar=no, scrollbars=yes,resizable=yes");
		win.focus();
		return false;
	});
	$('#footerContent .am a').hover(
		function(){$(this).find("img").fadeOut(1);},
		function(){$(this).find("img").fadeIn(1);}
	);
	$('a[rel="amworks"]').click(function(){
		var win=window.open(this.href, "works","width="+screen.width+",height="+screen.height+", menubar=no, toolbar=no, scrollbars=yes,resizable=yes,status=no");
		win.focus();
		return false;
	});
	$('a[rel="THH"]').click(function(){
		//alert( $.browser.name +"/" +$.os.name  ) ;
		THHpop(this.href);
		return false;
	});

});

function THHpop(url){
	var win;
	var wid = "1250";
	var hei = "792";
	if($.os.name == "mac"){
		wid = "1250";
		if($.browser.name == "chrome"){
			hei = "842";
		}
	}
	win=window.open(url, "thh","width="+wid+",height="+hei+",scrollbars=yes, resizable=yes");
	win.focus();
}
//-->
