﻿

//Showcase...
		$(document).ready(function() {
		    $('.showcasespecial').cycle({
				fx: 'scrollLeft',
				cleartypeNoBg: true,
				random: 1,
				pause: 1,
			    delay:  -2000
			});
		});


function expandDivd(divID)
	{
		//for testing
		return true;
	}
function expandDiv(divID)
		{
			
			//var strAppVersion = navigator.appVersion;
			//var initdocHeight=0;
			var docHeight,maxHeight;		//=0;
			var newHeight=0;
			var myDiv=document.getElementById(divID);
				//myDiv.style.height="99%";
			
				docHeight=document.body.scrollHeight;
				maxHeight=docHeight-316;	//for a body DIV this is as tall as it needs to be taking off header, showcase and footer
			//alert("Expanding height... "+docHeight);
					
			while (document.body.scrollHeight<=docHeight && newHeight<3200 && newHeight<maxHeight)
				{
					//alert(document.body.scrollHeight+"<="+docHeight);
					newHeight=myDiv.offsetHeight+40;
					myDiv.style.height=newHeight+"px";
				}
			
			//alert("Expanding height... "+newHeight);
		}

function doSearch(searchFieldObj)
	{
		//alert("Searching for "+searchFieldObj.value);
		if(searchFieldObj.value!="")
			{
				searchFieldObj.form.submit();
			}
	}