// JavaScript Document 2007. All Right Reserved | Adult Web Site Design By http://escortdesign.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 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;
	}
}

function ShowPic(id, w, h) {
    var window_width = w;
    var window_height = h;
    var window_left = (screen.availWidth / 2) - (window_width / 2);
    var window_top = (screen.availHeight / 2) - (window_height /2);
    var window_dimensions = "height=" + window_height + 
                            ", width=" + window_width + 
                            ", left=" + window_left + 
                            ", top=" + window_top;
    var win_color = window.open("file.php", "d", window_dimensions);
	docCal = win_color.document;
	docCal.open();
	docCal.writeln('<html><head><title>"Hollywood Girls"</title><link href="style.css" rel="stylesheet" type="text/css"></head><body class="popup">');
	docCal.writeln('<a href="javascript:window.close();"><img src="pics/' + id + '" width="' + w + '" height="' + h + '" id="' + id + '"></a>');
	docCal.writeln('</body></html>');
}