/* Function which change style of ordinary select */ function reselect( select, addclass ) { (function ( $ ) { addclass = typeof( addclass ) != 'undefined' ? addclass : ''; $( select ).css( "display", "none" ); $( select ).wrap( '
' ); var sel_option = ''; $( select ).each( function () { if ( ( $( this ).children( 'optgroup' ).attr( 'label' ) ) != undefined ) { /* For select which contains option group */ var sel_list = ''; $( this ).children( 'optgroup' ).each( function () { var optgroup = ''; $( this ).children( 'option' ).each( function () { optgroup = optgroup + '
' + $( this ).html() + '
'; } ); sel_list = sel_list + '
' + $( this ).attr( 'label' ) + '' + optgroup + '
'; } ); sel_option = $( this ).children( 'optgroup' ).children( 'option:selected' ).text(); } else { /* For select without option group */ var sel_list = ''; $( this ).children( 'option' ).each( function () { if ( $( this ).parent( 'select' ).attr( 'id' ) == 'cat' ) { /* Selects for category dropdown menu */ sel_list = sel_list + '
' + $( this ).html() + '
'; } else { if ( ( $( this ).parent( 'select' ) ).attr( 'name' ) == 'archive-dropdown' ) { /* Selects for archive dropdown menu */ sel_list = sel_list + '
' + $( this ).html() + '
'; } else if ( ( $( this ).parent( 'select' ) ).attr( 'name' ) == 'mltlngg_change_display_lang' ) { /* Selects for multilanguage switcher dropdown menu */ sel_list = sel_list + '
' + $( this ).html() + '
'; } else { /* Ordinary selects */ sel_list = sel_list + '
' + $( this ).html() + '
'; } } } ); sel_option = $( this ).children( 'option:selected' ).text(); } var sel = '
' + '
' + '
' + sel_option + '
' + '
' + '
' + sel_list + '
' + '
'; $( this ).before( sel ); } ); })( jQuery ); } /* End of reselect */ /* Function style for input [type="file"] */ function styleforinputfile( input ) { (function ( $ ) { $( ':file' ).wrap( '
' ); $( '.wrapfile' ).wrap( '
' ); if ( !(($.browser.msie) && ($.browser.version <= '9.0')) ) { $( '.wrapfile input[type="file"]' ).css( { "opacity": "0", "font-size": "34px", "float": "left", "padding": "0px", "border": "none", "cursor": "pointer", "width": "440px" } ); } else { $( '.wrapfile input[type="file"]' ).css( { "opacity": "0", "font-size": "34px", "float": "left", "padding": "0px", "border": "none", "cursor": "pointer", "width": "225px" } ); } $( ':file' ).before( '\ ' ); })( jQuery ); } /* Function which change ordinary radiobuttons and checkboxes */ function radiocheckchange( input ) { (function ( $ ) { if ( !(($.browser.msie) && ($.browser.version < '9.0')) ) { $( ':radio' ).wrap( '