var j = jQuery.noConflict();

<!--

var album = { 
  startup: function() { 
    new PeriodicalExecuter(album.cycle, 5) // change image every 5 seconds
	
  }, 
  cycle: function() { 
  
  	if ($('divHeaderImage') != null && $('IPG_ID') != null && $('IPG_ID').getValue() != '0')
	{
		new Effect.Fade('divHeaderImage', { // the id of the <DIV> containing the photos 
		  duration: 1, 
		  fps: 50, 
		  afterFinish: function() { 
			new Ajax.Updater('divHeaderImage','actions/imagepool.asp?IPG_ID=' + $('IPG_ID').getValue(), { // URL for next <IMG> tag 
			  asynchronous: true, 
			  onSuccess: function() { 
				new Effect.Appear('divHeaderImage', {
				  duration: 1,
				  fps: 50,
				  queue:'end'
				})
			  } 
			}) 
		  } 
		}) 
	}
  } 
} 

window.onload = album.startup;


function init_brochureformsubmission() {

	if ($('cmdSelectAddress') != null)
	{
		$('divSelectAddress').style.width = 365 + 'px';
		$('cmdSelectAddress').hide();
	}
}

function addEvent(obj, evType, fn){ 
 if (obj.addEventListener){ 
   obj.addEventListener(evType, fn, false); 
   return true; 
 } else if (obj.attachEvent){ 
   var r = obj.attachEvent("on"+evType, fn); 
   return r; 
 } else { 
   return false; 
 } 
}

addEvent(window, 'load', init_brochureformsubmission);

function quickKey_Favourite()
{
	var browserName = navigator.appName;
	if (browserName == "Netscape")
	{
		alert("You are currently using Firefox/Netscape, please enter this bookmark manually.");
	}
	else
	{
		window.external.AddFavorite(location.href, document.title);
	}
}

function quickKey_Print() 
{
	window.print();  
}

function quickKey_Email()
{
	mail = "mailto:?subject=Check out " + document.title;
	mail += "&body=I thought you might be interested in " + document.title;
	mail += ". You can view it at, " + location.href;
	location.href = mail;
}

//-->