//home page slider
$(document).ready(function(){
    var rttheme_effect_options = "scrollUp";
    var rttheme_slider_time_out = "5000";
    var rttheme_slider_numbers = "true";

    if(rttheme_slider_numbers=='true') 	{
        var numbers="#numbers";
    }
    $('#slider_area').cycle({
        fx:    rttheme_effect_options,
        easing: 'backout',
        cleartype:  1,
        timeout: rttheme_slider_time_out ,
        pager:  numbers,
        pagerAnchorBuilder: function(idx) {
            return '<li><a href="#" title="">&nbsp;</a></li>';
        }
    });

});
//navigation
$(document).ready(function(){
    ddsmoothmenu.init({
        mainmenuid: "dropdown_menu", //menu DIV id
        orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
        classname: 'dropdown', //class added to menu's outer DIV
        //customtheme: ["#1c5a80", "#18374a"],
        contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
    })
});

//hack for ie linked images border 
$(document).ready(function(){
    var all_images = $("#content img");
    var all_images_links = all_images.parent();
    all_images_links.addClass("no_border");
});


//sub menu effect
$(document).ready(function(){
    var sub_menu_link= $("#sub_menu li a");
    sub_menu_link.mouseover(
        function(){

            $(this).stop().animate({
                paddingLeft : 20

            }, 20);

        }).mouseout(function(){
        $(this).stop().animate({
            paddingLeft : 0
        }, 200 );
    });
});

