function rollover( e ){
	var img_src = e.childNodes[0].src ;
	var img_split = img_src.split("_off") ;
		if ( img_split.length == 1 ){
			img_split = img_src.split("_on") ;
			e.childNodes[0].src = img_split[0] + '_off' + img_split[1] ;
		}else{
			e.childNodes[0].src = img_split[0] + '_on' + img_split[1] ;
		}
}


function view_gallery(gallery, cat, mode, template){
	if(template == '' || template == null){
		template = 1;	
	}
	if(gallery != '' && gallery != null && mode == 1){
		parent.location.href='/gallery/view/' + gallery + '/' + template + '/view-slide-show.php';
	}else if(cat != '' && cat != null && mode == 2){
		parent.location.href='/gallery/view/' + document.form1.elements[cat].value + '/' + template + '/view-slide-show.php';
	}else{
		return false;
	}
}