
function doInputMouseOver(input) {
if(input.getAttribute('baseClassName') == null) {
if(input.className != '') {
input.setAttribute('baseClassName', input.className);
}
}

if(input.getAttribute('isFocused') != 'true') {
input.className = input.getAttribute('baseClassName') + '_over';
}
}

function doInputMouseOut(input) {
if(input.getAttribute('isFocused') != 'true') {
input.className = input.getAttribute('baseClassName');
}
}

function doInputFocus(input) {
input.setAttribute('isFocused', 'true');

if(input.getAttribute('baseClassName') == null ) {
if(input.className != '') {
input.setAttribute('baseClassName', input.className);
}
}

if(input.value == input.defaultValue) {
input.value = '';
}

input.className = input.getAttribute('baseClassName') + '_focus';
}

function doInputBlur(input) {
input.setAttribute('isFocused', 'false');

if(input.value == '' && input.defaultValue) {
input.value = input.defaultValue;
}

input.className = input.getAttribute('baseClassName');
}


function switch_image(id, image_path){
document.getElementById(id).src = image_path;
}


function toggle_sharing(){
if( document.getElementById('page_overlay').style.display == 'block' ){
document.getElementById('page_overlay').style.display = 'none';
}else{
document.getElementById('page_overlay').style.display = 'block';
}
}
