 $(document).ready(function(){
 	
	 $(function(){
	  $("TEXTAREA").focus(function(){
	  	$(this).css({color: "black", background: "#ffff83"});
	  })
	})
	
	$(function(){
	  $("TEXTAREA").blur(function(){
	  	$(this).css({color: "black", background: "white"});
	  })
	})
	
	$(function(){
	  $("input.inputbox_big").focus(function(){
  		$(this).css({color: "black", background: "#ffff83"});
	  })
	})


	$(function(){
	  $("input.inputbox_big").blur(function(){
	  	$(this).css({color: "black", background: "white"}); 
	  })
	})
	
	$("#page_content img").each(function() 
	{ 
		if ($(this).attr("rel")!="nomagnify")
		{
			filenamepos = $(this).attr("src").lastIndexOf("/");
			path = $(this).attr("src").substr(0,filenamepos);
			filename = $(this).attr("src").substr(filenamepos + 1);
			
			$(this).wrap("<a href='" + path + "/bigp_" + filename +"' class='thickbox'></a>");
			$(this).attr("rel","pics");	
			$(this).attr("alt",filename);	
		}
		
	}
	)
	
	
 } );
 
 function RunFlash(flashname, flashwidth, flashheight)
{
	document.write('<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="' + flashwidth +'" height="' + flashheight + '" id="iseum" align="middle">\n');
	document.write('<param name="movie" value="' + flashname + '" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<param name="wmode" value="transparent">\n');
	document.write('<embed src="' + flashname + '" wmode="transparent" quality="high" bgcolor="#fefefe" width="' + flashwidth + '" height="' + flashheight + '" name="flash" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
	document.write('</object>\n');	
}

function iFrameHeight(framename) {

	alert(document.getElementById(framename).contentWindow.document.body.scrollHeight);
	alert("x");
if(document.getElementById && !(document.all)) 
{
	h = document.getElementById(framename).contentDocument.body.scrollHeight;
	document.getElementById(framename).height = h+40;
}
else if(document.all) 
{
	
	h = document.frames(framename).document.body.scrollHeight;
	document.all.contframe.style.height = h;
}

} 	

function togglediv(divname)
{
	$("#"+divname).slideToggle("normal");
}