
/*
*
*
*	GnRoolOver
*
*/
$(document).ready(function(){
  $("div#header div#globalNav ul li a span , p.pageTopNavi a span").hover(
   function(){$(this).stop().animate({opacity: 0}, 200);},
   function(){$(this).stop().animate({opacity: 1}, 700);}
  );
});





/*
*
*
*	Popup
*	<a href="xxx.html" onclick="m_win(this.href,'window',1000,1000); return false;">
*
*/

function m_win(url,windowname,width,height) {
 var features="location=no, menubar=no, status=yes, scrollbars=yes, resizable=yes, toolbar=no";
 if (width) {
  if (window.screen.width > width)
   features+=", left="+(window.screen.width-width)/2;
  else width=window.screen.width;
  features+=", width="+width;
 }
 if (height) {
  if (window.screen.height > height)
   features+=", top="+(window.screen.height-height)/2;
  else height=window.screen.height;
  features+=", height="+height;
 }
 window.open(url,windowname,features);
}












/*
*
*
*	autoLinkBlank
*
*
*/

function relTags() {
if (document.getElementsByTagName) {
var anchors = document.getElementsByTagName( "a" );
for (var loop = 0; loop < anchors.length; loop++) {
var anchor = anchors[loop];
if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") {
anchor.target = "_blank";
}
}
}
}

window.onload = function() {
relTags();
}




