// JavaScript Document //////////////////////////////////////////////////////////////////////////////////////
	$j_png_fix = jQuery.noConflict();
	$j_png_fix(document).ready(function(){
	$j_png_fix('div#warp').pngFix( );
	});
	



// JavaScript Document //////////////////////////////////////////////////////////////////////////////////////
$top_flash_pp = jQuery.noConflict();
$top_flash_pp(document).ready(function() {	
	//Show Banner
	$top_flash_pp(".main_image .desc").show(); //Show Banner
	$top_flash_pp(".main_image .block").animate({ opacity: 1 }, 1 ); //Set Opacity

	//Click and Hover events for thumbnail list
	$top_flash_pp(".image_thumb ul li:first").addClass('active'); 
	$top_flash_pp(".image_thumb ul li").click(function(){ 
		//Set Variables
		var imgAlt = $top_flash_pp(this).find('img').attr("alt"); //Get Alt Tag of Image
		var imgTitle = $top_flash_pp(this).find('a').attr("href"); //Get Main Image URL
		var imgDesc = $top_flash_pp(this).find('.block a').html(); 	//Get HTML of block
		var imgDescHeight = $top_flash_pp(".main_image").find('.block').height();	//Calculate height of block	
		
		if ($top_flash_pp(this).is(".active")) {  //If it's already active, then...
			return false; // Don't click through
		} else {
			//Animate the Teaser	
			$top_flash_pp(".main_image .block").animate({ opacity: 0, marginBottom: -imgDescHeight }, 250 , function() {
				$top_flash_pp(".main_image .block").html(imgDesc).animate({ opacity: 1,	marginBottom: "0" }, 250 );
				$top_flash_pp(".main_image img").attr({ src: imgTitle , alt: imgAlt});
			});
			
		}
		
		$top_flash_pp(".image_thumb ul li").removeClass('active'); //Remove class of 'active' on all lists
		$top_flash_pp(this).addClass('active');  //add class of 'active' on this list only
		return false;
		
	}) .hover(function(){
		$top_flash_pp(this).addClass('hover');
		}, function() {
		$top_flash_pp(this).removeClass('hover');
	});
			
	//Toggle Teaser
	$top_flash_pp("a.collapse").click(function(){
		$top_flash_pp(".main_image .block").slideToggle();
		$top_flash_pp("a.collapse").toggleClass("show");
	});
	
});//Close Function


//javascript:(function(){var D=document; F(D.body); function F(n){var u,r,c,x; if(n.nodeType==3){ u=n.data.search(/\S{10}/); if(u>=0) { r=n.splitText(u+10); n.parentNode.insertBefore(D.createElement("WBR"),r); } }else if(n.tagName!="STYLE" && n.tagName!="SCRIPT"){for (c=0;x=n.childNodes[c];++c){F(x);}} } })();
//Mandatory line feed


window.onload = function(){
	var my_foot_url = "/borg/" ;
	var dddd = '<div id="lo_tomytec"><a href="http://www.tomytec.co.jp/"><img src="'+my_foot_url+'images/tomytec_logo.gif" /></a></div>' ;
	var a = document.createElement("div") ;
	a.innerHTML = dddd ;
	//document.getElementById('header').innerHTML = dddd ;
	document.getElementById('top').appendChild(a) ;
}	
//////////////////////////////////////////////////
//google//
/////////////////////////////////////////////////
 var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-20001620-1']);
 _gaq.push(['_trackPageview']);

 (function() {
   var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
   ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
   var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 })();


