// JavaScript Document
<!--
	function openwin(url){
		window.open(url,"_blank","toolbar=yes, location=yes, scrollbars=yes, directories=yes, status=yes, menubar=yes, resizable=yes, width=800, height=600");
	}
	
	function openevent(id){
		window.open("http://www.currumbinmarine.com.au/event.php?id="+id,"_blank","toolbar=no, location=no, scrollbars=yes, directories=no, status=no, menubar=no, resizable=no, width=520, height=480");
	}
	
	function openPhotoPanel(code,id){
		window.open("http://www.currumbinmarine.com.au/product_images.php?code="+code+"&start="+id,"_blank","toolbar=no, location=no, scrollbars=yes, directories=no, status=yes, menubar=no, resizable=yes, width=980, height=640");
	}
	
	function showLarge(in_obj,title,content,image_l){
		//document.getElementById(in_obj).className = 'selected';
		as = document.getElementsByTagName('a');
		for(var i = 0; i<as.length;i++){
			if(as[i].id==in_obj){
				as[i].className = 'selected';
			}else{
				as[i].className = '';
			}
			//alert(as[i].id);
		}
			
			/*// Add dashes to represent node level
			for (var x = 0; x < lvl; x++) { s = s + "--"; }
			// Report first 20 chars for text nodes
			alert(node.nodeValue)
			if ( node.nodeType == 3 ) {
			  mynodeType = node.nodeValue;
			  if (mynodeType.length > 20) {
				mynodeType = mynodeType.slice(0,16) + "...";
			  }
			} else {
			  // Report "Element/Tag" for elements
			  mynodeType = "Element/Tag";
			}
			s = s + "+ " + node.nodeName + " (" + mynodeType + ")\n";
			*/

		
		
		////alert(in_obj,title,content,image_l)
		
		document.getElementById('title').innerHTML = title;
		document.getElementById('largeimage').src = image_l;
		//largeimage = document.getElementById('largeimage');
		//largeimage.src = image_l;
	//	largeimagebox = document.getElementById('largeimagebox')
		//image_l.width = '';
		//largeimagebox.style.width="682px"
		//largeimagebox.style.height="480px"
	
		//boxheight =String(largeimagebox.style.height)
		//boxheight = Number(boxheight.substr(0,3))
		//alert(image_l.height)
		//alert((boxheight-image_l.height)/2);
		//alert(largeimagebox.style.width);
		//alert(largeimagebox.style.height);
		
		
		
		
		//if(largeimage.width>largeimage.height){
		//	modifier = largeimage.height/largeimage.width
		//	largeimage.width = 638
		//	largeimage.height = largeimage.width * modifier
		//}else{
		//	modifier = largeimage.width/largeimage.height
		//	largeimage.height = 478
		//	largeimage.width = largeimage.height * modifier
		//}
		document.getElementById('content').innerHTML = content
		
	}
	
	function writeoldflash(inobj, inmov,width,height){
		alert('ie6');
		d = document.getElementById(inobj);
		flashhtml = "<object data=\""+inmov+"\" width=\""+width+"\" height=\""+height+"\" type=\"application/x-shockwave-flash\"><param name=\"type\" value=\"application/x-shockwave-flash\" /><param name=\"src\" value=\""+inmov+"\" /><param name=\"data\" value=\""+inmov+"\" /><param name=\"codebase\" value=\""+inmov+"\" /><param name=\"movie\" value=\""+inmov+"\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#ffffff\" /><param value=\"opaque\" name=\"wmode\" /><param name=\"pluginurl\" value=\"http://www.macromedia.com/go/getflashplayer\" /><img src=\"resources/layout_02.jpg\" class=\"rightphoto\" width=\"634\" height=\"162\" alt=\"Banner photo\" /></object>";
		//alert(flashhtml);
		d.innerHTML = flashhtml;
	}
	
	function writeflash(inobj, inmov,width,height){
		d = document.getElementById(inobj);
		flashhtml = "<object data=\""+inmov+"\" width=\""+width+"\" height=\""+height+"\" type=\"application/x-shockwave-flash\"><param name=\"type\" value=\"application/x-shockwave-flash\" /><param name=\"src\" value=\""+inmov+"\" /><param name=\"data\" value=\""+inmov+"\" /><param name=\"codebase\" value=\""+inmov+"\" /><param name=\"movie\" value=\""+inmov+"\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#ffffff\" /><param value=\"opaque\" name=\"wmode\" /><param name=\"pluginurl\" value=\"http://www.macromedia.com/go/getflashplayer\" /><img src=\"resources/layout_02.jpg\" class=\"rightphoto\" width=\"634\" height=\"162\" alt=\"Banner photo\" /></object>";
		//alert(flashhtml);
		d.innerHTML = flashhtml;
	}
	
	function CreateControl(DivID, CLSID, ObjectID, width, height, inmov){
	var d = document.getElementById(DivID);
	d.innerHTML = "<object data=\""+inmov+"\" id=\""+ObjectID+"\" width=\""+width+"\" height=\""+height+"\" classid=\""+CLSID+"\" type=\"application/x-shockwave-flash\"><param name=\"type\" value=\"application/x-shockwave-flash\" /><param name=\"src\" value=\""+inmov+"\" /><param name=\"data\" value=\""+inmov+"\" /><param name=\"codebase\" value=\""+inmov+"\" /><param name=\"movie\" value=\""+inmov+"\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#ffffff\" /><param value=\"opaque\" name=\"wmode\" /><param name=\"pluginurl\" value=\"http://www.macromedia.com/go/getflashplayer\" /></object>";
	//<img src=\"resources/layout_02.jpg\" class=\"rightphoto\" width=\"634\" height=\"162\" alt=\"Banner photo\" />
}
-->