$(function(){
	$("input[type='text'],input[type='password'],textarea").css({"border":"1px solid #cccccc","padding":"2px"});
	$("input[type='text'],input[type='password'],textarea").focus(function(){
		$(this).css({"border":"1px solid #8fab09"});
	});
	$("input[type='text'],input[type='password'],textarea").blur(function(){
		$(this).css({"border":"1px solid #cccccc"});
	});
	$("textarea").autogrow();
	$(".validateMe").validate();
});

function qt_load_video(int) {
	if(qt_video_gallery[int]) {
		var h2=document.getElementById("qt_video_details");
		h2.innerHTML=qt_video_gallery[int].name+" - "+qt_video_gallery[int].runtime;
		//document.getElementById("playerFrame").src="/qtplayer.php?movie=/library/media/"+qt_video_gallery[int].video;

		// total hack since firefox doesnt play nice with wmode
		if($.browser.mozilla) {
			$("#qt_playerDiv").html(QT_GenerateOBJECTText('/library/media/'+qt_video_gallery[int].video, '500', '419', '', 'autoplay', 'true','align', 'middle'))
		} else {
			$("#qt_playerDiv").html(QT_GenerateOBJECTText('/library/media/'+qt_video_gallery[int].video, '500', '419', '', 'autoplay', 'true','align', 'middle','wmode','transparent'))
		}

	}
}
