//**photo fader**//

			photofadeObjects = new Object();
			photofadeTimers = new Object();
	
			function photofade(object, destOp, rate, delta){
			if (!document.all)
			return
			    if (object != "[object]"){  
			        setTimeout("photofade("+object+","+destOp+","+rate+","+delta+")",0);
			        return;
			    }
			        
			    clearTimeout(photofadeTimers[object.sourceIndex]);
			    
			    diff = destOp-object.filters.alpha.opacity;
			    direction = 1;
			    if (object.filters.alpha.opacity > destOp){
			        direction = -1;
			    }
			    delta=Math.min(direction*diff,delta);
			    object.filters.alpha.opacity+=direction*delta;
			
			    if (object.filters.alpha.opacity != destOp){
			        photofadeObjects[object.sourceIndex]=object;
			        photofadeTimers[object.sourceIndex]=setTimeout("photofade(photofadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
			    }
			}
			

//**Copyright Script**//
function copyright() {
copyrightdate=new Date();
update=copyrightdate.getFullYear();
document.write('All content copyright&copy; 2004-'+ update +' (A.K. Guitars) unless otherwise stated. All Rights Reserved');
}

//**Copyright Script - Short Version**//
function shortcopyright() {
copyrightdate=new Date();
update=copyrightdate.getFullYear();
document.write('<div align="center">')
document.write('Copyright&copy; 2003-'+ update +'');
document.write('</div>') 
}

	//**PopUp**//
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300,left = 30,top = 30');");
}

//**Centered Pop-up Windows**//
var win = null;
function CenterWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}


//**NutScrape resize fix**//
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

//**Clear Newsletter Subscribe Field **//
function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
} 