<!--
//FLASH LOAD
function showFlash(idname,movieloc,moviewidth,movieheight,querystring) {
	//OBJECT SETUP --> REPLACE WITH SATAY VERSION
	var strObj = "";
	strObj += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http:/fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+moviewidth+'" height="'+movieheight+'" id="slideshow" align="middle">\n';
	strObj += '<param name="wmode" value="transparent" \>\n';
	strObj += '<param name="allowScriptAccess" value="sameDomain" />\n';
	strObj += '<param name="movie" value="'+movieloc+'.swf?'+querystring+'" />\n';
	strObj += '<param name="quality" value="high" />\n';
	strObj += '<param name="bgcolor" value="#ffffff" />\n';
	strObj += '<embed src="'+movieloc+'.swf?'+querystring+'" wmode="transparent" quality="high" bgcolor="#ffffff" width="'+moviewidth+'" height="'+movieheight+'" name="slideshow" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n';
	strObj += '</object>\n';
	//IF VALID, REPLACE IMAGE
	//if (document.getElementById && (flashinstalled > 0 ) && (flashversion >= 6)) {
	if (document.getElementById) {
		document.getElementById('imagegallery').innerHTML = strObj; //SUPPORTS IE5+,SAFARI,FIREFOX
	}
}

//SLIDER FUNCTIONS
var intSliderCount = 1;
function sliderShow() {
	if (intSliderCount < 156) {
		setStyleById('block2','height',eval("'"+(156 - intSliderCount)+"px'"));
		setStyleById('block3','height',eval("'"+intSliderCount+"px'"));
		intSliderCount += 15;
		setTimeout("sliderShow();",50);
	} else {
		setStyleById('block2','height','0px');
		setStyleById('block3','height','156px');
		intSliderCount = 156;
	}
}
function sliderHide() {
	if (intSliderCount > 0) {
		setStyleById('block2','height',eval("'"+(156 - intSliderCount)+"px'"));
		setStyleById('block3','height',eval("'"+intSliderCount+"px'"));
		intSliderCount -= 15;
		setTimeout("sliderHide();",50);
	} else {
		setStyleById('block2','height','156px');
		setStyleById('block3','height','0px');
		intSliderCount = 1;
	}
	sliderClear();
}

function sliderClear() {
	document.getElementById('search1').innerHTML = "";
	document.getElementById('search2').innerHTML = "";
}

//////////////////
//POP NEW WINDOW//
//////////////////
var blnWinOpen = false;
function popwin(whichPage,width,height) {
	var strParameters = "resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,copyhistory=0,screenX=30,screenY=30,top=30,left=30,width=" + width + ",height=" + height;
	win = window.open(whichPage,"win",strParameters);
	blnWinOpen = true;
}
