// JavaScript Document for Archant Specalist.
//
// Created : 04-04-2006
// Author : Adam Collison [adam.collison@soup.co.uk]
//
//////////////////////////////////////////////////////

function rollOver(rollOverImage) {
		newSrc = rollOverImage.src.replace(new RegExp(".gif\\b"), "_f2.gif");
		rollOverImage.src = newSrc;
}

function rollOut(rollOutImage) {
		newSrc = rollOutImage.src.replace(new RegExp("_f2.gif\\b"), ".gif");
		rollOutImage.src = newSrc;
}

// repeatedly load images into the same popup window
var pop = null;

function classifiedPopup(src, title) {
	var url = "image_popup.aspx?src=" + src.replace("classifieds/", "classifieds/print/") + "&title=" + title + "&page=1035";

	if(pop == null || pop.closed) {
		pop = window.open(url, "Image", "width=730,height=500,top=20,left=20,resizable=1,statusbar=0,scrollbars=1");
	}
	else {
		pop.location.href = url;
		pop.focus();
	}
}

//Archant Update - Generic Window Popup function
function openWindow(url,name,params)
{
	newwindow=window.open(url,name,params);
	if (window.focus) {newwindow.focus()}
}