// ----- CMO Yachtmaster ------

// Module: cmoyma.html	   version 1.1

// Date 15.5.2001

// Author Rod Fletcher

// This script is Copyright ©1999 - 2001 Rod and Sue Fletcher.

/* Maintenance ----------------
	
   Version 1.0 to 1.1 - 09.3.2009 Addition of Mac window
   
------------------------------- */


var domType = location.search.substr(1);

if (domType == '') {
	location = '../../index.html';
}

function formatPage() {

	switch(domType) {



		case '1NN6+':

			changeNNStyleBySelector('#ymacontent', 'backgroundImage', 'url(../images/ymacert.jpg)');
			
			document.getElementById('rightarrow').innerHTML = "<IMG ALIGN=\"absmiddle\" HSPACE=\"5\" SRC=\"../images/rightarrowsmwh.gif\" BORDER=\"0\" WIDTH=\"19\" HEIGHT=\"13\" ALT=\"\">";
			
			

		break;


		case '1IE5+':

			changeIEStyleBySelector('#ymacontent', 'backgroundImage', 'url(../images/ymacert.jpg)');
			
//			document.getElementById('spoffer').className = 'spoffer';
			
			if (screen.colorDepth > 16) {
				changeIEStyleBySelector('#head2', 'visibility', 'visible');
			}

		break;

	}
}


function packWindow() {

	switch(domType) {

		case '1NN6+':

			var packlist = window.open("ymapacklist.html?1NN6+", "Packlistyma", "width=200,height=520,scrollbars=yes,left=567,top=110");

			break;


		case '1IE5+':

			var packlist = window.open("ymapacklist.html?1IE5+", "Packlistyma", "width=170,height=518,scrollbars=yes,screenX=610,screenY=0");
	}
}

function macWindow() {


	switch(domType) {

		case '1NN6+':

			var mac = window.open("macbootcamp.html?1NN6+", "macuse", "width=780,height=400,resizable=yes,scrollbars=yes,left=567,top=110");

			break;


		case '1IE5+':

			var mac = window.open("macbootcamp.html?1IE5+", "macuse", "width=780,height=400,resizable=yes,scrollbars=yes,screenX=610,screenY=0");
	}

}

function nextSection(section) {

	location = 'cmoyma.html?' + domType + '#' + section;

}


// END
