/* FILE: 	virgil.js				*/
/* WEBSITE: 	Virgil Placeholder Page 		*/
/* DATE:	03/16/2009				*/
/* CODED BY:	Reece Runnells @ Analog Method		*/




var searchValue = "Search Virgil...";
var searchValueBlog = "Search the Virgil Voice...";


function clearSearch(o){
    if(o.value == searchValue){
        o.value="";
    }
}

function clearSearchBlog(o){
    if(o.value == searchValueBlog){
        o.value="";
    }
}


function goToPage(o){
    document.location = o.value;
}

function resetSearch(o){
    if(o.value == ""){
        o.value=searchValue;
    }
}

function resetSearchBlog(o){
    if(o.value == ""){
        o.value=searchValueBlog;
    }
}

function intialize() {
}

if (document.images)
{
  pic1= new Image(668,101); 
  pic1.src="/public/images/greenboxes/green-box-bg.gif"; 

  pic2= new Image(668,101); 
  pic2.src="/public/images/greenboxes/green-box-bg-over.gif"; 
}

function changeStyle(title) {
    var lnks = document.getElementsByTagName('link');
    for (var i = lnks.length - 1; i >= 0; i--) {
        if (lnks[i].getAttribute('rel').indexOf('style')> -1 && lnks[i].getAttribute('title')) {
            lnks[i].disabled = true;
            if (lnks[i].getAttribute('title') == title) lnks[i].disabled = false;
        }
    }
} 
