$(document).ready(function(){

	$(".ea01 > a").hover(function(){	lnks(".ea01",1);	},	function(){	lnks(".ea01",2);	}	);
	$(".ea02 > a").hover(function(){	lnks(".ea02",1);	},	function(){	lnks(".ea02",2);	}	);
	$(".fls01 > a").hover(function(){	lnks(".fls01",1);	},	function(){	lnks(".fls01",2);	}	);
	$(".fls02 > a").hover(function(){	lnks(".fls02",1);	},	function(){	lnks(".fls02",2);	}	);
	$(".fls03 > a").hover(function(){	lnks(".fls03",1);	},	function(){	lnks(".fls03",2);	}	);
	$(".mbl01 > a").hover(function(){	lnks(".mbl01",1);	},	function(){	lnks(".mbl01",2);	}	);
	$(".kip01 > a").hover(function(){	lnks(".kip01",1);	},	function(){	lnks(".kip01",2);	}	);

	$("#srvcbnrblck > ul > li > a > img").hover(function(){
			var bnrimgsrc = $(this).attr('src');
			$(this).attr('src',bnrimgsrc.replace('.png', '_ov.png'));
		},
		function(){
			var bnrimgsrc = $(this).attr('src');
			$(this).attr('src',bnrimgsrc.replace('_ov.png', '.png'));
		}
	);

	$("#flets01 > dl > dt > a > img").hover(function(){
			bnrdtlmn("#flets01 > dl > dt > a > img", 1, 0);
			bnrdtllnks("#flets01 > dl > dd > a", 1, 0);
		},
		function(){
			bnrdtlmn("#flets01 > dl > dt > a > img", 0, 0);
			bnrdtllnks($("#flets01 > dl > dd > a"), 0, 0);
		}
	);

	$("#flets02 > dl > dt > a > img").hover(function(){
			bnrdtlmn("#flets02 > dl > dt > a > img", 1, 0);
			bnrdtllnks("#flets02 > dl > dd > a", 1, 0);
		},
		function(){
			bnrdtlmn("#flets02 > dl > dt > a > img", 0, 0);
			bnrdtllnks($("#flets02 > dl > dd > a"), 0, 0);
		}
	);

	$("#fletsplus > dl > dt > a > img").hover(function(){
			bnrdtlmn("#fletsplus > dl > dt > a > img", 1, 1);
			bnrdtllnks("#fletsplus > dl > dd > a", 1, 1);
		},
		function(){
			bnrdtlmn("#fletsplus > dl > dt > a > img", 0, 1);
			bnrdtllnks($("#fletsplus > dl > dd > a"), 0, 1);
		}
	);

	$("#flets > dl > dt > a > img").hover(function(){
			bnrdtlmn("#flets > dl > dt > a > img", 1, 0);
			bnrdtllnks("#flets > dl > dd > a", 1, 0);
		},
		function(){
			bnrdtlmn("#flets > dl > dt > a > img", 0, 0);
			bnrdtllnks($("#flets > dl > dd > a"), 0, 0);
		}
	);

	$("#mobile > dl > dt > a > img").hover(function(){
			bnrdtlmn("#mobile > dl > dt > a > img", 1, 0);
			bnrdtllnks("#mobile > dl > dd > a", 1, 0);
		},
		function(){
			bnrdtlmn("#mobile > dl > dt > a > img", 0, 0);
			bnrdtllnks($("#mobile > dl > dd > a"), 0, 0);
		}
	);

	$("#adslb > dl > dt > a > img").hover(function(){
			bnrdtlmn("#adslb > dl > dt > a > img", 1, 1);
			bnrdtllnks("#adslb > dl > dd > a", 1, 1);
		},
		function(){
			bnrdtlmn("#adslb > dl > dt > a > img", 0, 1);
			bnrdtllnks($("#adslb > dl > dd > a"), 0, 1);
		}
	);

	$("#flets01 > dl > dd > a").hover(function(){
			bnrdtlmn("#flets01 > dl > dt > a > img", 1, 0);
			bnrdtllnks("#flets01 > dl > dd > a", 1, 0);
		},
		function(){
			bnrdtlmn("#flets01 > dl > dt > a > img", 0, 0);
			bnrdtllnks($("#flets01 > dl > dd > a"), 0, 0);
		}
	);

	$("#flets02 > dl > dd > a").hover(function(){
			bnrdtlmn("#flets02 > dl > dt > a > img", 1, 0);
			bnrdtllnks("#flets02 > dl > dd > a", 1, 0);
		},
		function(){
			bnrdtlmn("#flets02 > dl > dt > a > img", 0, 0);
			bnrdtllnks($("#flets02 > dl > dd > a"), 0, 0);
		}
	);

	$("#fletsplus > dl > dd > a").hover(function(){
			bnrdtlmn("#fletsplus > dl > dt > a > img", 1, 1);
			bnrdtllnks("#flfletsplusets02 > dl > dd > a", 1, 1);
		},
		function(){
			bnrdtlmn("#fletsplus > dl > dt > a > img", 0, 1);
			bnrdtllnks($("#fletsplus > dl > dd > a"), 0, 1);
		}
	);

	$("#flets > dl > dd > a").hover(function(){
			bnrdtlmn("#flets > dl > dt > a > img", 1, 0);
			bnrdtllnks("#flets > dl > dd > a", 1, 0);
		},
		function(){
			bnrdtlmn("#flets > dl > dt > a > img", 0, 0);
			bnrdtllnks($("#flets > dl > dd > a"), 0, 0);
		}
	);

	$("#adslb > dl > dd > a").hover(function(){
			bnrdtlmn("#adslb > dl > dt > a > img", 1, 1);
			bnrdtllnks("#adslb > dl > dd > a", 1, 1);
		},
		function(){
			bnrdtlmn("#adslb > dl > dt > a > img", 0, 1);
			bnrdtllnks($("#adslb > dl > dd > a"), 0, 1);
		}
	);

	$("#mobile > dl > dd > a").hover(function(){
			bnrdtlmn("#mobile > dl > dt > a > img", 1, 0);
			bnrdtllnks("#mobile > dl > dd > a", 1, 0);
		},
		function(){
			bnrdtlmn("#mobile > dl > dt > a > img", 0, 0);
			bnrdtllnks($("#mobile > dl > dd > a"), 0, 0);
		}
	);

	function bnrdtlmn(id,str,flg) {
		var bnrimgsrc = $(id).attr('src');
		if ( flg == 1 )	var ex = ".gif";
		else	var ex = ".jpg";
		if ( str == 1 ) $(id).attr('src',bnrimgsrc.replace(ex, '_ov'+ex));
		else $(id).attr('src',bnrimgsrc.replace('_ov'+ex, ex));
	}

	function bnrdtllnks(id,str) {
		if ( str == 1 ) var bgimgsrc="images_b/campbnr_btn_ov.png";
		else var bgimgsrc="images_b/campbnr_btn.png";
		$(id).attr('style','background: url('+bgimgsrc+') no-repeat');
	}

	function lnks(id,str) {
		var imgsrc = $(id+" > a > img").attr('src');
		if ( str == 1 ) {
			$(id+" > a > img").attr('src',imgsrc.replace('.png', '_ov.png'));
			$(id+" > a").css("text-decoration", "none");
		} else {
			$(id+" > a > img").attr('src',imgsrc.replace('_ov.png', '.png'));
			$(id+" > a").css("text-decoration", "underline");
		}
	}
	
	var limitTimer = setTimeout(function(){$('#bookmark').animate({bottom: '0px'}, "slow" );},2000);
	$("p#close").click(function(){
		$('#bookmark').animate({bottom: '-36px'}, "slow",function(){
			$('#bookmark_open').animate({bottom: '0'}, "slow");
		} );
	} );
	
	$("#bookmark_open > .inner > p").click(function(){
		$('#bookmark_open').animate({bottom: '-36px'}, "slow", function(){
			$('#bookmark').animate({bottom: '0'}, "slow" );
		} );
	} );
	

});




