	function clickn(obj) {
		/*	direct to next location	*/
		window.location = obj  ;
	}
		
	function clickp(path, obj) {
		/*	direct to next location	*/
		var sw=",width=" +screen.width*0.65;
		var sh=",height=" +screen.height*0.65;
		var left=",left=" +screen.width*0.02;
		var top=",top=" +screen.height*0.10;
		var params='"';
		var target = window.location.host +"/" ; 
		newWindow=window.open(path +obj +".jpg","Pictures","toolbar=no,location=no, scrollbars=yes, resizable=no, directories=no, menubar=yes, copyhistory=no, status=no" +sw +sh +left +top +params) ;
	}
	
	function go(site){
		newWindow=window.open(site) ;
	}

	function r0(object1){ 				/*	cursor change */
		object1.className='hand';
	}

	function r1(object1,bc,fc){ 		/*	rollover and rollout	*/
		document.getElementById(object1).style.background = bc;
		document.getElementById(object1).style.color = fc;
	}

	function r2(object,object1){ 
		/*	rollover and rollout	*/
		document.getElementById(object).style.border="thin solid #0000FF";
		r0(object1);
	}
	function r3(object){ 
		/*	rollover and rollout	*/
		document.getElementById(object).style.border="thin solid #FFFFFF";
	}
	function r4(object){ 
		/*	rollover and rollout	*/
		var path = "http://dev-chess.4vente.com/photos/";
		clickp(path,object);
	}
    imagecount=0									/* preset counter for images */
	function  rotate(target) {
		/*	rotate pictures in frame	*/
		  if (document.images) {
		  	 imagecount++;
			 if (imagecount > imageno) {imagecount = 1}
			 document.pictures.src =target +  imagename +"-" +imagecount +".jpg";
		  }
		  setTimeout("rotate('"+target +"')",8000)
    }
    
	function addbookmark(a) 	{	
		/*	add a bookmark	*/
		if (document.all) {
	   	   window.external.AddFavorite(window.location.href,a);	
	   	   alert(a +"  added to Favorites") ;
		}
    }   