function CheckPlace(fOn, szNumber, szColor)
{
	var szJumpURL;
	
	if(fOn == false)
	{
		szJumpURL = "../" + szNumber + "/" + szNumber + "-" + szColor + ".htm";
	}
	else
	{
		szJumpURL = "../" + szNumber + "P/" + szNumber + "P-" + szColor + ".htm";
	}
	
	location = szJumpURL;
}




var arNewImgPath = new Array("/ENG/images/topmenu_JP-on.gif",
							"/ENG/images/topmenu_contact-on.gif",
							"/ENG/images/topmenu_help-on.gif",
							"/ENG/images/topmenu_news-on.gif",
							"/ENG/images/btn/bt_download-on.gif",
							"/img/bt_gallery_on_en.gif",
							"/ENG/images/btn/btn_html-on.gif",
							"/ENG/images/btn/btn_html-onDK.gif");
var arNewImgObj = new Array();
        function myPreloadImages()
        {
		for(var i = 0; i < arNewImgPath.length; i++)
		{
			arNewImgObj[i] = new Image();
			arNewImgObj[i].src = arNewImgPath[i];
		}
        }
	
	function myImageSwap(strImgObjName, strNewImgPath)
	{
		document.images[strImgObjName].src = strNewImgPath;

	}
	function selectfont(titlesize){  
 if(!document.styleSheets) return;
 

 for(var i=0; i<document.styleSheets.length; i++)
  document.styleSheets[i].title == titlesize ?
   document.styleSheets[i].disabled=false : document.styleSheets[i].disabled=true;
}

function jump(selectlist){
	window.open(selectlist, "_top")
}


function jumpMenu(selectlist){
location=(selectlist.options
[selectlist.selectedIndex].value);
}

function checkrev(form){

  for(i=0;i<form.elements.length;i++) {
  	if (form.elements[i].type=="checkbox"){
	    if(form.elements["delete"].checked) {
	      form.elements[i].checked = true;
	    }
	    else {
	      form.elements[i].checked = false;
	    }
	   }
  }
}


$(document).ready(function(){
				//To switch directions up/down and left/right just place a "-" in front of the top/left attribute
				//horizontal Sliding
	
				$('.social-b').hover(function () {
		
		$(".cover", this).stop().animate({left:'0px'},{queue:false,duration:500,easing:'easeOutQuart'});
	}, function () {

		$(".cover", this).stop().animate({left:'100px'},{queue:false,duration:500,easing:'easeOutQuart'});
	});
				
					$('.social-buttons').hover(function () {
		$('a', this).stop(true).animate({paddingLeft: '0px', 'color':'#fffff'}, {speed: 100, easing: 'easeOutBack'});
		
	}, function () {
		$('a', this).stop(true).animate({paddingLeft: '5px', 'color':'#c7c7c7'}, {speed: 100, easing: 'easeOutBack'});
		
	});
				
});


