// JavaScript Document
/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}

<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
/***********************************************
* Image Rollover script- by JavaScript Kit (www.javascriptkit.com)
* Visit JavaScript Kit at http://www.javascriptkit.com/ for full source code
***********************************************/


function imagerollover(){
	var allimages=document.getElementsByTagName("img")
	var preloadimages=[]
	for (var i=0; i<allimages.length; i++){
		if (allimages[i].getAttribute("data-over")){ //if image carries "data-over" attribute
			preloadimages.push(new Image()) //preload "over" image
			preloadimages[preloadimages.length-1].src=allimages[i].getAttribute("data-over")
			allimages[i].onmouseover=function(){
				this.src=this.getAttribute("data-over")
			}
			allimages[i].onmouseout=function(){
				this.src=this.getAttribute("data-out")
			}
		} //end if
	} //end for loop
}

//Usage: Call following function at the end of the page:
//imagerollover()
