скачать книгу самая лучшая свадьба

скачать книгу самая лучшая свадьба

шнековые соковыжималки москве

/* * Start of Javascript for the Counterize plugin */ //a function to get an element by its id regardless of the used browser function counterize_getElementByIdUniversal( id ) { var elem; if( document.getElementById ) { elem = document.getElementById( id ); } else { elem = document.all[ id ]; } return elem; } //toggle folding of corresponding ID function counterize_fold( sourceElemId, targetElemId ) { var source = counterize_getElementByIdUniversal( sourceElemId ); var target = counterize_getElementByIdUniversal( targetElemId ); if( target && source ) { if( target.className == "collapsed" ) { target.className = "expanded"; source.innerHTML = "[ - ]"; } else { target.className = "collapsed"; source.innerHTML = "[ + ]"; } } } // function counterize_conf( url ) { if( confirm( `Are you sure that you want to delete this entry?` ) ) { self.location.href = url; } } //Add filter data to the specified field function counterize_add_filter( data, filter_field_name ) { var filter_field = counterize_getElementByIdUniversal( filter_field_name ); if( filter_field ) { if( filter_field.value != `` ) { var tmp = filter_field.value + `||`; if( tmp.indexOf( data + `||` ) < 0 ) { filter_field.value += `||` + data; } else { alert( `This filter is already set!` ); } } else { filter_field.value += data; } } } //Clear the fields specified in the array `fields` function counterize_clear_filter_form( fields ) { var field; for( var i = 0; i < fields.length; i++ ) { field = counterize_getElementByIdUniversal( fields[i] ); if( field ) { field.value = ""; } } } // // by Nannette Thacker // http://www.shiningstar.net // function counterize_check_all( field ) { for( i = 0; i < field.length; i++ ) { field[i].checked = true ; } } function counterize_uncheck_all( field ) { for( i = 0; i < field.length; i++ ) { field[i].checked = false ; } } /* Behaviour v1.1 by Ben Nolan, June 2005. Based largely on the work of Simon Willison (see comments by Simon below). Description: Uses css selectors to apply javascript behaviours to enable unobtrusive javascript in html documents. Usage: var myrules = { `b.someclass` : function(element){ element.onclick = function(){ alert(this.innerHTML); } }, ` someid u` : function(element){ element.onmouseover = function(){ this.innerHTML = "BLAH!"; } } }; Behaviour.register(myrules); // Call Behaviour.apply() to re-apply the rules (if you // update the dom, etc). License: This file is entirely BSD licensed. More information: http://ripcord.co.nz/behaviour/ */ var Behaviour = { list: new Array, register: function( sheet ) { Behaviour.list.push( sheet ); }, start: function() { Behaviour.addLoadEvent( function() { Behaviour.apply(); } ); }, apply: function() { for( h = 0; sheet = Behaviour.list[h]; h++ ) { for( selector in sheet ) { list = document.getElementsBySelector( selector ); if( ! list ) { continue; } for( i = 0; element = list[i]; i++ ) { sheet[selector]( element ); } } } }, addLoadEvent: function( func ) { var oldonload = window.onload; if( typeof window.onload != `function` ) { window.onload = func; } else { window.onload = function() { oldonload(); func(); } } } } Behaviour.start(); /* The following code is Copyright (C) Simon Willison 2004. document.getElementsBySelector(selector) - returns an array of element objects from the current document matching the CSS selector. Selectors can contain element names, class names and ids and can be nested. For example: elements = document.getElementsBySelect(`div main p a.external`) Will return an array of all `a` elements with `external` in their class attribute that are contained inside `p` elements that are contained inside the `div` element which has id="main" New in version 0.4: Support for CSS2 and CSS3 attribute selectors: See http://www.w3.org/TR/css3-selectors/ attribute-selectors Version 0.4 - Simon Willison, March 25th 2003 -- Works in Phoenix 0.5, Mozilla 1.