/* js component for "reloading page onResize"
   original source: resize.js 0.3 970811 by gary smith */
 if(!window.saveInnerWidth) {
   window.onresize = resizeIt;
   window.saveInnerWidth = window.innerWidth;
   window.saveInnerHeight = window.innerHeight;
 }
function resizeIt() {
    if (saveInnerWidth < window.innerWidth || 
        saveInnerWidth > window.innerWidth || 
        saveInnerHeight > window.innerHeight || 
        saveInnerHeight < window.innerHeight ) 
    {
        window.history.go(0);
    }
}

function swapImage(target, src) {
	if (document.images) {
		if (document.images[target]) {
			document.images[target].src = src;
		}
	}
	return true;
}

function jmp(Obj) {
	if ( !Obj.options[Obj.selectedIndex].value ) {
		if (navigator.appVersion.indexOf('MSIE 5') != -1) {
			Obj.options[0].click();
		}
	} else {
		if (parent) parent.location.href = Obj.options[Obj.selectedIndex].value;
		else location.href = Obj.options[Obj.selectedIndex].value;
	}
}

var wStr;
var imgMax = 2;
var rndSeed = Math.round((Math.random() * 1) * (imgMax - 1));
var nmSeed = "pic_"
var jmpURL = new Array();
function wImg() {
	jmpURL[0] = "../pulldown/test1.html";
	jmpURL[1] = "../pulldown/test2.html";
	wStr = '<a href="' + jmpURL[rndSeed] + '">'
	wStr += '<img src="images/' + nmSeed + rndSeed + '.jpg" width="440" height="220" border="0" alt=""></a>';
	document.write(wStr);
}

