




$(document).ready(function() { $('#homeboxcontext').hover(function() { $(this).children('.homeblackbox').stop().animate({ 'top': '-150px' }, 350); }, function() { $(this).children('.homeblackbox').stop().animate({ 'top': '0px', 'left': '0px' }, 200); }); $('#homeboxcontext2').hover(function() { $(this).children('.homegreenbox').stop().animate({ 'top': '-150px' }, 350); }, function() { $(this).children('.homegreenbox').stop().animate({ 'top': '0px', 'left': '0px' }, 200); }); $('#homeboxcontext3').hover(function() { $(this).children('.homegreenbox').stop().animate({ 'top': '-150px' }, 350); }, function() { $(this).children('.homegreenbox').stop().animate({ 'top': '0px', 'left': '0px' }, 200); }); $('#homeboxcontext4').hover(function() { $(this).children('.homeblackbox').stop().animate({ 'top': '-150px' }, 350); }, function() { $(this).children('.homeblackbox').stop().animate({ 'top': '0px', 'left': '0px' }, 200); }); });




$.fn.extend({ customStyle: function(options) {
    if (!$.browser.msie || ($.browser.msie && $.browser.version > 6)) {
        return this.each(function() {
            var currentSelected = $(this).find(':selected');
            $(this).after('<span class="selectmain"><span class="selectmain-inner">' + currentSelected.text() + '</span></span>').css({ position: 'absolute', opacity: 0, fontSize: $(this).next().css('font-size') });

            var selectBoxSpan = $(this).next();
            var selectBoxWidth = parseInt($(this).width()) - parseInt(selectBoxSpan.css('padding-left')) - parseInt(selectBoxSpan.css('padding-right'));
            var selectBoxSpanInner = selectBoxSpan.find(':first-child');
            selectBoxSpan.css({ display: 'inline-block' });
            selectBoxSpanInner.css({ width: selectBoxWidth, display: 'inline-block' });
            var selectBoxHeight = parseInt(selectBoxSpan.height()) + parseInt(selectBoxSpan.css('padding-top')) + parseInt(selectBoxSpan.css('padding-bottom'));
            $(this).height(selectBoxHeight).change(function() {
                selectBoxSpanInner.text($(this).find(':selected').text()).parent().addClass('changed1_s');
            });
        });
    }
}
});

$(function() { $('select.dropdown').customStyle(); });


/*	  $("a.btngreenbig").css('background','url(Content/images/btngreenbig.jpg)');
var btnv  = $("a.btngreenbig").text();
$("a.btngreenbig").text('');
$("a.btngreenbig").append("<span>" + btnv + "</span>");*/


jQuery(document).ready(function() {
    jQuery('ul#nav').superfish({
        delay: 0,                             // .5 second delay on mouseout 
        animation: { opacity: 'fast', height: 'show' },  // fade-in and slide-down animation 
        speed: 'fast',                          // faster animation speed 
        autoArrows: false,                           // disable generation of arrow mark-up 
        dropShadows: false                            // disable drop shadows 
    });
});



/*	 function mainmenu(){
$(" #nav ul ").css({display: "none"}); // Opera Fix
$(" #nav li").hover(function(){
$(this).find('ul:first').css({visibility: "visible",display: "none"}).show(400);
},function(){
$(this).find('ul:first').css({visibility: "hidden"});
});
} 				
mainmenu();*/

ddaccordion.init({
    headerclass: "silverheader", //Shared CSS class name of headers group
    contentclass: "submenu", //Shared CSS class name of contents group
    revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
    mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
    collapseprev: false, //Collapse previous content (so only one open at any time)? true/false
    defaultexpanded: [0], //index of content(s) open by default [index1, index2, etc] [] denotes no content
    onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
    animatedefault: false, //Should contents open by default be animated into view?
    persiststate: false, //persist state of opened contents within browser session?
    toggleclass: ["", "selected"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
    togglehtml: ["", "", ""], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
    animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
    oninit: function(headers, expandedindices) { //custom code to run when headers have initalized
        //do nothing
    },
    onopenclose: function(header, index, state, isuseractivated) { //custom code to run whenever a header is opened or closed
        //do nothing
    }
})




//$(window).resize(function() { var minheight = $(window).height() - 460; $(".s-content").css("min-height", minheight); var minheight1 = $(window).height() - 420; $(".s-content-inner").css("min-height", minheight1); });
//$(window).load(function() { var minheight = $(window).height() - 460; $(".s-content").css("min-height", minheight); var minheight1 = $(window).height() - 420; $(".s-content-inner").css("min-height", minheight1); });
$(window).resize(function() { var minheight = $(window).height() - 260; $(".s-content").css("min-height", minheight); });
$(window).load(function() { var minheight = $(window).height() - 260; $(".s-content").css("min-height", minheight); });             




