<!--

function BrowserCheck() {
	var browser = navigator.appName
	if (browser=="Netscape") this.browser = "ns"
	else if (browser=="Microsoft Internet Explorer") this.browser = "ie"
	else this.browser = browser
	if (navigator.appVersion.indexOf("Mac") != -1) this.platform = "mac";  
    else  this.platform = "pc"; 	
	this.mac = (this.platform=="mac")
	this.pc = (this.platform=="pc")
	// version tell the exact version
	this.vers = parseInt(navigator.appVersion)
	// ie3/ns3 and lower
	this.ns3 =(this.browser=="ns" && this.vers<=3)
	this.ie3 = (this.browser=="ie" && this.vers<=3)
	// ns/4/5 ie/4/5 are 4 plus browsers
	this.ns = (this.browser=="ns" && this.vers>=4)
	this.ns4 = (this.browser=="ns" && this.vers==4)
	this.ns5 = (this.browser=="ns" && this.vers==5)
	this.ie = (this.browser=="ie" && this.vers>=4)
	this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0)
	this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0)
	if (this.ie5) this.vers = 5
}
is = new BrowserCheck()
if (is.ns && is.mac ) document.write('<link rel=\"stylesheet\" type=\"text/css\" href=\"/fivestar/styles/mac_nn.css\" />');
else if (is.ns && is.vers < 6 ) document.write('<link rel=\"stylesheet\" type=\"text/css\" href=\"/fivestar/styles/pc_nn.css\" />');
else document.write('<link rel=\"stylesheet\" type=\"text/css\" href=\"/fivestar/styles/pc_ie.css\" />');



if (document.images ){
	image_off = new Image;
	image_off.src = "/images/clear.gif";
	image_on = new Image;
	image_on.src = "/fivestar/images/greenpix.gif";			
	
	imagegreen_on = new Image;
	imagegreen_on.src = "/fivestar/images/greenpix.gif";			
	imagered_on = new Image;
	imagered_on.src = "/fivestar/images/redpix.gif";					
//	imageorange_on = new Image;
//	imageorange_on.src = "/fivestar/images/orangepix.gif";
	imageblue_on = new Image;
	imageblue_on.src = "/fivestar/images/bluepix.gif";			
	imagegrey_on = new Image;
	imagegrey_on.src = "/fivestar/images/greypix.gif";			



	
	red_on = new Image; red_on.src = "/fivestar/pl/pl/images/toolbox_on.gif";
	red_off = new Image; red_off.src = "/fivestar/pl/pl/images/toolbox.gif";	
	blue_on = new Image; blue_on.src = "/fivestar/pl/pl/images/eordering_on.gif";
	blue_off = new Image; blue_off.src = "/fivestar/pl/pl/images/eordering.gif";	
	green_on = new Image; green_on.src = "/fivestar/pl/pl/images/products_on.gif";
	green_off = new Image; green_off.src = "/fivestar/pl/pl/images/products.gif";	
	orange_on = new Image; orange_on.src = "/fivestar/pl/pl/images/crs_on.gif";
	orange_off = new Image; orange_off.src = "/fivestar/pl/pl/images/crs.gif";	
	grey_on = new Image; grey_on.src = "/fivestar/pl/pl/images/aboutus_on.gif";
	grey_off = new Image; grey_off.src = "/fivestar/pl/pl/images/aboutus.gif";

 
}
		
function roll(way,whichone,colour){	
	thisimage = document.images[whichone]
	if ( colour == null ) colour = 'grey';
	if (way == 'off') thisimage.src = image_off.src
	else thisimage.src = eval('image' + colour + '_on.src');
}
	
function navroll(way,colour){	
	thisimage = document.images[colour]
	if ( colour == null ) colour = 'grey';
	if (way == 'off') thisimage.src = eval(colour + '_off.src');
	else thisimage.src = eval(colour + '_on.src');
}


function navroll2(name,imgname){
		thisimage = document.images[name];
		thisimage.src = imgname;
}


// for home page (com site)

		function swop(onoff,no){		
			id = "box" + no;
			thisimage = document.images[id]
			newimage = eval("box" + no + "_"  + onoff + ".src");
			thisimage.src = newimage;
			newfill = eval("box" + no + "_fill" + ".src");
			oldfill = document.images['process']
			oldfill.src = newfill;
		}
		
		function anim(no){
			var noff = no - 1;
			swop('off',noff);			
			swop('on',no);
			no++;
			if (no < 7 ) window.setTimeout("anim("+no+");",1000);			
			else window.setTimeout("swop('off',6);",400);
		}
		

	var imageloc = "/fivestar/images/"
	box1_off = new Image(27,26); box1_off.src= imageloc + "box1.gif";
	box2_off = new Image(27,26); box2_off.src= imageloc + "box2.gif";
	box3_off = new Image(27,26); box3_off.src= imageloc + "box3.gif";
	box4_off = new Image(27,26); box4_off.src= imageloc + "box4.gif";
	box5_off = new Image(27,26); box5_off.src= imageloc + "box5.gif";
	box6_off = new Image(27,26); box6_off.src= imageloc + "box6.gif";
	box1_on = new Image(27,26);  box1_on.src=  imageloc + "box1_on.gif";
	box2_on = new Image(27,26);  box2_on.src=  imageloc + "box2_on.gif";
	box3_on = new Image(27,26);  box3_on.src=  imageloc + "box3_on.gif";
	box4_on = new Image(27,26);  box4_on.src=  imageloc + "box4_on.gif";
	box5_on = new Image(27,26);  box5_on.src=  imageloc + "box5_on.gif";
	box6_on = new Image(27,26);  box6_on.src=  imageloc + "box6_on.gif";
	box1_fill = new Image(207,181); box1_fill.src = imageloc + "fill_1.jpg";
	box2_fill = new Image(207,181); box2_fill.src = imageloc + "fill_2.jpg";
	box3_fill = new Image(207,181); box3_fill.src = imageloc + "fill_3.jpg";
	box4_fill = new Image(207,181); box4_fill.src = imageloc + "fill_4.jpg";
	box5_fill = new Image(207,181); box5_fill.src = imageloc + "fill_5.jpg";
	box6_fill = new Image(207,181); box6_fill.src = imageloc + "fill_6.jpg";


// -->


