$(function(){

//branding links effects
$('#links_rental').remove();
var links=$('#branding li').not('#links_corporate');
var bL = setTimeout(function(){
		links.find('a').stop().animate({'top':'-39px'},500,'swing');
		clearTimeout(bL);},2000);
links.hover(
	function(){$(this).find('a').stop().animate({top:0},300,'swing');},
	function(){$(this).find('a').stop().animate({top:'-39px'},300,'swing');}
);

// set fade effects
$('#nav_main li').fadeFx(300,1,700,0,'a');
$('#nav_local li,#sidebar .widget_categories ul li').fadeFx(150,1,900,0,'a');



if(body_id == "shop"){
	$("#occupation-d1,#occupation-d2").attr('disabled','disabled');
	$("input:radio[name*='occupation']").not("input:radio#occupation1").click(function(){
			$("#occupation-d1").attr('disabled','disabled');
		});
	$("input:radio#occupation1").click(function(){
			$("#occupation-d1").removeAttr('disabled');
		});
	$("input:radio[name*='occupation']").not("input:radio#occupation2").click(function(){
			$("#occupation-d2").attr('disabled','disabled');
		});
	$("input:radio#occupation2").click(function(){
			$("#occupation-d2").removeAttr('disabled');
		});
}


//exLink
exLink = $('a[href*="http"]')
		.not('.pagetop a')
		.not('a[href*="localhost"]')
		.not('a[href*="10.0"]')
		.not('a[href*="onixcorporate"]')
		.not('a[href*="30061"]')
		.not('a[href*="onix.co.jp"]')
		.not('#branding a');
$(exLink).addClass("exLink");
$("a.exLink").attr("target","_blank").screenshots();





//index_layout
if(body_id == "index"){

	getRSS('#index_news','/news/feed',8,35);

	var subH = $("#index_sub").height(); 
	var mainH = $("#index_main").height(); 
	if(subH > mainH){$("#index_sub").addClass("tallest");}
	else{$("#index_main").addClass("tallest");}
}

//set height
var contents = $("#contents")
var contentsH = $(contents).height(); 
var navH = $("#nav").height(); 
$(contents).addClass("tallest");
if(navH > contentsH){$(contents).css({height:navH});}



});





