$(document).ready(function() {

//Input
$('input[title]').example(function() {
return $(this).attr('title');
});

//Right click
$(document).bind("contextmenu",function(e){
return false;
});
//IE bugs
if ($.browser.msie) {
$('hr').wrap('<div class="hr"></div>');
}

//IE6 nonsense
var version = jQuery.browser.version;
if (version instanceof Object)
version=version.number();

if (jQuery.browser.msie&&version<7) {
$('form input.login').attr("value","");
$('form input.forgot').attr("value","");
$('form input.update').attr("value","");
$('form input.contact').attr("value","");

$('img[src$=.png],*').ifixpng();
}

});

function txtSize(nameEmt) {
minLen=8;
maxLen=15;
txtLen=document.getElementById(nameEmt).value.length;
if (txtLen>minLen && txtLen<maxLen) {
document.getElementById(nameEmt).style.width=txtLen+'em';
} else if (txtLen<=minLen) {
document.getElementById(nameEmt).style.width=minLen+'em';
}}

function iterateList(node,tagp,tagc){
var ul, toggleLink;
$(tagc,node).each(
function(){
if(this.parentNode != node) return;
ul = $(tagp,this).get(0);
if(ul){
$(tagp,this).hide();
toggleLink = document.createElement("a");
toggleLink.href = "#";
$(toggleLink).addClass("toggle");
$(ul.parentNode.childNodes[0]).wrap(toggleLink);
$("a.toggle", ul.parentNode).click(
function(){
$(">"+tagp,this.parentNode).toggle();
return false;
});
iterateList(ul);
}});}