<!--

// Google Fix for IE browsers

function setListeners(){
	inputList = document.getElementsByTagName("INPUT");
	for(i=0;i<inputList.length;i++){
		if (inputList[i].attachEvent) {
		  inputList[i].attachEvent("onpropertychange",restoreStyles);
		  inputList[i].style.backgroundColor = "";
		}
	}
	selectList = document.getElementsByTagName("SELECT");
	for(i=0;i<selectList.length;i++){
		if (inputList[i].attachEvent) {
		  selectList[i].attachEvent("onpropertychange",restoreStyles);
		  selectList[i].style.backgroundColor = "";
		}
	}
}

// Google Fix for IE browsers

function restoreStyles(){
	if(event.srcElement.style.backgroundColor != "")
	  event.srcElement.style.backgroundColor = "";
}


// onload function for initializations

function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
		if (oldonload) {
			oldonload();
		}
		func();
		}
	}
}

addLoadEvent(setListeners);


// Photoshow function, swaps Flash Objects for Europe Page

function changePhotoshow (tabname) {
        var flashPhoto = new SWFObject("http://www.bryansamolinski.com/images/photos.swf?XMLURL=http://www.bryansamolinski.com/xml/" + tabname, "photography", "640", "480", "8", "#be9857"); 
        flashPhoto.write("photography"); 
}

//-->