/* -----------------------------------------------------------------------
Collapse/Expand content sections for Nav Banner ------------------------- */
function div_collapse_expand_script(param_div_id) {
var new_id = 'a_' + param_div_id;
if((document.getElementById(param_div_id).style.display.length == 0) ||
(document.getElementById(param_div_id).style.display == 'block')) {
document.getElementById(param_div_id).style.display = 'none';
document.getElementById(new_id).className = 'general_content_collapse';
}
else {
document.getElementById(param_div_id).style.display = 'block';
document.getElementById(new_id).className = 'general_content_expand';
}
}
$(function(){
/* -----------------------------------------------------------------------
Submenu Rollovers / Find btn ------------------------------------------ */
$("a", "ul#submenu li div.withsub").hover(
function(){ $(this).parent("div").addClass("hover"); },
function(){ $(this).parent("div").removeClass("hover"); }
);
$("a", "ul.links li").hover(
function(){ $(this).parent("li").addClass("hover"); },
function(){ $(this).parent("li").removeClass("hover"); }
)
/* -----------------------------------------------------------------------
Remove default value on Focus ----------------------------------------- */
$("input[@type*='text'][@title]")
.bind("focus",function(){ if(this.value==this.title){ this.value=""; } })
.bind("blur",function(){ if(this.value==""){ this.value=this.title; } });
/* -----------------------------------------------------------------------
Box Rounded Corner ---------------------------------------------------- */
$('.box', '#content').append('');
/* -----------------------------------------------------------------------
Fixe IE6 Bug with ---------------------------------------------- */
$('abbr', 'table.tb_listing td').each(function(){
$(this).after('');
$(this).appendTo($(this).siblings('span.ieFix'));
});
/* -----------------------------------------------------------------------
FAQ ------------------------------------------------------------------- */
$("a","dl.faq dt").bind("click", function(){
$(this).parent("dt").toggleClass("open");
$(this).parent("dt").next("dd").toggle();
$(this).parent("dt").next("dd").toggleClass("open");
if($(this).children("span").html()=="+ "){
$(this).children("span").html("− ");
}else{
$(this).children("span").html("+ ");
}
});
/* -----------------------------------------------------------------------
Expandable ------------------------------------------------------------ */
$("a","ul.list_expandable li").bind("click", function(){
$(this).next("ul").toggle();
$(this).next("ul").toggleClass("open");
if($(this).children("span").html()=="+ "){
$(this).removeClass("b_plus").addClass("b_minus");
$(this).children("span").html("− ");
}else{
$(this).removeClass("b_minus").addClass("b_plus");
$(this).children("span").html("+ ");
}
});
/* -----------------------------------------------------------------------
Row all clickble on listing ------------------------------------------- */
$("tr:not(.sep)","tbody.all_clickable").hover(
function () { $(this).children("td").addClass("hover"); },
function () { $(this).children("td").removeClass("hover"); }
);
/* -----------------------------------------------------------------------
Dropdowns ------------------------------------------------------------- */
$(".b_dropdown", "#nav_sitemap").bind("click",function(){
display = $(this).siblings("ul.dropdown").css("display");
$(".b_dropdown").removeClass("open");
$("ul.dropdown").hide();
if(display=="block"){
$(this).siblings("ul.dropdown").hide();
$(this).removeClass("open");
}else{
$(this).siblings("ul.dropdown").show();
$(this).addClass("open");
}
});
});