var win_width, win_height

if (screen.width <= 800) { win_width = 750 }
else if (screen.width <= 1025) { win_width = 900 }
else if (screen.width <= 1300) { win_width = 1000 }
else { win_width = 1200 }

if (screen.height <= 600) { win_height = 500 }
else if (screen.height <= 780) { win_height = 600 }
else if (screen.height <= 1100) { win_height = 750 }
else { win_height = 800 }

var photo_popup_features = "width=" + win_width +", height=" + win_height + ", resizable=yes,scrollbars=yes,screenX=20,screenY=20,top=20,left=20"


function select_logo(path, logo800, w1, h1, logo1024, w2, h2, logo1280, w3, h3) {
  	
	var tag
	var imgtag, wide, hite, bordertag
	imgtag = "<IMG SRC="
	wide = " WIDTH= "
	hite = " HEIGHT= "
	bordertag = " BORDER=0> "

	//document.writeln(imgtag)
	//document.writeln(wide)
	//document.writeln(hite)
	//document.writeln(bordertag)



	if (screen.width <= 850) {
	tag = imgtag + path +  logo800 + wide+ w1 + hite + h1 + bordertag
	document.write(tag)
	}

	else if (screen.width > 850 && screen.width <= 1024 ) {
	tag = imgtag + path +  logo1024 + wide+ w2 + hite + h2 + bordertag
	document.write(tag)
	}

	else {
		tag = imgtag + path +  logo1280 + wide+ w3 + hite + h3 + bordertag
		document.write(tag)
	}
}

function say_hello() {
	alert("Hello, welcome to my search")
}