// JavaScript Document
/*
var rootPath = '';

$(document).ready(function(){
	for(var i = 0; i < dLevel; i++) {
		rootPath += '../';
	}
	
	jQuery.each($(".linkArea"), function(){
		$(this).attr('rel', $(this).find("a")[0]);
	})

					   
	$(".linkArea").hover(
		function(){	
			if($(this).hasClass("setBorder")){
				$(this).toggleClass("linkBorder");
			}
			$(this).find(".setBorder").toggleClass("linkBorder");
			$(this).find(".activate").toggleClass("active");
		},
		function(){
			
			if($(this).hasClass("setBorder")){
				$(this).toggleClass("linkBorder");
			}
			$(this).find(".setBorder").toggleClass("linkBorder");
			$(this).find(".activate").toggleClass("active");
		}
	);
	//
	$(".linkArea").click(
		function(){
			if($(this).hasClass('popup')) {
				window.open($(this).attr('rel'));
			}else{
				window.location.assign($(this).attr('rel'));
			}
		}				 
	);
	//
	$(".topBtn").click(
		function(){
			$.scrollTo( 0, 300 );
		}
	);
	//

	$(".othersLink").hide();
	$("#leftOthers").click(
		function(){
			$(".othersLink").toggle("slow");	
		}				   
	);
	//
	$("#footerSelect").unbind("change");
	$("#footerSelect").change(function() {
			var targetURL = $("#footerSelect option:selected").eq(0).attr('value');
			targetURL ? window.open(targetURL) : '';
		}
	);
});
//
function openWin(url) {
	window.open(url);
}

function getPageSize(){
  var de = document.documentElement;
  var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
  var h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight;
  arrayPageSize = [w,h];
  return arrayPageSize;
}

function popup(f, n, w, h) {
  window.open(f, n, "width="+w+", height="+h+", location=no, toolbar=no, status=no, menubar=no, scrollbars=no, resizable=no");
}
*/
// JavaScript Document
var rootPath = '';

$(document).ready(function(){
	for(var i = 0; i < dLevel; i++) {
		rootPath += '../';
	}
	
	jQuery.each($(".linkArea"), function(){
		$(this).attr('rel', $(this).find("a")[0]);
		$($(this).find("a")[0]).attr('href', 'javascript:void(0);') ;
		$($(this).find("a")[0]).removeAttr('target') ;
	})

					   
	$(".linkArea").hover(
		function(){	
			if($(this).hasClass("setBorder")){
				$(this).toggleClass("linkBorder");
			}
			$(this).find(".setBorder").toggleClass("linkBorder");
			$(this).find(".activate").toggleClass("active");
		},
		function(){
			
			if($(this).hasClass("setBorder")){
				$(this).toggleClass("linkBorder");
			}
			$(this).find(".setBorder").toggleClass("linkBorder");
			$(this).find(".activate").toggleClass("active");
		}
	);
	//
	$(".linkArea").click(
		function(){
			if($(this).hasClass('popup')) {
				window.open($(this).attr('rel'));
			}else{
				window.location.assign($(this).attr('rel'));
			}
		}				 
	);
	//
	$(".topBtn").click(
		function(){
			$.scrollTo( 0, 300 );
		}
	);
	//

	$(".othersLink").hide();
	$("#leftOthers").click(
		function(){
			$(".othersLink").toggle("slow");	
		}				   
	);
});
//
function openWin(url) {
	window.open(url);
}

function getPageSize(){
  var de = document.documentElement;
  var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
  var h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight;
  arrayPageSize = [w,h];
  return arrayPageSize;
}

function popup(f, n, w, h) {
  window.open(f, n, "width="+w+", height="+h+", location=no, toolbar=no, status=no, menubar=no, scrollbars=no, resizable=no");
}