//
//var preloadFlag = false;
//function preloadImages() 
//{
//	if (document.images) 
//	{
//		pre_articles_20roll = newImage('images/articles%20roll.gif');
//		pre_comments_20updates_20roll = newImage('images/comments%20updates%20roll.gif');
//		pre_links_20roll_20button = newImage('images/links%20roll%20button.gif');
//		pre_home_20roll = newImage('images/home%20roll.gif');
//		pre_bio_20roll = newImage('images/bio%20roll.gif');
//		pre_gallery_20roll = newImage('images/gallery%20roll.gif');
//		preloadFlag = true;
//	}
//}


function changeImages (name, src)
{
	document.getElementById(name).src = src;
}

function imageResize (name)
{
	var browserWidth = getBrowserWidth();
	if (browserWidth < 805)
		document.getElementById(name).style.width = "20%";
		
	return 0;
}
	
	
function getBrowserWidth()
{
    if (window.innerWidth)
	{
        return window.innerWidth;
	}  
    
	else if (document.documentElement && document.documentElement.clientWidth != 0)
	{
        return document.documentElement.clientWidth;    
	}
    
	else if (document.body)
	{
		return document.body.clientWidth;
	}      
        return 0;
}

