факультет психология

РњРѕСЏ Живая Страница : РџРѕРёСЃРє#popitmenu{ position: absolute; /*background-color: white;*/ /*border:1px solid black;*/ font: normal 10px Verdana; z-index: 100; visibility: hidden; padding:6px; } #popitmenu a{ text-decoration: none; font-weight: bold; } #popitmenu a:hover{ text-decoration:underline; } .rating { FONT-SIZE: 9px; WIDTH: 85px; FONT-FAMILY: Tahoma, helvetica, sans-serif; HEIGHT: 16px } .unit-rating { PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BACKGROUND: url(http://common.mylivepage.com/global/rating.gif) repeat-x left top; PADDING-BOTTOM: 0px; MARGIN: 0px; WIDTH: 85px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; POSITION: relative; HEIGHT: 16px } .unit-rating LI { PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FLOAT: left; PADDING-BOTTOM: 0px; MARGIN: 0px; TEXT-INDENT: -90000px; PADDING-TOP: 0px } .unit-rating LI A { PADDING-RIGHT: 0px; DISPLAY: block; PADDING-LEFT: 0px; Z-INDEX: 17; PADDING-BOTTOM: 0px; WIDTH: 17px; TEXT-INDENT: -9000px; PADDING-TOP: 0px; POSITION: absolute; HEIGHT: 16px; TEXT-DECORATION: none } .unit-rating_not { PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BACKGROUND: url(http://common.mylivepage.com/global/rating.gif) repeat-x left top; PADDING-BOTTOM: 0px; MARGIN: 0px; WIDTH: 85px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; POSITION: relative; HEIGHT: 16px } .unit-rating_not LI { PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FLOAT: left; PADDING-BOTTOM: 0px; MARGIN: 0px; TEXT-INDENT: -90000px; PADDING-TOP: 0px } .unit-rating_not LI A { PADDING-RIGHT: 0px; DISPLAY: block; PADDING-LEFT: 0px; Z-INDEX: 17; PADDING-BOTTOM: 0px; WIDTH: 17px; TEXT-INDENT: -9000px; PADDING-TOP: 0px; POSITION: absolute; HEIGHT: 16px; TEXT-DECORATION: none } .unit-rating LI A:hover { Z-INDEX: 2; BACKGROUND: url(http://common.mylivepage.com/global/rating.gif) left center; LEFT: 0px } .unit-rating A.r1-unit { LEFT: 0px } .unit-rating A.r1-unit:hover { WIDTH: 17px } .unit-rating A.r2-unit { LEFT: 17px } .unit-rating A.r2-unit:hover { WIDTH: 34px } .unit-rating A.r3-unit { LEFT: 34px } .unit-rating A.r3-unit:hover { WIDTH: 51px } .unit-rating A.r4-unit { LEFT: 51px } .unit-rating A.r4-unit:hover { WIDTH: 68px } .unit-rating A.r5-unit { LEFT: 68px } .unit-rating A.r5-unit:hover { WIDTH: 85px } .unit-rating LI.current-rating { DISPLAY: block; Z-INDEX: 1; BACKGROUND: url(http://common.mylivepage.com/global/rating.gif) left bottom; TEXT-INDENT: -9000px; POSITION: absolute; HEIGHT: 16px } .unit-rating_not LI.current-rating { DISPLAY: block; Z-INDEX: 1; BACKGROUND: url(http://common.mylivepage.com/global/rating.gif) left bottom; TEXT-INDENT: -9000px; POSITION: absolute; HEIGHT: 16px } .promo-c1 {background:#eefdd7 url(http://common.mylivepage.com/style43/promo-c1.gif) top left no-repeat;margin-bottom:10px;} .promo-c2 {background:url(http://common.mylivepage.com/style43/promo-c2.gif) top right no-repeat;} .promo-c3 {background:url(http://common.mylivepage.com/style43/promo-c3.gif) bottom right no-repeat;} .promo-c4 {background:url(http://common.mylivepage.com/style43/promo-c4.gif) bottom left no-repeat;} .promo-c4 table td {padding:46px 0px 47px 0px;font-family:arial;line-height:19px;} .promo-c4 a {text-decoration:none;color:f48c04;font-weight:bold;font-size:15px;} .promo-c4 a:hover {text-decoration:underline;} .promo-c4 a img {vertical-align:middle;margin:0px 5px 0px -2px;position:relative;} .promo-c4 .hdr {font-size:16px;font-weight:bold;color:#1fa610;} .promo-c4 a.hdr {display:block;padding-bottom:5px;} .promo-c4 p.under {font-size:16px;display:block;padding-top:13px;margin:0px;} .promo-c4 p.under a {text-decoration:underline;} .promo-baton-cont {clear:both;float:left;} .promo-baton {margin-top:20px;height:63px;float:left;background:#33ae25 url(http://common.mylivepage.com/style43/promo-baton-bg.gif) top left repeat-x;} .promo-baton-left {height:63px;float:left;background:url(http://common.mylivepage.com/style43/promo-baton-left.gif) top left no-repeat;} .promo-baton-right {height:63px;float:left;background:url(http://common.mylivepage.com/style43/promo-baton-right.gif) top right no-repeat;padding:0px 23px;cursor:pointer;cursor:hand;} a.promo-a .promo-baton-right {color:#fff;font-size:26px;text-decoration:none !important;} a.promo-a:hover {text-decoration:none !important;} a.promo-a p {margin:0px; padding-top:21px;} td.head_area { background-color:#fff; padding:0px 5px; } td.head_logo { padding-left:10px; } td.head_about { font-size:8pt; padding:0px 45px 0px 25px; } td.head_about a { font-size:8pt; } td.head_about span { display:block; color:#ff8800; margin-bottom:5px; } td.head_about span strong { font-size:14pt; font-weight:bold; } td.head_stat { font-size:8pt; padding:0px 45px; } td.onsite { height:25px; background:url('http://common.mylivepage.com/style43/onsite_l.gif') top left no-repeat; } td.onsite a { display:block; line-height:25px; color:#fff; text-decoration:none; font-size:8pt; padding:0px 10px; background:url('http://common.mylivepage.com/style43/onsite_r.gif') top right no-repeat; } td.lang { height:58px; width:245px; background:url('http://common.mylivepage.com/style43/lang_l.gif') top left no-repeat; } td.lang span { display:block; height:58px; font-size:8pt; padding:10px; background:url('http://common.mylivepage.com/style43/lang_r.gif') top right no-repeat; } span.window_minimize { display:block; margin-left:5px; } span.window_minimize font { display:block; } span.window_close { display:block; margin-left:5px; } span.window_close font { display:block; } span.window_edit { display:block; margin-left:5px; } span.window_edit font { display:block; } td.mlp_window_controls { padding:3px; background-color:#99cc33; } td.mlp_window_controls a { color:#fff; } td.mlp_popup_controls { padding:3px; background-color:#99cc33; } td.mlp_popup_controls a { color:#fff; } ul.mlp_tab_block { list-style-type:none; margin:0; padding:0; } li.mlp_tab { float:left; margin-right:10px; } li.mlp_tab_active { float:left; margin-right:10px; } li.mlp_tab_active a { font-weight:bold; } span.top_menu_block { display:block; width:100%; text-align:center; margin:20px 0px 0px 20px; height:28px; } span.top_menu_block_inner { display:block; height:28px; text-align:center; } span.top_menu { float:left; margin-right:1px; display:block; height:28px; width:expression("1px"); background:url('http://common.mylivepage.com/style43/topmenu_inactive_r.gif') top right no-repeat; } span.top_menu a { display:block; height:28px; line-height:28px; padding:0px 2px 0px 12px; margin-right:10px; background:url('http://common.mylivepage.com/style43/topmenu_inactive_l.gif') top left no-repeat; } span.top_menu#top_menu_active { float:left; margin-right:1px; display:block; height:28px; width:expression("1px"); background:url('http://common.mylivepage.com/style43/topmenu_active_r.gif') top right no-repeat; } span.top_menu#top_menu_active a { display:block; height:28px; line-height:28px; padding:0px 2px 0px 12px; margin-right:10px; background:url('http://common.mylivepage.com/style43/topmenu_active_l.gif') top left no-repeat; color:#fff; } form { margin:0; padding:0; } span.top_menu, span.top_menu a, span.top_menu#top_menu_active, span.top_menu#top_menu_active a { white-space:nowrap !important; } ul.mlp_tab_block { height:27px; width:100%; background:url('http://common.mylivepage.com/style43/tab_bg.gif') bottom left repeat-x; } li.mlp_tab { display:block; line-height:27px; background:url('http://common.mylivepage.com/style43/tab_l.gif') top left no-repeat; } li.mlp_tab a { display:block; line-height:27px; background:url('http://common.mylivepage.com/style43/tab_r.gif') top right no-repeat; padding:0px 12px; } li.mlp_tab_active { display:block; line-height:27px; background:url('http://common.mylivepage.com/style43/tab_active_l.gif') top left no-repeat; } li.mlp_tab_active a { display:block; line-height:27px; background:url('http://common.mylivepage.com/style43/tab_active_r.gif') top right no-repeat; padding:0px 12px; } li.mlp_tab a, li.mlp_tab_active a { color:#454545; text-decoration:none; } html body { margin:0px; padding:0px 20px 15px 20px; background-color:#d6d6d6; } body, td, p, a, font { font-family:Arial,Sans-serif; font-size:9pt; } a { color: #004eb8; } a:visited { color: #004eb8; } .InnerHead { BACKGROUND-COLOR: #F1F0F0; COLOR: #000000; line-height:30px; } .OneLine { BACKGROUND-COLOR:#fafafa; } .TwoLine { BACKGROUND-COLOR:#FFFFFF; } .OverLine { BACKGROUND-COLOR:#f6f6f6; } font.error { color: #FF0000; } pre.wiki { border: 1px dashed #9c9c9c; white-space: pre; overflow: auto; padding:10px; } h1{ color: #ff8800; font-weight: normal; margin: 0; padding-bottom:15px; } h2, h3, h4, h5{ color: #ff8800; font-weight: normal; margin: 0; padding-bottom:15px; } h1 { font-size:20pt; } h2 { font-size:16pt; } h1, h2, h3, h4, h5, h6 { border-bottom: none; font-weight: bold; } h3 { font-size:14pt; } h4 { font-size:12pt; } h5 { font-size:10pt; } h6 { font-size:8pt; } table { font-family:Arial,Sans-serif; font-size:9pt; } #QUOTE { font-family:Arial,Sans-serif; font-size: 9pt; color:#454545; background-color:#ffeecc; border:1px solid #ffcc88; padding:10px; } tr.popup_backgound { background: #d6d6d6; } td.navigation_head { font-weight:bold; font-size:11pt; padding-bottom:7px; } td.navigation_block { padding:10px 20px 0px 20px; background-color:#f6f6f6; } div.navigation_item { margin:2px 0px; } div.navigation_item, div.navigation_item a { text-decoration:none; font-weight:bold; color:#454545; } td.login_head { font-weight:bold; font-size:11pt; padding-bottom:7px; } td.login_block { padding:10px 20px 0px 20px; background-color:#f6f6f6; } div.bottom { margin:20px 0px 5px 0px; text-align:center; color:#454545; } div.bottom a { color:#454545; } td.window_controls { padding-top:10px; } td.window_head { padding-top:10px; font-weight:bold; } td.window_head a { font-weight:bold; } td.window_content { padding:10px 0px 0px 0px; } td.top_center_block { padding:0px 30px; } div.top_center_title { font-weight:bold; font-size:12pt; } div.top_center_content { margin-top:20px; } td.top_left_block { padding-left:20px; } td.top_right_block { padding-right:20px; text-align:center; } td.content_head { height:50px; padding:12px 0px; } td.content_head, td.content_head a { font-weight:bold; font-size:12pt; } .tag1, .tag2, .tag3, .tag4, .tag5, .tag6, .tag7, .tag8, .tag9, .tag10 { text-decoration:none; } .tag1:hover, .tag2:hover, .tag3:hover, .tag4:hover, .tag5:hover, .tag6:hover, .tag7:hover, .tag8:hover, .tag9:hover, .tag10:hover { text-decoration:underline; } a.tag1, a.tag2 { color:#006CFF; } a.tag3, a.tag4 { color:#015DDA; } a.tag5, a.tag6 { color:#004eb8; } a.tag7, a.tag8 { color:#00439E; } a.tag9, a.tag10 { color:#013E91; } img.avatar, td.avatar { border:1px solid #d6d6d6; } .my_msg{color:green;padding-bottom:10px} .me_msg{color:blue;padding-bottom:10px} .tab_user{background-color:#eeeeee;padding:2px;margin:1px;cursor:pointer;color:black} .tab_user_h{background-color:#ddddff;padding:2px;margin:1px;cursor:pointer;} .tab_user_n{background-color:#fff086;padding:2px;margin:1px;cursor:pointer;} .pg{padding:2px;border-right:1px solid gray;cursor:pointer;color:black} .pg_h{background-color:#eebbbb;padding:2px;border-right:1px solid gray;cursor:pointer;} /*********************************************** * Pop-it menu- пїЅ Dynamic Drive (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit http://www.dynamicdrive.com/ for full source code ***********************************************/ var defaultMenuWidth="180px"; //set default menu width. var user_arr = new Array(); var user_id; var message_id; var eventX; var eventY; var site_url; var wait_ajax=0; var div_id; var divid_arr = new Array(); var ie5=document.all && !window.opera; var ns6=document.getElementById; if (ie5||ns6) { document.write(''); document.write(''); } function iecompattest(){ return (document.compatMode && document.compatMode.indexOf("CSS")!=-1)? document.documentElement : document.body; }; function send_rate(rate,messageid,authorid,loginid,userid,serviceid,isfirst,sk) { html_url=site_url + '/top_entry?send_rate=do&rate='+rate+'&messageid='+messageid+'&authorid='+authorid+'&loginid='+loginid+'&userid='+userid+'&serviceid='+serviceid+'&isfirst='+isfirst+'&sk='+sk; var myAjax = new Ajax.Request( html_url, { method: 'get', onComplete: delete_array(authorid) }); }; function send_rate_2(rate,messageid,authorid,loginid,userid,serviceid,isfirst,sk,divid,siteurl,ret_rate) { if (typeof divid_arr[divid]!="undefined") return ; if (typeof ret_rate=="undefined") ret_rate=2; html_url=siteurl + '/top_entry?send_rate='+ret_rate+'&rate='+rate+'&messageid='+messageid+'&authorid='+authorid+'&loginid='+loginid+'&userid='+userid+'&serviceid='+serviceid+'&isfirst='+isfirst+'&sk='+sk; div_id=divid; divid_arr[divid]=1; var myAjax = new Ajax.Request( html_url, { method: 'get', onComplete: rate_request }); }; function rate_request(originalRequest) { if(originalRequest.responseText!="") document.getElementById("rateid_"+div_id).innerHTML=originalRequest.responseText; }; function delete_array(authorid) { delete user_arr[authorid]; }; function show_user(userid,messageid,serviceid,url,isfirst) { if (wait_ajax) return false; site_url=url; user_id=userid; message_id=messageid; html_url=url + '/about?get_user_info=' + userid + '&messageid='+messageid+ '&serviceid='+serviceid+ '&isfirst='+isfirst; wait_ajax=1; var myAjax = new Ajax.Request( html_url, { method: 'get', onComplete: showmenu_request }); }; function userinfo_request(userid,messageid,serviceid,url,isfirst,e) { clearhidemenu(); eventX=ie5? event.clientX : e.clientX; eventY=ie5? event.clientY : e.clientY; if (typeof user_arr[userid]=="undefined") { show_userinfo=setTimeout("show_user("+userid+","+messageid+","+serviceid+",'"+url+"',"+isfirst+")",1000); } else { show_userinfo=setTimeout("showmenu("+userid+")",1000); } }; function showmenu_request(originalRequest) { wait_ajax=0; user_arr[user_id]=originalRequest.responseText; showmenu(user_id); }; function showmenu(userid, optWidth){ if (!document.all&&!document.getElementById) return; clearhidemenu(); which=user_arr[userid]; //alert(which); menuobj=ie5? document.all.popitmenu : document.getElementById("popitmenu"); if(typeof menuobj=="undefined") { lost_menuobj=ie5? document.all.if_lost_popitmenu : document.getElementById("if_lost_popitmenu"); lost_menuobj.innerHTML= ''; menuobj=ie5? document.all.popitmenu : document.getElementById("popitmenu"); } menuobj.innerHTML=which; menuobj.style.width=(typeof optWidth!="undefined")? optWidth : defaultMenuWidth; menuobj.contentwidth=menuobj.offsetWidth; menuobj.contentheight=menuobj.offsetHeight; //Find out how close the mouse is to the corner of the window var rightedge=ie5? iecompattest().clientWidth-eventX : window.innerWidth-eventX; var bottomedge=ie5? iecompattest().clientHeight-eventY : window.innerHeight-eventY; //if the horizontal distance isn't enough to accomodate the width of the context menu if (rightedge -1 && navigator.userAgent.indexOf('KHTML') == -1 }, BrowserFeatures: { XPath: !!document.evaluate, ElementExtensions: !!window.HTMLElement, SpecificElementExtensions: (document.createElement('div').__proto__ !== document.createElement('form').__proto__) }, ScriptFragment: ']*>([\u0001-\uFFFF]*?)', JSONFilter: /^\/\*-secure-\s*(.*)\s*\*\/\s*$/, emptyFunction: function() { }, K: function(x) { return x } } var Class = { create: function() { return function() { this.initialize.apply(this, arguments); } } } var Abstract = new Object(); Object.extend = function(destination, source) { for (var property in source) { destination[property] = source[property]; } return destination; } Object.extend(Object, { inspect: function(object) { try { if (object === undefined) return 'undefined'; if (object === null) return 'null'; return object.inspect ? object.inspect() : object.toString(); } catch (e) { if (e instanceof RangeError) return '...'; throw e; } }, toJSON: function(object) { var type = typeof object; switch(type) { case 'undefined': case 'function': case 'unknown': return; case 'boolean': return object.toString(); } if (object === null) return 'null'; if (object.toJSON) return object.toJSON(); if (object.ownerDocument === document) return; var results = []; for (var property in object) { var value = Object.toJSON(object[property]); if (value !== undefined) results.push(property.toJSON() + ': ' + value); } return '{' + results.join(', ') + '}'; }, keys: function(object) { var keys = []; for (var property in object) keys.push(property); return keys; }, values: function(object) { var values = []; for (var property in object) values.push(object[property]); return values; }, clone: function(object) { return Object.extend({}, object); } }); Function.prototype.bind = function() { var __method = this, args = $A(arguments), object = args.shift(); return function() { return __method.apply(object, args.concat($A(arguments))); } } Function.prototype.bindAsEventListener = function(object) { var __method = this, args = $A(arguments), object = args.shift(); return function(event) { return __method.apply(object, [event || window.event].concat(args)); } } Object.extend(Number.prototype, { toColorPart: function() { return this.toPaddedString(2, 16); }, succ: function() { return this + 1; }, times: function(iterator) { $R(0, this, true).each(iterator); return this; }, toPaddedString: function(length, radix) { var string = this.toString(radix || 10); return '0'.times(length - string.length) + string; }, toJSON: function() { return isFinite(this) ? this.toString() : 'null'; } }); Date.prototype.toJSON = function() { return '"' + this.getFullYear() + '-' + (this.getMonth() + 1).toPaddedString(2) + '-' + this.getDate().toPaddedString(2) + 'T' + this.getHours().toPaddedString(2) + ':' + this.getMinutes().toPaddedString(2) + ':' + this.getSeconds().toPaddedString(2) + '"'; }; var Try = { these: function() { var returnValue; for (var i = 0, length = arguments.length; i 0) { if (match = source.match(pattern)) { result += source.slice(0, match.index); result += String.interpret(replacement(match)); source = source.slice(match.index + match[0].length); } else { result += source, source = ''; } } return result; }, sub: function(pattern, replacement, count) { replacement = this.gsub.prepareReplacement(replacement); count = count === undefined ? 1 : count; return this.gsub(pattern, function(match) { if (--count length ? this.slice(0, length - truncation.length) + truncation : this; }, strip: function() { return this.replace(/^\s+/, '').replace(/\s+$/, ''); }, stripTags: function() { return this.replace(/]+>/gi, ''); }, stripScripts: function() { return this.replace(new RegExp(Prototype.ScriptFragment, 'img'), ''); }, extractScripts: function() { var matchAll = new RegExp(Prototype.ScriptFragment, 'img'); var matchOne = new RegExp(Prototype.ScriptFragment, 'im'); return (this.match(matchAll) || []).map(function(scriptTag) { return (scriptTag.match(matchOne) || ['', ''])[1]; }); }, evalScripts: function() { return this.extractScripts().map(function(script) { return eval(script) }); }, escapeHTML: function() { var self = arguments.callee; self.text.data = this; return self.div.innerHTML; }, unescapeHTML: function() { var div = document.createElement('div'); div.innerHTML = this.stripTags(); return div.childNodes[0] ? (div.childNodes.length > 1 ? $A(div.childNodes).inject('', function(memo, node) { return memo+node.nodeValue }) : div.childNodes[0].nodeValue) : ''; }, toQueryParams: function(separator) { var match = this.strip().match(/([^?#]*)(#.*)?$/); if (!match) return {}; return match[1].split(separator || '&').inject({}, function(hash, pair) { if ((pair = pair.split('='))[0]) { var key = decodeURIComponent(pair.shift()); var value = pair.length > 1 ? pair.join('=') : pair[0]; if (value != undefined) value = decodeURIComponent(value); if (key in hash) { if (hash[key].constructor != Array) hash[key] = [hash[key]]; hash[key].push(value); } else hash[key] = value; } return hash; }); }, toArray: function() { return this.split(''); }, succ: function() { return this.slice(0, this.length - 1) + String.fromCharCode(this.charCodeAt(this.length - 1) + 1); }, times: function(count) { var result = ''; for (var i = 0; i < count; i++) result += this; return result; }, camelize: function() { var parts = this.split('-'), len = parts.length; if (len == 1) return parts[0]; var camelized = this.charAt(0) == '-' ? parts[0].charAt(0).toUpperCase() + parts[0].substring(1) : parts[0]; for (var i = 1; i -1; }, startsWith: function(pattern) { return this.indexOf(pattern) === 0; }, endsWith: function(pattern) { var d = this.length - pattern.length; return d >= 0 && this.lastIndexOf(pattern) === d; }, empty: function() { return this == ''; }, blank: function() { return /^\s*$/.test(this); } }); if (Prototype.Browser.WebKit || Prototype.Browser.IE) Object.extend(String.prototype, { escapeHTML: function() { return this.replace(/&/g,'&').replace(//g,'>'); }, unescapeHTML: function() { return this.replace(/&/g,'&').replace(/ 1; }()) Hash.prototype._each = function(iterator) { var cache = []; for (var key in this) { var value = this[key]; if ((value && value == Hash.prototype[key]) || cache.include(key)) continue; cache.push(key); var pair = [key, value]; pair.key = key; pair.value = value; iterator(pair); } }; ObjectRange = Class.create(); Object.extend(ObjectRange.prototype, Enumerable); Object.extend(ObjectRange.prototype, { initialize: function(start, end, exclusive) { this.start = start; this.end = end; this.exclusive = exclusive; }, _each: function(iterator) { var value = this.start; while (this.include(value)) { iterator(value); value = value.succ(); } }, include: function(value) { if (value < this.start) return false; if (this.exclusive) return value < this.end; return value 1 && !((readyState == 4) && this._complete)) this.respondToReadyState(this.transport.readyState); }, setRequestHeaders: function() { var headers = { 'X-Requested-With': 'XMLHttpRequest', 'X-Prototype-Version': Prototype.Version, 'Accept': 'text/javascript, text/html, application/xml, text/xml, */*' }; if (this.method == 'post') { headers['Content-type'] = this.options.contentType + (this.options.encoding ? '; charset=' + this.options.encoding : ''); /* Force "Connection: close" for older Mozilla browsers to work * around a bug where XMLHttpRequest sends an incorrect * Content-length header. See Mozilla Bugzilla #246651. */ if (this.transport.overrideMimeType && (navigator.userAgent.match(/Gecko\/(\d{4})/) || [0,2005])[1] < 2005) headers['Connection'] = 'close'; } // user-defined headers if (typeof this.options.requestHeaders == 'object') { var extras = this.options.requestHeaders; if (typeof extras.push == 'function') for (var i = 0, length = extras.length; i = 200 && this.transport.status 1) { for (var i = 0, elements = [], length = arguments.length; i < length; i++) elements.push($(arguments[i])); return elements; } if (typeof element == 'string') element = document.getElementById(element); return Element.extend(element); } if (Prototype.BrowserFeatures.XPath) { document._getElementsByXPath = function(expression, parentElement) { var results = []; var query = document.evaluate(expression, $(parentElement) || document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null); for (var i = 0, length = query.snapshotLength; i < length; i++) results.push(query.snapshotItem(i)); return results; }; document.getElementsByClassName = function(className, parentElement) { var q = ".//*[contains(concat(' ', @class, ' '), ' " + className + " ')]"; return document._getElementsByXPath(q, parentElement); } } else document.getElementsByClassName = function(className, parentElement) { var children = ($(parentElement) || document.body).getElementsByTagName('*'); var elements = [], child; for (var i = 0, length = children.length; i < length; i++) { child = children[i]; if (Element.hasClassName(child, className)) elements.push(Element.extend(child)); } return elements; }; /*--------------------------------------------------------------------------*/ if (!window.Element) var Element = {}; Element.extend = function(element) { var F = Prototype.BrowserFeatures; if (!element || !element.tagName || element.nodeType == 3 || element._extended || F.SpecificElementExtensions || element == window) return element; var methods = {}, tagName = element.tagName, cache = Element.extend.cache, T = Element.Methods.ByTag; // extend methods for all tags (Safari doesn't need this) if (!F.ElementExtensions) { Object.extend(methods, Element.Methods), Object.extend(methods, Element.Methods.Simulated); } // extend methods for specific tags if (T[tagName]) Object.extend(methods, T[tagName]); for (var property in methods) { var value = methods[property]; if (typeof value == 'function' && !(property in element)) element[property] = cache.findOrStore(value); } element._extended = Prototype.emptyFunction; return element; }; Element.extend.cache = { findOrStore: function(value) { return this[value] = this[value] || function() { return value.apply(null, [this].concat($A(arguments))); } } }; Element.Methods = { visible: function(element) { return $(element).style.display != 'none'; }, toggle: function(element) { element = $(element); Element[Element.visible(element) ? 'hide' : 'show'](element); return element; }, hide: function(element) { $(element).style.display = 'none'; return element; }, show: function(element) { $(element).style.display = ''; return element; }, remove: function(element) { element = $(element); element.parentNode.removeChild(element); return element; }, update: function(element, html) { html = typeof html == 'undefined' ? '' : html.toString(); $(element).innerHTML = html.stripScripts(); setTimeout(function() {html.evalScripts()}, 10); return element; }, replace: function(element, html) { element = $(element); html = typeof html == 'undefined' ? '' : html.toString(); if (element.outerHTML) { element.outerHTML = html.stripScripts(); } else { var range = element.ownerDocument.createRange(); range.selectNodeContents(element); element.parentNode.replaceChild( range.createContextualFragment(html.stripScripts()), element); } setTimeout(function() {html.evalScripts()}, 10); return element; }, inspect: function(element) { element = $(element); var result = ''; }, recursivelyCollect: function(element, property) { element = $(element); var elements = []; while (element = element[property]) if (element.nodeType == 1) elements.push(Element.extend(element)); return elements; }, ancestors: function(element) { return $(element).recursivelyCollect('parentNode'); }, descendants: function(element) { return $A($(element).getElementsByTagName('*')).each(Element.extend); }, firstDescendant: function(element) { element = $(element).firstChild; while (element && element.nodeType != 1) element = element.nextSibling; return $(element); }, immediateDescendants: function(element) { if (!(element = $(element).firstChild)) return []; while (element && element.nodeType != 1) element = element.nextSibling; if (element) return [element].concat($(element).nextSiblings()); return []; }, previousSiblings: function(element) { return $(element).recursivelyCollect('previousSibling'); }, nextSiblings: function(element) { return $(element).recursivelyCollect('nextSibling'); }, siblings: function(element) { element = $(element); return element.previousSiblings().reverse().concat(element.nextSiblings()); }, match: function(element, selector) { if (typeof selector == 'string') selector = new Selector(selector); return selector.match($(element)); }, up: function(element, expression, index) { element = $(element); if (arguments.length == 1) return $(element.parentNode); var ancestors = element.ancestors(); return expression ? Selector.findElement(ancestors, expression, index) : ancestors[index || 0]; }, down: function(element, expression, index) { element = $(element); if (arguments.length == 1) return element.firstDescendant(); var descendants = element.descendants(); return expression ? Selector.findElement(descendants, expression, index) : descendants[index || 0]; }, previous: function(element, expression, index) { element = $(element); if (arguments.length == 1) return $(Selector.handlers.previousElementSibling(element)); var previousSiblings = element.previousSiblings(); return expression ? Selector.findElement(previousSiblings, expression, index) : previousSiblings[index || 0]; }, next: function(element, expression, index) { element = $(element); if (arguments.length == 1) return $(Selector.handlers.nextElementSibling(element)); var nextSiblings = element.nextSiblings(); return expression ? Selector.findElement(nextSiblings, expression, index) : nextSiblings[index || 0]; }, getElementsBySelector: function() { var args = $A(arguments), element = $(args.shift()); return Selector.findChildElements(element, args); }, getElementsByClassName: function(element, className) { return document.getElementsByClassName(className, element); }, readAttribute: function(element, name) { element = $(element); if (Prototype.Browser.IE) { if (!element.attributes) return null; var t = Element._attributeTranslations; if (t.values[name]) return t.values[name](element, name); if (t.names[name]) name = t.names[name]; var attribute = element.attributes[name]; return attribute ? attribute.nodeValue : null; } return element.getAttribute(name); }, getHeight: function(element) { return $(element).getDimensions().height; }, getWidth: function(element) { return $(element).getDimensions().width; }, classNames: function(element) { return new Element.ClassNames(element); }, hasClassName: function(element, className) { if (!(element = $(element))) return; var elementClassName = element.className; if (elementClassName.length == 0) return false; if (elementClassName == className || elementClassName.match(new RegExp("(^|\\s)" + className + "(\\s|$)"))) return true; return false; }, addClassName: function(element, className) { if (!(element = $(element))) return; Element.classNames(element).add(className); return element; }, removeClassName: function(element, className) { if (!(element = $(element))) return; Element.classNames(element).remove(className); return element; }, toggleClassName: function(element, className) { if (!(element = $(element))) return; Element.classNames(element)[element.hasClassName(className) ? 'remove' : 'add'](className); return element; }, observe: function() { Event.observe.apply(Event, arguments); return $A(arguments).first(); }, stopObserving: function() { Event.stopObserving.apply(Event, arguments); return $A(arguments).first(); }, // removes whitespace-only text node children cleanWhitespace: function(element) { element = $(element); var node = element.firstChild; while (node) { var nextNode = node.nextSibling; if (node.nodeType == 3 && !/\S/.test(node.nodeValue)) element.removeChild(node); node = nextNode; } return element; }, empty: function(element) { return $(element).innerHTML.blank(); }, descendantOf: function(element, ancestor) { element = $(element), ancestor = $(ancestor); while (element = element.parentNode) if (element == ancestor) return true; return false; }, scrollTo: function(element) { element = $(element); var pos = Position.cumulativeOffset(element); window.scrollTo(pos[0], pos[1]); return element; }, getStyle: function(element, style) { element = $(element); style = style == 'float' ? 'cssFloat' : style.camelize(); var value = element.style[style]; if (!value) { var css = document.defaultView.getComputedStyle(element, null); value = css ? css[style] : null; } if (style == 'opacity') return value ? parseFloat(value) : 1.0; return value == 'auto' ? null : value; }, getOpacity: function(element) { return $(element).getStyle('opacity'); }, setStyle: function(element, styles, camelized) { element = $(element); var elementStyle = element.style; for (var property in styles) if (property == 'opacity') element.setOpacity(styles[property]) else elementStyle[(property == 'float' || property == 'cssFloat') ? (elementStyle.styleFloat === undefined ? 'cssFloat' : 'styleFloat') : (camelized ? property : property.camelize())] = styles[property]; return element; }, setOpacity: function(element, value) { element = $(element); element.style.opacity = (value == 1 || value === '') ? '' : (value < 0.00001) ? 0 : value; return element; }, getDimensions: function(element) { element = $(element); var display = $(element).getStyle('display'); if (display != 'none' && display != null) // Safari bug return {width: element.offsetWidth, height: element.offsetHeight}; // All *Width and *Height properties give 0 on elements with display none, // so enable the element temporarily var els = element.style; var originalVisibility = els.visibility; var originalPosition = els.position; var originalDisplay = els.display; els.visibility = 'hidden'; els.position = 'absolute'; els.display = 'block'; var originalWidth = element.clientWidth; var originalHeight = element.clientHeight; els.display = originalDisplay; els.position = originalPosition; els.visibility = originalVisibility; return {width: originalWidth, height: originalHeight}; }, makePositioned: function(element) { element = $(element); var pos = Element.getStyle(element, 'position'); if (pos == 'static' || !pos) { element._madePositioned = true; element.style.position = 'relative'; // Opera returns the offset relative to the positioning context, when an // element is position relative but top and left have not been defined if (window.opera) { element.style.top = 0; element.style.left = 0; } } return element; }, undoPositioned: function(element) { element = $(element); if (element._madePositioned) { element._madePositioned = undefined; element.style.position = element.style.top = element.style.left = element.style.bottom = element.style.right = ''; } return element; }, makeClipping: function(element) { element = $(element); if (element._overflow) return element; element._overflow = element.style.overflow || 'auto'; if ((Element.getStyle(element, 'overflow') || 'visible') != 'hidden') element.style.overflow = 'hidden'; return element; }, undoClipping: function(element) { element = $(element); if (!element._overflow) return element; element.style.overflow = element._overflow == 'auto' ? '' : element._overflow; element._overflow = null; return element; } }; Object.extend(Element.Methods, { childOf: Element.Methods.descendantOf, childElements: Element.Methods.immediateDescendants }); if (Prototype.Browser.Opera) { Element.Methods._getStyle = Element.Methods.getStyle; Element.Methods.getStyle = function(element, style) { switch(style) { case 'left': case 'top': case 'right': case 'bottom': if (Element._getStyle(element, 'position') == 'static') return null; default: return Element._getStyle(element, style); } }; } else if (Prototype.Browser.IE) { Element.Methods.getStyle = function(element, style) { element = $(element); style = (style == 'float' || style == 'cssFloat') ? 'styleFloat' : style.camelize(); var value = element.style[style]; if (!value && element.currentStyle) value = element.currentStyle[style]; if (style == 'opacity') { if (value = (element.getStyle('filter') || '').match(/alpha\(opacity=(.*)\)/)) if (value[1]) return parseFloat(value[1]) / 100; return 1.0; } if (value == 'auto') { if ((style == 'width' || style == 'height') && (element.getStyle('display') != 'none')) return element['offset'+style.capitalize()] + 'px'; return null; } return value; }; Element.Methods.setOpacity = function(element, value) { element = $(element); var filter = element.getStyle('filter'), style = element.style; if (value == 1 || value === '') { style.filter = filter.replace(/alpha\([^\)]*\)/gi,''); return element; } else if (value < 0.00001) value = 0; style.filter = filter.replace(/alpha\([^\)]*\)/gi, '') + 'alpha(opacity=' + (value * 100) + ')'; return element; }; // IE is missing .innerHTML support for TABLE-related elements Element.Methods.update = function(element, html) { element = $(element); html = typeof html == 'undefined' ? '' : html.toString(); var tagName = element.tagName.toUpperCase(); if (['THEAD','TBODY','TR','TD'].include(tagName)) { var div = document.createElement('div'); switch (tagName) { case 'THEAD': case 'TBODY': div.innerHTML = '' + html.stripScripts() + ''; depth = 2; break; case 'TR': div.innerHTML = '' + html.stripScripts() + ''; depth = 3; break; case 'TD': div.innerHTML = '' + html.stripScripts() + ''; depth = 4; } $A(element.childNodes).each(function(node) { element.removeChild(node) }); depth.times(function() { div = div.firstChild }); $A(div.childNodes).each(function(node) { element.appendChild(node) }); } else { element.innerHTML = html.stripScripts(); } setTimeout(function() { html.evalScripts() }, 10); return element; } } else if (Prototype.Browser.Gecko) { Element.Methods.setOpacity = function(element, value) { element = $(element); element.style.opacity = (value == 1) ? 0.999999 : (value === '') ? '' : (value < 0.00001) ? 0 : value; return element; }; } Element._attributeTranslations = { names: { colspan: "colSpan", rowspan: "rowSpan", valign: "vAlign", datetime: "dateTime", accesskey: "accessKey", tabindex: "tabIndex", enctype: "encType", maxlength: "maxLength", readonly: "readOnly", longdesc: "longDesc" }, values: { _getAttr: function(element, attribute) { return element.getAttribute(attribute, 2); }, _flag: function(element, attribute) { return $(element).hasAttribute(attribute) ? attribute : null; }, style: function(element) { return element.style.cssText.toLowerCase(); }, title: function(element) { var node = element.getAttributeNode('title'); return node.specified ? node.nodeValue : null; } } }; (function() { Object.extend(this, { href: this._getAttr, src: this._getAttr, type: this._getAttr, disabled: this._flag, checked: this._flag, readonly: this._flag, multiple: this._flag }); }).call(Element._attributeTranslations.values); Element.Methods.Simulated = { hasAttribute: function(element, attribute) { var t = Element._attributeTranslations, node; attribute = t.names[attribute] || attribute; node = $(element).getAttributeNode(attribute); return node && node.specified; } }; Element.Methods.ByTag = {}; Object.extend(Element, Element.Methods); if (!Prototype.BrowserFeatures.ElementExtensions && document.createElement('div').__proto__) { window.HTMLElement = {}; window.HTMLElement.prototype = document.createElement('div').__proto__; Prototype.BrowserFeatures.ElementExtensions = true; } Element.hasAttribute = function(element, attribute) { if (element.hasAttribute) return element.hasAttribute(attribute); return Element.Methods.Simulated.hasAttribute(element, attribute); }; Element.addMethods = function(methods) { var F = Prototype.BrowserFeatures, T = Element.Methods.ByTag; if (!methods) { Object.extend(Form, Form.Methods); Object.extend(Form.Element, Form.Element.Methods); Object.extend(Element.Methods.ByTag, { "FORM": Object.clone(Form.Methods), "INPUT": Object.clone(Form.Element.Methods), "SELECT": Object.clone(Form.Element.Methods), "TEXTAREA": Object.clone(Form.Element.Methods) }); } if (arguments.length == 2) { var tagName = methods; methods = arguments[1]; } if (!tagName) Object.extend(Element.Methods, methods || {}); else { if (tagName.constructor == Array) tagName.each(extend); else extend(tagName); } function extend(tagName) { tagName = tagName.toUpperCase(); if (!Element.Methods.ByTag[tagName]) Element.Methods.ByTag[tagName] = {}; Object.extend(Element.Methods.ByTag[tagName], methods); } function copy(methods, destination, onlyIfAbsent) { onlyIfAbsent = onlyIfAbsent || false; var cache = Element.extend.cache; for (var property in methods) { var value = methods[property]; if (!onlyIfAbsent || !(property in destination)) destination[property] = cache.findOrStore(value); } } function findDOMClass(tagName) { var klass; var trans = { "OPTGROUP": "OptGroup", "TEXTAREA": "TextArea", "P": "Paragraph", "FIELDSET": "FieldSet", "UL": "UList", "OL": "OList", "DL": "DList", "DIR": "Directory", "H1": "Heading", "H2": "Heading", "H3": "Heading", "H4": "Heading", "H5": "Heading", "H6": "Heading", "Q": "Quote", "INS": "Mod", "DEL": "Mod", "A": "Anchor", "IMG": "Image", "CAPTION": "TableCaption", "COL": "Tablразделы купить k800i купить букмекерский линия колокейшн холодильник neff биоэпиляция купить электроэнцефалограф холодильник дешево сварочный пост фирменный цвет плата видеозахвата прайс сушильный машина выделенка решетка ливнесборная переработка резина корпоративный обслуживание московский флаг гайковерт электрический уличный барбекю факультет психология