// JavaScript Document
var currentPage= new String;
function currentPageF (name)
{currentPage = name;}

img= new Array()
if(document.images)
{
	for(i=0;i<imgsrc.length;i++)
	{
		img[i]= new Image();
		img[i].src= imgsrc[i];
	}
}
function buttons(num, imgname)
{
	
	if(document.images)
	{
		if ( document[imgname].name != currentPage)
	//document.writeln(document[imgname].name);
	//document.writeln(currentPage);
		{document[imgname].src = img[num].src;}
	}
}

function buttonsStatic(num, imgname)
{
	
	if(document.images)
	{
		
		document[imgname].src = img[num].src;
	}
}

function buttons2(num, imgname, num2, imgname2)
{
	
	if(document.images)
	{
		document[imgname].src= img[num].src;
		document[imgname2].src= img[num2].src;
	}
}


function openWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function openLargeWindow(url,w,h,title){
	var newWindow = window.open('/js/viewLarge.php?u='+url+'&h='+h+'&w='+w, title, "statusbar,height="+h+",width="+w);
	newWindow.focus( );
}
function openLargeWindow2(url,w,h,title){
	var newWindow = window.open('/js/viewLarge.php?u='+url+'&h='+h+'&w='+w, title, "statusbar=0,scrollbars=1,height="+h+",width="+w);
	newWindow.focus( );
}

function Win111()
{window.open('http://drew-lenk.livejournal.com','LiveJournal')
}