$( document ).ready( function (){
	$('.tab.tab01').show();
	$('.tab01Cont').show();
	$('.tab.tab02').hide();
	$('.tab02Cont').hide();
	$('.tab.tab03').hide();
	$('.tab03Cont').hide();
	$('.tab.tab04').hide();
	$('.tab04Cont').hide();
}
);

$().ready(function(){
function iefix() {
if ($.browser.msie && $.browser.version <= 6){
$('.round').each(function(){
$(this).height('1%');
var roundHeight = $(this).height();
if( roundHeight % 2 == 0){}
else { $(this).height(roundHeight + 1); }
});
}
}
//tab switch//
$('.tab.tab01 a.link02').click(function(){										 
$('.tab.tab01').hide();
$('.tab01Cont').hide();
$('.tab.tab02').show();
$('.tab02Cont').show();
$('.tab.tab03').hide();
$('.tab03Cont').hide();
$('.tab.tab04').hide();
$('.tab04Cont').hide();
iefix();
});

$('.tab.tab01 a.link03').click(function(){										 
$('.tab.tab01').hide();
$('.tab01Cont').hide();
$('.tab.tab02').hide();
$('.tab02Cont').hide();
$('.tab.tab03').show();
$('.tab03Cont').show();
$('.tab.tab04').hide();
$('.tab04Cont').hide();
iefix();
});

$('.tab.tab01 a.link04').click(function(){										 
$('.tab.tab01').hide();
$('.tab01Cont').hide();
$('.tab.tab02').hide();
$('.tab02Cont').hide();
$('.tab.tab03').hide();
$('.tab03Cont').hide();
$('.tab.tab04').show();
$('.tab04Cont').show();
iefix();
});

$('.tab.tab02 a.link01').click(function(){										 
$('.tab.tab01').show();
$('.tab01Cont').show();
$('.tab.tab02').hide();
$('.tab02Cont').hide();
$('.tab.tab03').hide();
$('.tab03Cont').hide();
$('.tab.tab04').hide();
$('.tab04Cont').hide();
iefix();
});

$('.tab.tab02 a.link03').click(function(){										 
$('.tab.tab01').hide();
$('.tab01Cont').hide();
$('.tab.tab02').hide();
$('.tab02Cont').hide();
$('.tab.tab03').show();
$('.tab03Cont').show();
$('.tab.tab04').hide();
$('.tab04Cont').hide();
iefix();
});

$('.tab.tab02 a.link04').click(function(){										 
$('.tab.tab01').hide();
$('.tab01Cont').hide();
$('.tab.tab02').hide();
$('.tab02Cont').hide();
$('.tab.tab03').hide();
$('.tab03Cont').hide();
$('.tab.tab04').show();
$('.tab04Cont').show();
iefix();
});

$('.tab.tab03 a.link01').click(function(){										 
$('.tab.tab01').show();
$('.tab01Cont').show();
$('.tab.tab02').hide();
$('.tab02Cont').hide();
$('.tab.tab03').hide();
$('.tab03Cont').hide();
$('.tab.tab04').hide();
$('.tab04Cont').hide();
iefix();
});

$('.tab.tab03 a.link02').click(function(){										 
$('.tab.tab01').hide();
$('.tab01Cont').hide();
$('.tab.tab02').show();
$('.tab02Cont').show();
$('.tab.tab03').hide();
$('.tab03Cont').hide();
$('.tab.tab04').hide();
$('.tab04Cont').hide();
iefix();
});

$('.tab.tab03 a.link04').click(function(){										 
$('.tab.tab01').hide();
$('.tab01Cont').hide();
$('.tab.tab02').hide();
$('.tab02Cont').hide();
$('.tab.tab03').hide();
$('.tab03Cont').hide();
$('.tab.tab04').show();
$('.tab04Cont').show();
iefix();
});

$('.tab.tab04 a.link01').click(function(){										 
$('.tab.tab01').show();
$('.tab01Cont').show();
$('.tab.tab02').hide();
$('.tab02Cont').hide();
$('.tab.tab03').hide();
$('.tab03Cont').hide();
$('.tab.tab04').hide();
$('.tab04Cont').hide();
iefix();
});

$('.tab.tab04 a.link02').click(function(){										 
$('.tab.tab01').hide();
$('.tab01Cont').hide();
$('.tab.tab02').show();
$('.tab02Cont').show();
$('.tab.tab03').hide();
$('.tab03Cont').hide();
$('.tab.tab04').hide();
$('.tab04Cont').hide();
iefix();
});

$('.tab.tab04 a.link03').click(function(){										 
$('.tab.tab01').hide();
$('.tab01Cont').hide();
$('.tab.tab02').hide();
$('.tab02Cont').hide();
$('.tab.tab03').show();
$('.tab03Cont').show();
$('.tab.tab04').hide();
$('.tab04Cont').hide();
iefix();
});


if ($.browser.msie && $.browser.version <= 6){
DD_belatedPNG.fix('.pfix');
}



//End of doccument ready ////////////////////////////////////////
});

// Roll over ////////////////////////////////////////
PEPS.rollover.init();
PEPS = {};
PEPS.rollover = {
init: function(){
this.preload();

$(".over").hover(
function () { $(this).attr( 'src', PEPS.rollover.newimage($(this).attr('src')) ); },
function () { $(this).attr( 'src', PEPS.rollover.oldimage($(this).attr('src')) ); }
);},

preload: function(){
$(window).bind('load', function() {
$('.over').each( function( key, elm ) { $('<img>').attr( 'src', PEPS.rollover.newimage( $(this).attr('src') ) ); });
$('.idx img').each( function( key, elm ) { $('<img>').attr( 'src', PEPS.rollover.newimage( $(this).attr('src') ) ); });
$('.idx2 img').each( function( key, elm ) { $('<img>').attr( 'src', PEPS.rollover.newimage( $(this).attr('src') ) ); });
});},

newimage: function( src ){
return src.substring( 0, src.search(/(\.[a-z]+)$/) ) + '_over' + src.match(/(\.[a-z]+)$/)[0];
},

oldimage: function( src ){
return src.replace(/_over\./, '.');
}
};
// Roll over end ////////////////////////////////////////
