// JavaScript Document 2007. All Right Reserved | Adult Web Site Design By http://bluedesignstudios.com //

var img_cache = new Object();

function parse_images() {
	if (document.getElementById) {
		var ar = document.getElementsByTagName('img');
		for( var x = 0; ar[x]; x++ ) {
			var im = ar[x];
			if(im.getAttribute) { 
				im.hoversrc = im.getAttribute('hoversrc');
			}
			if(im.hoversrc) {
				im.rootsrc = im.src;				
				im.onmouseout = function () {
					this.src = this.rootsrc;
				}
				im.onmouseover = function () {			
					this.src = this.hoversrc;								
				}
			}
		}
	}
}

function parse_divs() {
	if (document.getElementById) {
		var ar = document.getElementsByTagName('div');
		for( var x = 0; ar[x]; x++ ) {
			var im = ar[x];
			if(im.getAttribute) { 
				im.hover = im.getAttribute('hover');
			}
			if(im.hover) {
				im.rootsrc = im.className;				
				im.onmouseout = function () {
					this.className = this.rootsrc;
				}

				im.onmouseover = function () {			
					this.className = this.hover;								
				}
			}
		}
	}
}

function addBookmark(title,url) {
	if (window.sidebar) { 
		window.sidebar.addPanel(title, url,""); 
	} else if( document.all ) {
		window.external.AddFavorite( url, title);
	} else if( window.opera && window.print ) {
	return true;
	}
}
