Deprecated: Assigning the return value of new by reference is deprecated in /customers/werali.se/werali.se/httpd.www/wp-includes/cache.php on line 36

Deprecated: Assigning the return value of new by reference is deprecated in /customers/werali.se/werali.se/httpd.www/wp-includes/query.php on line 21

Deprecated: Assigning the return value of new by reference is deprecated in /customers/werali.se/werali.se/httpd.www/wp-includes/theme.php on line 540

Warning: Cannot modify header information - headers already sent by (output started at /customers/werali.se/werali.se/httpd.www/wp-includes/cache.php:36) in /customers/werali.se/werali.se/httpd.www/wp-content/plugins/wp-grins/wp-grins.php on line 70
function insertAfter(node, referenceNode) { referenceNode.parentNode.insertBefore(node, referenceNode.nextSibling); } function loadGrins() { var grinsDiv = document.createElement('div'); grinsDiv.id = 'wp_grins'; grinsDiv.innerHTML = '8-) :-( :-) :-? :D :P :x :| ;) :angry: :blink: :blush: :cry: :dance: :dead: :devil: :doh: :down: :flower: :glare: :headbang: :laugh: :lol: :love: :melt: :music: :no: :puh: :pust: :run: :shock: :talktothehand: :tear: :whistle: :wohoo: :wtf: :yawn: :yes: :ziplip: '; if ($('postdiv')) { var type = 'child'; var node = $('postdiv'); } else if (document.getElementById('postdivrich')) { var type = 'child'; var node = $('postdivrich'); } else if (document.getElementById('comment')) { var type = 'before'; var node = $('comment'); } else { return; } switch (type) { case 'child': grinsDiv.style.paddingTop = '5px'; node.appendChild(grinsDiv); break; case 'before': node.parentNode.insertBefore(grinsDiv, node); break; } } Event.observe(window, 'load', loadGrins, false); function grin(tag) { var myField; if ($('content') && $('content').type == 'textarea') { myField = document.getElementById('content'); if ($('postdivrich') && typeof tinyMCE != 'undefined' && (!$('edButtons') || $('quicktags').style.display == 'none')) { tinyMCE.execInstanceCommand('mce_editor_0', 'mceInsertContent', false, ' ' + tag + ' '); tinyMCE.selectedInstance.repaint(); return; } } else if ($('comment') && $('comment').type == 'textarea') { myField = $('comment'); } else { return false; } if (document.selection) { myField.focus(); sel = document.selection.createRange(); sel.text = ' ' + tag + ' '; myField.focus(); } else if (myField.selectionStart || myField.selectionStart == '0') { var startPos = myField.selectionStart; var endPos = myField.selectionEnd; var cursorPos = endPos; myField.value = myField.value.substring(0, startPos) + ' ' + tag + ' ' + myField.value.substring(endPos, myField.value.length); cursorPos += tag.length + 2; myField.focus(); myField.selectionStart = cursorPos; myField.selectionEnd = cursorPos; } else { myField.value += tag; myField.focus(); } }